/* ============================================================
   MK Tech & Soft — v7 Premium 3D design system
   Dark base + electric cyan accent. Pure CSS 3D. No libraries.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #05080f;
  --bg-2: #080d19;
  --surface: rgba(16, 24, 42, .72);
  --surface-solid: #0f1829;
  --surface-2: #151f33;
  --line: rgba(148, 163, 184, .16);
  --line-strong: rgba(148, 163, 184, .3);

  --text: #eef3ff;
  --text-2: #b8c4dc;
  --muted: #8798b5;

  --accent: #22d3ee;
  --accent-2: #06b6d4;
  --accent-3: #0891b2;
  --accent-soft: rgba(34, 211, 238, .13);
  --warm: #f5a524;
  --wa: #25d366;
  --ok: #34d399;
  --err: #f87171;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .75);
  --shadow-lg: 0 34px 70px -26px rgba(0, 0, 0, .85);
  --shadow-3d: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 2px 0 0 rgba(255, 255, 255, .04) inset;
  --glow: 0 0 0 1px rgba(34, 211, 238, .3), 0 16px 46px -16px rgba(34, 211, 238, .5);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(34, 211, 238, .10), transparent 62%),
    radial-gradient(760px 460px at 96% 6%, rgba(6, 182, 212, .07), transparent 60%),
    radial-gradient(700px 420px at 50% 108%, rgba(245, 165, 36, .05), transparent 62%);
}
body > * { position: relative; z-index: 1; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -0.028em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: var(--s-9); position: relative; }
.section--tight { padding-block: var(--s-8); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.014) 12%, rgba(255,255,255,.014) 88%, transparent); }
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #04121a;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Typography ---------- */
.h1 { font-size: clamp(2.1rem, 4.7vw, 3.75rem); }
.h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); }
.h3 { font-size: clamp(1.12rem, 1.6vw, 1.38rem); }
.h4 { font-size: 1.04rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .78rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px; }
.lead { color: var(--text-2); font-size: 1.075rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.text-accent { color: var(--accent); }
.grad-text {
  background: linear-gradient(100deg, #7ef0ff 0%, var(--accent) 38%, var(--accent-3) 72%, var(--warm) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.center { text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 13px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 650; font-size: .965rem; letter-spacing: -0.01em;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease),
              background-color .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease);
  will-change: transform; white-space: nowrap; position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 32px; font-size: 1.03rem; }

.btn-primary {
  background: linear-gradient(180deg, #46e2f7, var(--accent-2));
  color: #04202a;
  box-shadow: 0 10px 26px -12px rgba(34, 211, 238, .8), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:hover { box-shadow: 0 20px 42px -14px rgba(34, 211, 238, .9), inset 0 1px 0 rgba(255,255,255,.5); }

.btn-wa { background: linear-gradient(180deg, #38e57c, var(--wa)); color: #03310f; box-shadow: 0 10px 26px -12px rgba(37, 211, 102, .85), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-wa:hover { box-shadow: 0 20px 42px -14px rgba(37, 211, 102, .95), inset 0 1px 0 rgba(255,255,255,.45); }

.btn-ghost { background: rgba(255, 255, 255, .045); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--accent); color: #fff; }
.btn-warm { background: linear-gradient(180deg, #ffbf4d, #e5901a); color: #33210a; box-shadow: 0 10px 26px -12px rgba(245, 165, 36, .8); }
.btn-danger { background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .4); color: #fca5a5; }
.btn-danger:hover { background: rgba(248, 113, 113, .24); }
.btn-ok { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .42); color: #6ee7b7; }
.btn-ok:hover { background: rgba(52, 211, 153, .24); }

.btn-sm { padding: 9px 16px; font-size: .875rem; }
.btn-xs { padding: 6px 12px; font-size: .8rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .93rem; }
.link-arrow span { transition: transform .22s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 8, 15, .74);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(5, 8, 15, .93); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 74px; }

/* 3D brand mark */
.brand { display: flex; align-items: center; gap: var(--s-3); font-weight: 760; letter-spacing: -0.03em; perspective: 600px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #04222b; font-size: 1rem; font-weight: 800;
  background: linear-gradient(150deg, #7ef0ff 0%, var(--accent) 34%, var(--accent-3) 100%);
  box-shadow:
    0 10px 22px -10px rgba(34, 211, 238, .95),
    inset 0 2px 0 rgba(255, 255, 255, .65),
    inset 0 -3px 6px rgba(0, 60, 80, .45);
  transform: rotateY(-14deg) rotateX(8deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.75) 0%, transparent 42%);
  opacity: .55;
}
.brand:hover .brand-mark { transform: rotateY(0deg) rotateX(0deg) translateZ(6px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.04rem; }
.brand-text small { font-size: .67rem; color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 13px; border-radius: var(--r-sm); font-size: .925rem; font-weight: 550; color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .055); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }
.nav-cta { display: flex; align-items: center; gap: var(--s-3); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Cart pill */
.cart-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: .88rem; font-weight: 650;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.cart-pill:hover { border-color: var(--accent); background: var(--accent-soft); }
.cart-pill svg { width: 17px; height: 17px; color: var(--accent); }
.cart-pill .count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--accent); color: #04222b; font-size: .72rem; font-weight: 800;
}

/* ---------- 7. HERO — 3D premium ---------- */
.hero { position: relative; padding-block: clamp(56px, 7.5vw, 104px) clamp(48px, 6vw, 84px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,.62) 0%, rgba(5,8,15,.86) 52%, var(--bg) 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 34%, #000 30%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 34%, #000 30%, transparent 76%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; perspective: 1400px;
}
.hero-copy { max-width: 640px; }
.hero h1 { margin-bottom: var(--s-4); }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--text-2); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
.hero-points li { display: flex; align-items: center; gap: var(--s-2); font-size: .895rem; color: var(--text-2); }
.hero-points svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* 3D floating hero card stack */
.hero-3d { position: relative; transform-style: preserve-3d; }
.hero-card {
  position: relative; z-index: 2;
  background: linear-gradient(155deg, rgba(28, 40, 66, .82), rgba(10, 16, 29, .9));
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: var(--s-6); box-shadow: var(--shadow-3d);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; top: -70px; right: -70px; width: 210px; height: 210px;
  background: radial-gradient(circle, rgba(34, 211, 238, .34), transparent 70%); pointer-events: none;
}
.hero-3d:hover .hero-card { transform: rotateY(0deg) rotateX(0deg) translateZ(14px); box-shadow: var(--glow), var(--shadow-3d); }
.hero-card h3 { font-size: 1.14rem; margin-bottom: var(--s-4); }
.hero-list { display: grid; gap: var(--s-3); }
.hero-list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .935rem; color: var(--text-2); }
.hero-list .tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 800;
  border: 1px solid rgba(34,211,238,.3);
}
.hero-note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: .855rem; }

/* floating chips behind the card */
.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 650;
  background: rgba(10, 16, 29, .86); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
  animation: bob 5.5s var(--ease) infinite;
}
.float-chip svg { width: 15px; height: 15px; color: var(--accent); }
.float-chip.fc-1 { top: -14px; left: -18px; }
.float-chip.fc-2 { bottom: 26px; right: -20px; animation-delay: 1.4s; }
.float-chip.fc-3 { bottom: -14px; left: 12px; animation-delay: 2.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 8. Trust strip ---------- */
.strip { background: rgba(8, 13, 25, .7); border-block: 1px solid var(--line); backdrop-filter: blur(10px); }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); padding-block: var(--s-6); }
.strip-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.strip-item .ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(34,211,238,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.strip-item .ico svg { width: 19px; height: 19px; }
.strip-item b { display: block; font-size: .945rem; }
.strip-item span { font-size: .835rem; color: var(--muted); }

/* ---------- 9. Cards & grids ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--shadow-sm); position: relative;
  backdrop-filter: blur(12px);
  transition: transform .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease), background-color .32s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-flat:hover { transform: none; }

/* 3D tilt service card */
.card-3d { transform-style: preserve-3d; will-change: transform; }
.card-3d:hover { transform: translateY(-6px) rotateX(2.4deg) rotateY(-2.4deg) scale(1.012); border-color: rgba(34,211,238,.4); box-shadow: var(--glow), var(--shadow-lg); }
.card-3d::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.09), transparent 38%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card-3d:hover::after { opacity: 1; }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(34,211,238,.2), rgba(8,145,178,.1));
  color: var(--accent); margin-bottom: var(--s-4);
  border: 1px solid rgba(34, 211, 238, .26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 20px -12px rgba(34,211,238,.7);
  transition: transform .4s var(--ease);
}
.card:hover .card-icon { transform: translateY(-3px) scale(1.06); }
.card-icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--text-2); font-size: .94rem; }
.card .meta { margin-top: var(--s-4); font-size: .85rem; color: var(--muted); }

/* Service card (compact) */
.service-card { display: flex; flex-direction: column; }
.service-card .svc-list { margin-top: var(--s-4); display: grid; gap: 6px; }
.service-card .svc-list li { font-size: .865rem; color: var(--muted); padding-left: 16px; position: relative; }
.service-card .svc-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.service-card .card-foot { margin-top: auto; padding-top: var(--s-5); }
.svc-badge {
  position: absolute; top: var(--s-4); right: var(--s-4); font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); color: #6ee7b7;
}

/* Feature rows */
.feature-row { display: grid; gap: var(--s-5); grid-template-columns: 54px minmax(0, 1fr); align-items: start; }
.num-badge {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: var(--accent);
  background: linear-gradient(150deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.feature-row h3 { margin-bottom: 6px; }
.feature-row p { color: var(--text-2); font-size: .95rem; }

/* ---------- 10. Chips, checklists, badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  font-size: .8rem; font-weight: 600; padding: 6px 13px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-2);
}
.chip-accent { background: var(--accent-soft); border-color: rgba(34, 211, 238, .3); color: var(--accent); }
.chip-warm { background: rgba(245,165,36,.1); border-color: rgba(245,165,36,.3); color: #fbbf24; }
.chip-ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); color: #6ee7b7; }
.chip-err { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); color: #fca5a5; }

.checklist { display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text-2); font-size: .95rem; }
.checklist svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- 11. Tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-solid); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 14px var(--s-5); border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; background: rgba(255, 255, 255, .025); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .2s var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, .026); }
td .price { color: var(--accent); font-weight: 700; }
td.num { white-space: nowrap; }

/* ---------- 12. Forms ---------- */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 650; color: var(--text-2); }
.field .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  background: rgba(8,13,25,.85); border: 1px solid var(--line-strong); color: var(--text);
  font-family: inherit; font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.textarea { min-height: 128px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #61708c; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface-solid);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238798b5' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 11px; padding-right: 40px; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { font-size: .9rem; border-radius: var(--r-sm); padding: 12px 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .35); color: #7ff0ab; }
.form-status.err { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); color: #fca5a5; }
.form-status a { color: var(--accent); text-decoration: underline; }
.field-row { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }

/* ---------- 13. Page hero ---------- */
.page-hero { padding-block: var(--s-8) var(--s-7); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -150px; right: -90px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(34, 211, 238, .17), transparent 66%); pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; bottom: -180px; left: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, .1), transparent 66%); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.85rem, 3.5vw, 2.9rem); margin-bottom: var(--s-3); }
.page-hero p { color: var(--text-2); max-width: 700px; }
.breadcrumb { display: flex; gap: var(--s-2); align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: var(--s-4); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- 14. Split sections ---------- */
.split { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }

/* ---------- 15. CTA banner ---------- */
.cta-banner {
  border-radius: var(--r-xl); border: 1px solid rgba(34, 211, 238, .28);
  background: linear-gradient(135deg, rgba(34, 211, 238, .13), rgba(10, 16, 29, .68) 55%), var(--surface-solid);
  padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; top: -120px; left: 40%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,211,238,.16), transparent 68%); pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: var(--s-2); }
.cta-banner p { color: var(--text-2); max-width: 580px; }

/* ---------- 16. Footer ---------- */
.site-footer { background: rgba(8, 13, 25, .82); border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; gap: var(--s-7); grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: var(--s-4); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: .93rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: var(--text-2); font-size: .93rem; }
.footer-about p { max-width: 330px; }
.footer-contact li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text-2); font-size: .93rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--muted);
}
.footer-bottom .legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* ---------- 17. Floating WhatsApp + mobile bar ---------- */
.float-wa {
  position: fixed; right: 20px; bottom: 88px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, #38e57c, var(--wa)); color: #03310f; font-weight: 700; font-size: .92rem;
  padding: 13px 20px; border-radius: var(--r-pill);
  box-shadow: 0 16px 36px -12px rgba(37, 211, 102, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.float-wa:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 22px 48px -14px rgba(37, 211, 102, .95); }
.float-wa svg { width: 20px; height: 20px; }
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 8, 15, .95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: 13px 12px; font-size: .9rem; }
  body { padding-bottom: 78px; }
  .float-wa { display: none; }
}

/* ---------- 18. Reveal animations ---------- */
.reveal { }
.reveal-armed { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-armed.in { opacity: 1; transform: none; }
.reveal-armed.d1 { transition-delay: .08s; }
.reveal-armed.d2 { transition-delay: .16s; }
.reveal-armed.d3 { transition-delay: .24s; }
.reveal-armed.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal, .reveal-armed { opacity: 1; transform: none; }
  .card-3d:hover { transform: none; }
}

/* ---------- 19. FAQ ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s-4) var(--s-5); transition: border-color .25s var(--ease);
}
.faq details[open] { border-color: rgba(34, 211, 238, .35); }
.faq summary { cursor: pointer; font-weight: 650; font-size: .97rem; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: var(--s-3); color: var(--text-2); font-size: .93rem; }

/* ---------- 20. Course cards (with outline) ---------- */
.course-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.course-head { padding: var(--s-6) var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); background: linear-gradient(160deg, rgba(34,211,238,.08), transparent 70%); }
.course-head .lvl { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent-soft); border: 1px solid rgba(34,211,238,.28); color: var(--accent); margin-bottom: var(--s-3); }
.course-head h3 { font-size: 1.14rem; margin-bottom: var(--s-2); }
.course-head p { color: var(--text-2); font-size: .9rem; }
.course-body { padding: var(--s-5) var(--s-6) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: .82rem; color: var(--muted); margin-bottom: var(--s-4); }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* course outline accordion */
.outline { display: grid; gap: 6px; margin-top: var(--s-2); }
.outline details { border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255,255,255,.02); overflow: hidden; }
.outline summary {
  cursor: pointer; list-style: none; padding: 11px 14px; font-size: .87rem; font-weight: 650;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); color: var(--text-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.outline summary::-webkit-details-marker { display: none; }
.outline summary:hover { background: rgba(255,255,255,.035); color: var(--text); }
.outline summary::after { content: "+"; color: var(--accent); font-weight: 500; font-size: 1rem; transition: transform .25s var(--ease); }
.outline details[open] summary::after { content: "–"; }
.outline details[open] summary { color: var(--accent); background: rgba(34,211,238,.06); }
.outline .mod-body { padding: 4px 14px 14px; }
.outline .mod-body ul { display: grid; gap: 5px; }
.outline .mod-body li { font-size: .845rem; color: var(--muted); padding-left: 15px; position: relative; }
.outline .mod-body li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .65; }
.course-foot { margin-top: auto; padding-top: var(--s-5); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.fees-note {
  display: flex; align-items: center; gap: var(--s-3); padding: 14px 18px; border-radius: var(--r);
  background: rgba(245,165,36,.08); border: 1px solid rgba(245,165,36,.28); color: #fcd34d; font-size: .9rem;
}
.fees-note svg { width: 20px; height: 20px; flex: none; }

/* ---------- 21. Products / shop ---------- */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-media {
  aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--surface-2), var(--bg-2));
  display: grid; place-items: center; border-bottom: 1px solid var(--line); position: relative;
}
.product-media .picon { width: 68px; height: 68px; color: rgba(34, 211, 238, .5); }
.product-media .tag {
  position: absolute; top: 12px; left: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(5,8,15,.85); border: 1px solid var(--line-strong); color: var(--text-2);
}
.product-media .tag.hot { background: rgba(245,165,36,.16); border-color: rgba(245,165,36,.4); color: #fbbf24; }
.product-body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.product-body p { color: var(--muted); font-size: .875rem; }
.product-foot { margin-top: auto; padding-top: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.product-price { font-weight: 750; color: var(--text); font-size: 1.06rem; }
.product-price small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.product-price .strike { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: .8rem; margin-right: 6px; }

/* Cart drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(3,6,12,.72); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 121;
  background: var(--surface-solid); border-left: 1px solid var(--line-strong);
  transform: translateX(102%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.drawer-head h3 { font-size: 1.06rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s-5); display: grid; gap: var(--s-4); align-content: start; }
.drawer-foot { padding: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-4); }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }

.cart-item { display: grid; gap: var(--s-3); grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.022); }
.cart-item .ci-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cart-item .ci-ico svg { width: 21px; height: 21px; }
.cart-item b { font-size: .9rem; display: block; }
.cart-item span { font-size: .8rem; color: var(--muted); }
.cart-item .ci-rm { background: none; border: 0; color: var(--muted); font-size: .78rem; padding: 2px 0; }
.cart-item .ci-rm:hover { color: var(--err); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: .95rem; }
.cart-total b { font-size: 1.28rem; color: var(--accent); }
.empty-state { text-align: center; padding: var(--s-7) var(--s-4); color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; margin: 0 auto var(--s-3); color: var(--line-strong); }

/* Payment method chooser */
.pay-methods { display: grid; gap: var(--s-3); }
.pay-opt {
  display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.pay-opt:hover { border-color: var(--line-strong); background: rgba(255,255,255,.025); }
.pay-opt input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: rgba(34,211,238,.07); }
.pay-opt b { display: block; font-size: .94rem; }
.pay-opt span { font-size: .83rem; color: var(--muted); }
.pay-opt code { font-family: var(--mono); font-size: .83rem; color: var(--accent); }

/* Steps */
.steps { display: grid; gap: var(--s-5); counter-reset: st; }
.step { display: grid; gap: var(--s-4); grid-template-columns: 46px minmax(0,1fr); align-items: start; }
.step::before {
  counter-increment: st; content: counter(st);
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; color: var(--accent); background: linear-gradient(150deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
}
.step h4 { margin-bottom: 4px; }
.step p { color: var(--text-2); font-size: .93rem; }

/* ---------- 22. Admin panel ---------- */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 100vh; }
.admin-side {
  background: rgba(8,13,25,.92); border-right: 1px solid var(--line); padding: var(--s-5) var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2); position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { margin-bottom: var(--s-5); }
.admin-nav-btn {
  display: flex; align-items: center; gap: var(--s-3); padding: 11px 13px; border-radius: var(--r-sm);
  background: none; border: 1px solid transparent; color: var(--text-2); font-size: .915rem; font-weight: 600;
  text-align: left; width: 100%; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.admin-nav-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.admin-nav-btn.active { background: var(--accent-soft); border-color: rgba(34,211,238,.28); color: var(--accent); }
.admin-nav-btn svg { width: 18px; height: 18px; flex: none; }
.admin-nav-btn .n {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: rgba(245,165,36,.18); color: #fbbf24; font-size: .7rem; font-weight: 800; display: grid; place-items: center;
}
.admin-main { padding: var(--s-6) var(--s-7) var(--s-9); max-width: 1200px; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.admin-top h1 { font-size: 1.6rem; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.stat-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); margin-bottom: var(--s-6); }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5);
  position: relative; overflow: hidden;
}
.stat-card::after { content: ""; position: absolute; top: -40px; right: -40px; width: 110px; height: 110px; background: radial-gradient(circle, rgba(34,211,238,.16), transparent 70%); }
.stat-card b { display: block; font-size: 1.9rem; font-weight: 780; color: var(--accent); line-height: 1.2; }
.stat-card span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.stat-card.warm b { color: var(--warm); }
.stat-card.ok b { color: var(--ok); }

.data-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-solid); margin-bottom: var(--s-5); }
.data-table-wrap .dt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.data-table-wrap .dt-head h3 { font-size: 1.02rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.filter-row .input, .filter-row .select { padding: 8px 12px; font-size: .87rem; width: auto; min-width: 140px; }
.table-scroll { overflow-x: auto; }
.admin-table { font-size: .88rem; min-width: 760px; }
.admin-table th, .admin-table td { padding: 11px var(--s-4); }
.admin-table td { color: var(--text-2); }
.admin-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); }
.badge.pending { background: rgba(245,165,36,.14); color: #fbbf24; border: 1px solid rgba(245,165,36,.3); }
.badge.approved, .badge.paid { background: rgba(52,211,153,.14); color: #6ee7b7; border: 1px solid rgba(52,211,153,.3); }
.badge.rejected, .badge.unpaid { background: rgba(248,113,113,.14); color: #fca5a5; border: 1px solid rgba(248,113,113,.3); }
.badge.new { background: rgba(34,211,238,.14); color: var(--accent); border: 1px solid rgba(34,211,238,.3); }
.badge.done { background: rgba(148,163,184,.14); color: var(--text-2); border: 1px solid var(--line-strong); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--s-5); }
.login-card {
  width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); padding: var(--s-7); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px); position: relative; overflow: hidden;
}
.login-card::before { content: ""; position: absolute; top: -90px; right: -70px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(34,211,238,.26), transparent 70%); }
.login-card > * { position: relative; z-index: 1; }
.login-card .brand { justify-content: center; margin-bottom: var(--s-5); }

.detail-modal { position: fixed; inset: 0; z-index: 130; display: none; }
.detail-modal.open { display: grid; place-items: center; padding: var(--s-5); background: rgba(3,6,12,.75); backdrop-filter: blur(5px); }
.detail-box { width: min(640px, 100%); max-height: 86vh; overflow-y: auto; background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: var(--s-6); box-shadow: var(--shadow-lg); }
.detail-box dl { display: grid; gap: var(--s-3); grid-template-columns: 150px minmax(0,1fr); margin: 0; }
.detail-box dt { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.detail-box dd { margin: 0; font-size: .93rem; color: var(--text); word-break: break-word; }

.note-badge {
  display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--warm); background: rgba(245, 165, 36, .1); border: 1px solid rgba(245, 165, 36, .3);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.alert { padding: 13px 16px; border-radius: var(--r); font-size: .9rem; border: 1px solid; margin-bottom: var(--s-4); }
.alert.info { background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.3); color: #a5f3fc; }
.alert.warn { background: rgba(245,165,36,.08); border-color: rgba(245,165,36,.3); color: #fcd34d; }
.alert.ok { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.3); color: #a7f3d0; }
.alert.err { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.3); color: #fecaca; }

/* 404 */
.err-page { min-height: 74vh; display: grid; place-items: center; text-align: center; padding: var(--s-8) var(--s-5); }
.err-code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
  .admin-side .brand { margin-bottom: 0; width: 100%; }
  .admin-nav-btn { width: auto; }
  .admin-main { padding: var(--s-6) var(--s-5) var(--s-8); }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-card { transform: none; }
  .float-chip.fc-1 { left: 0; }
  .float-chip.fc-2 { right: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-1, .split { grid-template-columns: minmax(0, 1fr); }
  .split.rev .split-media { order: 0; }

  .nav {
    position: fixed; inset: 74px 0 auto 0; z-index: 99;
    background: rgba(5, 8, 15, .985); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-4) var(--s-5) var(--s-6);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  body.nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-cta { margin-top: var(--s-4); flex-direction: column; align-items: stretch; }
  .nav-cta .btn, .nav-cta .cart-pill { width: 100%; justify-content: center; }
  .nav-toggle { display: grid; }
}
@media (max-width: 720px) {
  .section { padding-block: var(--s-8); }
  .grid { gap: var(--s-4); }
  .grid-3, .grid-4, .grid-2, .field-row { grid-template-columns: minmax(0, 1fr); }
  .card { padding: var(--s-5); }
  .course-head, .course-body { padding-inline: var(--s-5); }
  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .btn-row .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .container { padding-inline: var(--s-4); }
  .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 12px var(--s-4); }
  .table-wrap { overflow-x: auto; }
  table { min-width: 520px; }
  .detail-box dl { grid-template-columns: minmax(0,1fr); gap: 4px var(--s-3); }
  .detail-box dt { margin-top: var(--s-3); }
  .admin-main { padding: var(--s-5) var(--s-4) var(--s-8); }
}
@media (max-width: 460px) {
  .strip-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-row, .step { grid-template-columns: 40px minmax(0, 1fr); }
  .num-badge, .step::before { width: 40px; height: 40px; border-radius: 12px; font-size: .92rem; }
}

/* ---------- 20. Tools page widgets ---------- */
.result-box {
  display: none; margin-top: var(--s-4); border-radius: var(--r);
  border: 1px solid rgba(34, 211, 238, .28); background: rgba(34, 211, 238, .05);
  padding: var(--s-4) var(--s-5);
}
.result-box.show { display: block; }
.result-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.result-row:last-child { border-bottom: 0; }
.result-row span { color: var(--muted); font-size: .9rem; }
.result-row b { color: var(--text); font-size: 1.02rem; font-variant-numeric: tabular-nums; }

.qr-out {
  margin-top: var(--s-5); display: grid; gap: var(--s-4); justify-items: center;
  padding: var(--s-5); border-radius: var(--r); border: 1px solid var(--line);
  background: #fff;
}
.qr-out img { display: block; width: 220px; height: 220px; border-radius: 8px; }

.pw-out {
  margin-bottom: var(--s-4); padding: var(--s-4); border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-strong); overflow-x: auto;
}
.pw-out code {
  font-family: var(--mono); font-size: 1.02rem; color: var(--accent);
  white-space: nowrap; letter-spacing: .02em;
}

/* ---------- 21. Code blocks (guides) ---------- */
.code-block {
  margin: var(--s-5) 0 0; padding: var(--s-5); border-radius: var(--r-lg);
  background: #070c16; border: 1px solid var(--line-strong);
  overflow-x: auto; box-shadow: var(--shadow);
}
.code-block code {
  font-family: var(--mono); font-size: .84rem; line-height: 1.65;
  color: #cbd5e1; white-space: pre; display: block;
}
.code-block--sm { padding: var(--s-4); margin-top: var(--s-4); }
.code-block--sm code { font-size: .8rem; }
code {
  font-family: var(--mono); font-size: .88em; color: var(--accent);
  background: rgba(34, 211, 238, .08); border-radius: 5px; padding: 1px 5px;
}
.code-block code, .pw-out code { background: none; padding: 0; color: #cbd5e1; }
.pw-out code { color: var(--accent); }

/* ---------- 21. Admin — search, server sync, security ---------- */
.admin-search {
  min-width: 190px; padding: 9px 13px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-strong);
  color: var(--text); font: inherit; font-size: .88rem;
}
.admin-search::placeholder { color: var(--muted); }
.admin-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .14); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sync-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; }
.sync-row .field { flex: 1 1 230px; margin: 0; }
.status-note {
  font-size: .85rem; padding: 9px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--muted);
}
.status-note.ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); color: #a7f3d0; }
.status-note.err { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.pw-strength { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.pw-strength i { display: block; height: 100%; width: 0; background: #f87171; transition: width .25s ease, background .25s ease; }
.admin-menu-btn { display: none; }

@media (max-width: 720px) {
  .admin-search { min-width: 0; width: 100%; }
  .filter-row { flex-wrap: wrap; }
  .row-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 900px) {
  .admin-menu-btn {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: var(--s-4);
    padding: 10px 15px; border-radius: var(--r-sm); background: var(--surface-solid);
    border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-weight: 650;
  }
  .admin-body .admin-side { position: fixed; inset: 0 auto 0 0; width: min(290px, 84vw); z-index: 90; transform: translateX(-102%); transition: transform .28s ease; height: 100dvh; overflow-y: auto; }
  .admin-body.nav-open .admin-side { transform: translateX(0); }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
}

/* Print */
@media print {
  .site-header, .float-wa, .mobile-bar, .drawer, .drawer-backdrop { display: none !important; }
}

/* ---------- 18. v9: Ad Networks admin panel ---------- */

.net-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: var(--s-5);
}
.net-card {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
}

.status-pill {
  display: inline-block;
  align-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .04em;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--muted);
}
.status-pill.pill-off { border-color: rgba(248, 113, 113, .32); background: rgba(248, 113, 113, .08); color: #fecaca; }
.status-pill.pill-ready { border-color: rgba(245, 158, 11, .34); background: rgba(245, 158, 11, .09); color: #fde68a; }
.status-pill.pill-ok { border-color: rgba(52, 211, 153, .36); background: rgba(52, 211, 153, .1); color: #a7f3d0; }

.slot-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--muted);
}
.slot-badge.slot-ok { border-color: rgba(52, 211, 153, .36); background: rgba(52, 211, 153, .1); color: #a7f3d0; }
.slot-badge.slot-ready { border-color: rgba(34, 211, 238, .34); background: rgba(34, 211, 238, .09); color: #a5f3fc; }
.slot-badge.slot-off { border-color: rgba(148, 163, 184, .26); background: rgba(148, 163, 184, .07); color: #94a3b8; }

.net-group {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4);
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .014);
}
.net-group-title {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin: 0;
}
.net-group textarea.input {
  min-height: 78px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  resize: vertical;
}

.slot-toggles {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: var(--s-2);
}
.slot-toggles .pay-opt { margin: 0; }

@media (max-width: 720px) {
  .net-grid { grid-template-columns: 1fr 1fr; }
  .slot-toggles { grid-template-columns: 1fr; }
}
