/* ════════════════════════════════════════════
   AlphaLens — Global Stylesheet
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ──────────────────────────────── */
:root {
  --navy:       #1E3A5F;
  --navy-light: #2A4F80;
  --gold:       #F59E0B;
  --gold-light: #FCD34D;
  --blue:       #3B82F6;
  --blue-light: #60A5FA;
  --bg:         #F8FAFC;
  --bg-card:    #FFFFFF;
  --border:     #E2E8F0;
  --text:       #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --success:    #10B981;
  --danger:     #EF4444;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --radius:     10px;
  --radius-lg:  16px;
  --transition: 0.18s ease;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.navbar__logo img { height: 36px; filter: brightness(10); }
.navbar__logo .logo-text { color: white; font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.navbar__logo .logo-accent { color: var(--gold); }
.navbar__search {
  flex: 1; max-width: 420px; margin: 0 32px;
  position: relative;
}
.navbar__search input {
  width: 100%; padding: 9px 16px 9px 40px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; color: white; font-size: .9rem;
  transition: var(--transition);
}
.navbar__search input::placeholder { color: rgba(255,255,255,.5); }
.navbar__search input:focus { outline: none; background: rgba(255,255,255,.18); border-color: var(--gold); }
.navbar__search .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.5); font-size: .9rem; pointer-events: none;
}
.navbar__actions { display: flex; align-items: center; gap: 12px; }
.navbar__actions a { color: rgba(255,255,255,.85); font-size: .875rem; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: var(--transition); }
.navbar__actions a:hover { color: white; background: rgba(255,255,255,.1); }
.btn-subscribe-nav {
  background: var(--gold) !important; color: var(--navy) !important; font-weight: 600 !important;
  padding: 8px 18px !important; border-radius: 8px !important;
}
.btn-subscribe-nav:hover { background: var(--gold-light) !important; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; border: none;
  transition: var(--transition); cursor: pointer;
}
.btn-primary   { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold      { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,158,11,.35); }
.btn-outline   { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-danger    { background: var(--danger); color: white; }
.btn-sm        { padding: 7px 14px; font-size: .8rem; }
.btn-lg        { padding: 14px 32px; font-size: 1rem; }
.btn-full      { width: 100%; justify-content: center; }

/* ── Market Filter Tabs ──────────────────────── */
.market-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.market-tab {
  padding: 7px 18px; border-radius: 100px;
  font-size: .85rem; font-weight: 600;
  border: 2px solid var(--border);
  background: white; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.market-tab:hover   { border-color: var(--navy); color: var(--navy); }
.market-tab.active  { background: var(--navy); border-color: var(--navy); color: white; }
.market-tab[data-market="US"].active  { background: #1d4ed8; border-color: #1d4ed8; }
.market-tab[data-market="HK"].active  { background: #dc2626; border-color: #dc2626; }
.market-tab[data-market="JP"].active  { background: #7c3aed; border-color: #7c3aed; }
.market-tab[data-market="SG"].active  { background: #059669; border-color: #059669; }
/* Daily Picks tab — gold accent, separated from market flags */
.market-tab--picks {
  border-color: #F59E0B;
  color: #92400E;
  background: #FFFBEB;
  margin-left: 8px;
  border-left: 3px solid #F59E0B;
}
.market-tab--picks:hover { border-color: #D97706; color: #78350F; background: #FEF3C7; }
.market-tab--picks.active { background: #F59E0B; border-color: #F59E0B; color: #0A1628; }

/* ── Article Cards ───────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}
.article-card__header {
  padding: 20px 20px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.article-card__badge {
  padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.badge-US { background: #EFF6FF; color: #1d4ed8; }
.badge-HK { background: #FEF2F2; color: #dc2626; }
.badge-JP { background: #F5F3FF; color: #7c3aed; }
.badge-SG { background: #ECFDF5; color: #059669; }
.article-card__ticker {
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  background: var(--bg); padding: 3px 10px; border-radius: 6px;
}
.article-card__body { padding: 14px 20px; flex: 1; }
.article-card__company { font-size: .78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.article-card__title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 10px; }
.article-card__summary { font-size: .85rem; color: var(--text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__footer {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.article-card__meta { font-size: .75rem; color: var(--text-light); }
.article-card__meta span { display: flex; align-items: center; gap: 4px; }
.article-card__cta .btn { font-size: .8rem; padding: 7px 16px; }

/* ── Hero Banner ─────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2744 60%, #1a3a6e 100%);
  color: white; padding: 72px 0 64px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245,158,11,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(59,130,246,.1) 0%, transparent 60%);
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hero__title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero__title span { color: var(--gold); }
.hero__subtitle { font-size: 1.05rem; color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__markets { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero__market-badge {
  padding: 6px 16px; border-radius: 100px; font-size: .78rem; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85);
}

/* ── Section Layout ───────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section__title { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.section__title span { color: var(--gold); }

/* ── Paywall Modal ───────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-lg); max-width: 440px; width: 100%;
  padding: 40px 36px; text-align: center;
  transform: translateY(20px); transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__icon { font-size: 3rem; margin-bottom: 16px; }
.modal__title { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.modal__body { color: var(--text-muted); font-size: .95rem; line-height: 1.6; margin-bottom: 24px; }
.modal__price { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.modal__price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.modal__features { list-style: none; text-align: left; margin: 16px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.modal__features li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text); }
.modal__features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.modal__actions { display: flex; flex-direction: column; gap: 10px; }
.modal__close-btn { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.3rem; color: var(--text-muted); cursor: pointer; }

/* ── Referral Banners ────────────────────────── */
.referral-section { background: var(--navy); padding: 48px 0; }
.referral-section .section__title { color: white; }
.referral-section .section__subtitle { color: rgba(255,255,255,.65); font-size: .9rem; margin-bottom: 28px; }
.referral-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.referral-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: var(--transition); display: flex; flex-direction: column; gap: 12px;
}
.referral-card:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.referral-card__logo { font-size: 1.8rem; font-weight: 800; }
.referral-card__logo.moomoo { color: #FF6A00; }
.referral-card__logo.tiger  { color: #00B4D8; }
.referral-card__logo.ibkr   { color: #E63946; }
.referral-card__name  { color: white; font-weight: 700; font-size: 1.05rem; }
.referral-card__desc  { color: rgba(255,255,255,.6); font-size: .83rem; line-height: 1.5; flex: 1; }
.referral-card__btn {
  display: inline-block; padding: 9px 0; text-align: center; width: 100%;
  border-radius: 8px; font-weight: 600; font-size: .85rem;
  transition: var(--transition);
}
.referral-card__btn.moomoo { background: #FF6A00; color: white; }
.referral-card__btn.tiger  { background: #00B4D8; color: white; }
.referral-card__btn.ibkr   { background: #E63946; color: white; }
.referral-card__btn:hover  { opacity: .85; transform: translateY(-1px); }

/* ── Auth Forms ─────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--bg); }
.auth-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 48px 44px; width: 100%; max-width: 420px; }
.auth-card__logo { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-card__title { font-size: 1.5rem; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 6px; }
.auth-card__subtitle { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius); border: 1.5px solid var(--border);
  font-size: .9rem; transition: var(--transition); background: var(--bg);
}
.form-input:focus { outline: none; border-color: var(--navy); background: white; box-shadow: 0 0 0 3px rgba(30,58,95,.1); }
.form-input.error { border-color: var(--danger); }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 5px; }
.form-hint  { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { color: var(--text-light); font-size: .8rem; }
.auth-link { text-align: center; font-size: .875rem; color: var(--text-muted); margin-top: 20px; }
.auth-link a { color: var(--navy); font-weight: 600; }
.auth-link a:hover { color: var(--gold); }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: .875rem; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ── Pricing Cards ───────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 680px; margin: 0 auto; }
.pricing-card {
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 36px 30px; border: 2px solid var(--border); position: relative;
  transition: var(--transition);
}
.pricing-card.featured { border-color: var(--gold); }
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: .73rem; font-weight: 700;
  padding: 4px 14px; border-radius: 100px; letter-spacing: .5px;
}
.pricing-card__tier   { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 12px; }
.pricing-card__price  { font-size: 2.5rem; font-weight: 800; color: var(--navy); }
.pricing-card__price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card__desc   { color: var(--text-muted); font-size: .875rem; margin: 12px 0 24px; }
.pricing-card__features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--text); }
.pricing-card__features li .icon { color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ── Article Viewer ──────────────────────────── */
.article-header { background: var(--navy); color: white; padding: 48px 0 40px; }
.article-header__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.article-header__title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.article-header__info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: .85rem; }
.article-header__info span { display: flex; align-items: center; gap: 5px; }

.pdf-viewer-wrapper { background: #1a1a2e; min-height: 80vh; padding: 32px 0; }
.pdf-container { max-width: 900px; margin: 0 auto; padding: 0 16px; }
#pdf-canvas-container canvas { display: block; margin: 0 auto 16px; box-shadow: 0 4px 32px rgba(0,0,0,.4); }
.pdf-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 14px; background: rgba(255,255,255,.07); border-radius: 10px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.pdf-controls .btn { padding: 8px 16px; font-size: .8rem; }
.pdf-page-info { color: rgba(255,255,255,.8); font-size: .875rem; }
.pdf-loading { text-align: center; color: rgba(255,255,255,.6); padding: 80px 0; font-size: 1rem; }

/* ── Admin Panel ─────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--navy); color: white; padding: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar__logo { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar__logo img { height: 30px; filter: brightness(10); }
.admin-sidebar__logo .logo-text { color: white; font-weight: 700; font-size: 1.1rem; }
.admin-sidebar__logo .logo-accent { color: var(--gold); }
.admin-nav { padding: 16px 12px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 8px; color: rgba(255,255,255,.75); font-size: .875rem; font-weight: 500;
  margin-bottom: 4px; transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: white; }
.admin-nav a .nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.admin-main { padding: 32px; background: var(--bg); overflow-y: auto; }
.admin-header { margin-bottom: 32px; }
.admin-header h1 { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.admin-header p  { color: var(--text-muted); font-size: .9rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat-card__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card__value { font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-card__sub   { font-size: .78rem; color: var(--text-light); margin-top: 4px; }
.card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 28px; margin-bottom: 24px; }
.card__title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ── Reads Counter ───────────────────────────── */
.reads-banner {
  background: linear-gradient(90deg, #FEF3C7, #FDE68A);
  border: 1px solid #FCD34D; border-radius: 10px;
  padding: 12px 20px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.reads-banner__text { color: #92400E; font-size: .875rem; font-weight: 500; }
.reads-banner__text strong { font-weight: 700; }

/* ── Footer ─────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 48px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand .logo-text { color: white; font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.footer__brand p { font-size: .875rem; line-height: 1.7; max-width: 260px; }
.footer__col h4 { color: white; font-size: .875rem; font-weight: 700; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a { font-size: .85rem; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer__col ul li a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__bottom p { font-size: .8rem; }

/* ── Toasts ──────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--navy); color: white; padding: 14px 20px; border-radius: 10px;
  font-size: .875rem; box-shadow: var(--shadow-lg); pointer-events: all;
  transform: translateX(120%); transition: transform 0.3s ease; max-width: 340px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--blue); }

/* ── Utilities ───────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton-card { height: 260px; border-radius: var(--radius-lg); margin-bottom: 0; }

/* ── Pagination ──────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination button {
  width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--border);
  background: white; color: var(--text); font-weight: 600; font-size: .875rem;
  transition: var(--transition); cursor: pointer;
}
.pagination button:hover   { border-color: var(--navy); color: var(--navy); }
.pagination button.active  { background: var(--navy); border-color: var(--navy); color: white; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ── Hamburger / Mobile Menu ─────────────────── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 4px;
  flex-shrink: 0;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  background: var(--navy);
  padding: 8px 12px 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  z-index: 99;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button {
  color: rgba(255,255,255,.85);
  padding: 13px 16px;
  font-size: .95rem;
  font-weight: 500;
  border-radius: 8px;
  display: block;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background .2s;
}
.mobile-menu a:hover, .mobile-menu button:hover { background: rgba(255,255,255,.1); color: white; }
.mobile-menu .btn-subscribe-nav {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-top: 8px;
  border-radius: 8px !important;
}
.mobile-menu .btn-subscribe-nav:hover { background: var(--gold-light) !important; }
.mobile-menu-divider { height: 1px; background: rgba(255,255,255,.12); margin: 6px 4px; }
.mobile-menu .mobile-user-email {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  padding: 6px 16px 2px;
  display: block;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .navbar__search { display: none; }
  .navbar { padding: 0 16px; position: relative; }
  .navbar__actions { display: none; }
  .navbar__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .article-header { padding: 32px 0 28px; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .auth-card { padding: 32px 24px; }
}

/* ── Success Page ───────────────────────────── */
.success-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.success-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 56px 48px; text-align: center; max-width: 440px; }
.success-card__icon { font-size: 4rem; margin-bottom: 20px; }
.success-card__title { font-size: 1.7rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.success-card__body  { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
