/* DopaBrain Dopamine Detox & Reset Protocol Planner Styles */
:root {
  --bg-dark: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.78);
  --bg-card-hover: rgba(26, 34, 52, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --line-light: rgba(255, 255, 255, 0.06);
  --text: #f8fafc;
  --muted: #94a3b8;
  --amber: #f59e0b;
  --gold: #fbbf24;
  --emerald: #10b981;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.skip {
  position: absolute;
  top: -999px;
  left: 10px;
  background: var(--amber);
  color: #000;
  font-weight: 700;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.skip:focus {
  top: 10px;
}

.hero {
  padding: 24px 20px 40px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.16) 0%, transparent 70%);
  border-bottom: 1px solid var(--line-light);
}

nav {
  max-width: 900px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

nav a:hover {
  color: #fff;
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
}

.lang-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-picker label {
  font-size: 0.85rem;
  color: var(--muted);
}

.lang-picker select {
  background: rgba(18, 24, 38, 0.95);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 44px;
  outline: none;
}
.lang-picker select:focus {
  border-color: var(--amber);
}

.hero-body {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-body h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.main-wrap {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 60px;
  flex: 1;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .panel {
    padding: 20px 16px;
  }
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Category Banners */
.category-banner {
  background: rgba(245, 158, 11, 0.12);
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 20px 0 16px;
}
.category-banner.compound {
  background: rgba(16, 185, 129, 0.12);
  border-left: 4px solid var(--emerald);
}
.category-banner h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.category-banner p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Question Cards */
.q-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.q-card:focus-within,
.q-card:hover {
  border-color: var(--line);
}

.q-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.q-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.4;
}

.q-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.badge-cheap {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-compound {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

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

@media (max-width: 580px) {
  .q-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.opt-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.15s ease;
}

.opt-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.opt-btn.active {
  background: var(--amber);
  color: #000;
  font-weight: 700;
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.q-card[data-domain="compound"] .opt-btn.active {
  background: var(--emerald);
  color: #000;
  border-color: var(--emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Action Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  flex: 1;
}

.primary-btn {
  background: linear-gradient(135deg, var(--amber), #d97706);
  color: #000;
  border: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
}
.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Result Section */
.result-card {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.verdict-header {
  text-align: center;
  margin-bottom: 28px;
}

.verdict-badge {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.verdict-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.verdict-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Balance Spectrum Display */
.spectrum-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin: 28px 0;
}

.spectrum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

.spectrum-bar-wrap {
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.bar-cheap {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  height: 100%;
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bar-compound {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  height: 100%;
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spectrum-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Protocol Timeline Cards */
.protocol-wrap {
  margin: 32px 0;
}

.protocol-wrap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.timeline-time {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.timeline-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Dopamine Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

.menu-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 18px;
}

.menu-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-card ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-card li::before {
  content: '• ';
  color: var(--amber);
  font-weight: bold;
}

/* Cross-Funnel Bridge Grid */
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 36px 0 24px;
}

@media (max-width: 680px) {
  .bridge-grid {
    grid-template-columns: 1fr;
  }
}

.bridge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 110px;
}

.bridge-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
}

.bridge-emoji {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.bridge-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.bridge-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Disclaimer Box */
.disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--muted);
  border-radius: 4px;
  padding: 14px 18px;
  margin-top: 32px;
}

.disclaimer-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.disclaimer-box p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

footer {
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid var(--line-light);
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: auto;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
}
footer a:hover {
  color: var(--amber);
}
