/* ==================================================================
   OTPConnect — design system (sky blue, gradients, light default + dark)
   ================================================================== */

:root {
  --sky: #0ea5e9;
  --sky-2: #38bdf8;
  --sky-3: #7dd3fc;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #0ea5e9, #6366f1);
  --grad-2: linear-gradient(135deg, #22d3ee, #0ea5e9);
  --grad-text: linear-gradient(90deg, #0284c7, #0ea5e9 35%, #6366f1 70%, #22d3ee);
  --bg: #f4faff;
  --bg-alt: #eaf5ff;
  --surface: #ffffff;
  --surface-2: #f8fcff;
  --text: #0b2239;
  --muted: #527089;
  --line: #d8ecfb;
  --line-strong: #bfe0f7;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
  --shadow: 0 14px 40px rgba(14, 165, 233, 0.12);
  --shadow-lg: 0 26px 70px rgba(14, 165, 233, 0.2);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --nav-h: 66px;
  --font: 'Outfit', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

[data-theme='dark'] {
  --bg: #060f1c;
  --bg-alt: #081627;
  --surface: #0c1b2e;
  --surface-2: #102239;
  --text: #e8f4ff;
  --muted: #86a3c0;
  --line: #16304d;
  --line-strong: #1e4066;
  --shadow: 0 14px 40px rgba(2, 8, 20, 0.55);
  --shadow-lg: 0 26px 70px rgba(2, 8, 20, 0.7);
  --grad-text: linear-gradient(90deg, #38bdf8, #7dd3fc 35%, #a5b4fc 70%, #67e8f9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
body, a, .btn { color-scheme: light; }
[data-theme='dark'] body { color-scheme: dark; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; }
h2 { font-size: clamp(22px, 3.2vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
a { color: var(--sky); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--indigo); }
img, svg { max-width: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.center { text-align: center; }
.red { color: var(--err); }
.wrap { white-space: normal; }

::selection { background: rgba(56, 189, 248, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--sky), var(--indigo)); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--sky); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------------- background effects ---------------- */
.ico { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; flex: 0 0 auto; }
#pcanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-blobs i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  animation: blob 26s ease-in-out infinite alternate;
}
.bg-blobs .b1 { width: 480px; height: 480px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(14,165,233,.5), transparent 65%); }
.bg-blobs .b2 { width: 420px; height: 420px; top: 30%; right: -140px; background: radial-gradient(circle, rgba(99,102,241,.4), transparent 65%); animation-delay: -8s; }
.bg-blobs .b3 { width: 380px; height: 380px; bottom: -140px; left: 30%; background: radial-gradient(circle, rgba(34,211,238,.4), transparent 65%); animation-delay: -16s; }
@keyframes blob {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -40px) scale(1.15); }
}
main, footer, .site-nav { position: relative; z-index: 1; }
main { min-height: 70vh; padding-bottom: 60px; }

/* ---------------- nav ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s, transform 0.3s;
}
.site-nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.logo b { background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradSlide 5s linear infinite; }
@keyframes gradSlide { to { background-position: 200% 0; } }
.main-menu { display: flex; gap: 4px; margin-left: 10px; }
.main-menu a { position: relative; padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14.5px; opacity: 0.85; }
.main-menu a:hover { opacity: 1; background: color-mix(in srgb, var(--sky) 8%, transparent); }
.main-menu a.on { opacity: 1; color: var(--sky); }
.main-menu a.on::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px;
  background: var(--grad);
}
.nav-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.3s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--sky); }
.icon-btn .ico { width: 17px; height: 17px; }
#themeBtn .s-moon { display: none; }
[data-theme='dark'] #themeBtn .s-sun { display: none; }
[data-theme='dark'] #themeBtn .s-moon { display: inline-flex; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 700;
}
.balance-pill .ico { width: 15px; height: 15px; color: var(--sky); }
.balance-pill b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.burger { display: none; }
.user-chip { position: relative; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--sky); color: #fff; font-weight: 800;
  background: var(--grad); cursor: pointer; font-family: var(--font); font-size: 15px;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4); transition: transform 0.2s;
}
.avatar:hover { transform: scale(1.06); }
.user-menu {
  position: absolute; right: 0; top: 48px; min-width: 210px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.22s ease;
  display: grid;
}
.user-chip.open .user-menu { opacity: 1; visibility: visible; transform: none; }
.user-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.user-menu a:hover { background: color-mix(in srgb, var(--sky) 10%, transparent); }
.user-menu a .ico { width: 16px; height: 16px; color: var(--sky); }
.user-menu a.danger { color: var(--err); }
.user-menu a.danger .ico { color: var(--err); }

/* mobile drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.mobile-drawer.open { display: block; }
.drawer-veil { position: absolute; inset: 0; background: rgba(3, 15, 30, 0.55); backdrop-filter: blur(4px); animation: fadeIn 0.25s; }
.drawer-sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); padding: 22px 20px;
  background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  animation: slideInR 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes slideInR { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.drawer-sheet a { padding: 13px 12px; border-radius: 12px; color: var(--text); font-weight: 600; }
.drawer-sheet a:hover, .drawer-sheet a.cta { background: var(--grad); color: #fff; }
.drawer-sheet a.danger { color: var(--err); }

/* ---------------- buttons ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 13px; border: 1px solid transparent;
  font: 700 15px var(--font); color: var(--text); cursor: pointer; text-align: center;
  transition: transform 0.18s, box-shadow 0.25s, filter 0.2s, background 0.3s, color 0.3s;
  overflow: hidden; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn .ico { width: 16px; height: 16px; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(14, 165, 233, 0.4); }
.btn-grad:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 34px rgba(99, 102, 241, 0.42); color: #fff; }
.btn-line { background: transparent; border-color: var(--sky); color: var(--sky); }
.btn-line:hover { background: color-mix(in srgb, var(--sky) 10%, transparent); transform: translateY(-2px); color: var(--sky); }
.btn-ghost { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-white { background: #fff; color: #075985; box-shadow: 0 12px 30px rgba(2, 8, 23, 0.25); }
.btn-white:hover { transform: translateY(-2px); color: #075985; }
.btn-ghost-dark { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 10px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.shine::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -80%; } 90%, 100% { left: 130%; } }

/* ---------------- typography helpers ---------------- */
.grad-text {
  background: var(--grad-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradSlide 6s linear infinite;
}
.grad-text-2 { background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shine-text {
  background: linear-gradient(90deg, #fff 20%, #bae6fd 40%, #fff 60%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradSlide 3s linear infinite;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--sky) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sky) 30%, transparent);
  color: var(--sky); font-weight: 700; font-size: 13px; margin-bottom: 14px;
}
.kicker .ico { width: 14px; height: 14px; }
.lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); line-height: 1.7; max-width: 640px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head p { color: var(--muted); }
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sky) 5%, transparent), transparent); }

/* ---------------- cards ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow); transition: transform 0.25s, border-color 0.25s, background 0.3s;
}

/* ---------------- hero ---------------- */
.hero { padding: 66px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-chips { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.hero-chips span { display: inline-flex; align-items: center; gap: 6px; }
.hero-chips .ico { width: 15px; height: 15px; color: var(--ok); }

.hero-visual { position: relative; display: grid; place-items: center; }
.demo-card {
  position: relative; width: min(380px, 92%); border-radius: 26px; padding: 22px;
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.16), rgba(99, 102, 241, 0.14)), var(--surface);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.demo-top { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.demo-top .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ef4444; } .dot.y { background: #f59e0b; } .dot.g { background: #10b981; }
.demo-title { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.demo-app { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.demo-phone { font-family: var(--mono); color: var(--sky); font-weight: 700; margin-bottom: 14px; }
.demo-sms {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  margin-bottom: 14px; animation: smsIn 4.5s ease infinite;
}
@keyframes smsIn { 0%, 8% { opacity: 0; transform: translateY(14px) scale(0.96); } 16%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.sms-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; }
.sms-ic .ico { width: 16px; height: 16px; }
.sms-txt { font-size: 13px; line-height: 1.5; }
.sms-time { grid-column: 2; font-size: 10px; color: var(--muted); }
.demo-otp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.otp-boxes { display: flex; gap: 5px; }
.otp-boxes span {
  width: 26px; height: 34px; display: grid; place-items: center; border-radius: 8px;
  background: color-mix(in srgb, var(--sky) 12%, transparent); border: 1px solid var(--line-strong);
  font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--sky);
  animation: popIn 0.4s both;
}
.otp-boxes span:nth-child(1) { animation-delay: 0.7s; } .otp-boxes span:nth-child(2) { animation-delay: 0.85s; }
.otp-boxes span:nth-child(3) { animation-delay: 1s; }   .otp-boxes span:nth-child(4) { animation-delay: 1.15s; }
.otp-boxes span:nth-child(5) { animation-delay: 1.3s; } .otp-boxes span:nth-child(6) { animation-delay: 1.45s; }
@keyframes popIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.demo-glow { position: absolute; inset: auto 14% -26px; height: 60px; background: radial-gradient(ellipse, rgba(14, 165, 233, 0.45), transparent 70%); filter: blur(14px); }
.float-tag { position: absolute; animation: floaty 9s ease-in-out infinite; }
.float-tag.ft1 { top: 8px; right: -6px; width: 120px; }
.float-tag.ft2 { bottom: 26px; left: -10px; width: 130px; animation-delay: -4s; }

/* ---------------- stats bar ---------------- */
.stats-bar { padding: 26px 0 6px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; text-align: center; }
.stat b { display: block; font-size: clamp(22px, 3vw, 34px); font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------------- service grid ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc-grid.big { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.svc-grid.quick { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.svc-card {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--text);
  overflow: hidden; transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--sky); box-shadow: var(--shadow); color: var(--text); }
.svc-card::before {
  content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity 0.25s;
}
.svc-card:hover::before { opacity: 0.06; }
.svc-letter {
  flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 17px;
}
.svc-name { font-weight: 700; font-size: 15px; }
.svc-code { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.svc-from { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--sky); }
.svc-go { margin-left: 4px; color: var(--sky); opacity: 0; transform: translateX(-6px); transition: all 0.25s; }
.svc-card:hover .svc-go { opacity: 1; transform: none; }
.svc-grid.quick .svc-from, .svc-grid.quick .svc-code { display: none; }

/* ---------------- steps ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; padding: 26px 22px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 13px; background: var(--grad); color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.45); animation: bob 3.4s ease-in-out infinite;
}
.step-card:nth-child(2) .step-num { animation-delay: -1.1s; }
.step-card:nth-child(3) .step-num { animation-delay: -2.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.step-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ---------------- features ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { padding: 26px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.25s, border-color 0.25s; }
.feat-card:hover { transform: translateY(-5px); border-color: var(--sky); }
.feat-ic {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; margin-bottom: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sky) 18%, transparent), color-mix(in srgb, var(--indigo) 18%, transparent));
  color: var(--sky);
}
.feat-ic .ico { width: 22px; height: 22px; }
.feat-card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }
.feat-card p b { color: var(--text); }

/* ---------------- country grid ---------------- */
.cty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 13px; }
.cty-card { display: block; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: all 0.22s; }
.cty-card:hover { border-color: var(--sky); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.cty-flag { font-size: 26px; display: block; margin-bottom: 7px; }
.cty-name { font-weight: 700; display: block; }
.cty-meta { font-size: 12px; color: var(--muted); }

/* ---------------- picker / search ---------------- */
.picker-bar { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.picker-search {
  flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.picker-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14); }
.picker-search .ico, .picker-search i.pfx { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.picker-search input { flex: 1; border: none !important; background: none !important; padding: 13px 0 !important; box-shadow: none !important; }
.picker-cat { flex: 0 0 190px; }

.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: 500 15px var(--font);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}
.input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14); }
.input.sm { padding: 8px 10px; font-size: 13px; border-radius: 9px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
textarea.input { resize: vertical; }
.field { margin-bottom: 15px; display: block; }
.field > span, .field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.field.grow, .grow { flex: 1; }
.form-err { background: color-mix(in srgb, var(--err) 10%, transparent); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); color: var(--err); padding: 10px 14px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.tos { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 14px; }
.tos input { margin-top: 3px; accent-color: var(--sky); }
.form-stack { display: flex; flex-direction: column; }

/* ---------------- tables ---------------- */
.table-card { padding: 8px 6px 12px; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 12px 14px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background 0.15s; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--sky) 5%, transparent); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.num.up { color: var(--ok); font-weight: 700; }
.num.down { color: var(--err); font-weight: 700; }
.loading-cell { text-align: center; color: var(--muted); padding: 26px !important; }
.tbl-title { padding: 14px 14px 4px; margin: 0; }

.tbadge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-transform: capitalize; }
.t-deposit, .t-credit, .t-welcome, .t-refund, .t-admin_credit { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.t-purchase, .t-debit, .t-admin_debit { background: color-mix(in srgb, var(--sky) 14%, transparent); color: var(--sky); }

.sbadge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-transform: capitalize; }
.sbadge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-pending { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.s-received { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.s-refunded { background: color-mix(in srgb, var(--indigo) 14%, transparent); color: var(--indigo); }
.s-cancelled { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.s-expired { background: rgba(120, 130, 150, 0.15); color: var(--muted); }
.s-active { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager .cur {
  min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 13.5px;
}
.pager a:hover { border-color: var(--sky); color: var(--sky); }
.pager .cur { background: var(--grad); border-color: transparent; color: #fff; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 700;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--sky); color: var(--sky); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.chip.mini { padding: 2px 9px; font-size: 10.5px; }

/* ---------------- pricing page ---------------- */
.pricing-top { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; align-items: end; }
.price-tbl .avail { color: var(--ok); font-weight: 700; }
.how-price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.hp-card { padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.hp-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.hp-card h3 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.hp-card h3 .ico { width: 17px; height: 17px; color: var(--sky); }

/* ---------------- faq ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--sky); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--sky); }
.faq-x { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq-x::before, .faq-x::after { content: ''; position: absolute; inset: 0; margin: auto; background: var(--sky); border-radius: 2px; transition: transform 0.25s; }
.faq-x::before { width: 14px; height: 2.4px; }
.faq-x::after { width: 2.4px; height: 14px; }
.faq-item[open] .faq-x::after { transform: rotate(90deg); opacity: 0; }
.faq-item > div { padding: 0 20px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.7; animation: fadeIn 0.25s; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 22px; align-items: start; }
.contact-form-card h3 { margin-bottom: 16px; }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.info-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.info-ic { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; }
.info-ic .ico { width: 18px; height: 18px; }
.info-card h4 { margin: 2px 0 4px; font-size: 15px; }
.info-card p, .info-card a { font-size: 13.5px; color: var(--muted); margin: 0; }
.success-box { text-align: center; padding: 26px 8px; }
.big-ok {
  width: 74px; height: 74px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); animation: popIn 0.5s both;
}
.big-ok .ico { width: 34px; height: 34px; }
.big-ok.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

/* ---------------- auth pages ---------------- */
.auth-zone { padding: 60px 0 40px; }
.auth-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; max-width: 1050px; }
.auth-side h2 { font-size: clamp(26px, 3.4vw, 38px); }
.auth-side p { color: var(--muted); line-height: 1.7; }
.auth-points { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 11px; }
.auth-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.auth-points .ico { width: 17px; height: 17px; color: var(--ok); flex: 0 0 auto; }
.auth-quote { margin-top: 22px; padding: 14px 18px; border-left: 3px solid var(--sky); background: var(--surface); border-radius: 0 14px 14px 0; color: var(--muted); font-size: 14px; font-style: italic; }
.auth-quote span { display: block; margin-top: 6px; font-style: normal; font-weight: 700; color: var(--text); font-size: 12.5px; }
.auth-card { padding: 30px; box-shadow: var(--shadow-lg); }
.auth-card h3 { font-size: 21px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.pw-bar { height: 5px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 4px; transition: width 0.3s; }

/* ---------------- CTA band ---------------- */
.cta-band { padding: 26px 0 80px; }
.cta-inner {
  text-align: center; padding: 56px 30px; border-radius: 30px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0284c7, #0ea5e9 45%, #6366f1);
  box-shadow: 0 30px 70px rgba(14, 165, 233, 0.45);
}
.cta-inner::before {
  content: ''; position: absolute; inset: -40%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22), transparent 32%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.16), transparent 30%);
  animation: blob 14s ease-in-out infinite alternate;
}
.cta-inner h2 { font-size: clamp(24px, 3.6vw, 38px); position: relative; }
.cta-inner p { position: relative; opacity: 0.92; max-width: 520px; margin: 0 auto 22px; }
.cta-inner .btn { position: relative; }

/* ---------------- app shell pages ---------------- */
.app-head { padding: 34px 0 8px; }
.app-head h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3.4vw, 34px); }
.app-head h1 .ico { width: 26px; height: 26px; color: var(--sky); }
.app-head .muted { margin: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wave { display: inline-block; animation: bob 2s ease-in-out infinite; }
.dash-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 14px; margin: 22px auto 26px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-card b { display: block; font-size: 22px; font-weight: 900; }
.stat-card span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-card .ico { width: 14px; height: 14px; color: var(--sky); vertical-align: -2px; }

.balance-card {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--r-lg); padding: 26px;
  background: linear-gradient(135deg, #0369a1, #0ea5e9 55%, #6366f1);
  box-shadow: 0 24px 54px rgba(14, 165, 233, 0.42);
}
.bc-label { display: inline-flex; align-items: center; gap: 8px; opacity: 0.85; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.bc-label .ico { width: 16px; height: 16px; }
.balance-card b { display: block; font-size: clamp(30px, 4.5vw, 44px); font-weight: 900; margin: 8px 0 16px; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2); }
.bc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted-light { color: rgba(255, 255, 255, 0.8); font-size: 13px; }
.bc-spark { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.16); filter: blur(2px); animation: floaty 8s ease-in-out infinite; }
.bc-spark.s1 { width: 130px; height: 130px; top: -50px; right: -30px; }
.bc-spark.s2 { width: 90px; height: 90px; bottom: -40px; right: 80px; animation-delay: -4s; }

.sec-inline { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 26px 0 14px; }
.sec-inline h2 { font-size: 20px; display: inline-flex; align-items: center; gap: 9px; margin: 0; }
.sec-inline h2 .ico { width: 18px; height: 18px; color: var(--sky); }

/* ---------------- order cards ---------------- */
.live-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin: 10px 0 20px; }
.order-card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px; box-shadow: var(--shadow);
  border-top: 4px solid var(--warn); animation: riseIn 0.45s both;
}
.order-card[data-status='received'] { border-top-color: var(--ok); }
.order-card[data-status='refunded'] { border-top-color: var(--indigo); }
.order-card[data-status='cancelled'], .order-card[data-status='expired'] { border-top-color: var(--muted); }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.oc-svc { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; }
.oc-svc .svc-letter { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; font-size: 14px; }
.oc-id { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.oc-phone {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
  padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--sky) 8%, var(--surface-2));
  border: 1px dashed var(--line-strong);
}
.oc-phone b { font-family: var(--mono); font-size: 16.5px; letter-spacing: 0.03em; color: var(--sky); }
.copy-mini { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 700 12px var(--font); cursor: pointer; transition: all 0.2s; }
.copy-mini:hover { color: var(--sky); border-color: var(--sky); }
.copy-mini.done { color: var(--ok); border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.oc-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.oc-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); align-self: center; }
.oc-status { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wait { flex: 1; }
.wait .lbl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--warn); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s ease infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
.wave-bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; margin-left: 4px; }
.wave-bars i { width: 3px; border-radius: 3px; background: var(--sky); animation: waveB 1s ease-in-out infinite; }
.wave-bars i:nth-child(1) { height: 6px; } .wave-bars i:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.wave-bars i:nth-child(3) { height: 9px; animation-delay: 0.3s; } .wave-bars i:nth-child(4) { height: 15px; animation-delay: 0.45s; }
@keyframes waveB { 50% { transform: scaleY(0.4); } }
.timer { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted); }
.timer.low { color: var(--err); animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.oc-otp {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
  padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 10%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); animation: riseIn 0.4s both;
}
.oc-otp .otp-val { font-family: var(--mono); font-size: 24px; font-weight: 800; letter-spacing: 0.14em; color: var(--ok); }
.oc-sms {
  font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line-strong);
  border-radius: 11px; padding: 9px 12px; margin-bottom: 12px; line-height: 1.5; max-height: 92px; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}
.oc-msg { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.oc-msg.warn { color: var(--warn); font-weight: 600; }
.oc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- wizard ---------------- */
.wizard-zone { max-width: 1200px; }
.wizard { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1.1fr; gap: 6px; align-items: stretch; padding: 18px; }
.wiz-arrow { display: grid; place-items: center; color: var(--sky); }
.wiz-arrow .ico { width: 20px; height: 20px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.wiz-step { min-width: 0; }
.wiz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wiz-badge {
  width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 9px;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 14px;
}
.wiz-head h3 { margin: 0; font-size: 15px; }
.wiz-head .muted { font-size: 12px; }
.wiz-pick { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--sky); background: color-mix(in srgb, var(--sky) 10%, transparent); padding: 4px 10px; border-radius: 999px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.pick-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; cursor: pointer; text-align: left;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--text); font: 600 13px var(--font);
  transition: all 0.16s;
}
.pick-item:hover { border-color: var(--sky); transform: translateY(-1px); }
.pick-item.on { border-color: var(--sky); background: color-mix(in srgb, var(--sky) 12%, transparent); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.pick-item small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; }
.server-row { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.server-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface-2); transition: all 0.16s; font-size: 13.5px;
}
.server-card.on { border-color: var(--sky); background: color-mix(in srgb, var(--sky) 10%, transparent); }
.server-card input { accent-color: var(--sky); }
.sc-name { font-weight: 800; }
.sc-desc { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.buy-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.bb-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 6px 0; color: var(--muted); }
.bb-row b { color: var(--text); }
.bb-row.price b { font-size: 22px; font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bb-note { display: flex; gap: 7px; align-items: center; font-size: 11.5px; color: var(--muted); margin: 10px 0 0; }
.bb-note .ico { width: 14px; height: 14px; color: var(--ok); flex: 0 0 auto; }
#wizard .btn:not(:disabled) { cursor: pointer; }
.wizard-tip { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); padding: 16px 18px; border-radius: 16px; }
.wizard-tip .ico { width: 18px; height: 18px; color: var(--warn); flex: 0 0 auto; margin-top: 1px; }
.skeleton { position: relative; overflow: hidden; background: var(--line); border-radius: 11px; color: transparent !important; pointer-events: none; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); animation: skel 1.2s infinite; }
@keyframes skel { to { transform: translateX(100%); } }
.skeleton.sk-item { height: 40px; }

/* ---------------- wallet ---------------- */
.wallet-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: start; }
.topup-card { margin-top: 16px; }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.preset.on { background: var(--grad); color: #fff; border-color: transparent; }
.topup-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.pp-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.pp-modal[hidden] { display: none; }
.pp-veil { position: absolute; inset: 0; background: rgba(3, 15, 30, 0.6); backdrop-filter: blur(5px); }
.pp-sheet { position: relative; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); animation: riseIn 0.3s both; z-index: 1; }
.pp-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.pp-pending { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--warn); margin: 14px 0; }
.pp-pending i { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--sky); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-result { max-width: 520px; margin: 0 auto; padding: 40px 30px; }

/* ---------------- api docs ---------------- */
.api-grid { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.apikey { display: block; font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px dashed var(--line-strong); padding: 12px 14px; border-radius: 12px; color: var(--sky); word-break: break-all; margin-bottom: 12px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.api-docs { display: grid; gap: 16px; }
.doc-sec h3 { display: flex; align-items: center; gap: 9px; }
.doc-sec h3 .ico { width: 17px; height: 17px; color: var(--sky); }
.doc-sec pre { position: relative; background: #0a1828; color: #cfe9ff; padding: 16px; border-radius: 14px; overflow-x: auto; font: 500 13px/1.6 var(--mono); margin: 8px 0; }
[data-theme='dark'] .doc-sec pre { background: #050d18; }
.doc-sec pre code { font: inherit; background: none; padding: 0; }
.doc-sec p { color: var(--muted); font-size: 14px; }
.doc-sec code { background: color-mix(in srgb, var(--sky) 12%, transparent); color: var(--sky); padding: 2px 7px; border-radius: 6px; font: 600 13px var(--mono); }
.ex-copy { position: absolute; top: 8px; right: 8px; }
.api-tbl td { font-size: 13.5px; }
.ex-name { font-weight: 800; color: var(--text); margin: 14px 0 4px; }
.doc-ul { padding-left: 18px; line-height: 1.8; }

/* ---------------- blog ---------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-grid.rel { grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.blog-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--text); transition: transform 0.22s, box-shadow 0.22s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--text); }
.grad-cover {
  height: 150px; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #0ea5e9, #6366f1 60%, #22d3ee); background-size: 160% 160%; animation: gradMove 9s ease infinite;
}
@keyframes gradMove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.blog-card > div:not(.grad-cover) { padding: 0 18px 18px; }
.blog-card .blog-cover:first-child { padding: 0; margin: -0px; }
.blog-card h3 { font-size: 16.5px; margin: 10px 0 6px; }
.blog-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.blog-card { padding-bottom: 0; }
.blog-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 14px; }
.blog-cta { display: inline-flex; gap: 6px; align-items: center; color: var(--sky); font-weight: 800; font-size: 13.5px; margin-bottom: 18px; }
.big-cover { height: 240px; border-radius: 20px; font-size: 58px; margin: 18px 0 26px; }
.blog-card.small { padding: 18px; }
.post-title { font-size: clamp(26px, 4vw, 40px); }
.post-meta { display: flex; gap: 18px; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.post-meta .ico { width: 14px; height: 14px; vertical-align: -2px; color: var(--sky); }
.prose h2 { margin-top: 30px; font-size: 21px; }
.prose p, .prose li { color: var(--muted); line-height: 1.8; font-size: 15.5px; }
.prose li { margin-bottom: 7px; }
.prose b, .prose strong { color: var(--text); }
.post-share { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.related-h { margin-top: 34px; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(10px); padding: 46px 0 118px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 26px; }
.f-brand p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 12px 0; }
.f-badges { display: flex; flex-direction: column; gap: 7px; }
.f-badges span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.f-badges .ico { width: 14px; height: 14px; color: var(--sky); }
.f-col { display: grid; align-content: start; gap: 9px; }
.f-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.f-col a { color: var(--text); font-size: 13.5px; opacity: 0.8; font-weight: 500; }
.f-col a:hover { color: var(--sky); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.heart { color: var(--err); font-style: normal; animation: pulse2 1.6s infinite; display: inline-block; }
@keyframes pulse2 { 50% { transform: scale(1.25); } }

/* ---------------- toasts + flash ---------------- */
#toasts { position: fixed; top: 78px; right: 18px; z-index: 200; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast {
  display: flex; align-items: center; gap: 11px; padding: 13px 17px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 600; animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transform: translateX(30px); transition: all 0.3s; }
.toast .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--sky); flex: 0 0 4px; }
.toast.ok .bar { background: var(--ok); }
.toast.err .bar { background: var(--err); }
.toast.warn .bar { background: var(--warn); }

/* ---------------- misc ---------------- */
.empty-state { text-align: center; padding: 40px 10px; }
.es-icon { width: 70px; height: 70px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 22px; background: color-mix(in srgb, var(--sky) 10%, transparent); color: var(--sky); }
.es-icon .ico { width: 30px; height: 30px; }
.empty-hint { text-align: center; padding: 30px; color: var(--muted); }
.nf-zone { padding: 90px 0; }
.nf-code { font-size: clamp(70px, 14vw, 130px); font-weight: 900; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-code b { display: inline-block; animation: pulse2 1.4s infinite; }
.a-flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.a-flash.f-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.a-flash.f-err { background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease var(--rd, 0s), transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) var(--rd, 0s); }
[data-reveal].rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
