/* ===== VANGUARD OPTIMIZATION GHOST THEME ===== */

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

:root {
  --bg-primary: #0B1A2E;
  --bg-secondary: #0F2035;
  --bg-card: #112240;
  --bg-card-border: #1B3A5C;
  --gold: #C8A55A;
  --gold-hover: #D4B76A;
  --white: #FFFFFF;
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --dark-blue: #1B3A5C;
  --med-blue: #2E75B6;
  --nav-secondary-height: 36px;
  --nav-primary-height: 64px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ===== SECONDARY NAV ===== */
.nav-secondary { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; height: var(--nav-secondary-height); background: #060E1A; border-bottom: 1px solid rgba(27,58,92,0.25); transition: transform 0.3s ease; }
.nav-secondary.hidden { transform: translateY(-100%); }
.nav-secondary-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; justify-content: flex-end; align-items: center; }
.nav-secondary-links { display: flex; gap: 1.75rem; }
.nav-secondary-links a { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.nav-secondary-links a:hover { color: var(--gold); }

/* ===== PRIMARY NAV ===== */
.nav { position: fixed; top: var(--nav-secondary-height); left: 0; right: 0; z-index: 1000; height: var(--nav-primary-height); padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; background: rgba(11,26,46,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(27,58,92,0.3); transition: top 0.3s ease; }
.nav.scrolled { top: 0; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; text-decoration: none; flex-shrink: 0; }
.nav-logo .gold, .footer-brand .gold { color: var(--gold); }
.nav-logo .white, .footer-brand .white { color: var(--white); font-weight: 400; }

/* ── Nav left/right wrappers for the icon buttons + back button ─────────── */
.nav-left, .nav-right { display: flex; align-items: center; gap: 0.5rem; }

/* ── PWA-only back button (revealed by JS in display-mode: standalone) ──── */
.nav-back {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text-primary); background: transparent;
  border: 1px solid transparent;
  padding: 0; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.nav-back:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.nav-back:active { background: rgba(255,255,255,0.12); }
.nav-back svg { width: 20px; height: 20px; }
.nav-back[hidden] { display: none; }

/* ── Persistent account button (visible on mobile widths only) ──────────── */
.nav-account-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--gold);
  background: rgba(200,165,90,0.10);
  border: 1px solid rgba(200,165,90,0.35);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.nav-account-btn:hover { background: rgba(200,165,90,0.20); border-color: rgba(200,165,90,0.55); }
.nav-account-btn:active { background: rgba(200,165,90,0.28); transform: translateY(1px); }
.nav-account-btn svg { width: 20px; height: 20px; }
/* Guest variant — same visual treatment, distinct semantic class for future styling */
.nav-account-btn--guest { color: var(--text-secondary); border-color: rgba(148,163,184,0.35); background: rgba(148,163,184,0.08); }
.nav-account-btn--guest:hover { background: rgba(148,163,184,0.18); border-color: rgba(148,163,184,0.55); color: var(--text-primary); }

/* Desktop: hide the entire mobile-only right cluster. The desktop nav
   already has the text 'My Account'/'Sign In' link inside nav-primary-links,
   and the hamburger is hidden by an earlier rule. With nav-right removed,
   the .nav's space-between layout puts logo at left and the desktop link
   group at right, which is the intended desktop appearance. */
@media (min-width: 960px) {
  .nav-right { display: none; }
  .nav-back { display: none; }
}
.nav-primary-links { display: none; align-items: center; gap: 2rem; }
.nav-primary-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color 0.3s; position: relative; padding: 0.25rem 0; }
.nav-primary-links a:hover { color: var(--white); }
.nav-primary-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s; }
.nav-primary-links a:hover::after { width: 100%; }
.nav-primary-links .nav-cta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg-primary); background: var(--gold); border-radius: 4px; padding: 0.6rem 1.25rem; transition: background 0.3s, transform 0.3s; }
.nav-primary-links .nav-cta:hover { background: var(--gold-hover); color: var(--bg-primary); transform: translateY(-1px); }
.nav-primary-links .nav-cta::after { display: none; }
.nav-primary-links .nav-signin { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 0.55rem 1.1rem; transition: background 0.3s, color 0.3s; text-decoration: none; }
.nav-primary-links .nav-signin:hover { background: rgba(200,165,90,0.1); }
.nav-primary-links .nav-signin::after { display: none; }
.nav-menu-signin { display: block; text-align: center; color: var(--gold); font-size: 1rem; font-weight: 600; padding: 0.75rem 0; border-bottom: 1px solid rgba(27,58,92,0.5); text-decoration: none; }
@media (min-width: 960px) { .nav-primary-links { display: flex; } .nav-hamburger { display: none; } }
.nav-hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }

/* ===== MOBILE MENU ===== */
.nav-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(11,26,46,0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 9999; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; }
.nav-menu.active { display: flex; }
.nav-close { position: absolute; top: 1.25rem; right: 2rem; font-size: 2rem; color: var(--text-primary); cursor: pointer; background: none; border: none; padding: 8px; }
.nav-menu-section { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 1.5rem 0; }
.nav-menu-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.nav-menu-section a { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--text-primary); text-decoration: none; transition: color 0.3s; }
.nav-menu-section a:hover { color: var(--gold); }
.nav-menu-divider { width: 60px; height: 1px; background: var(--bg-card-border); margin: 0.5rem 0; }
.nav-menu-cta { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--bg-primary); background: var(--gold); border-radius: 4px; padding: 1rem 2.5rem; text-decoration: none; margin-top: 1rem; transition: background 0.3s; }
.nav-menu-cta:hover { background: var(--gold-hover); }

/* ===== LAYOUT ===== */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 780px; margin: 0 auto; }
.section-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 1rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,3.2rem); font-weight: 700; color: var(--white); text-align: center; margin-bottom: 1.25rem; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); text-align: center; max-width: 640px; margin: 0 auto 3rem; line-height: 1.7; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: calc(var(--nav-secondary-height) + var(--nav-primary-height) + 4rem); padding-bottom: 6rem; padding-left: 2rem; padding-right: 2rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at 50% 30%, rgba(200,165,90,0.06) 0%, transparent 60%); pointer-events: none; }
.hero-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-secondary); background: rgba(27,58,92,0.5); border: 1px solid rgba(27,58,92,0.6); border-radius: 100px; padding: 0.6rem 1.5rem; margin-bottom: 2rem; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem,7vw,4.5rem); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero-divider { width: 60px; height: 3px; background: var(--gold); margin: 3rem auto 0; border-radius: 2px; }

/* ===== BUTTONS ===== */
.btn-primary { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--bg-primary); background: var(--gold); border: 2px solid var(--gold); border-radius: 4px; padding: 1rem 2.5rem; cursor: pointer; text-decoration: none; transition: all 0.3s; }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); }
.btn-outline { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-primary); background: transparent; border: 2px solid rgba(226,232,240,0.3); border-radius: 4px; padding: 1rem 2.5rem; cursor: pointer; text-decoration: none; transition: all 0.3s; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ===== PHILOSOPHY ===== */
.philosophy { background: var(--bg-secondary); }
.philosophy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 2rem; margin-top: 2rem; }
.philosophy-card { background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: 12px; padding: 2.5rem 2rem; }
.philosophy-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.icon-scales { background: rgba(200,165,90,0.15); color: var(--gold); }
.icon-medical { background: rgba(46,117,182,0.15); color: var(--med-blue); }
.icon-gear { background: rgba(100,160,140,0.15); color: #64A08C; }
.philosophy-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--white); margin-bottom: 1rem; }
.philosophy-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== COVERAGE ===== */
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1.75rem; }
.coverage-card { background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: 12px; padding: 2.5rem 2rem; display: flex; gap: 1.5rem; align-items: flex-start; }
.coverage-number { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--gold); opacity: 0.7; line-height: 1; min-width: 55px; }
.coverage-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--white); margin-bottom: 0.75rem; }
.coverage-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== APPROACH ===== */
.approach { background: var(--bg-secondary); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 3rem; text-align: center; max-width: 900px; margin: 0 auto; }
.step-circle { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--bg-card-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.2rem; font-weight: 600; color: var(--gold); }
.step h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 0.75rem; }
.step p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; max-width: 280px; margin: 0 auto; }

/* ===== DIFFERENCE ===== */
.difference-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 900px; margin: 0 auto; }
.difference-col h3 { font-size: 1.1rem; font-weight: 600; color: var(--gold); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--bg-card-border); }
.difference-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.difference-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }
.icon-x { flex-shrink: 0; color: #EF4444; font-size: 0.85rem; margin-top: 3px; }
.icon-check { flex-shrink: 0; color: #22C55E; font-size: 0.85rem; margin-top: 3px; }

/* ===== CTA ===== */
.cta { background: var(--bg-secondary); text-align: center; }
.cta-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.cta-input { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-primary); background: rgba(17,34,64,0.8); border: 1px solid var(--bg-card-border); border-radius: 6px; padding: 1rem 1.25rem; outline: none; transition: border-color 0.3s; }
.cta-input::placeholder { color: var(--text-muted); }
.cta-input:focus { border-color: var(--gold); }
.cta-note { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.6; }

/* ===== BLOG / POSTS ===== */
.posts-section { background: var(--bg-secondary); }
.post-hero { padding-top: calc(var(--nav-secondary-height) + var(--nav-primary-height) + 4rem); padding-bottom: 3rem; padding-left: 2rem; padding-right: 2rem; text-align: center; background: var(--bg-secondary); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 2rem; }
.post-card { background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform 0.3s, border-color 0.3s; display: block; }
.post-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.post-card-image { height: 200px; background-size: cover; background-position: center; background-color: var(--bg-secondary); }
.post-card-image-default { background: linear-gradient(135deg, #0F2035 0%, #1B3A5C 100%); }
.post-card-content { padding: 1.5rem; }
.post-card-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.post-card-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; line-height: 1.4; }
.post-card-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.75rem; }
.post-card-date { font-size: 0.8rem; color: var(--text-muted); }

/* ===== SINGLE POST / PAGE ===== */
.post-meta { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }
.post-meta-sep { margin: 0 0.5rem; }
.post-feature-image { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.post-feature-image img { width: 100%; border-radius: 12px; margin-top: -2rem; }
.post-feature-image figcaption { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.post-content-section { padding: 3rem 2rem 6rem; }
.post-content { font-size: 1.05rem; color: var(--text-primary); line-height: 1.8; }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--white); margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.3rem; font-weight: 600; color: var(--white); margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content a { color: var(--gold); text-decoration: underline; }
.post-content a:hover { color: var(--gold-hover); }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote { border-left: 3px solid var(--gold); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--bg-card); border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-secondary); }
.post-content img { max-width: 100%; border-radius: 8px; margin: 1.5rem 0; }
.post-content code { background: var(--bg-card); padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
.post-content pre { background: var(--bg-card); padding: 1.5rem; border-radius: 8px; overflow-x: auto; margin: 1.5rem 0; }
.post-content pre code { background: none; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-content th, .post-content td { padding: 0.75rem 1rem; border: 1px solid var(--bg-card-border); text-align: left; }
.post-content th { background: var(--bg-card); color: var(--white); font-weight: 600; }

/* Member gate */
.post-gate { background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: 12px; padding: 3rem 2rem; text-align: center; margin-top: 2rem; }
.post-gate h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--white); margin-bottom: 1rem; }
.post-gate p { color: var(--text-secondary); max-width: 480px; margin: 0 auto 2rem; }
.post-gate-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Post footer */
.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--bg-card-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.post-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: 4px; padding: 0.3rem 0.75rem; text-decoration: none; transition: all 0.2s; }
.post-tag:hover { border-color: var(--gold); color: var(--gold); }
.post-back { font-size: 0.88rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.post-back:hover { color: var(--gold); }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 3rem; }
.pagination a { color: var(--gold); text-decoration: none; padding: 0.5rem 1rem; border: 1px solid var(--bg-card-border); border-radius: 6px; transition: all 0.3s; }
.pagination a:hover { border-color: var(--gold); background: var(--bg-card); }

/* ===== FOOTER ===== */
.footer { padding: 4rem 2rem 3rem; background: var(--bg-primary); border-top: 1px solid rgba(27,58,92,0.3); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 320px; }
.footer-col-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-secondary); text-decoration: none; margin-bottom: 0.6rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-divider { border: none; border-top: 1px solid rgba(27,58,92,0.4); margin-bottom: 1.5rem; }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.footer-disclaimer { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }
.footer-disclaimer strong { color: var(--text-secondary); font-weight: 600; }

/* ===== CHAT WIDGET ===== */
@keyframes vc-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes vc-slideUp { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes vc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,165,90,0.45); } 50% { box-shadow: 0 0 0 12px rgba(200,165,90,0); } }

#vc-panel { position: fixed; bottom: 92px; left: 24px; width: 360px; height: 520px; background: #0B1A2E; border-radius: 16px; border: 1px solid #1B3A5C; box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,165,90,0.08); display: flex; flex-direction: column; overflow: hidden; z-index: 10000; animation: vc-slideUp 0.22s ease; }
#vc-panel.vc-hidden { display: none; }
#vc-header { background: #060E1A; border-bottom: 1px solid #1B3A5C; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.vc-avatar { width: 34px; height: 34px; border-radius: 50%; background: #0B1A2E; border: 1.5px solid #C8A55A; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 16px; color: #C8A55A; flex-shrink: 0; }
.vc-header-info { margin-left: 10px; flex: 1; }
.vc-header-title { color: #E2E8F0; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.vc-tier-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px; padding: 2px 5px; border: 1px solid; }
.vc-header-sub { color: #64748B; font-size: 11px; margin-top: 2px; }
.vc-online { color: #4ade80; }
#vc-close-btn { background: none; border: none; color: #64748B; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; transition: color 0.2s; }
#vc-close-btn:hover { color: #E2E8F0; }
#vc-messages { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #1B3A5C #0B1A2E; }
#vc-disclaimer { flex-shrink: 0; text-align: center; font-size: 10px; color: #475569; padding: 6px 14px; border-top: 1px solid #1B3A5C; }
#vc-input-area { flex-shrink: 0; padding: 10px 12px; border-top: 1px solid #1B3A5C; display: flex; gap: 8px; align-items: flex-end; }
#vc-input { flex: 1; background: #112240; border: 1px solid #1B3A5C; border-radius: 10px; color: #E2E8F0; font-family: 'Inter', sans-serif; font-size: 13px; padding: 9px 12px; resize: none; outline: none; transition: border-color 0.2s; max-height: 100px; }
#vc-input:focus { border-color: #C8A55A; }
#vc-send-btn { width: 36px; height: 36px; border-radius: 50%; background: #C8A55A; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s, opacity 0.2s; }
#vc-send-btn:hover:not(:disabled) { background: #D4B76A; }
#vc-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#vc-gate { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; text-align: center; gap: 12px; }
.vc-gate-icon { font-size: 32px; margin-bottom: 4px; }
#vc-gate-text { color: #94A3B8; font-size: 13px; line-height: 1.6; }
.vc-gate-btn { display: inline-block; background: #C8A55A; color: #0B1A2E; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 6px; padding: 10px 20px; text-decoration: none; transition: background 0.2s; }
.vc-gate-btn:hover { background: #D4B76A; }
.vc-gate-link { font-size: 12px; color: #64748B; }
.vc-gate-link a { color: #C8A55A; text-decoration: none; }
.vc-msg-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-end; }
.vc-msg-row.vc-user { flex-direction: row-reverse; }
.vc-msg-avatar { width: 26px; height: 26px; border-radius: 50%; background: #0B1A2E; border: 1px solid #C8A55A; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 11px; font-weight: 700; color: #C8A55A; flex-shrink: 0; }
.vc-bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.55; }
.vc-bubble.vc-bot { background: #112240; color: #CBD5E1; border-radius: 14px 14px 14px 4px; }
.vc-bubble.vc-user { background: #C8A55A; color: #0B1A2E; border-radius: 14px 14px 4px 14px; font-weight: 500; }
.vc-bubble strong { font-weight: 700; color: #E2E8F0; }
.vc-bubble.vc-user strong { color: #0B1A2E; }
.vc-typing-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; margin: 0 2px; animation: vc-bounce 1.2s ease-in-out infinite; }
#vc-fab { position: fixed; bottom: 24px; left: 24px; width: 56px; height: 56px; border-radius: 50%; background: #C8A55A; border: none; cursor: pointer; z-index: 10000; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(200,165,90,0.4); animation: vc-pulse 2.5s ease-in-out infinite; transition: transform 0.2s, background 0.2s; }
#vc-fab:hover { transform: scale(1.08); background: #D4B76A; }
.vc-fab-v { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 22px; color: #0B1A2E; }
.vc-fab-x { font-size: 28px; color: #0B1A2E; display: none; line-height: 1; }
#vc-fab.vc-open .vc-fab-v { display: none; }
#vc-fab.vc-open .vc-fab-x { display: block; }

/* ===== HERO SPLIT LAYOUT ===== */
.hero { text-align: left; } /* override centered default */

.hero-grid {
  display: grid;
  grid-template-columns: 55% 42%;
  gap: 5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-content { text-align: left; }
.hero-content .hero-badge { display: inline-block; }
.hero-content .hero-subtitle { text-align: left; margin: 0 0 2.5rem; max-width: none; }
.hero-content .hero-title { text-align: left; }
.hero-content .hero-buttons { justify-content: flex-start; }

/* Image column */
.hero-image-col {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #0F2035 0%, #1B3A5C 55%, #0B1A2E 100%);
  border: 1px solid rgba(200, 165, 90, 0.18);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(200, 165, 90, 0.06);
}

/* Subtle shimmer on the placeholder before image loads */
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 35% 35%, rgba(200, 165, 90, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 75%, rgba(46, 117, 182, 0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* Decorative corner accent */
.hero-image-frame::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
}

/* Floating stat badges */
.hero-stat-badge {
  position: absolute;
  background: rgba(6, 14, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 165, 90, 0.25);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-stat-top {
  top: 1.5rem;
  right: -1.75rem;
}

.hero-stat-bottom {
  bottom: 2.5rem;
  left: -1.75rem;
}

.hero-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  white-space: nowrap;
}

/* Brand crest stamp at top-left of hero — now sized to act as the lead visual identifier
   (replacing the prior "PHYSICIAN-LED OPTIMIZATION" badge that lived here). */
.hero-brand-mark {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  margin: 0 0 28px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(200, 165, 90, 0.25);
}

@media (max-width: 768px) {
  .hero-brand-mark { width: 110px; height: 110px; margin-bottom: 20px; }
}

/* Legacy crest-as-hero classes — retained in case we want to swap the right column back to crest treatment in the future */
.hero-crest-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(200, 165, 90, 0.18);
}

.hero-crest {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero-crest-frame { max-width: 380px; }
}

/* ===== VIDEO SECTION ===== */
.video-section {
  background: var(--bg-secondary);
  padding: 6rem 2rem;
}

.video-wrap {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #060E1A;
  border: 1px solid var(--bg-card-border);
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

/* Once you have a video, just drop the iframe directly inside .video-wrap */
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200, 165, 90, 0.05) 0%, transparent 65%),
    linear-gradient(160deg, #060E1A 0%, #0F2035 100%);
}

.video-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  box-shadow: 0 0 50px rgba(200, 165, 90, 0.25);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  padding-left: 4px; /* optical centering of play triangle */
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: var(--gold-hover);
  box-shadow: 0 0 70px rgba(200, 165, 90, 0.4);
}

.video-coming-soon {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.video-coming-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 340px;
  text-align: center;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

/* Desktop: hero buttons stay left-aligned inside content col */
@media (min-width: 900px) { .hero-content .hero-buttons { justify-content: flex-start; } }

/* Tablet/mobile: collapse hero to single column, re-center */
@media (max-width: 900px) {
  .hero { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-content { text-align: center; }
  .hero-content .hero-subtitle { text-align: center; margin: 0 auto 2.5rem; max-width: 540px; }
  .hero-content .hero-title { text-align: center; }
  .hero-content .hero-buttons { justify-content: center; }
  .hero-image-col { max-width: 380px; margin: 0 auto; }
  .hero-image-frame { aspect-ratio: 4 / 3; }
  .hero-stat-top { right: 0.5rem; top: 0.75rem; }
  .hero-stat-bottom { left: 0.5rem; bottom: 0.75rem; }
}

@media (max-width: 768px) {
  .difference-columns { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-secondary-links { gap: 1.25rem; }
  .nav-secondary-links a { font-size: 0.68rem; }
}

@media (max-width: 480px) {
  section { padding: 4rem 1.25rem; }
  .nav { padding: 0 1.25rem; }
  .nav-secondary-inner { padding: 0 1.25rem; }
  .coverage-card { flex-direction: column; gap: 0.5rem; }
  .steps-grid { gap: 2.5rem; }
  #vc-panel { width: calc(100vw - 48px); left: 12px; bottom: 92px; }
  #vc-fab { bottom: 24px; left: 12px; }
  .hero-stat-badge { display: none; } /* too tight on very small screens */
}

/* ===== SUPPLEMENT STACK — SHARED BUTTONS ===== */
.dash-btn-gold {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 6px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.dash-btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); }

.dash-btn-outline {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid rgba(226,232,240,0.25);
  border-radius: 6px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.dash-btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ===== SUPPLEMENT STACK — MEMBERS PAGE ===== */
.dash-stack-section { background: var(--bg-primary); padding: 2rem 0 4rem; }

/* Nav card — replaces inline stack on the dashboard */
.dash-stack-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}
.dash-stack-nav-left { display: flex; align-items: center; gap: 1.25rem; flex: 1; min-width: 0; }
.dash-stack-nav-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,165,90,0.1);
  border-radius: 12px;
}
.dash-stack-nav-text { min-width: 0; }
.dash-stack-nav-text .dash-section-title { margin-bottom: 0.25rem; }
.dash-stack-nav-text .dash-section-sub { margin: 0; }

@media (max-width: 640px) {
  .dash-stack-section { padding: 1.5rem 0 2.5rem; }
  .dash-stack-nav-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }
  .dash-stack-nav-left {
    width: 100%;
    align-items: center;
  }
  .dash-stack-nav-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }
  .dash-stack-nav-card .dash-btn-gold {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: block;
  }
}

/* Legacy header — kept for backward compat */
.dash-stack-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.dash-stack-header-actions { display: flex; gap: 0.75rem; align-items: center; flex-shrink: 0; flex-wrap: wrap; }

/* Usage bar */
.stack-usage-bar {
  height: 6px;
  background: var(--bg-card-border);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.stack-usage-fill { height: 100%; border-radius: 3px; background: var(--gold); transition: width 0.4s ease; }
.stack-usage-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Stack list grid */
.stack-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Stack item card */
.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s;
}
.stack-item:hover { border-color: rgba(200,165,90,0.3); }
.stack-item-main { flex: 1; min-width: 0; }
.stack-item-substance { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.stack-item-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.stack-meta-pill {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(27,58,92,0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}
.stack-meta-reasons { font-size: 0.78rem; color: var(--text-muted); align-self: center; font-style: italic; }
.stack-item-notes { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.5; }
.stack-item-actions { display: flex; flex-direction: column; gap: 0.5rem; flex-shrink: 0; }
.stack-btn-edit, .stack-btn-delete {
  width: 30px; height: 30px;
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  color: var(--text-muted);
}
.stack-btn-edit:hover  { border-color: var(--gold); color: var(--gold); }
.stack-btn-delete:hover { border-color: #EF4444; color: #EF4444; }

/* Empty state */
.stack-empty { text-align: center; padding: 3rem 1rem; }
.stack-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
.stack-empty-text { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.stack-empty-sub { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ===== SUPPLEMENT STACK — MODAL ===== */
.stack-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
}
.stack-modal {
  position: fixed;
  inset: 0;
  z-index: 9001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.stack-modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card-border) transparent;
}
.stack-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--bg-card-border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}
.stack-modal-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin: 0; }
.stack-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}
.stack-modal-close:hover { color: var(--white); }

/* Form */
.stack-form { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.stack-form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #FCA5A5;
  margin: 0 1.75rem;
}
.stack-field { display: flex; flex-direction: column; gap: 0.4rem; }
.stack-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.05em; }
.stack-field .req { color: var(--gold); }
.stack-field input,
.stack-field select,
.stack-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
/* When Chrome autofills the supplement field it overrides our colors
   with its own black-text-on-yellow styling. Keep typed text legible
   against the dark form background. */
.stack-field input:-webkit-autofill,
.stack-field input:-webkit-autofill:hover,
.stack-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-primary) inset;
  caret-color: var(--text-primary);
}

/* ── Custom supplement combobox panel ─────────────────────────────────────
   Replaces the native <datalist> popover (which Chrome renders
   illegibly on a dark page). Rendered by stack.js. */
.stack-combo { position: relative; }
.stack-combo-wrap { position: relative; }
.stack-combo-panel {
  position: fixed;
  z-index: 10000;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  background: #122842;
  color: var(--text-primary);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  font-size: 0.92rem;
}
.stack-combo-panel li {
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  color: var(--text-primary);
  line-height: 1.35;
  user-select: none;
}
.stack-combo-panel li:hover,
.stack-combo-panel li.is-active {
  background: rgba(183, 137, 46, 0.18);
  color: #FFFFFF;
}
.stack-combo-panel li.stack-combo-empty {
  color: var(--text-muted);
  cursor: default;
  font-style: italic;
}
.stack-combo-panel li.stack-combo-empty:hover {
  background: transparent;
  color: var(--text-muted);
}
/* Scrollbar styling for the panel (Chromium/WebKit) */
.stack-combo-panel::-webkit-scrollbar { width: 8px; }
.stack-combo-panel::-webkit-scrollbar-track { background: transparent; }
.stack-combo-panel::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 4px;
}
.stack-field input::placeholder,
.stack-field textarea::placeholder { color: var(--text-muted); }
.stack-field input:focus,
.stack-field select:focus,
.stack-field textarea:focus { border-color: var(--gold); }
.stack-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.stack-field textarea { resize: vertical; min-height: 64px; }
.stack-field-hint { font-size: 0.75rem; color: var(--text-muted); margin: 0; }
.stack-field-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 0.75rem; align-items: end; }
.stack-field--dose { min-width: 80px; }
.stack-field--unit { min-width: 100px; }
.stack-form-actions { display: flex; justify-content: flex-end; gap: 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--bg-card-border); }

/* Reason tag chips */
.stack-reason-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.reason-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--bg-card-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}
.reason-tag:hover { border-color: var(--gold); color: var(--gold); }
.reason-tag--active { background: var(--gold); border-color: var(--gold); color: #0a0a0a; font-weight: 600; }
.stack-reason-other { margin-top: 0.25rem; }
.stack-field input[type="number"] { -moz-appearance: textfield; }
.stack-field input[type="number"]::-webkit-inner-spin-button,
.stack-field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ===== MY STACK DISPLAY PAGE ===== */
.sdisp-hero {
  padding: calc(var(--nav-secondary-height) + var(--nav-primary-height) + 3rem) 2rem 3rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(27,58,92,0.4);
}
.sdisp-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.sdisp-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 700; color: var(--white); margin: 0.5rem 0; }
.sdisp-subtitle { font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.sdisp-updated { font-size: 0.78rem; color: var(--text-muted); opacity: 0.7; }
.sdisp-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; flex-shrink: 0; }

.sdisp-section { padding: 3rem 2rem 5rem; }
.sdisp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

/* Display cards */
.sdisp-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  break-inside: avoid;
}
.sdisp-card-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  background: rgba(200,165,90,0.06);
  border-bottom: 1px solid var(--bg-card-border);
}
.sdisp-card-brand-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.85;
  flex-shrink: 0;
}
.sdisp-card-brand-text {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  opacity: 0.75;
}
.sdisp-card-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.75rem;
  flex: 1;
}
.sdisp-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  min-width: 36px;
  padding-top: 2px;
}
.sdisp-body { flex: 1; min-width: 0; }
.sdisp-name { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.sdisp-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.sdisp-pill {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(27,58,92,0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
}
.sdisp-pill strong { color: var(--gold); font-weight: 600; margin-right: 4px; }
.sdisp-reasons { font-size: 0.83rem; color: var(--text-muted); margin: 0.4rem 0 0; line-height: 1.5; }
.sdisp-reasons strong { color: var(--text-secondary); font-weight: 600; }
.sdisp-notes { font-size: 0.83rem; color: var(--text-muted); margin: 0.5rem 0 0; font-style: italic; line-height: 1.5; }

/* Edit/delete actions on stack page cards */
.sdisp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Usage bar on stack page */
.sdisp-usage-wrap { padding: 0.5rem 0 0; }
.sdisp-usage-wrap .stack-usage-bar { margin-top: 0.5rem; }
.sdisp-usage-wrap .stack-usage-label { margin-top: 0.25rem; }

.sdisp-disclaimer-section { padding: 0 2rem 4rem; }
.sdisp-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 760px;
  border-top: 1px solid rgba(27,58,92,0.4);
  padding-top: 1.5rem;
}
.sdisp-bottom-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

/* Print styles */
@media print {
  .nav, .nav-secondary, .sdisp-hero-actions, .sdisp-disclaimer-section,
  .sdisp-actions, #vc-fab, #vc-panel, .feedback-fab { display: none !important; }
  body { background: #fff; color: #000; }
  .sdisp-hero { background: #fff; padding: 1.5rem 0; }
  .sdisp-title, .sdisp-name { color: #000; }
  .sdisp-card { border: 1px solid #ddd; break-inside: avoid; }
  .sdisp-card-brand { background: none; border-bottom-color: #ddd; }
  .sdisp-card-brand-logo { opacity: 0.5; }
  .sdisp-num { color: #999; }
  .sdisp-pill { border: 1px solid #ddd; background: #f5f5f5; color: #333; }
  .sdisp-pill strong { color: #555; }
  .sdisp-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== KOENIG EDITOR CARD WIDTHS (required by Ghost) ===== */
.kg-width-wide {
  position: relative;
  width: 85vw;
  max-width: 1100px;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.kg-image { max-width: 100%; }
.kg-image-card { margin: 1.5rem 0; }
.kg-image-card img { width: 100%; border-radius: 8px; }
.kg-gallery-card { margin: 1.5rem 0; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 0.5rem; }
.kg-gallery-row { display: flex; gap: 0.5rem; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.kg-bookmark-card { margin: 1.5rem 0; }
.kg-bookmark-container { display: flex; border: 1px solid var(--bg-card-border); border-radius: 8px; overflow: hidden; text-decoration: none; background: var(--bg-card); transition: border-color 0.2s; }
.kg-bookmark-container:hover { border-color: var(--gold); }
.kg-bookmark-content { padding: 1.25rem; flex: 1; }
.kg-bookmark-title { color: var(--white); font-weight: 600; margin-bottom: 0.4rem; }
.kg-bookmark-description { font-size: 0.88rem; color: var(--text-secondary); }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-muted); }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-video-card { margin: 1.5rem 0; }
.kg-video-card video { width: 100%; border-radius: 8px; }
.kg-callout-card { display: flex; gap: 1rem; padding: 1.25rem; background: var(--bg-card); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.kg-callout-emoji { font-size: 1.5rem; flex-shrink: 0; }
.kg-callout-text { color: var(--text-primary); line-height: 1.6; }
.kg-toggle-card { border: 1px solid var(--bg-card-border); border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.kg-toggle-heading { display: flex; justify-content: space-between; cursor: pointer; color: var(--white); font-weight: 600; }
.kg-toggle-content { margin-top: 0.75rem; color: var(--text-secondary); }
.kg-divider { border: none; border-top: 1px solid var(--bg-card-border); margin: 2rem 0; }

/* ===== HERO DISCLAIMER ===== */
.hero-disclaimer {
  max-width: 680px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  text-align: center;
  font-style: italic;
}
}

/* ===== MEMBER DASHBOARD ===== */

.dash { padding-bottom: 80px; }

/* Hero */
.dash-hero { padding: 80px 0 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.dash-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.dash-eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.dash-heading { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: #fff; line-height: 1.15; margin-bottom: 10px; }
.dash-sub { color: rgba(255,255,255,0.55); font-size: 1rem; }
.dash-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dash-tier { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; border: 1px solid; }
.dash-tier--optimized { color: #a78bfa; border-color: #a78bfa; }
.dash-tier--vanguard  { color: var(--gold); border-color: var(--gold); }
.dash-tier--default-product { color: #a78bfa; border-color: #a78bfa; }
.dash-tier--free      { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.2); }
.dash-manage { font-size: 0.82rem; color: var(--gold); text-decoration: none; opacity: 0.8; }
.dash-manage:hover { opacity: 1; }

/* Medical disclaimer banner */
.dash-disclaimer-section { padding: 32px 0 0; }
.dash-disclaimer {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 22px;
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.22);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}
.dash-disclaimer-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 2px;
  white-space: nowrap;
}
.dash-disclaimer p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 640px) {
  .dash-disclaimer { flex-direction: column; gap: 10px; }
}

/* Tier upgrade prompt */
.dash-upgrade-prompt {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dash-upgrade-prompt p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* AI Chat Card */
.dash-ai-section { padding: 48px 0; }
.dash-ai-card { background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(167,139,250,0.06) 100%); border: 1px solid rgba(201,168,76,0.25); border-radius: 16px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.dash-ai-card:hover { border-color: rgba(201,168,76,0.5); background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, rgba(167,139,250,0.09) 100%); }
.dash-ai-left { display: flex; align-items: center; gap: 24px; }
.dash-ai-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-ai-name { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 6px; }
.dash-ai-online { color: #4ade80; }
.dash-ai-headline { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.dash-ai-desc { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 480px; line-height: 1.6; }
.dash-ai-btn { background: var(--gold); color: var(--navy); font-weight: 700; font-size: 0.9rem; padding: 14px 28px; border-radius: 8px; border: none; cursor: pointer; white-space: nowrap; transition: opacity 0.2s; text-decoration: none; }
.dash-ai-btn:hover { opacity: 0.88; }

/* Section headers */
.dash-section-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: #fff; margin-bottom: 8px; }
.dash-section-sub { color: rgba(255,255,255,0.45); font-size: 0.9rem; margin-bottom: 32px; }

/* Protocol Categories */
.dash-categories-section { padding: 48px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.dash-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dash-cat { position: relative; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 28px 24px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.dash-cat:hover { border-color: rgba(201,168,76,0.3); background: rgba(201,168,76,0.04); }
.dash-cat-logo { position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; object-fit: contain; opacity: 0.55; pointer-events: none; }
.dash-cat-icon { font-size: 1.8rem; margin-bottom: 14px; }
.dash-cat-title { font-weight: 600; color: #fff; font-size: 1rem; margin-bottom: 6px; }
.dash-cat-desc { color: rgba(255,255,255,0.45); font-size: 0.82rem; line-height: 1.5; }

/* Latest Research */
.dash-posts-section { padding: 48px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.dash-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dash-post { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.dash-post:hover { border-color: rgba(201,168,76,0.25); transform: translateY(-2px); }
.dash-post-img { height: 160px; background-size: cover; background-position: center; position: relative; }
.dash-post-img-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(10,28,46,0.78);
  padding: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  transition: opacity 0.2s;
}
.dash-post:hover .dash-post-img-badge { opacity: 0.9; }
.dash-post-img--placeholder { background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(167,139,250,0.06)); }
.dash-post-img--logo {
  background: linear-gradient(160deg, #0e2235 0%, #122842 60%, #0a1c2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-post-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 2px 8px rgba(200,165,90,0.25));
  transition: opacity 0.2s;
}
.dash-post:hover .dash-post-logo { opacity: 1; }
.dash-post-body { padding: 20px; }
.dash-post-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 8px; }
.dash-post-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.dash-post-excerpt { color: rgba(255,255,255,0.45); font-size: 0.82rem; line-height: 1.5; }
.dash-posts-empty { grid-column: 1/-1; padding: 60px; text-align: center; color: rgba(255,255,255,0.35); font-size: 0.9rem; border: 1px dashed rgba(255,255,255,0.1); border-radius: 12px; }

/* Account bar */
.dash-account-bar { margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.dash-account-bar .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dash-account-email { color: rgba(255,255,255,0.35); font-size: 0.82rem; margin-right: auto; }
.dash-account-bar a { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.dash-account-bar a:hover { color: #fff; }
.dash-signout { color: rgba(255,100,100,0.6) !important; }
.dash-signout:hover { color: rgba(255,100,100,0.9) !important; }

/* Gate (not logged in) */
.dash-gate { padding: 120px 0; }
.dash-gate-inner { text-align: center; max-width: 480px; margin: 0 auto; }
.dash-gate-icon { font-size: 3rem; margin-bottom: 24px; }
.dash-gate-inner h1 { font-family: 'Playfair Display', serif; font-size: 2rem; color: #fff; margin-bottom: 12px; }
.dash-gate-inner p { color: rgba(255,255,255,0.5); margin-bottom: 28px; }
.btn-gold-lg { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; padding: 16px 36px; border-radius: 8px; text-decoration: none; font-size: 1rem; transition: opacity 0.2s; }
.btn-gold-lg:hover { opacity: 0.88; }
.dash-gate-sub { font-size: 0.85rem; color: rgba(255,255,255,0.35); margin-top: 20px; }
.dash-gate-sub a { color: var(--gold); text-decoration: none; }

@media (max-width: 640px) {
  .dash-hero-inner { flex-direction: column; align-items: flex-start; }
  .dash-meta { align-items: flex-start; }
  .dash-ai-card { flex-direction: column; align-items: flex-start; }
  .dash-ai-btn { width: 100%; text-align: center; }
}

/* ===== WELCOME PAGE (.wlc-*) ===== */

.wlc-hero { padding: 5rem 0 4rem; }
.wlc-hero-inner { max-width: 760px; }
.wlc-eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.wlc-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; line-height: 1.15; margin-bottom: 1rem; }
.wlc-sub { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 2rem; max-width: 600px; }

/* Tier badges */
.wlc-tier-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid;
  margin-bottom: 1rem;
}
.wlc-tier-badge--free     { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.2); }
.wlc-tier-badge--optimized{ color: #a78bfa; border-color: #a78bfa; }
.wlc-tier-badge--vanguard { color: var(--gold); border-color: var(--gold); }

/* CTA row */
.wlc-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-gold-lg {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-gold-lg:hover { opacity: 0.85; }
.btn-outline-lg {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-lg:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* Research library section */
.wlc-library { padding: 3rem 0 4rem; }
.wlc-library h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; color: #fff; margin-bottom: 2rem; }

/* Card grid */
.wlc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.wlc-card {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.wlc-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
.wlc-card--gold { border-color: rgba(212,175,55,0.25); }
.wlc-card--gold:hover { border-color: rgba(212,175,55,0.5); background: rgba(212,175,55,0.06); }
.wlc-card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.wlc-card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.4rem; }
.wlc-card p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.5; margin: 0; }

/* AI intro section */
.wlc-ai-intro { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.07); }
.wlc-ai-inner { display: flex; align-items: flex-start; gap: 2rem; }
.wlc-ai-avatar {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.wlc-ai-inner h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; color: #fff; margin-bottom: 0.6rem; }
.wlc-ai-inner p { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.25rem; }

/* Upgrade banner */
.wlc-upgrade { padding: 2.5rem 0; }
.wlc-upgrade-slim-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
}
.wlc-upgrade-slim-inner h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.35rem; }
.wlc-upgrade-slim-inner p { font-size: 0.87rem; color: rgba(255,255,255,0.6); margin: 0; }

@media (max-width: 640px) {
  .wlc-hero { padding: 3rem 0 2.5rem; }
  .wlc-grid { grid-template-columns: 1fr; }
  .wlc-ai-inner { flex-direction: column; gap: 1.25rem; }
  .wlc-upgrade-slim-inner { flex-direction: column; align-items: flex-start; }
}



/* ── Feedback Button ─────────────────────────────────────────── */
#vg-feedback-btn {
  position: fixed;
  bottom: 24px;
  right: 90px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13,27,42,0.85);
  border: 1px solid rgba(212,175,55,0.4);
  color: rgba(212,175,55,0.85);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  user-select: none;
  line-height: 1;
}
#vg-feedback-btn:hover {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.8);
  transform: scale(1.08);
}
#vg-feedback-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}
#vg-feedback-overlay.vg-open { display: flex; }
#vg-feedback-modal {
  background: #0d1b2a;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 12px;
  width: 92%;
  max-width: 480px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
#vg-feedback-modal h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.25rem;
}
#vg-feedback-modal p.vg-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 1.25rem;
}
#vg-feedback-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
#vg-feedback-close:hover { color: #fff; }
.vg-type-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.vg-type-btn {
  flex: 1;
  min-width: 110px;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.vg-type-btn:hover {
  border-color: rgba(212,175,55,0.5);
  color: rgba(212,175,55,0.9);
}
.vg-type-btn.vg-active {
  border-color: rgba(212,175,55,0.8);
  background: rgba(212,175,55,0.1);
  color: #d4af37;
}
#vg-feedback-text {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.75rem;
  resize: vertical;
  min-height: 110px;
  box-sizing: border-box;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
#vg-feedback-text:focus {
  outline: none;
  border-color: rgba(212,175,55,0.5);
}
#vg-feedback-text::placeholder { color: rgba(255,255,255,0.25); }
#vg-feedback-submit {
  width: 100%;
  background: #d4af37;
  color: #0d1b2a;
  border: none;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
#vg-feedback-submit:hover { opacity: 0.85; }
