/* ═══════════════════════════════════════════════════════════════════════════
   HSK Download v7.0 — Modern Clean SaaS Theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  /* brand */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-light: #3b82f6;
  --brand-soft: #eff6ff;
  --brand-50: rgba(37,99,235,.06);
  --brand-100: rgba(37,99,235,.12);
  --brand-200: rgba(37,99,235,.2);
  --brand-300: rgba(37,99,235,.35);

  /* accent */
  --accent: #7c3aed;
  --accent-50: rgba(124,58,237,.06);
  --accent-100: rgba(124,58,237,.12);
  --accent-200: rgba(124,58,237,.2);

  /* surface */
  --bg: #f8fafc;
  --bg-warm: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --surface-alt: #f1f5f9;

  /* text — deepened for better readability */
  --text: #0b1120;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;

  /* border */
  --border: #d1d5db;
  --border-light: #e5e7eb;
  --border-focus: #93c5fd;

  /* semantic */
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-light: #fee2e2;
  --info: #2563eb;
  --info-bg: #eff6ff;
  --info-light: #dbeafe;

  /* radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,.1);
  --shadow-glow: 0 0 80px rgba(37,99,235,.06);
  --shadow-card: 0 0 0 1px rgba(0,0,0,.03), 0 2px 8px rgba(0,0,0,.04);
  --shadow-featured: 0 0 0 2px rgba(37,99,235,.15), 0 12px 32px -8px rgba(37,99,235,.12);

  --transition: all .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .35s cubic-bezier(.4,0,.2,1);
  --transition-bounce: all .3s cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:17px;scroll-behavior:smooth}
body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* utility */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0 }

/* ── Icon System (CRITICAL FIX) ───────────────────────────────────────────── */
.icon-svg { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-svg svg { width: 100%; height: 100%; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 36px; height: 36px; }

/* ── Typography ──────────────────────────────────────────────────────────── */
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2.2rem,5vw,3.4rem); letter-spacing: -.025em; }
h2 { font-size: 1.85rem; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { color: var(--text-secondary); }

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(209,213,219,.6);
  padding: 0 1rem;
}
.topbar.scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 1400px; margin: 0 auto; height: 64px;
}

.brand {
  display: flex; align-items: center; gap: .5rem;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.logo-word {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 700; font-size: .85rem;
}
.brand-text strong { display: block; font-size: .95rem; line-height: 1.2; font-weight: 700; }
.brand-text span { font-size: .72rem; color: var(--text-muted); font-weight: 400; }

.menu { display: flex; gap: .1rem; margin-left: 1rem; }
.menu a {
  padding: .5rem .85rem; border-radius: 8px;
  font-size: .88rem; color: var(--text-secondary); font-weight: 500;
  text-decoration: none; transition: var(--transition);
}
.menu a:hover, .menu a.active { color: var(--brand); background: var(--brand-50); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-actions .btn {
  padding: .55rem 1.3rem; border-radius: 8px; font-size: .85rem;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 600; text-decoration: none;
  transition: var(--transition);
}
.nav-actions .btn:hover { opacity: .9; transform: translateY(-1px); }
.nav-actions .btn-ghost {
  background: transparent; color: var(--text-secondary);
}
.nav-actions .btn-ghost:hover { background: var(--brand-50); color: var(--brand); transform: none; }

/* ── Theme Toggle ────────────────────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-50); border: 1.5px solid transparent;
  cursor: pointer; transition: var(--transition-bounce);
  color: var(--brand); font-size: 1.15rem;
}
.theme-toggle:hover { background: var(--brand-100); transform: scale(1.08); }
[data-theme="light"] .icon-moon, [data-theme="dark"] .icon-sun { display: none; }

/* ── User Dropdown ──────────────────────────────────────────────────────── */
.user-dropdown { position: relative; display: inline-flex; align-items: center; }
.user-avatar-name {
  padding: .45rem .8rem; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
}
.user-avatar-name:hover { background: var(--brand-50); color: var(--brand); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; right: 0; margin-top: .5rem;
  min-width: 190px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .4rem 0; z-index: 200;
}
.user-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: .55rem 1rem; font-size: .88rem;
  color: var(--text-secondary); transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--brand-50); color: var(--brand); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: .25rem 0; }
.notif-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--danger); color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: 11px; line-height: 18px; text-align: center;
}

/* ── Page Layout ─────────────────────────────────────────────────────────── */
.page { min-height: calc(100vh - 64px); }
.page-enter { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.page-container { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1rem; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: .5rem; }
.section-header p { color: var(--text-secondary); font-size: 1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 600; color: var(--brand);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: .75rem;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.grad { background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero-section {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem;
  max-width: 1400px; margin: 0 auto; padding: 4rem 2rem 3.5rem;
}
.hero-left h1 { max-width: 650px; }
.hero-left .lead {
  color: var(--text-secondary); margin: 1.2rem 0 1.5rem;
  font-size: 1.1rem; max-width: 560px; line-height: 1.75;
}

/* ── Search Box ─────────────────────────────────────────────────────────── */
.search-box {
  background: var(--surface); border-radius: 16px; padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  max-width: 620px;
}
.paste-label { font-size: .85rem; color: var(--text-secondary); margin-bottom: .75rem; font-weight: 500; }
.link-ico { color: var(--text-muted); flex-shrink: 0; display: flex; align-items: center; }
.input-line { display: flex; gap: .5rem; align-items: center; }
.input-line input {
  flex: 1; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .95rem; outline: none; min-width: 0;
  transition: var(--transition); background: var(--bg);
}
.input-line input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.input-line .parse {
  padding: .75rem 1.5rem; border: none; border-radius: 10px;
  font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; transition: var(--transition);
}
.input-line .parse:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow); }
.hint { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; font-size: .78rem; color: var(--text-muted); }
.hint-links { display: flex; gap: .75rem; }
.hint-links a { color: var(--text-muted); }
.hint-links a:hover { color: var(--brand); }

/* ── Hero Right ─────────────────────────────────────────────────────────── */
.hero-right { position: relative; display: flex; flex-direction: column; gap: 1.5rem; }
.hero-art {
  position: relative; height: 200px; border-radius: var(--radius-lg);
  overflow: hidden; background: linear-gradient(135deg, var(--brand-soft), #f5f3ff);
}
.art-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37,99,235,.1) 0%, transparent 70%);
}
.art-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.art-animation { position: relative; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.art-core { width: 60px; height: 60px; background: linear-gradient(135deg, var(--brand), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.art-wave { position: absolute; border-radius: 50%; border: 2px solid rgba(37,99,235,.2); animation: ripple 2.5s ease-out infinite; }
.art-wave-1 { width: 100px; height: 100px; animation-delay: 0s; }
.art-wave-2 { width: 100px; height: 100px; animation-delay: .6s; }
.art-wave-3 { width: 100px; height: 100px; animation-delay: 1.2s; }
@keyframes ripple {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-stats-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-card);
}
.hero-stats-card .card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border-light);
}
.hero-stats-card .card-header .title {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .95rem;
}
.hero-stats-card .card-header a { font-size: .82rem; font-weight: 500; }
.diamond {
  width: 8px; height: 8px; background: var(--brand); border-radius: 2px; transform: rotate(45deg);
}
.hero-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.hero-stat { text-align: center; }
.hero-stat .label { display: block; font-size: .78rem; color: var(--text-muted); margin-bottom: .25rem; }
.hero-stat .value { display: block; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.hero-stat .hint { display: block; font-size: .7rem; color: var(--text-muted); margin-top: .1rem; }
.hero-vip-banner {
  margin-top: 1rem; padding: .75rem 1rem;
  background: linear-gradient(135deg, var(--brand-soft), #f5f3ff);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between;
}
.hero-vip-banner .copy { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.hero-vip-banner .copy small { display: block; font-weight: 400; font-size: .75rem; color: var(--text-muted); }
.hero-vip-banner a {
  padding: .45rem 1.1rem; background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600;
  white-space: nowrap; transition: var(--transition);
}
.hero-vip-banner a:hover { opacity: .9; }

/* ── Promo Banner ───────────────────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, #fef3c7, #fef9c3, #fef3c7);
  border-bottom: 1px solid #fcd34d; padding: .6rem 1rem;
}
.promo-inner {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap; justify-content: center;
}
.promo-icon { font-size: 1.1rem; }
.promo-text { font-size: .85rem; color: #92400e; }
.promo-countdown {
  background: #fef3c7; border: 1px solid #fcd34d;
  padding: .2rem .6rem; border-radius: var(--radius-sm); font-size: .75rem;
  font-weight: 600; color: #92400e; font-variant-numeric: tabular-nums;
}
.promo-btn {
  padding: .35rem 1rem; background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff !important; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: var(--transition);
}
.promo-btn:hover { opacity: .9; }
.promo-close {
  background: none; border: none; font-size: 1rem; cursor: pointer;
  color: #a16207; padding: .25rem; line-height: 1; border-radius: 4px;
}
.promo-close:hover { background: rgba(0,0,0,.05); }

/* ── Steps Section ──────────────────────────────────────────────────────── */
.steps-section { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1rem 2rem; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-card); transition: var(--transition);
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
  color: var(--brand); margin-bottom: .75rem;
}
.step-content strong { display: block; font-size: .95rem; margin-bottom: .3rem; }
.step-content p { font-size: .84rem; color: var(--text-secondary); }

/* ── Result Card ────────────────────────────────────────────────────────── */
.result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-card);
}
.video-info { display: flex; gap: 1rem; }
.video-info img { width: 160px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.video-info h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.video-info .meta { font-size: .85rem; color: var(--text-secondary); }
.compliance-check {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: 1rem; padding: .75rem; background: var(--brand-soft);
  border-radius: var(--radius-sm); font-size: .82rem; color: var(--text-secondary);
}
.compliance-check input { margin-top: 2px; flex-shrink: 0; }
.download-button {
  display: block; width: 100%; margin-top: 1rem; padding: .85rem;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; border: none; border-radius: var(--radius); font-size: 1rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.download-button:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow); }
.download-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Pricing Grid ───────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
  max-width: 1100px; margin: 0 auto; padding: 0 1rem;
}
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-card); transition: var(--transition);
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: var(--brand-200); box-shadow: var(--shadow-featured);
}
.plan-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: .75rem;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; color: var(--text); }
.plan-desc {
  font-size: .84rem; color: var(--text-secondary); margin-bottom: .75rem;
  line-height: 1.55;
}
.price-row { margin-bottom: .75rem; }
.price { font-size: 1.85rem; font-weight: 800; color: var(--text); margin-bottom: .15rem; }
.price .currency { font-size: 1.05rem; font-weight: 600; }
.price .period { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.price-note { font-size: .78rem; color: var(--text-secondary); }
.price-original { font-size: .8rem; text-decoration: line-through; color: var(--text-muted); margin-left: .5rem; }
.price-card ul { list-style: none; flex: 1; margin-bottom: 1rem; }
.price-card li {
  padding: .4rem 0; font-size: .85rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: "✓"; color: var(--success); margin-right: .4rem; font-weight: 700; font-size: .8rem; }

.btn-buy {
  width: 100%; padding: .7rem; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); margin-top: auto;
}
.btn-buy:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow); }
.price-card:not(.featured) .btn-buy {
  background: var(--surface); color: var(--brand);
  border: 1.5px solid var(--brand);
}
.price-card:not(.featured) .btn-buy:hover { background: var(--brand-soft); }

.badge {
  position: absolute; top: -10px; right: 1rem;
  padding: .2rem .7rem; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700; z-index: 2;
}
.badge.popular { background: var(--brand); color: #fff; }
.badge.hot { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }

/* ── Packs Grid ─────────────────────────────────────────────────────────── */
.packs-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
  max-width: 1100px; margin: 0 auto; padding: 0 1rem;
}
.pack-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow-card); transition: var(--transition);
}
.pack-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pack-card.featured-pack { border-color: var(--brand-200); }
.pack-points { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: .25rem; }
.pack-points span { font-size: .95rem; font-weight: 600; color: var(--text-muted); }
.pack-price-row { margin-bottom: 1rem; }
.pack-price { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.pack-price span { font-size: .88rem; }
.pack-unit { font-size: .78rem; color: var(--text-secondary); }
.save-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: var(--success-bg); color: var(--success); font-size: .72rem; font-weight: 600;
}

/* ── Comparison Table ───────────────────────────────────────────────────── */
.comparison-section { max-width: 1100px; margin: 2.5rem auto; padding: 0 1rem; }
.comparison-section h3 { text-align: center; margin-bottom: 1.5rem; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.comparison-table th {
  background: var(--bg-warm); padding: .75rem 1rem; text-align: left;
  font-weight: 600; color: var(--text); border-bottom: 2px solid var(--border);
}
.comparison-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
.comparison-table tr:nth-child(even) td { background: var(--brand-50); }
.comparison-table tr:hover td { background: var(--brand-soft); }
.comparison-table .highlight { background: var(--brand-soft); font-weight: 600; color: var(--brand); }
.check { color: var(--success); font-weight: 700; }
.cross { color: var(--text-muted); }

/* ── FAQ Section ────────────────────────────────────────────────────────── */
.faq-section { max-width: 1100px; margin: 2.5rem auto; padding: 0 1rem; }
.faq-section h3 { text-align: center; margin-bottom: 1.5rem; }
.faq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq-item .icon { margin-bottom: .5rem; color: var(--brand); }
.faq-item strong { display: block; font-size: .95rem; margin-bottom: .4rem; }
.faq-item p { font-size: .88rem; color: var(--text-secondary); }

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; padding: 2.5rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-soft) 0%, #f5f3ff 100%);
  border: 1px solid var(--brand-100);
}
.cta-banner h3 { margin-bottom: .5rem; font-size: 1.3rem; }
.cta-banner p { font-size: .95rem; color: var(--text-secondary); }
.cta-banner .actions { display: flex; gap: .75rem; flex-shrink: 0; }
.cta-banner .btn-primary {
  padding: .65rem 1.5rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.cta-banner .btn-primary:first-child {
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
}
.cta-banner .btn-primary:last-child {
  background: var(--surface); color: var(--brand); border: 1.5px solid var(--brand);
}

/* ── Redeem Section ─────────────────────────────────────────────────────── */
.redeem-section {
  max-width: 600px; margin: 2.5rem auto; padding: 2rem;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); text-align: center;
}
.redeem-section input {
  padding: .7rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; outline: none;
  transition: var(--transition); flex: 1; max-width: 320px;
}
.redeem-section input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ── New User Offer ─────────────────────────────────────────────────────── */
.new-user-offer {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #bfdbfe; border-radius: var(--radius);
}

/* ── Social Proof ───────────────────────────────────────────────────────── */
.social-proof-section { max-width: 1100px; margin: 3rem auto 2rem; padding: 0 1rem; }
.stats-row-social { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card-social {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  box-shadow: var(--shadow-card); transition: var(--transition);
}
.stat-card-social:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: .25rem; }
.stat-number span { color: var(--brand); }
.stat-label { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .2rem; }
.stat-desc { font-size: .78rem; color: var(--text-muted); }

.testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-card); transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { font-size: .9rem; margin-bottom: .5rem; }
.testimonial-card p { font-size: .88rem; color: var(--text-secondary); margin-bottom: .75rem; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: .5rem; }
.author-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .78rem; font-weight: 600; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .82rem; }
.testimonial-author span { font-size: .74rem; color: var(--text-muted); }

/* ── Forms ────────────────────────────────────────────────────────────── */
input, select, textarea {
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; outline: none; transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.btn-primary {
  padding: .6rem 1.5rem; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  max-width: 420px; width: 90%; box-shadow: var(--shadow-lg);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal .order-summary { background: var(--bg); padding: 1rem; border-radius: var(--radius); margin: .75rem 0; }
.modal .secondary {
  display: block; width: 100%; margin-top: .5rem; padding: .6rem;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-secondary); transition: var(--transition);
}
.modal .secondary:hover { background: var(--bg-warm); }

/* ── Member Layout ──────────────────────────────────────────────────────── */
.member-layout { display: flex; min-height: calc(100vh - 64px); }
.member-sidebar {
  width: 220px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border); padding: 1.5rem 0;
}
.member-sidebar .sidebar-header { padding: 0 1.5rem 1rem; }
.member-sidebar .sidebar-header .title { font-size: .85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.member-sidebar .sidebar-footer { padding: 1rem 1.5rem 0; margin-top: auto; }
.member-sidebar a {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1.5rem; font-size: .85rem; color: var(--text-secondary);
  transition: var(--transition); border-left: 3px solid transparent;
  text-decoration: none;
}
.member-sidebar a:hover { background: var(--brand-50); color: var(--brand); }
.member-sidebar a.active {
  background: var(--brand-50); color: var(--brand);
  border-left-color: var(--brand); font-weight: 600;
}
.member-main { flex: 1; padding: 2rem; min-width: 0; }
.member-header { margin-bottom: 1.5rem; }
.member-header h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.member-header p { color: var(--text-muted); font-size: .85rem; }

/* Member: Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.stat-icon.blue { background: var(--brand-soft); color: var(--brand); }
.stat-icon.purple { background: var(--accent-50); color: var(--accent); }
.stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-card .stat-label { font-size: .75rem; color: var(--text-muted); margin-bottom: .25rem; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: .15rem; }
.stat-card .stat-hint { font-size: .72rem; color: var(--text-muted); }

/* Member: Content Cards */
.content-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}
.content-card .card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border-light);
}
.content-card .card-header h3 { font-size: 1.05rem; }
.content-card .card-header a { font-size: .82rem; font-weight: 500; }

/* Member: Plan Card */
.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.5rem; box-shadow: var(--shadow-card);
}
.plan-card .info { flex: 1; }
.plan-card .info h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.plan-card .info p { font-size: .82rem; color: var(--text-muted); }
.plan-card .actions { display: flex; gap: .75rem; flex-shrink: 0; }
.plan-card .badge {
  display: inline-block; position: static; margin-left: .5rem;
  padding: .15rem .5rem; font-size: .65rem;
}
.plan-card .badge.active { background: var(--success-bg); color: var(--success); }
.plan-card .badge.inactive { background: var(--warning-bg); color: var(--warning); }

/* Member: Task List */
.task-list { display: flex; flex-direction: column; gap: .5rem; }
.task-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); transition: var(--transition);
}
.task-item:hover { background: var(--brand-50); }
.task-item .thumb { width: 60px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.task-item .info { flex: 1; min-width: 0; }
.task-item .title { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-item .meta { font-size: .78rem; color: var(--text-muted); }
.task-item .status {
  padding: .25rem .55rem; border-radius: 4px; font-size: .75rem; font-weight: 600; flex-shrink: 0;
}
.task-item .status.queued { background: var(--info-bg); color: var(--info); }
.task-item .status.running { background: var(--warning-bg); color: var(--warning); }
.task-item .status.succeeded { background: var(--success-bg); color: var(--success); }
.task-item .status.failed { background: var(--danger-bg); color: var(--danger); }
.task-item .actions { display: flex; gap: .5rem; align-items: center; }

/* Member: Progress Bar */
.progress-bar { width: 80px; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.progress-bar .fill { height: 100%; background: var(--brand); border-radius: 3px; transition: width .3s ease; }
.progress-bar .fill.success { background: var(--success); }
.progress-bar .fill.failed { background: var(--danger); }

/* Member: Chart Container */
.chart-container { min-height: 220px; display: flex; align-items: center; justify-content: center; }
.chart-container .placeholder { color: var(--text-muted); font-size: .85rem; display: flex; align-items: center; }

/* ── Security Page ──────────────────────────────────────────────────────── */
.security-section { margin-bottom: 1.5rem; }
.security-section .section-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem;
}
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card);
}
.profile-card .card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.profile-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }

/* Security: Input Wrap */
.input-wrap {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .85rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); transition: var(--transition);
}
.input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.input-wrap .prefix { color: var(--text-muted); flex-shrink: 0; display: flex; align-items: center; }
.input-wrap input {
  flex: 1; border: none; background: transparent; padding: 0;
  outline: none; font-size: .95rem; min-width: 0;
}
.input-hint { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; }

/* Security: Device List */
.device-list { display: flex; flex-direction: column; gap: .5rem; }
.device-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.device-item .device-icon { color: var(--text-muted); flex-shrink: 0; }
.device-item .device-info { flex: 1; }
.device-item .device-info strong { font-size: .85rem; }
.device-item .device-info p { font-size: .72rem; color: var(--text-muted); margin: 0; }
.device-item .device-status {
  padding: .15rem .5rem; border-radius: 4px; font-size: .7rem; font-weight: 600; flex-shrink: 0;
}
.device-item .device-status.current { background: var(--success-bg); color: var(--success); }
.device-item .device-status.other { background: var(--bg-warm); color: var(--text-muted); }
.device-item .device-action {
  padding: .3rem .6rem; border-radius: var(--radius-sm); font-size: .75rem;
  border: 1px solid var(--danger); background: transparent; color: var(--danger);
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.device-item .device-action:hover { background: var(--danger); color: #fff; }

/* Security: Log Table */
.log-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.log-table th { background: var(--bg-warm); padding: .6rem .75rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); }
.log-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
.log-table tr:hover td { background: var(--brand-50); }

/* Security: Cookie */
.cookie-intro {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem; background: var(--brand-soft); border-radius: var(--radius-sm); margin-bottom: 1rem;
}
.cookie-intro-icon { font-size: 1.5rem; flex-shrink: 0; }
.cookie-intro strong { display: block; font-size: .9rem; margin-bottom: .25rem; }
.cookie-intro p { font-size: .82rem; color: var(--text-secondary); margin: 0; }
.cookie-steps { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.cookie-step { display: flex; align-items: flex-start; gap: .5rem; padding: .5rem; }
.cookie-step .step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.cookie-step strong { font-size: .9rem; }
.cookie-step p { font-size: .82rem; color: var(--text-muted); margin: 0; }
.cookie-platforms { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.cookie-platform {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .85rem; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.cookie-platform .platform-icon { font-size: 1.1rem; flex-shrink: 0; }
.cookie-platform .platform-name { font-size: .9rem; font-weight: 500; flex: 1; }
.cookie-platform .platform-file { font-size: .78rem; color: var(--text-muted); font-family: monospace; }
.cookie-platform .platform-status { font-size: .78rem; color: var(--text-muted); }

/* Security: Tips */
.security-tips { display: flex; flex-direction: column; gap: .75rem; }
.security-tips .tip-item { display: flex; align-items: flex-start; gap: .75rem; padding: .5rem; }
.security-tips .tip-item .icon { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.security-tips .tip-item .text { flex: 1; }
.security-tips .tip-item .text strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.security-tips .tip-item .text p { font-size: .82rem; color: var(--text-secondary); margin: 0; }

/* ── Task Center ────────────────────────────────────────────────────────── */
.task-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.task-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  box-shadow: var(--shadow-card);
}
.task-stat .value { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: .15rem; }
.task-stat .label { font-size: .82rem; color: var(--text-muted); }

.task-filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filter-btn {
  padding: .45rem .85rem; border-radius: var(--radius-sm); font-size: .88rem;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.new-task-btn {
  padding: .45rem 1.1rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
  font-size: .88rem; font-weight: 600; text-decoration: none; transition: var(--transition);
}
.new-task-btn:hover { opacity: .9; }

/* ── Auth Pages ─────────────────────────────────────────────────────────── */
.auth-page { display: flex; min-height: 100vh; }
.auth-left { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2.5rem; background: var(--bg); }
.auth-left .content { max-width: 520px; }
.auth-left h1 { font-size: 2rem; margin-bottom: .5rem; }
.auth-left .subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1.5rem; }
.auth-left .brand-name { background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.auth-features { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.auth-feature { display: flex; align-items: flex-start; gap: .75rem; }
.auth-feature .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
  color: var(--brand); flex-shrink: 0;
}
.auth-feature .text { flex: 1; }
.auth-feature .text strong { display: block; font-size: .92rem; margin-bottom: .15rem; }
.auth-feature .text p { font-size: .84rem; color: var(--text-secondary); margin: 0; }

.auth-bottom-features { display: flex; gap: 1rem; flex-wrap: wrap; }
.auth-bottom-feature {
  flex: 1; min-width: 120px; text-align: center; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.auth-bottom-feature .icon { margin-bottom: .5rem; color: var(--brand); }
.auth-bottom-feature strong { display: block; font-size: .85rem; margin-bottom: .15rem; }
.auth-bottom-feature p { font-size: .78rem; color: var(--text-secondary); margin: 0; }

.auth-right {
  flex: 1; background: linear-gradient(135deg, var(--brand-soft), #f5f3ff);
  display: flex; align-items: center; justify-content: center; padding: 2.5rem;
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-card);
}
.auth-card-title { font-size: 1.35rem; margin-bottom: .25rem; }
.auth-card-subtitle { color: var(--text-secondary); font-size: .9rem; margin-bottom: 1.5rem; }

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.auth-form .field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.auth-form .field .input-wrap { display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); transition: var(--transition); }
.auth-form .field .input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.auth-form .field .input-wrap input { flex: 1; border: none; background: transparent; padding: 0; outline: none; font-size: .95rem; min-width: 0; }
.auth-form .field .input-wrap .prefix { color: var(--text-muted); flex-shrink: 0; display: flex; align-items: center; }
.auth-form .field .input-wrap .toggle-password { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: .25rem; display: flex; align-items: center; }
.auth-form .options { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.auth-form .options label { display: flex; align-items: center; gap: .35rem; color: var(--text-secondary); cursor: pointer; }
.auth-form .submit-btn {
  width: 100%; padding: .85rem; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.auth-form .submit-btn:hover { opacity: .9; transform: translateY(-1px); }
.auth-form .submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.auth-card .tabs { display: flex; gap: .25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.auth-tab-btn {
  padding: .55rem 1.1rem; border: none; background: none;
  font-size: .9rem; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; transition: var(--transition);
}
.auth-tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.auth-tab-btn:hover { color: var(--brand); }
.auth-tab-panel { display: none; }
.auth-tab-panel.active { display: block; }

.auth-card .divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0; font-size: .82rem; color: var(--text-muted);
}
.auth-card .divider::before, .auth-card .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.social-login { display: flex; justify-content: center; gap: .75rem; }
.social-btn {
  width: 48px; height: 48px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.social-btn:hover { border-color: var(--brand); background: var(--brand-50); }

.bottom-link { text-align: center; margin-top: 1.25rem; font-size: .88rem; color: var(--text-secondary); }

.form-msg { margin-top: .75rem; font-size: .88rem; min-height: 1.2rem; }
.form-msg.msg-success { color: var(--success); }
.form-msg.msg-error { color: var(--danger); }
.form-msg.msg-info { color: var(--info); }

.code-row { display: flex; gap: .5rem; }
.send-code {
  padding: .55rem 1.1rem; border: 1px solid var(--brand); border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.send-code:hover { background: var(--brand); color: #fff; }
.send-code:disabled { opacity: .5; cursor: not-allowed; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

/* Password strength */
.password-strength { margin-top: .5rem; }
.password-strength .strength-bar { height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; margin-bottom: .25rem; }
.password-strength .strength-fill { height: 100%; border-radius: 2px; transition: var(--transition); }
.password-strength .strength-text { font-size: .72rem; font-weight: 600; }

/* Toggle switch */
.toggle-switch { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--border-light); }
.toggle-switch .info strong { display: block; font-size: .85rem; }
.toggle-switch .info p { font-size: .78rem; color: var(--text-muted); margin: 0; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: var(--border); border-radius: 24px; transition: var(--transition); }
.switch .slider::before { position: absolute; content: ''; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: var(--transition); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ── Admin Layout ───────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border); padding: 1.5rem 0;
  display: flex; flex-direction: column;
}
.admin-sidebar .sidebar-brand { padding: 0 1.5rem 1.5rem; }
.admin-sidebar .sidebar-brand strong { display: block; font-size: 1rem; }
.admin-sidebar .sidebar-brand small { font-size: .75rem; color: var(--text-muted); }
.admin-sidebar .sidebar-nav { flex: 1; }
.admin-sidebar .sidebar-nav .nav-item {
  display: block; padding: .6rem 1.5rem; font-size: .85rem;
  color: var(--text-secondary); text-decoration: none;
  transition: var(--transition); border-left: 3px solid transparent;
  cursor: pointer;
}
.admin-sidebar .sidebar-nav .nav-item:hover { background: var(--brand-50); color: var(--brand); }
.admin-sidebar .sidebar-nav .nav-item.active { background: var(--brand-50); color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.admin-sidebar .sidebar-footer { padding: 1rem 1.5rem 0; border-top: 1px solid var(--border-light); }
.admin-sidebar .sidebar-footer a { display: block; padding: .4rem 0; font-size: .82rem; color: var(--text-secondary); text-decoration: none; }
.admin-sidebar .sidebar-footer a:hover { color: var(--brand); }

.admin-main { flex: 1; padding: 2rem; min-width: 0; overflow-y: auto; }
.admin-main h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* Admin: Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card-admin {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-card-admin .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: .25rem; }
.stat-card-admin .stat-label { font-size: .82rem; color: var(--text-muted); }

/* Admin: Toolbar */
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar .btn {
  padding: .5rem 1rem; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: 1px solid var(--border);
  background: var(--bg); color: var(--text-secondary);
}
.toolbar .btn:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.toolbar .btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.toolbar .btn-primary:hover { opacity: .9; }
.toolbar .btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.toolbar .btn-outline:hover { background: var(--brand-soft); }

/* Admin: Table */
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th { background: var(--bg-warm); padding: .6rem .75rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); }
.admin-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
.admin-table tr:hover td { background: var(--brand-50); }

/* Admin: Tab */
.tab {
  padding: .4rem .8rem; border-radius: var(--radius-sm); font-size: .82rem;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
}
.tab:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Admin: Form Card */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; max-width: 600px;
}
.form-card .field { margin-bottom: 1rem; }
.form-card .field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.form-card .field input, .form-card .field textarea, .form-card .field select {
  width: 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 4px; font-size: .9rem;
}
.form-card .field input:focus, .form-card .field textarea:focus, .form-card .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); outline: none;
}

/* Admin: Panel */
.panel-content { display: none; }
.panel-content.active { display: block; }

/* Admin: Status Tag */
.status-tag { display: inline-block; padding: .15rem .5rem; border-radius: 4px; font-size: .72rem; font-weight: 600; }
.status-tag.success { background: var(--success-bg); color: var(--success); }
.status-tag.warning { background: var(--warning-bg); color: var(--warning); }
.status-tag.danger { background: var(--danger-bg); color: var(--danger); }
.status-tag.info { background: var(--info-bg); color: var(--info); }

/* ── Dark Mode Override ─────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-warm: #1e293b;
  --surface: #1e293b;
  --surface-hover: #334155;
  --surface-alt: #334155;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-light: #1e293b;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.4), 0 2px 4px -2px rgba(0,0,0,.3);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.5), 0 4px 6px -4px rgba(0,0,0,.3);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,.6);
  --shadow-card: 0 0 0 1px rgba(255,255,255,.04), 0 2px 8px rgba(0,0,0,.3);
  --shadow-featured: 0 0 0 2px rgba(37,99,235,.2), 0 12px 32px -8px rgba(37,99,235,.15);
  --brand-soft: rgba(37,99,235,.1);
}

[data-theme="dark"] body {
  background: var(--bg); color: var(--text);
}
[data-theme="dark"] .topbar {
  background: rgba(15,23,42,.85);
  border-bottom-color: rgba(51,65,85,.7);
}
[data-theme="dark"] .topbar.scrolled { background: rgba(15,23,42,.95); }
[data-theme="dark"] .search-box,
[data-theme="dark"] .price-card,
[data-theme="dark"] .pack-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .result-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .stat-card-social,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .plan-card,
[data-theme="dark"] .redeem-section,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .content-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .task-stat,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .auth-bottom-feature,
[data-theme="dark"] .stat-card-admin,
[data-theme="dark"] .form-card {
  background: var(--surface); border-color: var(--border);
}
[data-theme="dark"] .hero-stats-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, rgba(37,99,235,.06) 0%, rgba(124,58,237,.04) 100%);
  border-color: rgba(37,99,235,.1);
}
[data-theme="dark"] .hero-vip-banner {
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.05));
}
[data-theme="dark"] .hero-art { background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.05)); }
[data-theme="dark"] .input-line input { background: var(--bg); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: var(--bg); color: var(--text); border-color: var(--border);
}
[data-theme="dark"] .comparison-table th { background: var(--bg-warm); }
[data-theme="dark"] .comparison-table tr:nth-child(even) td { background: rgba(37,99,235,.04); }
[data-theme="dark"] .comparison-table tr:hover td { background: rgba(37,99,235,.08); }
[data-theme="dark"] .comparison-table .highlight { background: rgba(37,99,235,.08); }
[data-theme="dark"] .member-sidebar, [data-theme="dark"] .admin-sidebar { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .admin-content { background: var(--bg); }
[data-theme="dark"] .site-footer { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .price-card:not(.featured) .btn-buy { background: var(--bg); }
[data-theme="dark"] .auth-left { background: var(--bg); }
[data-theme="dark"] .auth-right { background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(124,58,237,.04)); }
[data-theme="dark"] .task-item { background: var(--bg); border-color: var(--border-light); }
[data-theme="dark"] .device-item { background: var(--bg); border-color: var(--border-light); }
[data-theme="dark"] .cookie-platform { background: var(--bg); border-color: var(--border-light); }
[data-theme="dark"] .cookie-intro { background: rgba(37,99,235,.06); }
[data-theme="dark"] .input-wrap { background: var(--bg); }
[data-theme="dark"] .auth-form .field .input-wrap { background: var(--bg); }
[data-theme="dark"] .social-btn { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .log-table th { background: var(--bg-warm); }
[data-theme="dark"] .admin-table th { background: var(--bg-warm); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media(max-width:900px) {
  .hero-section { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1rem; }
  .menu { display: none; }
  .pricing-grid { grid-template-columns: repeat(2,1fr); }
  .packs-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .stats-row-social { grid-template-columns: repeat(2,1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .member-sidebar, .admin-sidebar { width: 180px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .task-stats { grid-template-columns: repeat(2,1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .auth-page { flex-direction: column; }
  .auth-left { padding: 2rem 1rem; }
  .auth-right { padding: 2rem 1rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .packs-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-row-social { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner .actions { justify-content: center; }
  .hero-stats-grid { grid-template-columns: repeat(3,1fr); }
  .member-layout, .admin-layout { flex-direction: column; }
  .member-sidebar, .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: .75rem; display: flex; overflow-x: auto; }
  .member-sidebar a, .admin-sidebar a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .member-sidebar a.active, .admin-sidebar a.active { border-left: none; border-bottom-color: var(--brand); }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .task-stats { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:480px) {
  .hero-left h1 { font-size: 1.5rem; }
  .input-line { flex-direction: column; }
  .video-info { flex-direction: column; }
  .video-info img { width: 100%; height: auto; }
  .stats-row { grid-template-columns: 1fr; }
  .task-stats { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .auth-bottom-features { flex-direction: column; }
}
