/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Light theme (default) */
:root {
  --bg:         #ffffff;
  --bg-tinted:  #f7f7f9;
  --bg-card:    #ffffff;
  --border:     rgba(0,0,0,0.08);
  --border-acc: rgba(109,40,217,0.2);
  --acc:        #6d28d9;
  --acc-2:      #5b21b6;
  --acc-light:  #7c3aed;
  --acc-subtle: rgba(109,40,217,0.07);
  --text:       #0f0f14;
  --muted:      #6b7280;
  --muted-2:    #9ca3af;
  --green:      #059669;
  --yellow:     #d97706;
  --red:        #dc2626;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
  --radius:     14px;
  --radius-lg:  22px;
  --theme-transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* Dark theme overrides */
html.dark {
  --bg:         #07070f;
  --bg-tinted:  #0d0d1a;
  --bg-card:    #0f0f1c;
  --border:     rgba(255,255,255,0.07);
  --border-acc: rgba(139,92,246,0.28);
  --acc:        #7c3aed;
  --acc-2:      #6d28d9;
  --acc-light:  #a78bfa;
  --acc-subtle: rgba(124,58,237,0.12);
  --text:       #f1f5f9;
  --muted:      #94a3b8;
  --muted-2:    #64748b;
  --green:      #10b981;
  --yellow:     #f59e0b;
  --red:        #ef4444;
  --shadow-sm:  0 1px 6px rgba(0,0,0,0.35);
  --shadow:     0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.55);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: var(--theme-transition);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--acc); color: var(--acc); transform: rotate(20deg); }
.icon-sun  { display: block; }
.icon-moon { display: none; }
html.dark .icon-sun  { display: none; }
html.dark .icon-moon { display: block; }
a { color: var(--acc-light); text-decoration: none; }
a:hover { color: var(--acc); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 50px; font-weight: 600; cursor: pointer;
  border: none; transition: all .22s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-sm  { padding: 9px 20px; font-size: 14px; }
.btn-lg  { padding: 15px 30px; font-size: 16px; }
.btn-md  { padding: 12px 24px; font-size: 15px; }

.btn-primary {
  background: linear-gradient(135deg, var(--acc-light), var(--acc-2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(109,40,217,0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(109,40,217,0.38);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-tinted);
  border-color: rgba(0,0,0,0.14);
  transform: translateY(-2px);
  color: var(--text);
}

.btn-danger {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 16px rgba(220,38,38,0.28);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(220,38,38,0.38);
  color: #fff;
}

.btn-success {
  background: var(--green); color: #fff;
  box-shadow: 0 4px 16px rgba(5,150,105,0.28);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(5,150,105,0.38);
  color: #fff;
}

.btn:disabled, .btn.disabled {
  opacity: 0.5; pointer-events: none;
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, var(--acc-light) 0%, #a855f7 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: shimmer 4s ease infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: all .3s ease;
  border-bottom: 1px solid transparent;
}
/* Theme transitions on key elements */
.nav, .feature-card, .step, .price-card, .faq-item, .cta-box, .footer,
.section, .section--tinted, .hero-card, .pay-chip {
  transition: var(--theme-transition), transform .25s ease, border-color .25s ease;
}
html.dark .nav.scrolled { background: rgba(7,7,15,0.88) !important; }
html.dark .hero-card { background: rgba(15,15,28,0.9) !important; }
html.dark .cta-box { background: linear-gradient(140deg, rgba(124,58,237,0.18) 0%, var(--bg-card) 55%) !important; }

.nav.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 17px; flex-shrink: 0;
}
.logo-img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.logo-fallback { font-size: 22px; display: none; }
.logo-vpn { color: var(--acc); }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 15px;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--acc); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--acc); }
.nav-links a.active::after { transform: scaleX(1); }

/* Burger menu */
.burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--muted);
  cursor: pointer; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s ease;
}
.burger:hover { border-color: var(--acc); color: var(--acc); }
.burger svg { width: 18px; height: 18px; }
.burger span {
  display: block; width: 16px; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: all .2s;
}
.burger span + span { margin-top: 3px; }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99; padding: 24px;
  flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 14px 20px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 16px; font-weight: 600;
  transition: all .2s;
}
.mobile-nav a:hover { border-color: var(--border-acc); background: var(--bg-tinted); }
.mobile-nav .btn { justify-content: center; width: 100%; margin-top: 8px; }

/* User avatar & dropdown */
.user-menu { position: relative; display: flex; align-items: center; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc-light), var(--acc-2));
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
  border: 2px solid transparent;
}
.user-avatar:hover { transform: scale(1.06); box-shadow: 0 4px 16px rgba(109,40,217,0.3); }
.user-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 8px;
  min-width: 200px; box-shadow: var(--shadow-lg);
  z-index: 110;
}
.user-dropdown.open { display: block; }
.user-dropdown-name {
  padding: 10px 14px; font-weight: 700; font-size: 14px;
  color: var(--text); border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  background: none; border: none;
  color: var(--muted); font-size: 14px; font-weight: 500;
  cursor: pointer; border-radius: 8px;
  transition: all .15s;
  text-align: left; text-decoration: none;
}
.user-dropdown a:hover, .user-dropdown button:hover {
  background: var(--bg-tinted); color: var(--text);
}
.user-dropdown .logout-btn { color: var(--red); }
.user-dropdown .logout-btn:hover { background: rgba(220,38,38,0.06); color: var(--red); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); will-change: transform;
}
.orb-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  top: -160px; left: -140px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
  bottom: -60px; right: -60px;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.07) 0%, transparent 70%);
  top: 40%; left: 50%; transform: translate(-50%,-50%);
}
.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

.hero-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.22);
  border-radius: 50px; padding: 6px 14px;
  font-size: 13px; color: var(--green); font-weight: 600;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.hero-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -2px; margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 500px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-val   { font-size: 15px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--muted-2); }
.stat-div   { width: 1px; height: 32px; background: var(--border); }

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative; display: flex;
  justify-content: center; align-items: center;
  min-height: 420px;
}
.hero-logo-wrap {
  position: relative; display: flex;
  justify-content: center; align-items: center;
}
.logo-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%,100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.15); opacity: 1; }
}
.hero-logo-img {
  width: 200px; height: 200px; object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(109,40,217,0.2));
  animation: floatLogo 4s ease-in-out infinite;
}
.hero-logo-emoji {
  font-size: 140px; line-height: 1;
  animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.hero-card-1 { top: 10%; right: 0; }
.hero-card-2 { bottom: 20%; left: 0; }
.hero-card-3 { bottom: 8%; right: 8%; }

.hc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hc-dot--green { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }

.parallax-float { animation: cardFloat 5s ease-in-out infinite; }
.hero-card-1 { animation-delay: 0s; }
.hero-card-2 { animation-delay: 1.5s; }
.hero-card-3 { animation-delay: 0.8s; }
@keyframes cardFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(.5deg); }
}

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section--tinted { background: var(--bg-tinted); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--acc); margin-bottom: 10px;
}
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.section-sub   { font-size: 17px; color: var(--muted); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FEATURES ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: default;
}
.feature-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feature-card--wide {
  grid-column: span 2;
  display: flex; align-items: flex-start; gap: 20px;
}
.feature-card--accent {
  background: linear-gradient(140deg, rgba(124,58,237,0.05) 0%, #fff 60%);
  border-color: var(--border-acc);
}
html.dark .feature-card--accent {
  background: linear-gradient(140deg, rgba(124,58,237,0.12) 0%, var(--bg-card) 60%);
}
.feature-icon { font-size: 26px; margin-bottom: 14px; flex-shrink: 0; }
.feature-card--wide .feature-icon { margin-bottom: 0; margin-top: 2px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p  { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ── STEPS ── */
.steps {
  display: flex; align-items: flex-start; gap: 0;
  max-width: 860px; margin: 0 auto;
}
.step {
  flex: 1; background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc-light), var(--acc-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(109,40,217,0.3);
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p  { color: var(--muted); font-size: 14px; line-height: 1.6; }
.step-line {
  flex: 0 0 40px; align-self: center; height: 1.5px;
  background: linear-gradient(90deg, var(--border-acc), var(--border));
  margin-bottom: 0; position: relative;
}
.step-line::after {
  content: '\203A'; position: absolute;
  right: -6px; top: 50%; transform: translateY(-50%);
  color: var(--acc); font-size: 18px; font-weight: 700;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 40px;
}
.price-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.price-card--popular {
  border-color: var(--border-acc);
  background: linear-gradient(160deg, rgba(124,58,237,0.06) 0%, #fff 55%);
  box-shadow: 0 4px 24px rgba(109,40,217,0.12);
}
html.dark .price-card--popular {
  background: linear-gradient(160deg, rgba(124,58,237,0.15) 0%, var(--bg-card) 55%);
}
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--acc-light), var(--acc-2));
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; white-space: nowrap;
}
.price-name   { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-amount { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.price-amount span { font-size: 20px; font-weight: 600; color: var(--muted); }
.price-per    { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.price-save   { font-size: 13px; color: var(--green); font-weight: 600; }
.price-btn    { margin-top: auto; }
.price-btn .btn { width: 100%; justify-content: center; }

.payment-methods { text-align: center; }
.pay-label { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pay-icons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pay-chip  {
  background: var(--bg-tinted); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 7px 16px; font-size: 14px; color: var(--muted);
}

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: var(--border-acc); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--text); font-size: 15px; font-weight: 600;
  padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: left; transition: background .15s;
}
.faq-q:hover { background: var(--bg-tinted); }
.faq-q::after { content: '+'; font-size: 22px; color: var(--acc); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  opacity: 0;
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 4px 24px 20px;
  color: var(--muted); font-size: 15px; line-height: 1.7;
  transform: translateY(10px);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-a p { transform: translateY(0); }

/* ── CTA ── */
.cta-section { padding: 80px 0 100px; }
.cta-box {
  background: linear-gradient(140deg, rgba(124,58,237,0.07) 0%, #fff 50%);
  border: 1.5px solid var(--border-acc);
  border-radius: 28px; padding: 72px 40px; text-align: center;
  box-shadow: 0 8px 40px rgba(109,40,217,0.1);
}
.cta-logo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 20px; }
.cta-emoji-fallback { font-size: 64px; display: block; margin-bottom: 20px; }
.cta-box h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.cta-box p  { color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.cta-box .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: var(--bg-tinted); border-top: 1.5px solid var(--border); padding: 32px 0 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted-2); font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   LANDING: LK SECTION
   ══════════════════════════════════════════════════════════════ */
.lk-section { padding: 96px 0; }
.lk-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 40px;
}
.lk-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  text-align: center;
}
.lk-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.lk-card-icon { font-size: 32px; margin-bottom: 16px; }
.lk-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.lk-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.lk-cta { text-align: center; }

/* ══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
}
.login-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-acc);
  border-radius: 28px; padding: 56px 48px;
  text-align: center; max-width: 480px; width: 100%;
  box-shadow: 0 8px 40px rgba(109,40,217,0.1);
}
.login-card h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.login-card .login-sub {
  color: var(--muted); font-size: 15px; margin-bottom: 36px;
}
.login-tg-widget { margin-bottom: 24px; display: flex; justify-content: center; }
.login-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--muted-2); font-size: 13px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.login-note {
  color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 20px;
}
.login-note a { color: var(--acc-light); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════ */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  margin-bottom: 28px; transition: color .2s;
}
.breadcrumb:hover { color: var(--acc); }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════════ */
.dash-page {
  padding: 100px 0 80px;
  min-height: 100vh;
}
.dash-welcome {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 32px;
}

.dashboard-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 40px;
}
.dash-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.dash-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.dash-card-label {
  font-size: 14px; color: var(--muted); font-weight: 500;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.dash-card-value {
  font-size: 44px; font-weight: 800; line-height: 1;
  letter-spacing: -1px; margin-bottom: 20px;
}
.dash-card-value span { font-size: 22px; color: var(--muted); font-weight: 600; }

/* Quick actions */
.quick-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.quick-actions .btn { flex: 1; min-width: 180px; justify-content: center; }

/* ══════════════════════════════════════════════════════════════
   DEVICE CARDS
   ══════════════════════════════════════════════════════════════ */
.devices-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.devices-header h1 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -0.5px;
}
.devices-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.device-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  display: flex; flex-direction: column; gap: 12px;
}
.device-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.device-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.device-card-name {
  font-size: 16px; font-weight: 700; color: var(--text);
}
.device-card-info {
  display: flex; flex-direction: column; gap: 6px;
}
.device-card-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--muted);
}
.device-card-row span:last-child { font-weight: 600; color: var(--text); }

/* Device status badge */
.device-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.device-status--active {
  background: rgba(5,150,105,0.1); color: var(--green);
  border: 1px solid rgba(5,150,105,0.2);
}
.device-status--suspended {
  background: rgba(217,119,6,0.1); color: var(--yellow);
  border: 1px solid rgba(217,119,6,0.2);
}
.device-status--expired {
  background: rgba(220,38,38,0.1); color: var(--red);
  border: 1px solid rgba(220,38,38,0.2);
}
.device-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.device-status--active .device-status-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.device-status--suspended .device-status-dot { background: var(--yellow); }
.device-status--expired .device-status-dot { background: var(--red); }

/* ══════════════════════════════════════════════════════════════
   DEVICE DETAIL
   ══════════════════════════════════════════════════════════════ */
.device-header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.device-header h1 {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  letter-spacing: -0.5px;
}
.device-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
  margin-bottom: 32px;
}
.device-info-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.device-info-label {
  font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.device-info-value {
  font-size: 16px; font-weight: 700; color: var(--text);
}

.device-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════════════
   COPY FIELD
   ══════════════════════════════════════════════════════════════ */
.copy-field-label {
  font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.copy-field {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.copy-field-input {
  flex: 1; background: none; border: none; color: var(--text);
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  outline: none;
}
.copy-field-btn {
  padding: 8px 16px; border-radius: 50px;
  background: var(--bg-tinted); border: 1.5px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.copy-field-btn:hover { border-color: var(--acc); color: var(--acc); }
.copy-field-btn.copied { background: var(--green); color: #fff; border-color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 200; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  max-width: 600px; width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 80vh; overflow-y: auto;
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h2 { font-size: 22px; font-weight: 800; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-tinted); border: 1.5px solid var(--border);
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all .2s;
}
.modal-close:hover { border-color: var(--acc); color: var(--acc); }

/* Plan picker (reuse pricing cards) */
.plan-picker {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.plan-picker .price-card {
  cursor: pointer; padding: 20px 16px;
}
.plan-picker .price-card:hover { border-color: var(--acc); }
.plan-picker .price-card.selected {
  border-color: var(--acc); border-width: 2px;
  box-shadow: 0 4px 24px rgba(109,40,217,0.2);
}
.plan-picker .price-amount { font-size: 32px; }

/* ══════════════════════════════════════════════════════════════
   TOPUP
   ══════════════════════════════════════════════════════════════ */
.topup-amounts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.amount-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  text-align: center; cursor: pointer;
  transition: all .2s; font-weight: 700; font-size: 18px;
}
.amount-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.amount-card.selected {
  border-color: var(--acc); border-width: 2px;
  background: var(--acc-subtle);
  box-shadow: 0 4px 20px rgba(109,40,217,0.15);
}

.amount-input-wrap {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.amount-input-wrap label {
  font-size: 14px; color: var(--muted); font-weight: 600;
  white-space: nowrap;
}
.amount-input {
  flex: 1; background: var(--bg-card);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; font-size: 18px; font-weight: 700;
  color: var(--text); outline: none;
  transition: border-color .2s; width: 100%;
}
.amount-input:focus { border-color: var(--acc); }
.amount-currency { font-size: 18px; font-weight: 700; color: var(--muted); }
.amount-min-note { font-size: 13px; color: var(--muted-2); margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════════════
   REFERRAL
   ══════════════════════════════════════════════════════════════ */
.referral-link-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-acc);
  border-radius: var(--radius-lg); padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(109,40,217,0.08);
}
.referral-link-card h3 {
  font-size: 14px; color: var(--muted); font-weight: 600;
  margin-bottom: 12px;
}
.referral-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 40px;
}
.referral-stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  text-align: center; box-shadow: var(--shadow-sm);
}
.referral-stat-value {
  font-size: 44px; font-weight: 800; line-height: 1;
  letter-spacing: -1px; margin-bottom: 8px;
}
.referral-stat-label { font-size: 14px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   SETTINGS
   ══════════════════════════════════════════════════════════════ */
.settings-section {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.settings-section h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: 14px; color: var(--muted); }
.settings-value { font-size: 14px; font-weight: 600; color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 24px;
  box-shadow: var(--shadow-lg); z-index: 300;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  transform: translateY(120%); opacity: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast--success { border-color: rgba(5,150,105,0.3); color: var(--green); }
.toast--error { border-color: rgba(220,38,38,0.3); color: var(--red); }
.toast--info { border-color: var(--border-acc); color: var(--acc); }

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 60px 24px;
}
.empty-state-icon {
  font-size: 64px; margin-bottom: 20px; opacity: 0.6;
}
.empty-state h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 10px;
}
.empty-state p {
  color: var(--muted); font-size: 15px; margin-bottom: 24px;
}

/* History list */
.history-section h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
}
.history-list {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.history-item:last-child { border-bottom: none; }
.history-desc { font-size: 14px; font-weight: 500; flex: 1; }
.history-amount { font-size: 14px; font-weight: 700; white-space: nowrap; }
.history-amount.positive { color: var(--green); }
.history-amount.negative { color: var(--red); }
.history-date { font-size: 12px; color: var(--muted-2); white-space: nowrap; }

/* App download section */
.app-section { margin-top: 32px; }
.app-section h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
}
.app-download {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
}
.app-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--text);
  transition: all .2s;
}
.app-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--text);
}
.app-card-icon { font-size: 28px; flex-shrink: 0; }
.app-card-info h4 { font-size: 14px; font-weight: 700; }
.app-card-info p { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   ADDITIONAL DASHBOARD STYLES
   ══════════════════════════════════════════════════════════════ */
.nav-right {
  display: flex; align-items: center; gap: 12px; margin-left: auto;
}
.page-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.dash-section { padding-top: 100px; min-height: 80vh; }
.dash-icon { font-size: 28px; }
.dash-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.dash-card-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}

.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.status-ok { background: rgba(5,150,105,0.1); color: var(--green); border: 1px solid rgba(5,150,105,0.25); }
.status-warn { background: rgba(217,119,6,0.1); color: var(--yellow); border: 1px solid rgba(217,119,6,0.25); }
.status-err { background: rgba(220,38,38,0.1); color: var(--red); border: 1px solid rgba(220,38,38,0.25); }

.device-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.device-name { font-size: 16px; font-weight: 700; color: var(--text); }
.device-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ── Alert ── */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; }
.alert-warn { background: rgba(217,119,6,0.1); color: var(--yellow); border: 1px solid rgba(217,119,6,0.3); }

/* ── Ref landing ── */
.ref-badge {
  display: inline-block; background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; padding: 6px 18px; border-radius: 50px; font-size: 13px;
  font-weight: 700; letter-spacing: .5px;
}
.ref-steps { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; text-align: left; }
.ref-step { display: flex; align-items: flex-start; gap: 14px; }
.ref-step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.ref-step strong { font-size: 14px; color: var(--text); }
.ref-step p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.ref-info-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 20px; margin-top: 24px; display: flex; flex-direction: column; gap: 10px;
}
.ref-info-row { display: flex; justify-content: space-between; font-size: 14px; }
.ref-info-row span { color: var(--muted); }

/* ── Referral page ── */
.ref-link-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; margin-bottom: 20px;
}
.ref-link-label { font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.ref-link-value {
  font-family: monospace; font-size: 13px; color: var(--text);
  background: var(--bg); border-radius: 10px; padding: 10px 14px;
  word-break: break-all; cursor: pointer; border: 1px solid var(--border);
  transition: border-color .2s;
}
.ref-link-value:hover { border-color: var(--accent); }
.ref-copy-btn {
  margin-top: 10px; width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; padding: 10px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: opacity .2s;
}
.ref-copy-btn:hover { opacity: .85; }
.device-btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.device-detail-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.device-name-row { display: flex; align-items: center; gap: 10px; }
.device-meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.meta-item {
  background: var(--bg-tinted); border-radius: var(--radius); padding: 14px;
}
.meta-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.meta-value { font-size: 15px; font-weight: 700; color: var(--text); }

/* Login page */
.login-box {
  background: linear-gradient(140deg, rgba(124,58,237,0.07) 0%, var(--bg-card) 50%);
  border: 1.5px solid var(--border-acc);
  border-radius: 28px; padding: 56px 48px;
  text-align: center; max-width: 480px; margin: 0 auto;
  box-shadow: 0 8px 40px rgba(109,40,217,0.1);
}
html.dark .login-box {
  background: linear-gradient(140deg, rgba(124,58,237,0.15) 0%, var(--bg-card) 50%);
}
.login-box h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.login-sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.login-methods { margin-bottom: 24px; }
.login-tg-widget { display: flex; justify-content: center; margin-bottom: 20px; }
.login-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 20px 0; color: var(--muted-2); font-size: 13px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.login-info { color: var(--muted); font-size: 14px; line-height: 1.7; }
.login-info a { color: var(--acc-light); font-weight: 600; }

/* Activity list */
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-info { display: flex; flex-direction: column; gap: 2px; }
.activity-desc { font-size: 14px; font-weight: 500; color: var(--text); }
.activity-date { font-size: 12px; color: var(--muted-2); }
.activity-amount { font-size: 14px; font-weight: 700; white-space: nowrap; }
.activity-amount.positive { color: var(--green); }
.activity-amount.negative { color: var(--red); }

/* Topup */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topup-input-row { display: flex; align-items: center; gap: 8px; }
.topup-input {
  flex: 1; background: var(--bg-card);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; font-size: 18px; font-weight: 700;
  color: var(--text); outline: none; transition: border-color .2s;
}
.topup-input:focus { border-color: var(--acc); }
.topup-currency { font-size: 18px; font-weight: 700; color: var(--muted); }

/* Copy field inputs */
.copy-field input {
  flex: 1; background: none; border: none; color: var(--text);
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; outline: none;
}

/* App grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

/* Spinner */
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--acc); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* CTA buttons row */
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Utility */
.hidden { display: none !important; }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }

/* Dropdown header */
.dropdown-header {
  padding: 10px 14px; font-weight: 700; font-size: 14px;
  color: var(--text); border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  background: none; border: none;
  color: var(--muted); font-size: 14px; font-weight: 500;
  cursor: pointer; border-radius: 8px; transition: all .15s; text-decoration: none;
}
.dropdown-item:hover { background: var(--bg-tinted); color: var(--text); }

/* Settings list */
.settings-list { display: flex; flex-direction: column; }

/* Modal box (alias for modal inside overlay) */
.modal-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  max-width: 600px; width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 80vh; overflow-y: auto;
  animation: modalIn .25s ease;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--wide { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .lk-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .topup-amounts { grid-template-columns: repeat(2, 1fr); }
  .plan-picker { grid-template-columns: 1fr; }
  .referral-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-line { display: none; }
  .hero-title { letter-spacing: -1px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 40px 20px; }
  .cta-box h2 { font-size: 28px; }
  .lk-grid { grid-template-columns: 1fr; }
  .login-card { padding: 36px 24px; }
  .quick-actions { flex-direction: column; }
  .quick-actions .btn { min-width: unset; }
  .topup-amounts { grid-template-columns: 1fr 1fr; }
  .device-actions { flex-direction: column; }
  .device-actions .btn { width: 100%; justify-content: center; }
  .devices-header { flex-direction: column; align-items: flex-start; }
}
