/* ============================================
   DÜNYAMALIYEV SMS — ULTRA MODERN PURPLE THEME
   v16.0 — OnayTR-style Purple, Slow Phone Animation, Ad Banner
============================================ */

:root {
  /* ONAYTR PURPLE PALETTE */
  --blue:#1E3A8A;          /* deep purple */
  --blue-2:#1D4ED8;        /* primary purple */
  --blue-3:#2563EB;        /* lighter purple */
  --blue-light:#3B82F6;    /* soft purple */
  --blue-deep:#0F172A;     /* very dark purple */
  --blue-darker:#0C1445;   /* near-black purple */
  --cyan:#3B82F6;          /* keep purple tone */
  --indigo:#1E40AF;
  --purple:#1D4ED8;

  --grad:linear-gradient(135deg,#1E3A8A 0%,#1D4ED8 50%,#2563EB 100%);
  --grad-2:linear-gradient(135deg,#0F172A 0%,#1E3A8A 50%,#2563EB 100%);
  --grad-soft:linear-gradient(135deg,#2563EB 0%,#3B82F6 100%);
  --grad-glow:linear-gradient(135deg,#1E3A8A 0%,#3B82F6 100%);
  --grad-hero:linear-gradient(135deg,#0C1445 0%,#1E3A8A 35%,#1D4ED8 70%,#3B82F6 100%);
  --grad-card:linear-gradient(145deg,rgba(37,99,235,.08),rgba(29,78,216,.04));

  --ok:#10B981; --warn:#F59E0B; --bad:#EF4444;
  --radius:18px; --radius-sm:12px; --radius-lg:24px;

  --shadow:0 8px 28px rgba(29,78,216,.18);
  --shadow-lg:0 20px 50px rgba(29,78,216,.28);
  --shadow-glow:0 0 30px rgba(37,99,235,.35);
}

html[data-theme="light"] {
  --bg:#EFF6FF;
  --bg-2:#FFFFFF;
  --card:#FFFFFF;
  --card-2:#EFF6FF;
  --text:#0C1445;
  --muted:#6B7280;
  --border:#DBEAFE;
  --nav:#FFFFFFee;
  --hero-text:#FFFFFF;
}

html[data-theme="dark"] {
  --bg:#0F172A;
  --bg-2:#0C1445;
  --card:#0F172A;
  --card-2:#1E3A8A;
  --text:#EFF6FF;
  --muted:#BFDBFE;
  --border:#1E40AF;
  --nav:#0C1445ee;
  --hero-text:#FFFFFF;
  --shadow:0 8px 28px rgba(0,0,0,.5);
  --shadow-lg:0 20px 50px rgba(0,0,0,.6);
}

* { box-sizing:border-box; margin:0; padding:0; }
*::-webkit-scrollbar { width:8px; height:8px; }
*::-webkit-scrollbar-track { background:transparent; }
*::-webkit-scrollbar-thumb { background:var(--blue-3); border-radius:10px; }

html { scroll-behavior:smooth; }
body {
  font-family:'Inter','Segoe UI','Helvetica Neue',Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  overflow-x:hidden;
  position:relative;
}

/* ANIMATED BACKGROUND BLOBS */
body::before, body::after {
  content:""; position:fixed; pointer-events:none; z-index:0;
  border-radius:50%; filter:blur(80px); opacity:.35;
  animation:floatBlob 18s ease-in-out infinite;
}
body::before {
  width:400px; height:400px;
  background:radial-gradient(circle, var(--blue-3), transparent 70%);
  top:-100px; left:-100px;
}
body::after {
  width:500px; height:500px;
  background:radial-gradient(circle, var(--cyan), transparent 70%);
  bottom:-150px; right:-150px;
  animation-delay:-9s;
}
@keyframes floatBlob {
  0%,100% { transform:translate(0,0) scale(1); }
  33% { transform:translate(60px,-40px) scale(1.1); }
  66% { transform:translate(-40px,60px) scale(.9); }
}

main, header, footer, .profile-bar { position:relative; z-index:1; }

a { color:inherit; text-decoration:none; }
.container { max-width:1180px; margin:0 auto; padding:0 16px; }

/* ====== SCROLL REVEAL ANIMATIONS ====== */
.reveal {
  opacity:0;
  transform:translateY(30px);
  transition:opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-left { opacity:0; transform:translateX(-40px); transition:all .8s cubic-bezier(.16,1,.3,1); }
.reveal-left.visible { opacity:1; transform:translateX(0); }
.reveal-right { opacity:0; transform:translateX(40px); transition:all .8s cubic-bezier(.16,1,.3,1); }
.reveal-right.visible { opacity:1; transform:translateX(0); }
.reveal-scale { opacity:0; transform:scale(.9); transition:all .7s cubic-bezier(.16,1,.3,1); }
.reveal-scale.visible { opacity:1; transform:scale(1); }

/* Stagger delays */
.stagger-1 { transition-delay:.05s; }
.stagger-2 { transition-delay:.12s; }
.stagger-3 { transition-delay:.2s; }
.stagger-4 { transition-delay:.28s; }
.stagger-5 { transition-delay:.36s; }
.stagger-6 { transition-delay:.44s; }
.stagger-7 { transition-delay:.52s; }
.stagger-8 { transition-delay:.6s; }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
@keyframes pulse {
  0%,100% { transform:scale(1); opacity:1; }
  50% { transform:scale(1.05); opacity:.85; }
}
@keyframes shimmer {
  0% { background-position:-1000px 0; }
  100% { background-position:1000px 0; }
}
@keyframes glow {
  0%,100% { box-shadow:0 0 20px rgba(59,130,246,.4); }
  50% { box-shadow:0 0 35px rgba(59,130,246,.7); }
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-8px); }
}
@keyframes spin {
  to { transform:rotate(360deg); }
}
@keyframes slideInRight {
  from { transform:translateX(100%); opacity:0; }
  to { transform:translateX(0); opacity:1; }
}
@keyframes bounceIn {
  0% { transform:scale(0); opacity:0; }
  60% { transform:scale(1.1); opacity:1; }
  100% { transform:scale(1); }
}
@keyframes blinkCursor {
  0%,50% { opacity:1; }
  51%,100% { opacity:0; }
}

/* ====== BUTTONS ====== */
.btn {
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  border:none; cursor:pointer; font-weight:600; font-size:15px;
  padding:13px 22px; border-radius:var(--radius-sm);
  transition:all .25s cubic-bezier(.4,0,.2,1);
  background:var(--card-2); color:var(--text);
  position:relative; overflow:hidden;
}
.btn::before {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform:translateX(-100%); transition:transform .6s;
}
.btn:hover::before { transform:translateX(100%); }
.btn:hover { transform:translateY(-2px); }
.btn-primary {
  background:var(--grad); color:#fff;
  box-shadow:var(--shadow);
}
.btn-primary:hover { box-shadow:var(--shadow-lg); }
.btn-ghost { background:transparent; border:1.5px solid var(--border); }
.btn-block { width:100%; }
.btn-sm { padding:9px 16px; font-size:13px; border-radius:10px; }
.btn-danger { background:linear-gradient(135deg,#EF4444,#DC2626); color:#fff; }
.btn-ok { background:linear-gradient(135deg,#10B981,#059669); color:#fff; }

/* ====== NAVIGATION ====== */
.nav {
  position:sticky; top:0; z-index:100;
  background:var(--nav);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid var(--border);
  animation:fadeIn .5s ease;
}
.nav-inner { display:flex; align-items:center; gap:14px; height:64px; }
.logo { display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; flex-shrink:0; }
.logo .mark {
  width:38px; height:38px; border-radius:11px;
  background:var(--grad); display:grid; place-items:center;
  color:#fff; box-shadow:0 6px 16px rgba(37,99,235,.5);
  position:relative; overflow:hidden;
  animation:glow 3s ease-in-out infinite;
}
.logo .mark::before {
  content:""; position:absolute; inset:-50%;
  background:conic-gradient(from 0deg, transparent, rgba(255,255,255,.3), transparent);
  animation:spin 4s linear infinite;
}
.logo .mark svg { position:relative; z-index:1; }

.nav-links { display:flex; gap:4px; flex:1; margin-left:6px; }
.nav-links a {
  padding:9px 14px; border-radius:10px;
  color:var(--muted); font-weight:600; font-size:14px;
  transition:.2s; white-space:nowrap; position:relative;
}
.nav-links a::after {
  content:""; position:absolute; bottom:4px; left:50%;
  width:0; height:2px; background:var(--grad);
  transition:.3s; transform:translateX(-50%);
}
.nav-links a:hover, .nav-links a.active { color:var(--blue-3); background:rgba(59,130,246,.1); }
.nav-links a:hover::after, .nav-links a.active::after { width:60%; }

.nav-right { display:flex; align-items:center; gap:8px; margin-left:auto; }
.bal-pill {
  display:flex; align-items:center; gap:6px;
  background:var(--grad); color:#fff;
  padding:9px 16px; border-radius:30px;
  font-weight:700; font-size:14px;
  box-shadow:0 4px 14px rgba(37,99,235,.4);
  white-space:nowrap; transition:.2s;
}
.bal-pill:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(37,99,235,.5); }
.icon-btn {
  width:40px; height:40px; border-radius:11px;
  border:1px solid var(--border); background:var(--card);
  display:grid; place-items:center; cursor:pointer;
  color:var(--text); flex-shrink:0; transition:.2s;
}
.icon-btn:hover { border-color:var(--blue-3); background:rgba(59,130,246,.08); color:var(--blue-3); transform:translateY(-1px); }
.lang-sel {
  appearance:none; background:var(--card); border:1px solid var(--border);
  color:var(--text); padding:8px 12px; border-radius:10px;
  font-weight:600; cursor:pointer; font-size:13px; transition:.2s;
}
.lang-sel:hover { border-color:var(--blue-3); }

/* HAMBURGER */
.burger {
  display:none; width:40px; height:40px; border-radius:11px;
  border:1px solid var(--border); background:var(--card);
  place-items:center; cursor:pointer; flex-shrink:0; margin-left:auto;
  transition:.2s;
}
.burger:hover { background:var(--blue-3); }
.burger:hover svg { stroke:#fff; }
.burger svg { stroke:var(--text); transition:.2s; }

/* MOBILE DRAWER */
.nav-drawer {
  display:none; position:fixed; top:0; right:-100%;
  width:82%; max-width:320px; height:100vh;
  background:var(--card); z-index:200;
  box-shadow:-8px 0 40px rgba(0,0,0,.3);
  flex-direction:column;
  transition:right .35s cubic-bezier(.4,0,.2,1);
  overflow-y:auto;
}
.nav-drawer.open { right:0; }
.nav-drawer-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px; border-bottom:1px solid var(--border);
  background:var(--grad); color:#fff;
}
.nav-drawer-header .logo { color:#fff; }
.nav-drawer-header .mark { background:rgba(255,255,255,.2); }
.drawer-close {
  width:36px; height:36px; border-radius:10px;
  border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.15);
  display:grid; place-items:center; cursor:pointer; color:#fff;
}
.nav-drawer a {
  display:flex; align-items:center; gap:12px;
  padding:15px 20px; color:var(--text);
  font-weight:600; font-size:15px;
  border-bottom:1px solid var(--border); transition:.15s;
}
.nav-drawer a:hover { background:rgba(59,130,246,.08); color:var(--blue-3); padding-left:26px; }
.nav-drawer-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(10,18,50,.6); z-index:190;
  backdrop-filter:blur(4px);
}
.nav-drawer-overlay.open { display:block; animation:fadeIn .2s; }
.drawer-bottom { padding:20px; border-top:1px solid var(--border); margin-top:auto; }
.drawer-lang { display:flex; gap:8px; flex-wrap:wrap; }
.drawer-lang a {
  padding:8px 14px; border-radius:10px;
  font-size:13px; font-weight:600;
  background:var(--bg); border:1px solid var(--border);
  color:var(--muted); transition:.15s;
}
.drawer-lang a.active { background:var(--grad); color:#fff; border-color:transparent; }

/* PROFILE BAR (mobile) */
.profile-bar { background:var(--grad); color:#fff; padding:0; }
.profile-bar-inner {
  display:flex; align-items:center; justify-content:space-between;
  height:54px; cursor:pointer; padding:0 16px;
}
.profile-bar-inner span {
  font-weight:700; font-size:15px;
  display:flex; align-items:center; gap:8px;
}
.profile-dropdown {
  background:var(--grad); display:none;
  border-top:1px solid rgba(255,255,255,.2);
  animation:fadeUp .3s ease;
}
.profile-dropdown.show { display:block; }
.profile-dropdown a {
  display:flex; align-items:center; gap:10px;
  padding:13px 20px; color:#fff; font-weight:600; font-size:14px;
  border-bottom:1px solid rgba(255,255,255,.1); transition:.15s;
}
.profile-dropdown a:hover { background:rgba(255,255,255,.12); padding-left:26px; }
.profile-balance-info {
  padding:14px 20px; border-bottom:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:space-between;
}
.profile-balance-info .bal-num { font-size:24px; font-weight:800; }
.topup-btn-sm {
  background:#fff; color:var(--blue-2);
  padding:7px 16px; border-radius:10px;
  font-weight:700; font-size:13px;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}

/* ====== HERO SECTION ====== */
.hero {
  position:relative; overflow:hidden;
  border-radius:24px; margin:24px 0;
  padding:50px 38px;
  background:var(--grad-hero); color:#fff;
  box-shadow:var(--shadow-lg);
  animation:fadeUp .8s cubic-bezier(.16,1,.3,1);
}
.hero::before {
  content:""; position:absolute; right:-80px; top:-80px;
  width:340px; height:340px;
  background:radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
  border-radius:50%;
  animation:float 6s ease-in-out infinite;
}
.hero::after {
  content:""; position:absolute; left:-60px; bottom:-60px;
  width:240px; height:240px;
  background:radial-gradient(circle, rgba(6,182,212,.4), transparent 65%);
  border-radius:50%;
  animation:float 8s ease-in-out infinite reverse;
}
.hero-content { position:relative; z-index:2; display:grid; grid-template-columns:1.3fr 1fr; gap:30px; align-items:center; }
.hero h1 {
  font-size:42px; font-weight:900; line-height:1.1;
  margin-bottom:14px; letter-spacing:-.5px;
}
.hero h1 .accent {
  background:linear-gradient(90deg, #fff, #BFDBFE, #fff);
  -webkit-background-clip:text; background-clip:text;
  color:transparent; background-size:200% auto;
  animation:shimmer 3s linear infinite;
}
.hero p {
  font-size:17px; opacity:.95;
  max-width:540px; margin-bottom:24px;
}
.hero .btn {
  background:#fff; color:var(--blue-2);
  font-weight:800;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
  padding:15px 28px; font-size:16px;
}
.hero .hero-badges { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.hero-badge {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:30px;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(10px);
  font-size:12px; font-weight:600;
  border:1px solid rgba(255,255,255,.2);
}

/* ═══════════════════════════════════════════════════════
   HERO PHONE MOCKUP — OnayTR-style slow vertical OTP stream
   ═══════════════════════════════════════════════════════
   • Phone gentle floats up/down (slow)
   • OTP cards continuously slide DOWN through screen
   • No overlapping (clean vertical queue)
   • Mobile optimized
   ═══════════════════════════════════════════════════════ */
.hero-phone {
  position:relative;
  width:260px;
  height:540px;
  margin:0 auto;
  background:linear-gradient(145deg,#0F172A,#0F0420);
  border-radius:42px;
  padding:14px;
  box-shadow:
    0 30px 70px rgba(29,78,216,.45),
    0 0 0 2px rgba(167,139,250,.12) inset,
    0 0 40px rgba(37,99,235,.25);
  animation:phoneFloat 6s ease-in-out infinite;
  z-index:1;
}
.hero-phone::before {
  content:"";
  position:absolute; top:14px; left:50%;
  transform:translateX(-50%);
  width:110px; height:26px;
  background:#000;
  border-radius:0 0 16px 16px;
  z-index:5;
}
.phone-screen {
  width:100%; height:100%;
  background:linear-gradient(180deg,#FFFFFF 0%,#FAF8FF 100%);
  border-radius:30px;
  overflow:hidden;
  position:relative;
  display:flex; flex-direction:column;
}
.phone-status {
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 22px 8px;
  color:#0C1445;
  font-size:11px; font-weight:700;
  z-index:4; position:relative;
}
.phone-brand {
  text-align:center;
  padding:6px 0 10px;
  border-bottom:1px solid rgba(29,78,216,.08);
}
.phone-brand-logo {
  display:inline-flex; align-items:center; gap:5px;
  font-size:14px; font-weight:900;
  color:#1D4ED8;
  letter-spacing:-.3px;
}
.phone-brand-logo .dot {
  width:18px; height:18px; border-radius:50%;
  background:linear-gradient(135deg,#1D4ED8,#3B82F6);
  display:inline-grid; place-items:center;
  color:#fff; font-size:10px; font-weight:900;
}
.phone-content {
  flex:1;
  position:relative;
  overflow:hidden;
  padding:12px 12px 14px;
}
/* OTP STREAM — vertical infinite slide */
.otp-stream {
  position:absolute;
  left:12px; right:12px; top:12px;
  display:flex; flex-direction:column;
  gap:10px;
  animation:streamScroll 24s linear infinite;
}
@keyframes streamScroll {
  0%   { transform:translateY(0); }
  100% { transform:translateY(-50%); }
}
.otp-card {
  background:linear-gradient(135deg,#EFF6FF 0%,#FFFFFF 100%);
  border:1px solid rgba(29,78,216,.12);
  border-radius:12px;
  padding:10px 11px;
  display:flex; align-items:center; gap:10px;
  box-shadow:0 2px 8px rgba(29,78,216,.06);
  flex-shrink:0;
  opacity:0;
  animation:cardPulse 24s linear infinite;
}
/* Each card lights up when it's in the middle */
.otp-card:nth-child(1)  { animation-delay:0s; }
.otp-card:nth-child(2)  { animation-delay:-3s; }
.otp-card:nth-child(3)  { animation-delay:-6s; }
.otp-card:nth-child(4)  { animation-delay:-9s; }
.otp-card:nth-child(5)  { animation-delay:-12s; }
.otp-card:nth-child(6)  { animation-delay:-15s; }
.otp-card:nth-child(7)  { animation-delay:-18s; }
.otp-card:nth-child(8)  { animation-delay:-21s; }
.otp-card:nth-child(9)  { animation-delay:-24s; }
.otp-card:nth-child(10) { animation-delay:-27s; }
.otp-card:nth-child(11) { animation-delay:-30s; }
.otp-card:nth-child(12) { animation-delay:-33s; }

@keyframes cardPulse {
  0%   { opacity:0; transform:translateX(-20px); }
  8%   { opacity:1; transform:translateX(0); }
  90%  { opacity:1; transform:translateX(0); }
  100% { opacity:0; transform:translateX(20px); }
}
.otp-ico {
  width:36px; height:36px;
  border-radius:10px;
  background:#fff;
  display:grid; place-items:center;
  flex-shrink:0;
  box-shadow:0 2px 6px rgba(29,78,216,.12);
}
.otp-ico svg, .otp-ico img { width:24px; height:24px; }
.otp-meta { flex:1; min-width:0; overflow:hidden; }
.otp-svc {
  color:#0C1445;
  font-size:12px; font-weight:700;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.otp-sub {
  color:#9aa3b2;
  font-size:10px; font-weight:500;
  margin-top:1px;
}
.otp-code {
  color:#1D4ED8;
  font-size:13px; font-weight:900;
  font-family:'Courier New',monospace;
  letter-spacing:1px;
}
.otp-time {
  color:#3B82F6;
  font-size:10px; font-weight:600;
  flex-shrink:0;
}
/* Phone gentle floating */
@keyframes phoneFloat {
  0%, 100% { transform:translateY(0); }
  50%      { transform:translateY(-12px); }
}
/* Soft glow behind phone */
.hero-phone::after {
  content:"";
  position:absolute;
  inset:-30px;
  background:radial-gradient(circle at center, rgba(167,139,250,.35) 0%, transparent 65%);
  filter:blur(40px);
  z-index:-1;
  animation:phoneGlow 6s ease-in-out infinite;
}
@keyframes phoneGlow {
  0%,100% { opacity:.5; }
  50%     { opacity:.85; }
}

/* MOBILE */
@media(max-width:760px) {
  .hero { padding:30px 18px; border-radius:18px; }
  .hero h1 { font-size:26px; line-height:1.2; }
  .hero p  { font-size:14px; }
  .hero-content { grid-template-columns:1fr; }
  .hero-phone {
    width:220px; height:460px;
    margin:14px auto 0;
    border-radius:36px;
  }
  .phone-screen { border-radius:26px; }
  .hero-phone::before { width:90px; height:22px; }
  .otp-card { padding:8px 10px; }
  .otp-ico { width:32px; height:32px; }
  .otp-ico svg, .otp-ico img { width:20px; height:20px; }
  .otp-svc { font-size:11px; }
  .otp-code { font-size:12px; }
}

/* ====== STATS ====== */
.stats-row {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:14px; margin-bottom:24px;
}
.stat-card {
  padding:22px 18px; border-radius:18px;
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:0 4px 16px rgba(15,30,77,.08);
  text-align:center;
  position:relative; overflow:hidden;
  transition:.3s cubic-bezier(.4,0,.2,1);
}
.stat-card::before {
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--grad); transform:scaleX(0); transition:.4s;
}
.stat-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--blue-3); }
.stat-card:hover::before { transform:scaleX(1); }
.stat-icon {
  width:48px; height:48px; border-radius:12px;
  background:var(--grad); display:grid; place-items:center;
  margin:0 auto 12px; color:#fff;
  box-shadow:0 6px 16px rgba(37,99,235,.3);
  transition:.3s;
}
.stat-card:hover .stat-icon { transform:rotate(-8deg) scale(1.1); }
.stat-card .n {
  font-size:28px; font-weight:900;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-card .l { color:var(--muted); font-size:12px; font-weight:600; margin-top:4px; }
@media(max-width:480px) { .stats-row .stat-card .n { font-size:22px; } .stat-icon { width:38px; height:38px; } }

/* ====== SECTION TITLE ====== */
.section-title {
  font-size:22px; font-weight:800;
  margin:30px 0 16px;
  display:flex; align-items:center; gap:10px;
}
.section-title .ico {
  width:36px; height:36px; border-radius:10px;
  background:var(--grad); display:grid; place-items:center;
  color:#fff; box-shadow:0 4px 12px rgba(37,99,235,.3);
}

/* ====== SERVICE SELECTION CARD ====== */
.service-selection-card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 4px 20px rgba(15,30,77,.08);
  margin-bottom:18px;
  position:relative; overflow:hidden;
}
.service-selection-card::before {
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--grad);
}
.service-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:16px;
}
.service-header h3 {
  font-size:16px; font-weight:800;
  display:flex; align-items:center; gap:8px;
}
.service-header h3 .ico-mini {
  width:28px; height:28px; border-radius:8px;
  background:var(--grad); display:grid; place-items:center; color:#fff;
}
.all-services-link {
  color:var(--blue-3); font-weight:700; font-size:13px;
  display:flex; align-items:center; gap:4px; transition:.2s;
}
.all-services-link:hover { color:var(--blue-2); transform:translateX(3px); }

.active-service-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
  border:2px solid var(--blue-3);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(59,130,246,.1),rgba(29,78,216,.05));
  margin-bottom:14px;
  position:relative; overflow:hidden;
}
.active-service-row::before {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(59,130,246,.15),transparent);
  animation:shimmer 3s linear infinite;
}
.active-service-row .svc-name {
  font-size:15px; font-weight:800;
  display:flex; align-items:center; gap:10px;
  position:relative; z-index:1;
}
.search-badge {
  background:var(--grad); color:#fff;
  padding:5px 14px; border-radius:20px;
  font-weight:700; font-size:12px;
  box-shadow:0 3px 10px rgba(37,99,235,.3);
  position:relative; z-index:1;
}

.services-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:10px;
}
.svc-btn {
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-radius:13px;
  border:1.5px solid var(--border); background:var(--card);
  cursor:pointer; transition:.25s cubic-bezier(.4,0,.2,1);
  font-weight:600; font-size:14px;
  position:relative; overflow:hidden;
}
.svc-btn::before {
  content:""; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(59,130,246,.08),rgba(29,78,216,.04));
  opacity:0; transition:.25s;
}
.svc-btn:hover {
  border-color:var(--blue-3);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(37,99,235,.15);
}
.svc-btn:hover::before { opacity:1; }
.svc-btn.active {
  border-color:var(--blue-3);
  background:linear-gradient(135deg,rgba(59,130,246,.12),rgba(29,78,216,.06));
  color:var(--blue-3);
}
.svc-btn img, .svc-btn .svc-emoji {
  width:28px; height:28px; border-radius:8px; flex-shrink:0;
  position:relative; z-index:1;
}
.svc-btn span { position:relative; z-index:1; }

/* ====== COUNTRY SECTION ====== */
.country-section {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 4px 20px rgba(15,30,77,.08);
  position:relative; overflow:hidden;
}
.country-section::before {
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--grad);
}
.country-search { position:relative; margin-bottom:16px; }
.country-search input {
  padding:12px 14px 12px 46px;
  border:1.5px solid var(--border); border-radius:13px;
  background:var(--bg); color:var(--text);
  font-size:14px; width:100%; transition:.2s;
}
.country-search input:focus {
  outline:none; border-color:var(--blue-3);
  box-shadow:0 0 0 4px rgba(59,130,246,.15);
  background:var(--card-2);
}
.country-search .search-icon {
  position:absolute; left:14px; top:50%;
  transform:translateY(-50%);
  color:var(--muted); pointer-events:none;
}
.country-table-header {
  display:flex; justify-content:space-between;
  padding:10px 4px; font-size:11px; font-weight:800;
  color:var(--muted); text-transform:uppercase;
  letter-spacing:.06em; margin-bottom:4px;
}
.country-row {
  display:flex; align-items:center;
  padding:13px 12px; border-radius:13px;
  cursor:pointer; transition:.2s;
  border:1px solid transparent; margin-bottom:5px;
}
.country-row:hover {
  background:linear-gradient(135deg,rgba(59,130,246,.06),rgba(29,78,216,.03));
  border-color:var(--blue-3);
  transform:translateX(4px);
}
.country-row .flag-name { display:flex; align-items:center; gap:11px; flex:1; font-weight:600; font-size:14px; }
.country-row .flag-img { width:32px; height:24px; border-radius:5px; object-fit:cover; font-size:22px; line-height:1; }
.country-row .qty-num { color:var(--muted); font-size:13px; font-weight:600; margin-right:12px; }
.price-btn {
  background:var(--grad); color:#fff;
  padding:7px 12px; border-radius:11px;
  font-weight:700; font-size:13px;
  white-space:nowrap;
  box-shadow:0 4px 10px rgba(37,99,235,.3);
  transition:.2s;
  display:inline-flex; flex-direction:column; align-items:center;
  line-height:1.15; min-width:74px;
}
.price-btn > span:first-child { font-size:13px; font-weight:800; }
.price-btn .price-azn {
  font-size:10.5px; opacity:.9; font-weight:600;
  border-top:1px solid rgba(255,255,255,.25);
  padding-top:2px; margin-top:2px; width:100%;
  text-align:center;
}
.country-row:hover .price-btn { transform:scale(1.05); box-shadow:0 6px 14px rgba(37,99,235,.4); }
.show-more-btn {
  width:100%; padding:14px; text-align:center;
  border-radius:13px; border:none;
  background:var(--grad); color:#fff;
  font-weight:700; font-size:14px; cursor:pointer;
  margin-top:12px; box-shadow:var(--shadow);
  transition:.2s; position:relative; overflow:hidden;
}
.show-more-btn::before {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);
  transform:translateX(-100%); transition:.6s;
}
.show-more-btn:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.show-more-btn:hover::before { transform:translateX(100%); }

/* HIGH DELIVERY */
.high-delivery-section { margin-bottom:14px; }
.high-delivery-label {
  display:flex; align-items:center; gap:8px;
  font-size:14px; font-weight:800;
  color:var(--text); margin-bottom:12px;
}
.hd-icon {
  width:24px; height:24px; border-radius:7px;
  background:linear-gradient(135deg,#F59E0B,#EF4444);
  display:grid; place-items:center; color:#fff;
}
.high-delivery-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px; }
.hd-card {
  display:flex; align-items:center; gap:10px;
  padding:12px; border-radius:13px;
  border:1px solid var(--border); background:var(--card);
  cursor:pointer; transition:.25s;
  position:relative; overflow:hidden;
}
.hd-card::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:var(--grad); transform:scaleY(0); transition:.3s;
}
.hd-card:hover {
  border-color:var(--blue-3); transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(37,99,235,.15);
}
.hd-card:hover::before { transform:scaleY(1); }
.hd-card .flag-img { font-size:24px; width:30px; text-align:center; }
.hd-card .cnt-name { flex:1; font-weight:700; font-size:13px; }
.hd-card .qty-s { font-size:11px; color:var(--muted); font-weight:500; }
.hd-card .hd-price {
  background:var(--grad); color:#fff;
  padding:6px 11px; border-radius:9px;
  font-weight:700; font-size:12px; white-space:nowrap;
  display:flex; flex-direction:column; align-items:center; line-height:1.2;
}
.hd-card .hd-price .price-azn { font-size:10px; opacity:.85; font-weight:600; }

/* ====== CUSTOMER FAVORITES ====== */
.favs-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:18px; }
.fav-card {
  display:flex; align-items:center; gap:10px;
  padding:12px; border-radius:13px;
  border:1px solid var(--border); background:var(--card);
  cursor:pointer; transition:.25s;
  position:relative; overflow:hidden;
}
.fav-card::after {
  content:""; position:absolute; bottom:0; left:0; right:0; height:2px;
  background:var(--grad); transform:scaleX(0); transition:.3s;
}
.fav-card:hover { border-color:var(--blue-3); transform:translateY(-3px); box-shadow:0 8px 20px rgba(37,99,235,.15); }
.fav-card:hover::after { transform:scaleX(1); }
.fav-card .fav-meta { flex:1; min-width:0; }
.fav-card .fav-meta .svc { font-size:13px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fav-card .fav-meta .cnt { font-size:11px; color:var(--muted); font-weight:500; }
.fav-price {
  background:var(--grad); color:#fff;
  padding:6px 11px; border-radius:9px;
  font-weight:700; font-size:12px; white-space:nowrap;
  display:flex; flex-direction:column; align-items:center; line-height:1.2;
}
.fav-price .price-azn { font-size:10px; opacity:.85; font-weight:600; }

/* ====== CARDS ====== */
.card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:0 4px 20px rgba(15,30,77,.06);
  position:relative; overflow:hidden;
}
.card.glass {
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(59,130,246,.04));
  backdrop-filter:blur(20px);
}
.grid { display:grid; gap:12px; }
.grid-2 { grid-template-columns:repeat(2,1fr); }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-4 { grid-template-columns:repeat(4,1fr); }
@media(max-width:900px) { .grid-3, .grid-4 { grid-template-columns:repeat(2,1fr); } }
@media(max-width:540px) { .grid-2 { grid-template-columns:1fr; } .grid-3, .grid-4 { grid-template-columns:1fr; } }

/* ====== HOW IT WORKS ====== */
.how-steps { display:flex; flex-direction:column; gap:0; }
.how-step {
  display:flex; align-items:flex-start; gap:18px;
  padding:20px 0;
  border-bottom:1px solid var(--border);
  position:relative;
  transition:.3s;
}
.how-step:last-child { border-bottom:none; }
.how-step:hover { transform:translateX(6px); }
.step-num {
  width:48px; height:48px; border-radius:50%;
  background:var(--grad); color:#fff;
  display:grid; place-items:center;
  font-weight:900; font-size:20px;
  flex-shrink:0;
  box-shadow:0 6px 16px rgba(37,99,235,.4);
  position:relative;
}
.step-num::before {
  content:""; position:absolute; inset:-4px;
  border-radius:50%; border:2px dashed var(--blue-3);
  opacity:.5; animation:spin 12s linear infinite;
}
.step-body h4 { font-weight:800; font-size:16px; margin-bottom:5px; }
.step-body p { color:var(--muted); font-size:13px; }

/* ====== TILES ====== */
.tile {
  display:flex; align-items:center; gap:12px;
  padding:14px 16px;
  border:1.5px solid var(--border); border-radius:14px;
  background:var(--card); cursor:pointer;
  transition:.25s cubic-bezier(.4,0,.2,1);
  font-weight:600;
  position:relative; overflow:hidden;
}
.tile:hover { border-color:var(--blue-3); transform:translateY(-2px); box-shadow:0 8px 20px rgba(37,99,235,.15); }
.tile.active { border-color:var(--blue-3); background:linear-gradient(135deg,rgba(59,130,246,.08),rgba(29,78,216,.04)); color:var(--blue-3); }
.tile .ico { flex-shrink:0; }
.tile .meta { flex:1; min-width:0; }
.tile .meta small { display:block; color:var(--muted); font-weight:500; font-size:12px; }
.price-pill {
  background:var(--grad); color:#fff;
  font-weight:700; padding:7px 14px; border-radius:22px;
  font-size:13px; white-space:nowrap;
  box-shadow:0 4px 10px rgba(37,99,235,.3);
}
.qty { color:var(--muted); font-size:12px; font-weight:600; }

/* ====== TABLE ====== */
table { width:100%; border-collapse:collapse; }
th, td { padding:13px 15px; text-align:left; border-bottom:1px solid var(--border); font-size:14px; }
th { color:var(--muted); font-weight:800; font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
tr { transition:.2s; }
tr:hover td { background:rgba(59,130,246,.05); }

/* ====== FORMS ====== */
.form-group { margin-bottom:18px; }
label { display:block; font-weight:600; font-size:13px; margin-bottom:8px; color:var(--muted); }
input, select, textarea {
  width:100%; padding:13px 16px;
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  background:var(--card-2); color:var(--text);
  font-size:15px; font-family:inherit; transition:.2s;
}
input:focus, select:focus, textarea:focus {
  outline:none; border-color:var(--blue-3);
  box-shadow:0 0 0 4px rgba(59,130,246,.15);
}
.auth-wrap { max-width:440px; margin:50px auto; }
.auth-wrap .card {
  padding:32px;
  background:linear-gradient(145deg,var(--card),var(--card-2));
}
.auth-wrap h2 {
  font-size:28px; font-weight:900; margin-bottom:8px;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ====== BADGES ====== */
.badge { display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border-radius:22px; font-size:12px; font-weight:700; }
.b-ok { background:rgba(16,185,129,.15); color:var(--ok); border:1px solid rgba(16,185,129,.3); }
.b-warn { background:rgba(245,158,11,.15); color:var(--warn); border:1px solid rgba(245,158,11,.3); }
.b-bad { background:rgba(239,68,68,.15); color:var(--bad); border:1px solid rgba(239,68,68,.3); }
.b-blue { background:rgba(59,130,246,.15); color:var(--blue-3); border:1px solid rgba(59,130,246,.3); }

/* ====== FLASH MESSAGES ====== */
.flash {
  padding:14px 18px; border-radius:12px;
  font-weight:600; margin:16px 0;
  animation:fadeUp .4s ease;
}
.flash.ok { background:rgba(16,185,129,.12); color:var(--ok); border:1px solid rgba(16,185,129,.3); }
.flash.err { background:rgba(239,68,68,.12); color:var(--bad); border:1px solid rgba(239,68,68,.3); }

/* ====== FAQ ====== */
.faq-item {
  border:1px solid var(--border); border-radius:14px;
  margin-bottom:10px; background:var(--card);
  overflow:hidden; transition:.2s;
}
.faq-item:hover { border-color:var(--blue-3); }
.faq-q {
  padding:16px 20px; font-weight:700;
  cursor:pointer; display:flex;
  justify-content:space-between; align-items:center;
  font-size:14px; transition:.2s;
}
.faq-a {
  padding:0 20px; max-height:0; overflow:hidden;
  color:var(--muted); transition:.3s; font-size:14px;
}
.faq-item.open { box-shadow:0 8px 20px rgba(37,99,235,.1); }
.faq-item.open .faq-a { padding:0 20px 18px; max-height:400px; }
.faq-item.open .faq-q .faq-plus { transform:rotate(45deg); }
.faq-plus {
  width:28px; height:28px; border-radius:8px;
  background:var(--grad); color:#fff;
  display:grid; place-items:center;
  transition:.3s; font-size:18px; font-weight:900;
  flex-shrink:0;
}

/* ====== FOOTER ====== */
footer {
  margin-top:60px; padding:40px 0 30px;
  border-top:1px solid var(--border);
  background:var(--bg-2);
  position:relative;
}
.foot-grid {
  display:flex; flex-wrap:wrap; gap:32px;
  justify-content:space-between; align-items:flex-start;
}
.foot-links { display:flex; gap:18px; flex-wrap:wrap; color:var(--muted); font-size:14px; }
.foot-links a:hover { color:var(--blue-3); }
.foot-social { display:flex; gap:10px; margin-top:14px; }
.foot-social a {
  width:40px; height:40px; border-radius:11px;
  border:1px solid var(--border); background:var(--card);
  display:grid; place-items:center;
  transition:.2s; color:var(--muted);
}
.foot-social a:hover {
  border-color:var(--blue-3); background:var(--grad);
  color:#fff; transform:translateY(-3px);
}

/* ====== PAYMENT METHODS BAR (like 3rd screenshot) ====== */
.pay-bar {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px 18px;
  margin-top:18px;
  display:flex; align-items:center; gap:14px;
  flex-wrap:wrap;
  box-shadow:0 4px 16px rgba(15,30,77,.08);
}
.pay-bar-label { font-weight:700; font-size:13px; color:var(--muted); white-space:nowrap; }
.pay-icons-row {
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
}
.pay-icon-chip {
  width:44px; height:30px; border-radius:7px;
  background:var(--card-2); border:1px solid var(--border);
  display:grid; place-items:center;
  transition:.2s; padding:4px;
}
.pay-icon-chip:hover { transform:translateY(-2px); border-color:var(--blue-3); box-shadow:0 4px 12px rgba(37,99,235,.2); }
.pay-icon-chip img, .pay-icon-chip svg { max-width:100%; max-height:100%; display:block; }
.pay-more {
  background:var(--grad); color:#fff;
  padding:5px 12px; border-radius:8px;
  font-weight:700; font-size:12px;
}

/* ====== OTP / CODE BOX ====== */
.codebox {
  font-family:'JetBrains Mono','Courier New',monospace;
  font-size:32px; font-weight:800; letter-spacing:5px;
  text-align:center; padding:22px;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(59,130,246,.1),rgba(29,78,216,.05));
  border:2px dashed var(--blue-3);
  color:var(--blue-3);
  position:relative; overflow:hidden;
  animation:glow 2s ease-in-out infinite;
}
.codebox::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(59,130,246,.15),transparent);
  animation:shimmer 2s linear infinite;
}

/* ====== LOADING SPINNER ====== */
.spinner {
  width:24px; height:24px;
  border:3px solid rgba(59,130,246,.2);
  border-top-color:var(--blue-3);
  border-radius:50%;
  animation:spin 1s linear infinite;
  display:inline-block;
}

/* ====== UTILS ====== */
.muted { color:var(--muted); }
.center { text-align:center; }
.spacer { height:14px; }
.flag { font-size:22px; }
.row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.between { justify-content:space-between; }
hr { border:none; border-top:1px solid var(--border); margin:20px 0; }

/* ====== ADMIN ====== */
.admin-stats-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:24px;
}
@media(max-width:900px) { .admin-stats-grid { grid-template-columns:repeat(2,1fr); gap:12px; } }
@media(max-width:480px) { .admin-stats-grid { grid-template-columns:repeat(2,1fr); gap:10px; } }
.admin-layout { display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
.admin-side { background:var(--card); border-right:1px solid var(--border); padding:20px 14px; }
.admin-side a {
  display:flex; align-items:center; gap:10px;
  padding:11px 13px; border-radius:11px;
  color:var(--muted); font-weight:600; font-size:14px;
  margin-bottom:4px; transition:.2s;
}
.admin-side a:hover, .admin-side a.active { background:rgba(59,130,246,.1); color:var(--blue-3); padding-left:18px; }
.admin-main { padding:28px 32px; overflow:auto; }
@media(max-width:760px) {
  .admin-layout { grid-template-columns:1fr; }
  .admin-side { display:flex; flex-wrap:wrap; gap:4px; border-right:none; border-bottom:1px solid var(--border); }
  .admin-side a { margin-bottom:0; }
}

/* Admin topbar */
.admin-topbar { display:none; align-items:center; gap:12px; padding:0 16px; height:60px; background:var(--card); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; }
.admin-topbar .logo { font-size:16px; font-weight:800; display:flex; align-items:center; gap:8px; }
.admin-ham { width:40px; height:40px; border-radius:11px; border:1px solid var(--border); background:var(--bg); display:grid; place-items:center; cursor:pointer; margin-left:auto; flex-shrink:0; }
.admin-ham svg { stroke:var(--text); }
.admin-overlay { display:none; position:fixed; inset:0; background:rgba(10,18,50,.6); z-index:190; backdrop-filter:blur(4px); }
.admin-overlay.open { display:block; animation:fadeIn .2s; }
.admin-drawer { display:none; position:fixed; top:0; left:-100%; width:270px; height:100vh; background:var(--card); z-index:200; flex-direction:column; transition:left .35s cubic-bezier(.4,0,.2,1); overflow-y:auto; box-shadow:8px 0 40px rgba(0,0,0,.3); }
.admin-drawer.open { left:0; }
.admin-drawer-head { display:flex; align-items:center; justify-content:space-between; padding:20px 18px; border-bottom:1px solid var(--border); background:var(--grad); color:#fff; }
.admin-drawer-close { width:36px; height:36px; border-radius:10px; border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.15); display:grid; place-items:center; cursor:pointer; color:#fff; }
.admin-drawer a { display:flex; align-items:center; gap:11px; padding:14px 20px; color:var(--text); font-weight:600; font-size:14px; border-bottom:1px solid var(--border); transition:.15s; }
.admin-drawer a:hover, .admin-drawer a.active-link { color:var(--blue-3); background:rgba(59,130,246,.06); padding-left:26px; }
@media(max-width:860px) {
  .admin-topbar { display:flex; }
  .admin-layout { display:block; }
  .admin-side { display:none; }
  .admin-main { padding:18px 16px; }
  .admin-drawer { display:flex; }
}
@media(min-width:861px) {
  .admin-ham, .admin-overlay, .admin-drawer { display:none!important; }
}

/* ====== MOBILE RESPONSIVE ====== */
@media(max-width:640px) {
  .nav-links { display:none !important; }
  .burger { display:grid !important; visibility:visible !important; opacity:1 !important; }
  .nav-right .btn, .nav-right .lang-sel { display:none !important; }
  .nav-right .icon-btn:not(#notifBell):not(.burger) { display:none !important; }
  .nav-right { display:flex !important; align-items:center; gap:6px; }
  .profile-bar { display:block !important; }
  .nav-drawer { display:flex !important; }
  .services-grid { grid-template-columns:1fr 1fr; }
  .favs-grid { grid-template-columns:1fr 1fr; }
  .high-delivery-grid { grid-template-columns:1fr 1fr; }
  .stats-row { grid-template-columns:repeat(3,1fr); gap:8px; }
  .stat-card { padding:14px 8px; }
  .stat-icon { width:32px; height:32px; margin-bottom:6px; }
  .stat-icon svg { width:18px; height:18px; }
  .stat-card .n { font-size:18px; }
  .stat-card .l { font-size:10px; }
  .foot-grid { flex-direction:column; gap:22px; }
  .foot-links { gap:14px; }
  .container { padding:0 12px; }
  .section-title { font-size:18px; }
  .section-title .ico { width:30px; height:30px; }
  .pay-bar { padding:12px; gap:10px; }
  .pay-icon-chip { width:38px; height:26px; }
}
@media(min-width:641px) { .profile-bar { display:none; } }

/* ====== RANK CHIPS ====== */
.rank-plat { background:linear-gradient(135deg,#3B82F6,#1D4ED8); color:#fff; padding:4px 10px; border-radius:12px; font-size:12px; font-weight:700; }
.rank-gold { background:linear-gradient(135deg,#FCD34D,#F59E0B); color:#fff; padding:4px 10px; border-radius:12px; font-size:12px; font-weight:700; }
.rank-silver { background:linear-gradient(135deg,#94A3B8,#64748B); color:#fff; padding:4px 10px; border-radius:12px; font-size:12px; font-weight:700; }
.rank-bronze { background:linear-gradient(135deg,#FB923C,#EA580C); color:#fff; padding:4px 10px; border-radius:12px; font-size:12px; font-weight:700; }
.rank-new { background:linear-gradient(135deg,#34D399,#10B981); color:#fff; padding:4px 10px; border-radius:12px; font-size:12px; font-weight:700; }

/* ====== TUTORIAL STEPS (HOW IT WORKS) ====== */
.section-sub { text-align:center; color:var(--muted); font-size:14px; margin-top:-10px; margin-bottom:20px; }
.tutorial-steps { display:flex; flex-direction:column; gap:20px; margin-bottom:30px; }

.tutorial-step {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:center;
  background:var(--card);
  border:1.5px solid var(--border);
  border-radius:var(--radius-lg);
  padding:28px 32px;
  box-shadow:var(--shadow);
  transition:.3s;
}
.tutorial-step:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px); }
.tutorial-step-rev .tut-left { order:2; }
.tutorial-step-rev .tut-phone-wrap { order:1; }

.tut-step-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  background:var(--grad); color:#fff;
  font-weight:900; font-size:18px;
  box-shadow:0 6px 16px rgba(29,78,216,.4);
  margin-bottom:14px;
  position:relative;
}
.tut-step-badge::before {
  content:""; position:absolute; inset:-4px;
  border-radius:50%; border:2px dashed var(--blue-3);
  opacity:.5; animation:spin 12s linear infinite;
}
.tut-title { font-size:20px; font-weight:800; margin-bottom:8px; color:var(--text); }
.tut-desc { font-size:14px; line-height:1.6; }

/* Phone mockup */
.tut-phone-wrap { display:flex; justify-content:center; }
.tut-phone {
  width:200px;
  background:#1a1a2e;
  border-radius:30px;
  padding:14px 10px 18px;
  box-shadow:0 20px 50px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.08);
  position:relative;
  flex-shrink:0;
}
.tut-phone-notch {
  width:60px; height:8px;
  background:#000; border-radius:10px;
  margin:0 auto 10px;
}
.tut-phone-screen {
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  min-height:260px;
}
html[data-theme="dark"] .tut-phone-screen { background:#F8FAFF; }

.tut-screen-header {
  background:var(--grad);
  color:#fff;
  font-weight:700;
  font-size:13px;
  padding:10px 12px;
  text-align:center;
  border-radius:12px 12px 0 0;
}
.tut-search-bar {
  display:flex; align-items:center; gap:6px;
  margin:8px; padding:7px 10px;
  background:#f3f4f6; border-radius:10px;
  font-size:11px; color:#9ca3af;
}
.tut-svc-list { padding:0 6px 8px; }
.tut-svc-row {
  display:flex; align-items:center; gap:10px;
  padding:8px 8px;
  border-radius:10px;
  font-size:12px; font-weight:600; color:#1f2937;
  cursor:default;
  transition:.2s;
}
.tut-svc-row + .tut-svc-row { border-top:1px solid #f3f4f6; }
.tut-svc-active { background:var(--grad); color:#fff !important; border-radius:10px; }
.tut-svc-active span { color:#fff; }
.tut-svc-ico { width:22px; height:22px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.tut-svc-ico svg { width:20px; height:20px; }

/* Country list */
.tut-country-list { padding:0 6px 8px; }
.tut-country-row {
  display:flex; align-items:center; gap:8px;
  padding:7px 8px;
  font-size:11px; font-weight:600; color:#1f2937;
  border-radius:8px;
  cursor:default;
}
.tut-country-row + .tut-country-row { border-top:1px solid #f3f4f6; }
.tut-country-active { background:linear-gradient(135deg,rgba(29,78,216,.12),rgba(37,99,235,.06)); border:1.5px solid var(--blue-3) !important; }
.tut-country-row span:nth-child(2) { flex:1; }
.tut-price { color:var(--blue-2); font-weight:700; font-size:11px; }

/* OTP Stream Phone */
.tut-screen-otp { position:relative; min-height:280px; overflow:hidden; background:#f8faff; }
.tut-otp-success {
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  background:var(--grad);
  color:#fff; font-weight:700; font-size:12px;
  border-radius:12px 12px 0 0;
}
.tut-otp-num {
  text-align:center; font-size:11px; color:#9ca3af;
  padding:6px;
  border-top:1px solid #e5e7eb;
  position:absolute; bottom:0; left:0; right:0;
  background:#fff;
}
/* Falling OTP items */
.tut-otp-stream {
  position:relative;
  height:210px;
  overflow:hidden;
  padding:6px 8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.tut-otp-item {
  display:flex; align-items:center; gap:8px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:7px 9px;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
  font-size:11px; color:#1f2937;
  flex-shrink:0;
  animation:otpFall 4s ease-in-out infinite;
  opacity:0;
}
.tut-otp-item b { font-size:11px; font-weight:700; display:block; margin-bottom:1px; }
.tut-otp-item small { font-size:10px; color:#6b7280; }
.tut-otp-item small strong { color:var(--blue-2); font-weight:700; }
.tut-otp-svc-ico { width:22px; height:22px; flex-shrink:0; }
.tut-otp-svc-ico svg { width:20px; height:20px; }
.tut-otp-t { margin-left:auto; color:#9ca3af; font-size:10px; white-space:nowrap; flex-shrink:0; }

@keyframes otpFall {
  0%   { opacity:0; transform:translateY(-18px); }
  15%  { opacity:1; transform:translateY(0); }
  80%  { opacity:1; transform:translateY(0); }
  100% { opacity:0; transform:translateY(8px); }
}

.tut-otp-1 { animation-delay:0s; }
.tut-otp-2 { animation-delay:.8s; }
.tut-otp-3 { animation-delay:1.6s; }
.tut-otp-4 { animation-delay:2.4s; }
.tut-otp-5 { animation-delay:3.2s; }
.tut-otp-6 { animation-delay:4.0s; }

/* Mobile responsive */
@media(max-width:640px) {
  .tutorial-step { grid-template-columns:1fr; gap:20px; padding:20px 16px; }
  .tutorial-step-rev .tut-left { order:0; }
  .tutorial-step-rev .tut-phone-wrap { order:0; }
  .tut-phone { width:180px; }
  .tut-title { font-size:17px; }
}

/* ====== MOBILE REVEAL FIX ====== */
/* On mobile, reveal animations can get stuck — force them visible */
@media(max-width:640px) {
  .reveal-left, .reveal-right {
    transform: translateX(0) !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .country-row {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Burger must always show on mobile */
  .burger {
    display: grid !important;
  }
  /* nav-right: keep bell + burger visible */
  .nav-right .icon-btn:not(#notifBell):not(.burger) {
    display: none !important;
  }
  /* Country section mobile tweaks */
  .country-section { padding: 14px 10px; }
  .country-row { padding: 12px 8px; }
  .country-row .flag-name { font-size: 13px; }
  .price-btn { min-width: 64px; padding: 6px 8px; }
  .country-table-header { padding: 8px 4px; }
}
