/* ============================================================
   SOCIAL SALES PLAN — plan.socialsalesstrategy.com
   Design System: Clean, Minimal, Premium
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --gold: #D4AF37;
  --gold-hover: #C9A030;
  --gold-light: #E8CC6A;
  --black: #1A1A1A;
  --charcoal: #2D2D2D;
  --charcoal-light: #3D3D3D;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: #999999;
  --border: #E5E5E5;

  /* Score colors */
  --score-red: #E53935;
  --score-orange: #FB8C00;
  --score-amber: #FFB300;
  --score-green: #43A047;

  /* Spacing */
  --section-pad: 100px;
  --section-pad-sm: 64px;
  --content-width: 720px;
  --full-width: 1080px;

  /* Radius */
  --radius: 6px;
  --radius-lg: 12px;

  /* Nav */
  --nav-h: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Utility --- */
.container {
  max-width: var(--full-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--full-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }
.nav-link--active { color: var(--text); font-weight: 600; }
.nav-link--disabled { color: var(--text-light); cursor: default; opacity: 0.5; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

/* ============================================================
   STATE MANAGEMENT
   ============================================================ */
.state { display: none; }
.state--active { display: block; }

body.diagnostic-active #main-nav { display: none !important; }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  text-align: center;
}

.btn--gold {
  background: var(--gold);
  color: var(--text);
}

.btn--gold:hover {
  background: var(--gold-hover);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--charcoal-light);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--text);
}

.btn--full { width: 100%; }

/* --- Section --- */
.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--charcoal);
  color: var(--white);
}

.section--light {
  background: var(--off-white);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card--dark {
  background: var(--charcoal);
  border-color: transparent;
  color: var(--white);
}

/* --- Social Proof Bar --- */
.proof-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.proof-stat {
  text-align: center;
}

.proof-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.proof-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   STATE 1: SALES PAGE
   ============================================================ */

/* Hero */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 var(--section-pad);
  text-align: center;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn--large {
  padding: 18px 36px;
  font-size: 17px;
}

.hero-guarantee {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-credibility {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 20px 6px 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-credibility-photo {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Inline CTAs (repeated throughout page) */
.inline-cta {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-cta.text-center {
  justify-content: center;
}

.btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn--outline-light:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* Story Card */
.section--warm {
  background: #FDF8EC;
}

.story-card {
  max-width: var(--content-width);
  margin: 32px auto 0;
}

.story-before,
.story-found,
.story-after {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.6;
}

.story-before {
  background: rgba(0,0,0,0.04);
  color: var(--text-muted);
}

.story-found {
  background: #fff;
  border: 1px solid var(--border);
}

.story-after {
  background: var(--charcoal);
  color: var(--white);
  font-weight: 600;
  font-size: 19px;
}

.story-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}

.story-after .story-tag {
  color: var(--gold-light);
}

.story-punchline {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  color: var(--text);
}

/* Loss / Cost of Waiting Block */
.loss-block {
  max-width: var(--content-width);
  margin: 32px auto 0;
}

.loss-block p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.loss-block p:last-child {
  font-weight: 600;
}

/* Guarantee */
.price-guarantee {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* VSL */
.vsl-section {
  padding: 0 0 var(--section-pad);
}

.vsl-embed {
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.vsl-placeholder {
  color: var(--text-light);
  font-size: 15px;
}

/* Problem */
.problem-text {
  max-width: var(--content-width);
  margin: 0 auto;
}

.problem-text p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.problem-text p:first-child {
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
}

/* Five Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.category-block {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  border: 1px solid var(--border);
}

.category-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-muted);
}

/* Value List */
.value-list {
  list-style: none;
  max-width: var(--content-width);
  margin: 48px auto 0;
}

.value-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 9px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial {
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-name {
  font-weight: 600;
  font-size: 15px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--border);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-title {
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.about-bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-stats {
  display: flex;
  gap: 32px;
}

.about-stat-num {
  font-size: 24px;
  font-weight: 700;
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Price CTA */
.price-section {
  text-align: center;
}

.price-display {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-note {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.payment-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.payment-btn {
  flex: 1;
  min-width: 200px;
  padding: 18px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.payment-btn--paystack {
  background: var(--gold);
  color: var(--text);
}

.payment-btn--paystack:hover {
  background: var(--gold-hover);
}

.payment-btn--gumroad {
  background: var(--charcoal);
  color: var(--white);
}

.payment-btn--gumroad:hover {
  background: var(--charcoal-light);
}

.payment-divider {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

/* Payment Modal */
.payment-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.payment-modal-overlay.active {
  display: flex;
}
.payment-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}
.payment-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.payment-modal-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.payment-field {
  margin-bottom: 16px;
}
.payment-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.payment-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.payment-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.payment-modal-submit {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.payment-modal-submit:hover {
  background: #c9a430;
}

/* Payment Success Overlay */
.payment-success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
}
.payment-success-overlay.active {
  display: flex;
}
.payment-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #43A047;
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.payment-success-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.payment-success-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* Resume Modal */
.resume-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.resume-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.resume-icon {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 16px;
}

.resume-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.resume-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.resume-continue-btn {
  width: 100%;
  margin-bottom: 12px;
}

.resume-restart-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  padding: 8px;
}

.resume-restart-btn:hover {
  color: var(--text);
}

/* Saved Plan Banner */
.saved-plan-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--charcoal);
  color: var(--white);
  padding: 16px 24px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
}

.saved-plan-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.saved-plan-text {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.saved-plan-text strong {
  color: var(--white);
}

.saved-plan-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .saved-plan-inner {
    flex-direction: column;
    text-align: center;
  }
  .saved-plan-btn { width: 100%; }
}

/* FAQ */
.faq-list {
  max-width: var(--content-width);
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================================
   STATE 2: DIAGNOSTIC CHAT
   ============================================================ */
.diagnostic-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  background: var(--white);
  z-index: 2000;
}

/* Only show chat when IG scan step is hidden */
#state-diagnostic.state--active .ig-scan-step.hidden + .diagnostic-container {
  display: flex;
}

/* Also show chat if ig-scan-step doesn't exist (fallback) */
#state-diagnostic.state--active .diagnostic-container.chat-active {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--charcoal);
  color: var(--white);
  flex-shrink: 0;
}

.chat-avatar-photo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43A047;
  margin-right: 4px;
  vertical-align: middle;
}

.chat-header-info h2 {
  font-size: 16px;
  font-weight: 600;
}

.chat-header-sub {
  font-size: 12px;
  color: var(--text-light);
}

.chat-progress {
  padding: 0;
  background: var(--off-white);
  flex-shrink: 0;
}

.progress-bar {
  height: 3px;
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.5s ease;
  width: 0%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

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

.message--ai {
  align-self: flex-start;
  background: var(--off-white);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.message--ai strong {
  font-weight: 600;
  color: var(--text);
}

/* Insight card inside AI messages */
.message--ai .insight-card {
  background: linear-gradient(135deg, #F8F6EF 0%, #FFF9E6 100%);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.message--ai .insight-card .insight-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-hover);
  margin-bottom: 6px;
}

/* Question styling inside AI messages */
.message--ai .question-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-top: 8px;
}

/* Confirmation summary */
.message--ai .confirmation-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 8px 0;
}

.message--ai .confirmation-row {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.message--ai .confirmation-row:last-child {
  border-bottom: none;
}

.message--ai .confirmation-label {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 100px;
  flex-shrink: 0;
}

/* Quick-pick option buttons in AI messages */
.message--ai .options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
  line-height: 1.4;
}

.option-btn:hover {
  border-color: var(--gold);
  background: #FFFDF5;
}

.option-btn:active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text);
}

.option-btn .option-letter {
  font-weight: 700;
  color: var(--gold);
  margin-right: 6px;
}

.message--user {
  align-self: flex-end;
  background: var(--charcoal);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.message--system {
  align-self: center;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 8px;
}

.retry-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 18px;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.typing-indicator {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  background: var(--off-white);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typingBounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-area {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-family: inherit;
  resize: none;
  outline: none;
  min-height: 48px;
  max-height: 120px;
}

.chat-input:focus {
  border-color: var(--gold);
}

.chat-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.chat-send:hover { background: var(--gold-hover); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-footer-note {
  padding: 8px 24px 12px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  background: var(--white);
  flex-shrink: 0;
}

/* Generating overlay */
.generating-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--white);
  z-index: 100;
  overflow-y: auto;
}

.generating-overlay.active {
  display: block;
}

.generating-content {
  padding: 40px 24px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.generating-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.generating-text {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.generating-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Generation step indicators */
.generating-steps {
  text-align: left;
  margin-bottom: 32px;
}

.gen-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.3s;
}

.gen-step.active {
  color: var(--text);
  font-weight: 500;
}

.gen-step.done {
  color: var(--score-green);
}

.gen-step-icon {
  font-size: 10px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.gen-step.done .gen-step-icon::after {
  content: '\2713';
}

.gen-step.done .gen-step-icon {
  font-size: 0;
  color: var(--score-green);
}

.gen-step.done .gen-step-icon::after {
  font-size: 14px;
}

/* Nudge section */
.generating-nudge {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.nudge-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.nudge-card {
  display: none;
  background: #F8F6EF;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.nudge-card.nudge-card--active {
  display: block;
}

.nudge-stat {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.nudge-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   STATE 3: RESULTS PAGE
   ============================================================ */
.results {
  padding-top: var(--nav-h);
}

.results-header {
  text-align: center;
  padding: var(--section-pad) 0 var(--section-pad-sm);
}

.results-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.results-header p {
  font-size: 17px;
  color: var(--text-muted);
}

/* Section A: Diagnosis */
.diagnosis-section {
  padding: 0 0 var(--section-pad);
}

.score-display {
  text-align: center;
  margin-bottom: 48px;
}

.score-number {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

.score-max {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
}

.score-label {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.category-bars {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cat-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cat-bar-label {
  width: 100px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.cat-bar-track {
  flex: 1;
  height: 12px;
  background: var(--off-white);
  border-radius: 6px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.cat-bar-fill.red { background: var(--score-red); }
.cat-bar-fill.orange { background: var(--score-orange); }
.cat-bar-fill.amber { background: var(--score-amber); }
.cat-bar-fill.green { background: var(--score-green); }

.cat-bar-score {
  width: 48px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.cat-bar-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  padding-left: 116px;
}

.revenue-gap {
  text-align: center;
  margin-top: 40px;
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.revenue-gap-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--score-red);
}

.revenue-gap-note {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

.score-interpretation {
  max-width: var(--content-width);
  margin: 32px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Section B: Buyers */
.buyers-section .card {
  max-width: var(--content-width);
  margin: 0 auto;
}

.buyers-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.buying-triggers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buying-triggers li {
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.buying-triggers li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
}

.buying-window-note {
  margin-top: 16px;
  padding: 16px;
  background: #FFF8E1;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
}

/* Section C: Offer */
.offer-section .card {
  max-width: var(--content-width);
  margin: 0 auto;
}

.offer-education {
  padding: 16px 20px;
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.offer-short {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.offer-long {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Section D: Content Plan */
.content-plan-section .belief-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.belief-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.belief-card-header {
  padding: 20px 24px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.belief-card-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.belief-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}

.belief-card-body {
  padding: 24px;
}

.belief-callout {
  padding: 12px 16px;
  background: #FFF8E1;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}

.content-panel {
  position: relative;
  padding: 16px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 12px;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.copy-btn.copied {
  background: var(--gold);
  color: var(--text);
  border-color: var(--gold);
}

.content-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Collapsible prompt template */
.collapsible {
  margin-top: 12px;
}

.collapsible-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

.collapsible-toggle .arrow {
  transition: transform 0.2s;
  font-size: 10px;
}

.collapsible.open .collapsible-toggle .arrow {
  transform: rotate(90deg);
}

.collapsible-content {
  display: none;
  padding: 12px 16px;
  background: var(--charcoal);
  color: #CCC;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
  font-family: monospace;
  white-space: pre-wrap;
  margin-top: 8px;
  position: relative;
}

.collapsible.open .collapsible-content {
  display: block;
}

/* Section E: Ad Pack */
.ad-pack-section .ad-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.ad-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ad-card-header {
  padding: 20px 24px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ad-card-title {
  font-size: 17px;
  font-weight: 600;
}

.ad-card-purpose {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ad-card-when {
  flex-shrink: 0;
  padding: 4px 12px;
  background: var(--gold);
  color: var(--text);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ad-card-body {
  padding: 24px;
}

.ad-distribution {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section F: Calendar */
.calendar-section {
  max-width: var(--content-width);
  margin: 0 auto;
}

.phase {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.phase-header {
  padding: 20px 24px;
  background: var(--charcoal);
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phase-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.phase-arrow {
  font-size: 12px;
  transition: transform 0.2s;
}

.phase.open .phase-arrow {
  transform: rotate(90deg);
}

.phase-body {
  display: none;
  padding: 24px;
}

.phase.open .phase-body {
  display: block;
}

.week-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.week-block:last-child { border-bottom: none; }

.week-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.week-tasks {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Section G: Video Script */
.script-section .card {
  max-width: var(--content-width);
  margin: 0 auto;
}

.script-panel {
  position: relative;
  padding: 20px 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  margin-bottom: 16px;
}

.recording-tips {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Section H: First Ad Ready */
.first-ad-section .card {
  max-width: var(--content-width);
  margin: 0 auto;
}

.targeting-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.targeting-item {
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
}

.targeting-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.targeting-value {
  font-size: 15px;
  font-weight: 500;
}

.ad-notes {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Section I: 60-Second Summary */
.summary-card {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px;
  background: var(--gold);
  color: var(--text);
  border-radius: var(--radius-lg);
  font-size: 17px;
  line-height: 1.7;
}

.summary-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Section J: Downloads */
.downloads-section {
  text-align: center;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.download-btn {
  padding: 18px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.download-btn--pdf {
  background: var(--gold);
  color: var(--text);
}

.download-btn--pdf:hover { background: var(--gold-hover); }

.download-btn--email {
  background: var(--charcoal);
  color: var(--white);
}

.download-btn--email:hover { background: var(--charcoal-light); }

.share-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Section K: Lab Pitch */
.lab-pitch {
  text-align: center;
}

.lab-pitch-divider {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 48px;
}

.lab-pitch h2 {
  font-size: 32px;
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.2;
}

.lab-pitch-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.lab-vsl {
  max-width: 640px;
  margin: 0 auto 32px;
  aspect-ratio: 16/9;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-company {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-address {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 16px;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-pad: 72px;
    --section-pad-sm: 48px;
  }

  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 18px; }
  .section-title { font-size: 28px; }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto;
  }

  .about-stats {
    justify-content: center;
  }

  .score-number { font-size: 56px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  :root {
    --section-pad: 56px;
    --section-pad-sm: 40px;
  }

  .nav-links { display: none; }
  .nav-links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-hamburger { display: flex; }

  .hero { padding: calc(var(--nav-h) + 48px) 0 var(--section-pad-sm); }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 17px; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .hero-credibility { font-size: 11px; padding: 5px 14px 5px 5px; max-width: calc(100vw - 48px); }
  .hero-credibility-photo { width: 28px; height: 28px; min-width: 28px; }
  .hero-credibility span { text-align: left; }

  .btn--large { padding: 16px 24px; font-size: 16px; }
  .payment-btn { padding: 16px 20px; font-size: 15px; }

  .inline-cta { flex-direction: column; }
  .inline-cta .btn { width: 100%; }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-bar {
    gap: 24px;
  }

  .payment-buttons {
    flex-direction: column;
  }

  .payment-btn { width: 100%; }

  .btn--full-mobile { width: 100%; }

  .about-grid { gap: 32px; }

  .about-photo {
    width: 200px;
    height: 200px;
  }

  .cat-bar-summary {
    padding-left: 0;
    margin-top: 4px;
  }

  .cat-bar {
    flex-wrap: wrap;
  }

  .score-number { font-size: 48px; }

  .targeting-info {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
  }

  .download-btn { width: 100%; justify-content: center; }

  .ad-card-header {
    flex-direction: column;
  }

  .ig-scan-card {
    margin: 16px;
    padding: 32px 20px;
  }

  .ig-scan-title { font-size: 22px; }
  .ig-scan-desc { font-size: 14px; }
  .ig-scan-input { font-size: 15px; padding: 14px 16px; }
  .ig-scan-btn { padding: 16px 24px; font-size: 16px; }
}

/* ============================================================
   INSTAGRAM SCAN STEP
   ============================================================ */
.ig-scan-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: var(--off-white);
}

.ig-scan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ig-scan-icon {
  color: var(--gold);
  margin-bottom: 20px;
}

.ig-scan-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.ig-scan-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.ig-scan-input-wrap {
  margin-bottom: 20px;
}

.ig-scan-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text);
  transition: border-color 0.2s;
}

.ig-scan-input:focus {
  outline: none;
  border-color: var(--gold);
}

.ig-scan-hint {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

.ig-scan-btn {
  width: 100%;
  margin-bottom: 12px;
}

.ig-skip-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}

.ig-skip-btn:hover {
  color: var(--text);
}

.ig-scan-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: #F8F6EF;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
}

.ig-scan-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ig-scan-step.hidden {
  display: none;
}

.ig-scan-error {
  color: var(--score-red);
  font-size: 13px;
  margin-top: 8px;
}

.ig-scan-success {
  color: var(--score-green);
}

/* ============================================================
   REFRESH SYSTEM
   ============================================================ */
.refresh-bar {
  background: var(--charcoal);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.refresh-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.refresh-count {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

#refresh-count-num {
  color: var(--gold);
  font-weight: 700;
}

.btn-buy-refreshes {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-buy-refreshes:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-new-plan {
  display: none; /* future feature */
}

.refresh-btn {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.section-refreshing {
  position: relative;
}

.section-refreshing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Refresh modal */
.refresh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.refresh-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.refresh-modal h2 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--charcoal);
}

.refresh-modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.refresh-packs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.refresh-pack {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-pack:hover {
  border-color: var(--gold);
}

.pack-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
}

.pack-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  margin: 4px 0;
}

.pack-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.refresh-modal-close {
  width: 100%;
  padding: 10px;
  font-size: 14px;
}
