/* ============================================================
   LIVERMORE ACADEMY — WEBSITE BÁN KHÓA HỌC
   Tone: gold + đen cổ điển (tài chính / 1920s Wall Street)
   ============================================================ */

:root {
  --bg: #0F0E0C;
  --surface: #1A1814;
  --surface-2: #221F1A;
  --border: #2D2820;
  --border-bright: #3D3525;
  --text: #F5E6C8;
  --text-muted: #B8A98A;
  --text-dim: #6E6451;
  --gold: #D4AF37;
  --gold-bright: #F4D03F;
  --gold-dim: #8B7128;
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #E5533C;
  --shadow-hover: 0 8px 30px rgba(212, 175, 55, 0.15);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
a { color: var(--gold); text-decoration: none; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 14, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--gold-bright); letter-spacing: 0.3px; }
.nav-logo span { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 24px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; border-top: 1px solid var(--border); }
  .nav-links .btn { margin: 12px 24px; text-align: center; }
  .nav-toggle { display: block; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; cursor: pointer; font-family: inherit; font-weight: 600;
  font-size: 15px; padding: 13px 28px; border-radius: 8px; border: 1px solid transparent;
  transition: all .2s; text-align: center;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1A1200; box-shadow: 0 4px 18px rgba(212,175,55,.25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(212,175,55,.4); color: #1A1200; }
.btn-ghost { background: transparent; border-color: var(--border-bright); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ===== HERO ===== */
.hero {
  padding: 90px 0 80px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(212,175,55,.12) 0%, transparent 55%),
    linear-gradient(180deg, #17150F 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 11px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(34px, 6vw, 62px); font-weight: 700; color: var(--gold-bright); line-height: 1.08; margin-bottom: 20px; text-shadow: 0 2px 24px rgba(212,175,55,.2); }
.hero-lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--text-muted); max-width: 640px; margin: 0 auto 16px; }
.hero-quote { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; color: var(--gold); font-size: 18px; max-width: 560px; margin: 0 auto 34px; opacity: .9; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { color: var(--text-dim); font-size: 13px; }
.hero-trust strong { color: var(--gold); }

/* ===== SECTION ===== */
section.block { padding: 84px 0; border-bottom: 1px solid var(--border); }
.section-eyebrow { text-align: center; color: var(--gold); text-transform: uppercase; letter-spacing: 2.5px; font-size: 11px; font-weight: 600; margin-bottom: 12px; }
.section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 4vw, 42px); font-weight: 600; color: var(--gold); text-align: center; margin-bottom: 14px; line-height: 1.15; }
.section-sub { text-align: center; color: var(--text-muted); margin: 0 auto 52px; font-size: 16px; max-width: 640px; }

/* ===== PAIN / SOLUTION GRID ===== */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: all .25s;
}
.card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-icon { font-size: 30px; margin-bottom: 14px; display: block; }
.card h3 { font-size: 19px; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--text-muted); font-size: 15px; }
.card.pain { border-left: 3px solid var(--danger); }
.card.solve { border-left: 3px solid var(--success); }

/* ===== FEATURE LIST (nội dung khóa) ===== */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.feature .fi { color: var(--gold); font-size: 22px; line-height: 1; }
.feature h4 { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 14px; color: var(--text-muted); }

/* ===== MENTORS ===== */
.mentor-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mentor-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 20px; text-align: center; min-width: 150px; }
.mentor-chip .mn { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; color: var(--text); font-weight: 600; }
.mentor-chip .mt { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 34px 28px; position: relative; transition: all .25s; display: flex; flex-direction: column;
}
.plan:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.plan.highlight { border-color: var(--gold); background: linear-gradient(180deg, #221C10 0%, var(--surface) 60%); box-shadow: 0 10px 40px rgba(212,175,55,.18); transform: scale(1.03); }
.plan.highlight:hover { transform: scale(1.03) translateY(-3px); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1A1200; font-size: 11px; font-weight: 700; padding: 5px 16px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.plan-name { font-size: 15px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 8px; }
.plan-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 40px; font-weight: 700; color: var(--gold-bright); line-height: 1; }
.plan-price small { font-size: 14px; color: var(--text-dim); font-weight: 400; display: block; margin-top: 6px; font-family: 'Inter', sans-serif; }
.plan-tag { color: var(--text-muted); font-size: 14px; margin: 12px 0 20px; min-height: 20px; }
.plan ul { list-style: none; margin-bottom: 26px; flex: 1; }
.plan ul li { padding: 9px 0 9px 28px; position: relative; font-size: 14.5px; color: var(--text); border-bottom: 1px solid var(--border); }
.plan ul li:before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plan ul li:last-child { border-bottom: none; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: inherit; font-size: 17px; font-weight: 500; padding: 22px 40px 22px 0; cursor: pointer; position: relative; }
.faq-q:after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 24px; transition: transform .2s; }
.faq-item.open .faq-q:after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-muted); font-size: 15px; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 0 22px; }

/* ===== CTA BAND ===== */
.cta-band { text-align: center; background: radial-gradient(circle at 50% 0%, rgba(212,175,55,.1), transparent 60%), var(--surface); }
.cta-band .section-title { margin-bottom: 8px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .fb-logo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; color: var(--gold-bright); font-weight: 700; margin-bottom: 12px; }
.footer-brand p { color: var(--text-dim); font-size: 13px; max-width: 320px; }
.footer-col h5 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-disclaimer { border-top: 1px solid var(--border); padding-top: 24px; color: var(--text-dim); font-size: 12px; line-height: 1.7; text-align: center; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ===== AUTH (login/register) ===== */
.auth-wrap { max-width: 440px; margin: 60px auto; padding: 0 24px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px 34px; }
.auth-card h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; color: var(--gold-bright); text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field input { width: 100%; background: var(--bg); border: 1px solid var(--border-bright); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 15px; padding: 12px 14px; transition: border .2s; }
.field input:focus { outline: none; border-color: var(--gold); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-msg { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; display: none; }
.auth-msg.err { display: block; background: rgba(229,83,60,.12); border: 1px solid var(--danger); color: #F0A99B; }
.auth-msg.ok { display: block; background: rgba(76,175,80,.12); border: 1px solid var(--success); color: #9BD49E; }
.demo-note { background: rgba(212,175,55,.08); border: 1px dashed var(--gold-dim); border-radius: 8px; padding: 12px 14px; font-size: 12.5px; color: var(--text-muted); margin-top: 22px; text-align: center; }

/* ===== DASHBOARD / GATING ===== */
.dash-head { padding: 40px 0 30px; border-bottom: 1px solid var(--border); }
.dash-user { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.dash-user .hi { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; color: var(--gold-bright); }
.badge { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 600; letter-spacing: .3px; }
.badge-free { background: rgba(110,100,81,.2); color: var(--text-muted); border: 1px solid var(--border-bright); }
.badge-paid { background: rgba(76,175,80,.15); color: #9BD49E; border: 1px solid var(--success); }
.locked-banner { background: linear-gradient(135deg, #221C10, var(--surface)); border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 22px 26px; margin: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.locked-banner p { color: var(--text-muted); font-size: 15px; }
.locked-banner strong { color: var(--gold); }
.day-card.locked { opacity: .82; cursor: pointer; }
.day-card.locked:hover { border-color: var(--gold-dim); }
.lock-ic { font-size: 15px; }
.free-tag { font-size: 10px; background: var(--gold); color: #1A1200; padding: 2px 7px; border-radius: 4px; font-weight: 700; letter-spacing: .5px; }

/* reuse day grid from webapp */
.month-tabs { display: flex; gap: 8px; justify-content: center; margin: 30px 0 40px; flex-wrap: wrap; }
.tab { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 11px 20px; border-radius: 6px; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); border-color: var(--border-bright); }
.tab.active { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 600; }
.week { margin-bottom: 40px; }
.week-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.week-num { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; color: var(--gold); font-weight: 600; }
.week-title { font-size: 15px; color: var(--text); }
.week-book { font-size: 13px; color: var(--text-muted); font-style: italic; margin-left: auto; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
.day-card { background: var(--surface); border: 1px solid var(--border-bright); border-radius: 10px; padding: 18px 20px; cursor: pointer; transition: all .2s; text-decoration: none; color: inherit; display: block; min-height: 112px; }
.day-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.day-num { font-size: 11px; color: var(--gold-bright); font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.day-title { font-size: 15.5px; font-weight: 600; color: #FFF6E0; line-height: 1.4; }

/* ===== PAYMENT ===== */
.pay-wrap { max-width: 820px; margin: 50px auto; padding: 0 24px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px){ .pay-grid { grid-template-columns: 1fr; } }
.pay-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.pay-box h3 { color: var(--gold); font-size: 18px; margin-bottom: 16px; }
.pay-select label { display: block; border: 1px solid var(--border-bright); border-radius: 10px; padding: 16px; margin-bottom: 12px; cursor: pointer; transition: all .2s; }
.pay-select label:hover { border-color: var(--gold-dim); }
.pay-select input { margin-right: 10px; accent-color: var(--gold); }
.pay-select label.sel { border-color: var(--gold); background: rgba(212,175,55,.06); }
.pay-select .pp { float: right; color: var(--gold-bright); font-weight: 700; }
.qr-box { text-align: center; }
.qr-box img { width: 220px; height: 220px; background: #fff; border-radius: 10px; padding: 8px; }
.qr-info { text-align: left; font-size: 14px; margin-top: 16px; }
.qr-info div { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.qr-info span { color: var(--text-muted); }
.qr-info b { color: var(--text); }

/* ===== LEGAL PAGES ===== */
.legal { max-width: 800px; margin: 50px auto; padding: 0 24px 60px; }
.legal h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 36px; color: var(--gold-bright); margin-bottom: 8px; }
.legal .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 32px; }
.legal h2 { color: var(--gold); font-size: 20px; margin: 30px 0 12px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal .callout { background: rgba(229,83,60,.08); border-left: 3px solid var(--danger); border-radius: 6px; padding: 16px 18px; color: var(--text); margin: 20px 0; }

.hide { display: none !important; }
