/* ═══════════════════════════════════════════════════════════════
   CARIBBEAN TREND LAB — Design System
   Matched to mockup: Inter, deep navy, teal accent, white surfaces
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

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

:root {
  /* ── MOCKUP COLORS ── */
  --teal:         #00b894;
  --teal-hover:   #00a381;
  --teal-light:   #e8f8f5;
  --teal-faint:   #f0fdf9;
  --teal-dark:    #007a62;

  --navy:         #0d1b2a;
  --navy-mid:     #112236;
  --navy-soft:    #1a2f45;
  --navy-card:    #0f1f30;

  --ink:          #111827;
  --ink-body:     #374151;
  --ink-muted:    #6b7280;
  --ink-faint:    #9ca3af;

  --surface:      #ffffff;
  --bg:           #f9fafb;
  --bg-soft:      #f3f4f6;
  --border:       #e5e7eb;
  --border-soft:  #f0f0f0;
  --border-dark:  rgba(255,255,255,0.08);

  /* ── TYPOGRAPHY ── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── RADIUS ── */
  --r-xs:  4px;
  --r-sm:  6px;
  --r:     8px;
  --r-md:  10px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 20px;

  /* ── SHADOWS ── */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);

  --nav-h: 60px;
}

/* ── RESET ── */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--ink-body); line-height: 1.6; font-size: 15px; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); color: var(--ink); line-height: 1.2; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ── UTILS ── */
.teal      { color: var(--teal); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sr-only   { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; font-family: var(--font);
  transition: all 0.15s ease; border: none; cursor: pointer;
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn-teal   { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-hover); }
.btn-navy   { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.8); }
.btn-outline-dark  { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline-dark:hover  { border-color: var(--ink-muted); }
.btn-ghost-white   { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.65); color: #fff; }
.btn-outline { background: transparent; color: var(--ink-muted); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm  { padding: 7px 16px; font-size: 13px; }
.btn-lg  { padding: 13px 28px; font-size: 15px; }
.btn-xl  { padding: 15px 32px; font-size: 16px; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--r-xs);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.6;
}
.badge-hot      { background: #ef4444; color: #fff; }
.badge-rising   { background: #f59e0b; color: #fff; }
.badge-trending { background: var(--teal); color: #fff; }
.badge-new      { background: #8b5cf6; color: #fff; }
.badge-free     { background: var(--teal-light); color: var(--teal-dark); }
.badge-popular  { background: #fef3c7; color: #92400e; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: var(--navy);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.nav-logo-icon svg { width: 38px; height: 38px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text .brand { color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.08em; display: block; }
.nav-logo-text .sub   { color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: var(--r); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-search-btn { width: 34px; height: 34px; border-radius: var(--r); background: transparent; border: none; color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color 0.15s; }
.nav-search-btn:hover { color: rgba(255,255,255,0.9); }
.btn-nav-login { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.3); padding: 7px 18px; border-radius: var(--r); font-size: 14px; font-weight: 500; font-family: var(--font); cursor: pointer; transition: all 0.15s; }
.btn-nav-login:hover { border-color: rgba(255,255,255,0.65); color: #fff; }
.nav-hamburger { display: none; background: none; border: none; color: rgba(255,255,255,0.8); font-size: 22px; padding: 4px; cursor: pointer; }
.mobile-nav { display: none; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--navy); z-index: 499; flex-direction: column; padding: 20px; gap: 4px; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: rgba(255,255,255,0.75); font-size: 15px; padding: 12px 16px; border-radius: var(--r); transition: background 0.15s; }
.mobile-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* Theme toggle */
.theme-toggle { width: 34px; height: 34px; border-radius: var(--r); background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s; }
.theme-toggle:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ── SECTION LABEL ── */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }

/* ── PAGE HERO ── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); padding: 60px 0; color: #fff !important; }
.page-hero h1 { font-size: clamp(28px,4vw,44px); font-weight: 800; color: #fff !important; margin-bottom: 12px; }
.page-hero p  { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 540px; }

/* ── SPARKLINE ── */
.sparkline { width: 100%; height: 40px; }

/* ── WIDGET ITEMS ── */
.widget-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.widget-item:last-child { border-bottom: none; }
.wi-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.wi-sub   { font-size: 12px; color: var(--ink-muted); }

/* ── DASHBOARD CARDS ── */
.d-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; }
.d-card-dark { background: var(--navy); border-color: var(--navy-mid); }
.d-label { font-size: 11px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.d-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.d-value { font-size: 32px; font-weight: 800; color: var(--teal); line-height: 1.1; }
.d-sub   { font-size: 13px; color: var(--ink-muted); margin-top: 3px; }

/* ── CHECK ITEMS ── */
.check-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.85); }
.check-item::before { content: '✓'; width: 20px; height: 20px; background: var(--teal); color: #fff; border-radius: 50%; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── FOOTER ── */
.footer { background: #0d1b2a; padding: 52px 32px 28px; color: rgba(255,255,255,0.45); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto 40px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 14px; max-width: 210px; }
.footer-col h4 { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer-col li a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ── SEARCH OVERLAY ── */
#search-overlay { display: none; position: fixed; inset: 0; background: rgba(13,27,42,0.96); z-index: 600; align-items: flex-start; justify-content: center; padding-top: 100px; }

/* ── LIGHT THEME ── */
html[data-theme="light"] { /* default — already light */ }

html[data-theme="dark"] {
  --surface:     #151e28;
  --bg:          #0d1520;
  --bg-soft:     #111a24;
  --border:      rgba(255,255,255,0.09);
  --border-soft: rgba(255,255,255,0.05);
  --teal-light:  rgba(0,184,148,0.15);
  --teal-faint:  rgba(0,184,148,0.07);
  --ink:         #e8edf2;
  --ink-body:    #9aa5b1;
  --ink-muted:   #5c6b7a;
  --ink-faint:   #3a4755;
}

/* ── Base ── */
html[data-theme="dark"] body               { background: var(--bg); color: var(--ink-body); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2,
html[data-theme="dark"] h3, html[data-theme="dark"] h4,
html[data-theme="dark"] h5, html[data-theme="dark"] h6 { color: var(--ink); }

/* Hero sections always use white headings — override dark mode blanket rule */
.page-hero h1, .page-hero h2,
.reports-hero h1, .tools-hero h1, .trends-hero h1,
.hero-title, .hero h1,
.community-section h1, .community-section h2,
.community-content h1, .community-content h2,
.dash-sidebar h1, .dash-sidebar h2,
.d-card-dark h1, .d-card-dark h2, .d-card-dark h3,
.nav-logo-text .brand { color: #fff !important; }

html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .reports-hero h1,
html[data-theme="dark"] .tools-hero h1,
html[data-theme="dark"] .trends-hero h1,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .community-content h2,
html[data-theme="dark"] .d-card-dark h1,
html[data-theme="dark"] .d-card-dark h2,
html[data-theme="dark"] .d-card-dark h3 { color: #fff !important; }
html[data-theme="dark"] p                  { color: var(--ink-body); }

/* ── Nav ── */
html[data-theme="dark"] .nav               { background: #080c12; border-bottom-color: rgba(255,255,255,0.06); }

/* ── Cards / surfaces ── */
html[data-theme="dark"] .d-card            { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .d-title           { color: var(--ink); }
html[data-theme="dark"] .d-label           { color: var(--ink-muted); }
html[data-theme="dark"] .d-sub             { color: var(--ink-muted); }
html[data-theme="dark"] .wi-title          { color: var(--ink); }
html[data-theme="dark"] .wi-sub            { color: var(--ink-muted); }
html[data-theme="dark"] .widget-item       { border-color: var(--border); }
html[data-theme="dark"] .sidebar-box       { background: var(--surface); border-color: var(--border); }

/* ── Dashboard ── */
html[data-theme="dark"] .dash-card         { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .dash-card-title   { color: var(--ink); }
html[data-theme="dark"] .dash-card-label   { color: var(--ink-muted); }
html[data-theme="dark"] .dash-card-sub     { color: var(--ink-muted); }
html[data-theme="dark"] .dash-bottom-card  { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .dash-bottom-label { color: var(--ink-muted); }
html[data-theme="dark"] .dash-bottom-title { color: var(--ink); }
html[data-theme="dark"] .dashboard-wrap    { background: var(--bg); }
html[data-theme="dark"] .dash-welcome      { color: var(--ink-muted); }

/* ── Reports page filter row ── */
html[data-theme="dark"] .filter-row        { background: var(--bg-soft); border-bottom-color: var(--border); }
html[data-theme="dark"] .filter-chip       {
  color: var(--ink-muted);
  border-color: rgba(255,255,255,0.12);
  background: transparent;
}
html[data-theme="dark"] .filter-chip:hover:not(.active) {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0,184,148,0.06);
}
html[data-theme="dark"] .filter-chip.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
html[data-theme="dark"] .sort-select       {
  background: var(--surface);
  border-color: rgba(255,255,255,0.12);
  color: var(--ink);
  color-scheme: dark;
}

/* ── Report cards ── */
html[data-theme="dark"] .rcard-big         { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .rcard-body        { background: var(--surface); }
html[data-theme="dark"] .rcard-name        { color: var(--ink); }
html[data-theme="dark"] .rcard-price       { color: var(--ink); }
html[data-theme="dark"] .rcard-desc        { color: var(--ink-muted); }
html[data-theme="dark"] .rcard-list        { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .rcard-list-name   { color: var(--ink); }
html[data-theme="dark"] .rcard-list-desc   { color: var(--ink-muted); }
html[data-theme="dark"] .rcard-footer      { border-top-color: var(--border); }

/* ── Reports sidebar ── */
html[data-theme="dark"] .reports-sidebar .sidebar-box { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .free-resource     { border-bottom-color: var(--border); }

/* ── Tools page ── */
html[data-theme="dark"] .tools-nav         { background: var(--bg-soft); border-bottom-color: var(--border); }
html[data-theme="dark"] .tnav-btn          { color: var(--ink-muted); }
html[data-theme="dark"] .tnav-btn:hover    { color: var(--ink); }
html[data-theme="dark"] .tnav-btn.active   { color: var(--teal); }
html[data-theme="dark"] .tool-card         { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .form-label        { color: var(--ink-muted); }
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-textarea     {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: var(--ink);
  color-scheme: dark;
}
html[data-theme="dark"] .form-input::placeholder   { color: var(--ink-faint); }
html[data-theme="dark"] .form-input:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .form-textarea:focus       { border-color: var(--teal); background: rgba(0,184,148,0.04); }
html[data-theme="dark"] .results-box       { background: rgba(0,184,148,0.07); border-color: rgba(0,184,148,0.2); }
html[data-theme="dark"] .result-island     { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .ri-name           { color: var(--ink); }
html[data-theme="dark"] .ri-detail         { color: var(--ink-muted); }

/* Compare table */
html[data-theme="dark"] .compare-table td  { border-bottom-color: var(--border); color: var(--ink-body); }
html[data-theme="dark"] .compare-table tr:hover td { background: rgba(255,255,255,0.03); }
html[data-theme="dark"] .score-bar         { background: rgba(0,184,148,0.15); }
html[data-theme="dark"] .col-result        { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .col-island-name   { color: var(--ink); }

/* ── Trends page ── */
html[data-theme="dark"] .trend-card        { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .trend-title       { color: var(--ink); }
html[data-theme="dark"] .trend-desc        { color: var(--ink-muted); }
html[data-theme="dark"] .trend-stat-val    { color: var(--ink); }
html[data-theme="dark"] .trend-stat-label  { color: var(--ink-muted); }
html[data-theme="dark"] .trends-sidebar .sidebar-box { background: var(--surface); border-color: var(--border); }

/* ── Membership page ── */
html[data-theme="dark"] .plan-card         { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .plan-name         { color: var(--ink); }
html[data-theme="dark"] .plan-price        { color: var(--ink); }
html[data-theme="dark"] .plan-feature      { color: var(--ink-body); }
html[data-theme="dark"] .plan-feature-x    { color: var(--ink-muted); }
html[data-theme="dark"] .faq-item          { border-color: var(--border); }
html[data-theme="dark"] .faq-q             { color: var(--ink); }
html[data-theme="dark"] .faq-a             { color: var(--ink-muted); }
html[data-theme="dark"] .compare-header    { background: var(--surface); }

/* ── About page ── */
html[data-theme="dark"] .about-card        { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .team-card         { background: var(--surface); border-color: var(--border); }

/* ── Buy modal ── */
html[data-theme="dark"] .buy-modal-inner   { background: var(--surface); }
html[data-theme="dark"] .buy-modal-inner h2 { color: var(--ink); }

/* ── Auth modal ── */
html[data-theme="dark"] #auth-modal > div > div { background: var(--surface) !important; }
html[data-theme="dark"] #auth-modal label  { color: var(--ink-muted) !important; }
html[data-theme="dark"] #auth-modal input  {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: var(--ink) !important;
  color-scheme: dark;
}
html[data-theme="dark"] #auth-modal h2     { color: var(--ink) !important; }
html[data-theme="dark"] #auth-modal p      { color: var(--ink-muted) !important; }
html[data-theme="dark"] #upgrade-modal > div > div { background: var(--surface) !important; }
html[data-theme="dark"] #upgrade-modal h2  { color: var(--ink) !important; }
html[data-theme="dark"] #upgrade-modal p   { color: var(--ink-muted) !important; }

/* ── User dropdown ── */
html[data-theme="dark"] #user-dropdown     { background: var(--surface) !important; border-color: var(--border) !important; }
html[data-theme="dark"] #user-dropdown a,
html[data-theme="dark"] #user-dropdown button { color: var(--ink) !important; }
html[data-theme="dark"] #user-dropdown a:hover,
html[data-theme="dark"] #user-dropdown button:hover { background: rgba(255,255,255,0.05) !important; }
html[data-theme="dark"] #nav-user-email-dd { color: var(--ink) !important; }

/* ── Page heroes ── */
html[data-theme="dark"] .page-hero         { background: linear-gradient(135deg, #060a0f 0%, #0d1828 100%); }
html[data-theme="dark"] .reports-hero      { background: linear-gradient(135deg, #060a0f, #0d1828); }
html[data-theme="dark"] .tools-hero        { background: linear-gradient(135deg, #060a0f, #0d1828); }
html[data-theme="dark"] .trends-hero       { background: linear-gradient(135deg, #060a0f, #0d1828); }
html[data-theme="dark"] .platform-section  { background: var(--bg-soft); }
html[data-theme="dark"] .platform-tab      { color: var(--ink-muted); }
html[data-theme="dark"] .platform-tab:hover:not(.active) { color: var(--ink); }
html[data-theme="dark"] .platform-tabs     { border-bottom-color: var(--border); }

/* ── Featured section ── */
html[data-theme="dark"] .featured-section  { background: var(--bg); }
html[data-theme="dark"] .rpt-card          { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .rpt-name          { color: var(--ink); }
html[data-theme="dark"] .rpt-price         { color: var(--ink); }
html[data-theme="dark"] .ai-tools-box      { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .ai-tools-box h3   { color: var(--ink); }
html[data-theme="dark"] .ai-tool-name      { color: var(--ink); }
html[data-theme="dark"] .ai-tool-desc      { color: var(--ink-muted); }
html[data-theme="dark"] .ai-tool-item      { border-bottom-color: var(--border); }
html[data-theme="dark"] .ai-tool-icon      { background: rgba(0,184,148,0.12); }
html[data-theme="dark"] .ai-tool-icon.blue { background: rgba(59,130,246,0.12); }
html[data-theme="dark"] .ai-tool-icon.purple { background: rgba(139,92,246,0.12); }

/* ── Badges dark mode ── */
html[data-theme="dark"] .badge-free        { background: rgba(0,184,148,0.15); color: var(--teal); border: none; }

/* ── Footer ── */
html[data-theme="dark"] .footer            { background: #050810; }
html[data-theme="dark"] #search-overlay    { background: rgba(5,8,16,0.97); }

/* ── Purchase success / auth callback ── */
html[data-theme="dark"] .success-card      { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .success-title     { color: var(--ink); }
html[data-theme="dark"] .success-sub       { color: var(--ink-muted); }
html[data-theme="dark"] .report-box        { background: var(--bg-soft); border-color: var(--border); }
html[data-theme="dark"] .report-box .val   { color: var(--ink); }
html[data-theme="dark"] .btn-sec           { border-color: var(--border); color: var(--ink-muted); }


/* ── Dark mode: plan-feature checkboxes & icons ── */
html[data-theme="dark"] .plan-feature {
  color: var(--ink-body);
}
html[data-theme="dark"] .plan-feature::before {
  background: rgba(0,184,148,0.18);
  color: var(--teal);
  border: 1px solid rgba(0,184,148,0.3);
}
html[data-theme="dark"] .plan-feature.locked {
  color: var(--ink-faint);
}
html[data-theme="dark"] .plan-feature.locked::before {
  background: rgba(255,255,255,0.04);
  color: var(--ink-faint);
  border: 1px solid rgba(255,255,255,0.08);
  content: '✕';
}

/* ── Dark mode: check-items (index community section) ── */
html[data-theme="dark"] .check-item {
  color: rgba(255,255,255,0.8);
}
html[data-theme="dark"] .check-item::before {
  background: rgba(0,184,148,0.18);
  color: var(--teal);
  border: 1px solid rgba(0,184,148,0.3);
}

/* ── Dark mode: comparison table ── */
html[data-theme="dark"] .pc-table td {
  border-bottom-color: var(--border);
  color: var(--ink-body);
}
html[data-theme="dark"] .pc-table td:first-child {
  color: var(--ink-muted);
}
html[data-theme="dark"] .pc-table tr:hover td {
  background: rgba(255,255,255,0.03);
}
html[data-theme="dark"] .check-icon { color: var(--teal); }
html[data-theme="dark"] .cross-icon { color: var(--ink-faint); }

/* ── Dark mode: plan cards ── */
html[data-theme="dark"] .plan-card {
  background: var(--surface);
  border-color: var(--border);
}
html[data-theme="dark"] .plan-card.featured {
  border-color: var(--teal);
}
html[data-theme="dark"] .plan-name     { color: var(--ink); }
html[data-theme="dark"] .plan-tagline  { color: var(--ink-muted); }
html[data-theme="dark"] .plan-divider  { border-top-color: var(--border); }
html[data-theme="dark"] .plan-price .amount { color: var(--ink); }
html[data-theme="dark"] .plan-price .period { color: var(--ink-muted); }
html[data-theme="dark"] .compare-section    { background: var(--bg); }
html[data-theme="dark"] .compare-section h2 { color: var(--ink); }

/* ── Dark mode: FAQ ── */
html[data-theme="dark"] .faq-item      { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .faq-q         { color: var(--ink); }
html[data-theme="dark"] .faq-a         { color: var(--ink-muted); }
html[data-theme="dark"] .faq-toggle    { color: var(--ink-muted); }

/* Smooth transitions */
body, .nav, .d-card, .footer, .widget-item { transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .container { padding: 0 24px; } }
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-right .btn-nav-login { display: none; }
  .nav-hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-hero { padding: 44px 0; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
