.bbp-card {
  --bbp-primary: #f43f5e;
  --bbp-primary-soft: rgba(244, 63, 94, 0.05);
  --bbp-primary-border: rgba(244, 63, 94, 0.1);
  --bbp-bg-card: #fff;
  --bbp-bg-left: #f8fafc;
  --bbp-bg-item: #fff;
  --bbp-text-main: #0f172a;
  --bbp-text-muted: #64748b;
  --bbp-border: #e2e8f0;
  --bbp-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  
  display: flex;
  flex-direction: column;
  background: var(--bbp-bg-card);
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--bbp-border);
  box-shadow: var(--bbp-shadow);
  color: var(--bbp-text-main);
}

.theme-dark .bbp-card {
  --bbp-bg-card: #020617;
  --bbp-bg-left: #0f172a;
  --bbp-bg-item: #1e293b;
  --bbp-text-main: #f8fafc;
  --bbp-text-muted: #94a3b8;
  --bbp-border: #334155;
  --bbp-primary-soft: rgba(244, 63, 94, 0.15);
  --bbp-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.bbp-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 600px;
}

.bbp-left {
  background: var(--bbp-bg-left);
  padding: 40px;
  border-right: 1px solid var(--bbp-border);
}

.bbp-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.bbp-right-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 1024px) {
  .bbp-main {
    grid-template-columns: 1fr;
  }
  .bbp-left {
    border-right: none;
    border-bottom: 1px solid var(--bbp-border);
  }
}

.bbp-section-marker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bbp-primary);
  margin-bottom: 20px;
}

.bbp-group {
  margin-bottom: 24px;
}

.bbp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.bbp-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bbp-choice-btn {
  background: var(--bbp-bg-item);
  border: 1px solid var(--bbp-border);
  padding: 12px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--bbp-text-main);
}

.bbp-choice-btn:hover {
  border-color: var(--bbp-primary);
}

.bbp-choice-btn.active {
  background: var(--bbp-primary);
  color: white;
  border-color: var(--bbp-primary);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2);
}

.bbp-cta-btn {
  width: 100%;
  background: var(--bbp-primary);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: 10px;
}

.bbp-cta-btn:hover { transform: translateY(-2px); }

.bbp-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bbp-bg-item);
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--bbp-border);
}

.bbp-item-meta { flex: 1; }

.bbp-item-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.bbp-toggles {
  display: flex;
  gap: 12px;
}

.bbp-toggle-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bbp-text-muted);
  cursor: pointer;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}

.bbp-toggle-pill.sh.checked {
  color: #10b981;
  border-bottom-color: #10b981;
}

.bbp-toggle-pill.wl.checked {
  color: #06b6d4;
  border-bottom-color: #06b6d4;
}

.bbp-price-area {
  text-align: right;
  min-width: 100px;
}

.bbp-price-bubble {
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.bbp-price-bubble:hover { background: var(--bbp-primary-soft); }

.bbp-price-bubble.is-zero {
  color: #10b981;
}

.bbp-input-fancy {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid var(--bbp-border);
  background: var(--bbp-bg-card);
  color: var(--bbp-text-main);
  font-weight: 700;
}

.bbp-input-fancy:focus {
  outline: none;
  border-color: var(--bbp-primary);
}

.bbp-total-box {
  background: var(--bbp-primary-soft);
  padding: 1.5rem;
  border-radius: 1.25rem;
  text-align: center;
  border: 1px solid var(--bbp-primary-border);
}

.bbp-import-promo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bbp-bg-item);
  border: 2px dashed var(--bbp-border);
  border-radius: 1.5rem;
  min-height: 300px;
}

.bbp-promo-icon {
  width: 64px;
  height: 64px;
  color: var(--bbp-primary);
  opacity: 0.5;
}

.bbp-tool-btn.primary-btn {
  background: var(--bbp-primary);
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.bbp-total-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--bbp-primary);
  margin: 10px 0;
}

.bbp-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bbp-text-muted);
  text-transform: uppercase;
}

.bbp-progress-rail {
  height: 8px;
  background: var(--bbp-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

.bbp-progress-thumb {
  height: 100%;
  background: var(--bbp-primary);
  transition: width 0.3s ease;
}

.bbp-curve-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bbp-curve-chart {
  height: 140px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding-top: 20px;
}

.bbp-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.bbp-bar-val {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--bbp-primary);
  transition: opacity 0.2s ease;
}

.bbp-bar {
  width: 100%;
  background: var(--bbp-primary);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: all 0.2s ease;
}

.bbp-curve-labels {
  display: flex;
  gap: 2px;
}

.bbp-bar-lbl {
  flex: 1;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--bbp-text-muted);
  text-transform: uppercase;
}

.bbp-ghost-item {
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.theme-dark .bbp-ghost-item {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}

.bbp-panel {
  background: var(--bbp-bg-item);
  border: 1px solid var(--bbp-border);
  border-radius: 1.5rem;
  padding: 24px;
}


.bbp-ghost-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bbp-diaper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bbp-diaper-result {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--bbp-primary);
  margin-top: 8px;
  text-align: center;
}

.bbp-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.bbp-tool-btn {
  background: var(--bbp-bg-item);
  border: 1px solid var(--bbp-border);
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--bbp-text-main);
}

#bbp-reset-btn {
  border-color: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

#bbp-reset-btn[data-confirm='true'] {
  background: #f43f5e;
  color: white;
  border-color: #f43f5e;
}

.bbp-hidden {
  display: none;
}
