/* ============================================================
   AETHELIS — Design System
   Dual theme · clean type · solid surfaces
   ============================================================ */

:root {
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Syne", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --space-section: clamp(72px, 10vw, 110px);
  --brand: #f3f2ef;
  --brand-fg: #0a0a0c;
}

:root[data-palette="violet"] { --brand: #8b5cf6; --brand-fg: #ffffff; }
:root[data-palette="cyan"] { --brand: #06b6d4; --brand-fg: #06232a; }
:root[data-palette="emerald"] { --brand: #10b981; --brand-fg: #05291f; }
:root[data-palette="amber"] { --brand: #f59e0b; --brand-fg: #2b1800; }
:root[data-palette="crimson"] { --brand: #ef4444; --brand-fg: #ffffff; }
:root[data-palette="rose"] { --brand: #f43f8e; --brand-fg: #ffffff; }
:root[data-palette="blue"] { --brand: #3b82f6; --brand-fg: #ffffff; }

/* ---------- LIGHT ---------- */
:root,
:root[data-theme="light"] {
  --bg: #ece9e3;
  --bg-elevated: #f5f3ef;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --surface-3: #e9e6df;
  --text: #111114;
  --text-2: #4a4844;
  --muted: #7c7870;
  --border: rgba(17, 17, 20, 0.09);
  --border-strong: rgba(17, 17, 20, 0.16);
  --primary: #111114;
  --ring: rgba(17, 17, 20, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(17, 17, 20, 0.08);
  --veil: linear-gradient(
    180deg,
    rgba(236, 233, 227, 0.88) 0%,
    rgba(236, 233, 227, 0.72) 45%,
    rgba(236, 233, 227, 0.92) 100%
  );
  --ok: #168a52;
  --ok-bg: rgba(22, 138, 82, 0.1);
  --warn: #b86a00;
  --warn-bg: rgba(184, 106, 0, 0.1);
  --bad: #d03a32;
  --bad-bg: rgba(208, 58, 50, 0.1);
  --shadow-1: 0 1px 2px rgba(17, 17, 20, 0.04), 0 8px 24px rgba(17, 17, 20, 0.06);
  --shadow-2: 0 16px 48px rgba(17, 17, 20, 0.12);
  --btn-bg: #111114;
  --btn-fg: #ffffff;
  --btn-hover: #2a2a30;
  --mark-bg: #111114;
  --logo-on-mark: none;
  --hero-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,255,255,0.45), transparent 70%);
  --grad-text: linear-gradient(120deg, #111114 0%, #5c5a56 55%, #9a968e 100%);
  --input-bg: #f3f1ec;
  --input-focus-bg: #ffffff;
  --toast-bg: #111114;
  --toast-fg: #ffffff;
  --lot-glow: radial-gradient(circle at 100% 0%, rgba(17,17,20,0.035), transparent 50%);
  --accent-line: linear-gradient(90deg, #111114, #9a968e);
  --progress-track: rgba(17, 17, 20, 0.1);
  --progress-fill: #111114;
}

/* ---------- DARK ---------- */
:root[data-theme="dark"] {
  --bg: #08080b;
  --bg-elevated: #0e0e12;
  --surface: #141418;
  --surface-2: #1c1c22;
  --surface-3: #25252c;
  --text: #f3f2ef;
  --text-2: #b3b0a8;
  --muted: #7f7c74;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --primary: #f3f2ef;
  --ring: rgba(255, 255, 255, 0.18);
  --nav-bg: rgba(14, 14, 18, 0.86);
  --nav-border: rgba(255, 255, 255, 0.08);
  --veil: linear-gradient(
    180deg,
    rgba(8, 8, 11, 0.9) 0%,
    rgba(8, 8, 11, 0.78) 45%,
    rgba(8, 8, 11, 0.94) 100%
  );
  --ok: #3ddc84;
  --ok-bg: rgba(61, 220, 132, 0.12);
  --warn: #ffb020;
  --warn-bg: rgba(255, 176, 32, 0.12);
  --bad: #ff6b63;
  --bad-bg: rgba(255, 107, 99, 0.12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 20px 56px rgba(0, 0, 0, 0.55);
  --btn-bg: #f3f2ef;
  --btn-fg: #0a0a0c;
  --btn-hover: #ffffff;
  --mark-bg: #f3f2ef;
  --logo-on-mark: invert(1);
  --hero-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,255,255,0.06), transparent 70%);
  --grad-text: linear-gradient(120deg, #ffffff 0%, #c8c4bc 55%, #8a8680 100%);
  --input-bg: #1c1c22;
  --input-focus-bg: #141418;
  --toast-bg: #f3f2ef;
  --toast-fg: #0a0a0c;
  --lot-glow: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.05), transparent 50%);
  --accent-line: linear-gradient(90deg, #f3f2ef, #8a8680);
  --progress-track: rgba(255, 255, 255, 0.1);
  --progress-fill: #f3f2ef;
}

:root[data-theme="light"][data-palette="mono"] {
  --brand: #111114;
  --brand-fg: #ffffff;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.3s var(--ease);
}

img { max-width: 100%; display: block; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Ambient */
.bg-photo {
  position: fixed;
  inset: -48px;
  z-index: -3;
  pointer-events: none;
  background: url("../Images/Fone.jpg") center / cover no-repeat;
  filter: blur(14px) saturate(0.7) brightness(0.92);
  transform: scale(1.08);
  transition: filter 0.45s var(--ease);
}
:root[data-theme="dark"] .bg-photo {
  filter: blur(16px) saturate(0.4) brightness(0.26);
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--veil);
  transition: background 0.45s var(--ease);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--hero-glow);
}

.grain { display: none; }

/* ---------- Layout ---------- */
.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
main { flex: 1; }
.section { padding: var(--space-section) 0; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.eyebrow svg { width: 14px; height: 14px; opacity: 0.85; }

/* ---------- Nav (Glass Shader Effect) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(22, 22, 29, 0.76) 0%, rgba(12, 12, 17, 0.68) 100%);
  backdrop-filter: blur(28px) saturate(190%) contrast(108%);
  -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(108%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 8px 10px 8px 14px;
  box-shadow:
    0 20px 48px -12px rgba(0, 0, 0, 0.7),
    0 1px 0 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.5) inset,
    0 0 24px 0 rgba(139, 92, 246, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: visible;
}
.nav-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 25%, rgba(167,139,250,0.45) 50%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.nav-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.nav-inner:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 56px -12px rgba(0, 0, 0, 0.8),
    0 1px 0 0 rgba(255, 255, 255, 0.2) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.5) inset,
    0 0 32px 2px rgba(139, 92, 246, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.logo .mark {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  flex: none;
  overflow: visible;
  box-shadow: none;
}
.logo .mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: var(--logo-filter, none);
}
.logo .word { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 4px;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: 0.2s var(--ease);
  cursor: pointer;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-links a.active {
  color: var(--text);
  background: var(--surface-3);
  font-weight: 600;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Lang */
.lang { 
  position: relative; 
  z-index: 1050;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
  font-family: var(--font-body);
}
.lang-btn:hover { border-color: var(--border-strong); }
.lang-btn .flag { font-size: 14px; line-height: 1; }
.lang-btn svg { width: 14px; height: 14px; opacity: 0.7; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.16));
  border-radius: 14px;
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 99999;
}
.lang-menu.open {
  display: flex;
  animation: pop 0.18s var(--ease);
}
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  font-family: var(--font-body);
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.sel { font-weight: 700; }

/* Theme toggle (light/dark) */
.theme-toggle {
  width: 58px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
  cursor: pointer;
  transition: 0.3s;
  flex: none;
  padding: 0;
}
.theme-toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--btn-bg);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
:root[data-theme="dark"] .theme-toggle .knob {
  transform: translateX(22px);
}
.theme-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--btn-fg);
}

/* Standalone switch (maintenance etc.) — NOT tied to theme */
.switch {
  width: 52px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-3);
  position: relative;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  flex: none;
  padding: 0;
}
.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.25s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.switch.is-on {
  background: var(--text);
  border-color: transparent;
}
.switch.is-on .knob {
  transform: translateX(22px);
  background: var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.25s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  color: inherit;
  background: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--brand);
  color: var(--brand-fg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.btn-primary:hover {
  background: var(--brand);
  filter: brightness(0.92);
  color: var(--brand-fg);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.hero-note {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: 14px;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
}
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }

.mini-btn {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.mini-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}
.mini-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.mini-primary {
  background: rgba(139, 92, 246, 0.15) !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
  color: #c4b5fd !important;
}
.mini-primary:hover {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}
.mini-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}
.mini-danger:hover {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 20px;
}
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 0 48px;
}
.hero-logo {
  width: 136px;
  height: 136px;
  background: transparent;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  position: relative;
  overflow: visible;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.3));
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--logo-filter, none);
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease);
}

.hero-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-version-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

h1.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 6.2vw, 70px);
  line-height: 1.08;
  text-wrap: balance;
  max-width: 16ch;
  color: var(--text);
}
/* Gradient on brand word — solid fallback if clip fails */
.hero-title .grad {
  color: var(--muted);
  background-image: linear-gradient(120deg, var(--text) 0%, var(--brand) 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title .grad {
    color: var(--muted);
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

.hero-sub {
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 18px);
  margin: 22px auto 32px;
  max-width: 480px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Section head ---------- */
.sec-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 14px 0 12px;
  line-height: 1.2;
  color: var(--text);
}
.sec-head p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
}

/* Slogan */
.slogan-band {
  text-align: center;
  padding: 64px 0;
}
.slogan-band .big {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  text-wrap: balance;
  color: var(--text);
}
.slogan-band .big .grad {
  color: var(--muted);
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .slogan-band .big .grad {
    color: var(--muted);
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

/* ---------- Products / lots ---------- */
.plans {
  display: grid;
  gap: 18px;
}
.plans-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin: 0 auto;
  gap: 22px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  overflow: hidden;
}
.plan.lot {
  min-height: 460px;
  padding: 36px 34px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.plan.lot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lot-glow);
  pointer-events: none;
}
.plan.lot:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.plan.feat {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.plan.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(145deg, var(--text), transparent 45%, var(--muted));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.45;
}

.lot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.lot-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.lot-icon svg { width: 26px; height: 26px; }
.plan.feat .lot-icon {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: transparent;
}
.lot-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.plan.feat .lot-tag {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: transparent;
}
.plan h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  color: var(--text);
}
.lot-lead {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  color: var(--text);
}
.plan .desc,
.plan .plan-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 22px;
  position: relative;
  z-index: 1;
}
.lot-list {
  list-style: none;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.lot-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
  color: var(--text-2);
  font-weight: 500;
}
.lot-list li svg {
  width: 18px;
  height: 18px;
  color: var(--text);
  flex: none;
  opacity: 0.75;
}
.plan .btn {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

/* ---------- Features ---------- */
.bento {
  display: grid;
  gap: 16px;
}
.bento-4 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin: 0 auto;
  gap: 18px;
}
.feat-card {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  min-height: 180px;
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
  border-color: var(--border-strong);
}
.feat-card .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  margin-bottom: 18px;
}
.feat-card .ic svg { width: 22px; height: 22px; }
.feat-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.feat-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Socials ---------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: 0.25s var(--ease);
  min-width: 200px;
}
.social:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.social .si {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text);
  flex: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.social .si svg { width: 20px; height: 20px; }
.social .st {
  font-weight: 600;
  font-size: 15px;
  display: block;
}
.social .sh {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- How it works (Redesigned) ---------- */
.steps-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}
.step-card {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  opacity: 0.6;
}
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.step-card.feat-step {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.step-card.feat-step::before {
  background: linear-gradient(90deg, var(--text), var(--muted));
  opacity: 1;
}
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.step-pill {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.step-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.step-icon-box {
  margin-bottom: 18px;
}
.step-icon-box .step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s;
}
.step-card:hover .step-icon-box .step-icon {
  transform: scale(1.08) rotate(3deg);
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.step-icon-box .step-icon svg {
  width: 24px;
  height: 24px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}
.step-card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}
.step-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.step-bullet {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.step-bullet svg {
  width: 14px;
  height: 14px;
  color: var(--text);
  opacity: 0.75;
}
.step-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.45;
  flex: none;
}
.step-arrow-divider svg {
  width: 20px;
  height: 20px;
}

/* ---------- Stats & Telemetry (Clean Background) ---------- */
.stats-section-clean {
  background: transparent;
  border: none;
  position: relative;
  padding: var(--space-section) 0;
}
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto 24px;
}
.stat-card-clean {
  padding: 26px 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.stat-card-clean:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
}
.stat-icon-wrap svg {
  width: 20px;
  height: 20px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(61, 220, 132, 0.12);
  color: #3ddc84;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(61, 220, 132, 0.25);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px #3ddc84;
  animation: beaconPulse 1.8s infinite;
}
.stat-tag-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}
.stat-card-clean .stat-val {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-card-clean .stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
}
.stat-trend {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.stat-trend span {
  color: var(--text);
  font-weight: 700;
}

/* Telemetry Card */
.telemetry-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.telemetry-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.telemetry-beacon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 12px #3ddc84;
  flex: none;
  animation: beaconPulse 1.8s infinite;
}
.telemetry-title-group h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.telemetry-title-group p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.telemetry-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.telem-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}
.telem-badge strong {
  color: var(--text);
}
.ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc84;
}
.telemetry-chart-wrap {
  width: 100%;
  height: 190px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}
.telemetry-chart {
  width: 100%;
  height: 100%;
  display: block;
}
.chart-grid-line {
  stroke: var(--border);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}
.chart-line-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawChartLine 2.2s var(--ease-out) forwards;
}
.chart-area-path {
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-out) 0.6s forwards;
}
.chart-node .node-ring {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 2;
}
.chart-node .node-dot {
  fill: var(--text);
}
.chart-node.active-node .node-ring {
  stroke: #3ddc84;
}
.chart-node.active-node .node-dot {
  fill: #3ddc84;
}
.pulse-live {
  animation: beaconPulse 1.5s infinite;
}
.telemetry-nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.node-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.node-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.node-status-dot.online {
  background: #3ddc84;
  box-shadow: 0 0 8px rgba(61, 220, 132, 0.6);
}
.node-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.node-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}
@keyframes drawChartLine {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 860px) {
  .steps-wrapper { flex-direction: column; max-width: 460px; }
  .step-arrow-divider { transform: rotate(90deg); margin: -4px 0; }
  .stats-cards-grid { grid-template-columns: 1fr; }
  .telemetry-nodes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .telemetry-nodes-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.faq-item:hover {
  border-color: var(--border-strong);
}
.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-1);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: color 0.2s;
}
.faq-item.open .faq-q {
  color: var(--accent);
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  flex: none;
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 22px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 22px 20px;
}

/* ---------- Updates ---------- */
.update-wrapper {
  max-width: 720px;
  margin: 0 auto;
}
.update-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.update-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  opacity: 0.8;
}
.update-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.update-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.update-date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.update-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.update-status svg { width: 14px; height: 14px; }
.update-changes {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 16px;
}
.update-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.update-hash {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer .logo { margin-bottom: 14px; }
.footer p.tag {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 280px;
  line-height: 1.55;
}
.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: 0.2s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--text); }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.footer-bar .legal {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer-bar .legal a {
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
}
.footer-bar .legal a:hover { color: var(--text); }
.footer-bar .legal .sep { color: var(--border-strong); }
.design-by {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.trust-badges {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.trust-badge:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.trust-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.support-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: 0.2s;
  box-shadow: var(--shadow-1);
}
.support-chip:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.support-chip svg { width: 15px; height: 15px; }

/* Footer Social Icons */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.footer-social-btn:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.footer-social-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Admin Stat Cards */
.stat {
  padding: 22px;
  border-radius: var(--radius-lg);
}
.stat .sv {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat .sk {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: calc(100dvh - 100px);
  display: grid;
  place-items: center;
  padding: 40px 0;
}
.auth-card {
  width: min(420px, 92vw);
  padding: 36px;
  border-radius: var(--radius-xl);
}
.auth-card .a-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--text);
}
.auth-card .a-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 26px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
.field .inp { position: relative; }
.field input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font-body);
  transition: 0.2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--ring);
  background: var(--input-focus-bg);
}
.field .fic {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.field .fic svg { width: 17px; height: 17px; display: block; }
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 22px;
  font-size: 13px;
}
.auth-row label {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--text-2);
  cursor: pointer;
}
.auth-row a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.auth-alt {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.auth-alt a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Dashboard / pages ---------- */
.page-head { padding: 40px 0 26px; }
.page-head .crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  color: var(--text);
}
.page-head p {
  color: var(--text-2);
  margin-top: 6px;
}

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 26px;
  box-shadow: var(--shadow-1);
}
.notice .ni {
  color: var(--text);
  flex: none;
  margin-top: 2px;
}
.notice .ni svg { width: 20px; height: 20px; }
.notice h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}
.notice p {
  font-size: 13.5px;
  color: var(--text-2);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.dash-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-text { min-width: 0; }
.avatar {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex: none;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  user-select: none;
}
.av-sm {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 13px;
}
.av-md {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 16px;
}
.av-lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 24px;
}
.profile-card .pn {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.profile-card .pm {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.plan-inf,
.plan-free {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.id-chip {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
}
.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.sub-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.sub-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.sec-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 560px) {
  .sec-actions { grid-template-columns: 1fr; }
}

/* License key activation (Raised & Unified Inline Bar) */
.key-activation-card {
  padding: 26px;
}
.key-hint {
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
  max-width: 640px;
}
.key-form-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 580px;
}
.key-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
}
.key-input-container .fic {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
}
.key-input-container .fic svg {
  width: 18px;
  height: 18px;
  display: block;
}
.key-input-container input {
  flex: 1;
  height: 48px;
  padding: 0 16px 0 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.key-input-container input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--ring);
  background: var(--input-focus-bg);
}
.key-activate-btn {
  height: 48px;
  padding: 0 24px;
  flex: none;
  border-radius: 14px;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 560px) {
  .key-input-container {
    flex-direction: column;
    align-items: stretch;
  }
  .key-activate-btn {
    width: 100%;
  }
}
.keys-panel {
  margin-top: 18px;
  padding: 22px;
}
.keys-gen {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.keys-gen .admin-select {
  height: 42px;
  min-width: 72px;
}
.keys-gen .btn {
  height: 42px;
}
.key-copy {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  word-break: break-all;
}
.key-copy:hover { text-decoration: underline; }
.key-code { max-width: 280px; }

.dash-card.col-12 {
  grid-column: span 12;
}
.val-email {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  box-shadow: var(--shadow-1);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.mobile-drawer a:hover,
.mobile-drawer a.active {
  background: var(--surface-2);
  color: var(--text);
}

.form-error {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.agree-row {
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 0 18px !important;
  justify-content: flex-start !important;
}
.agree-row span {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.u-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.u-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.u-meta .un {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.u-meta .ue {
  font-size: 12px;
  color: var(--muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.admin-toolbar .card-title {
  margin-bottom: 0;
}
.search-field {
  margin: 0 !important;
  min-width: 240px;
}
.count-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 8px;
  vertical-align: middle;
}
.maint-panel {
  margin-bottom: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.maint-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.maint-left {
  display: flex;
  gap: 14px;
  align-items: center;
}
.warn-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  flex: none;
}
.warn-ico svg { width: 20px; height: 20px; }
.maint-t { font-weight: 700; }
.maint-d { font-size: 13px; color: var(--muted); margin-top: 2px; }
.maint-until {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 8px;
}
.maint-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.maint-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.maint-select {
  height: 42px;
  min-width: 180px;
  width: 100%;
  font-size: 14px;
}
.maint-datetime {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  min-width: 220px;
}
.maint-datetime:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--ring);
}
.mini-danger:not(:disabled):hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}
.empty-state {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.empty-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
}
.empty-ico svg { width: 22px; height: 22px; }
.empty-t { font-weight: 700; color: var(--text); }
.empty-d { font-size: 13px; max-width: 320px; }

.info-list {
  display: flex;
  flex-direction: column;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: 0; }
.info-row .k {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-2);
  font-size: 14px;
}
.info-row .k .ki {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  flex: none;
}
.info-row .k .ki svg { width: 16px; height: 16px; }
.info-row .val {
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  color: var(--text);
}
.info-row .val.mono {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.status .sd {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.status.ok,
.status.bad,
.status.warn {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.status.ok .sd,
.status.bad .sd,
.status.warn .sd {
  background: var(--muted);
}

/* Subscription card — same surface language as rest of cabinet */
.sub-hero {
  background: var(--surface);
  color: var(--text);
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.sub-hero .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}
.sub-hero .plan-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 2px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.sub-hero .plan-name svg { width: 22px; height: 22px; color: var(--text); }
.sub-hero .meta {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  position: relative;
  flex-wrap: wrap;
}
.sub-hero .meta .mv {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.sub-hero .meta .ml {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--progress-track);
  margin-top: 18px;
  overflow: hidden;
  position: relative;
}
.progress i {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  max-width: 100%;
  background: var(--progress-fill);
  border-radius: var(--radius-pill);
}
.sub-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.btn-on-sub {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
}
.btn-on-sub:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}
.btn-on-sub-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-on-sub-ghost:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card-title svg,
.card-title-ico {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-grid;
  place-items: center;
  opacity: 0.85;
}
.card-title-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.admin-toolbar .card-title {
  justify-content: flex-start;
}

/* ---------- Admin ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  padding: 22px;
  border-radius: var(--radius-lg);
}
.stat .si {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  margin-bottom: 14px;
}
.stat .si svg { width: 18px; height: 18px; }
.stat .sn {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat .sl {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
table.tbl th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
table.tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { transition: 0.15s; }
table.tbl tbody tr:hover { background: var(--surface-2); }

.admin-select {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
}
.admin-select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--ring);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tbl .mono {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Legal ---------- */
.legal-doc { max-width: 740px; margin: 0 auto; }
.legal-doc .card { padding: 40px; }
.legal-doc h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal-doc h3:first-of-type { margin-top: 0; }
.legal-doc p,
.legal-doc li {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal-doc ul { padding-left: 20px; }
.legal-doc .upd {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--toast-bg);
  color: var(--toast-fg);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s var(--ease);
  z-index: 200;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Animations ---------- */
@keyframes pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}
@keyframes gradFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes logoBounce {
  0%   { opacity: 0; transform: scale(0.5) rotate(-10deg) translateY(24px); }
  55%  { transform: scale(1.1) rotate(2deg) translateY(-4px); }
  78%  { transform: scale(0.97) rotate(-1deg) translateY(1px); }
  100% { opacity: 1; transform: scale(1) rotate(0deg) translateY(0); }
}
@keyframes viewEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.992); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes viewExit {
  from { opacity: 1; transform: none; filter: blur(0); }
  to   { opacity: 0; transform: translateY(-10px) scale(1.008); filter: blur(2px); }
}
@keyframes splashFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}
@keyframes splashLogoIn {
  0%   { opacity: 0; transform: scale(0.45) rotate(-8deg); }
  60%  { transform: scale(1.12) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes splashBarFill {
  from { width: 0%; }
  to   { width: 100%; }
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(-100%) scaleY(0.85); }
  to   { opacity: 1; transform: none; }
}
@keyframes lineGrow {
  from { transform: scaleX(0); transform-origin: center; }
  to   { transform: scaleX(1); transform-origin: center; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Splash Screen ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
}
.splash.hiding {
  animation: splashFadeOut 0.5s var(--ease) forwards;
  pointer-events: none;
}
.splash-logo {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  animation: splashLogoIn 0.75s var(--ease-out) both;
}
.splash-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.splash-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  animation: slideUp 0.55s var(--ease-out) 0.38s both;
}
.splash-bar {
  width: 110px;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
  animation: fadeIn 0.3s 0.55s both;
}
.splash-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--text);
  animation: splashBarFill 0.7s var(--ease-out) 0.6s both;
}
html.splash-dismissed #splash,
.splash.dismissed {
  display: none !important;
}

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  width: min(620px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), var(--shadow-2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: cookieSlideIn 0.4s var(--ease-out) both;
}
.cookie-banner.hiding {
  animation: cookieSlideOut 0.3s var(--ease) forwards;
  pointer-events: none;
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.cookie-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  flex-shrink: 0;
}
.cookie-icon-box svg {
  width: 22px;
  height: 22px;
}
.cookie-text-box {
  flex: 1;
  min-width: 0;
}
.cookie-heading {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.cookie-message {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}
.cookie-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-btn-group {
    justify-content: flex-end;
  }
}

/* ---------- Admin Tabs & Editors ---------- */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  overflow: visible;
  position: relative;
}
.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.admin-tab-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.admin-tab-btn:hover {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.admin-tab-btn.active {
  color: var(--brand-fg);
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.admin-tab-btn.active svg {
  opacity: 1;
}
.admin-tab-dropdown-wrap {
  position: relative;
  display: inline-flex;
  z-index: 150;
}
.admin-more-btn {
  padding: 10px 14px;
  min-width: 44px;
  justify-content: center;
}
.admin-tab-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 250;
  min-width: 190px;
  background: #15151c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeInDown 0.15s ease-out;
}
.admin-tab-dropdown-menu[hidden] {
  display: none !important;
}
.admin-tab-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}
.admin-tab-dropdown-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}
.admin-tab-dropdown-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.admin-tab-dropdown-item:hover svg {
  opacity: 1;
}
.admin-tab-dropdown-item.active {
  background: var(--brand);
  color: var(--brand-fg);
}
.admin-tab-dropdown-item.active svg {
  opacity: 1;
}

/* ---------- Admin Pagination Bar ---------- */
.admin-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.admin-pagination-info {
  font-size: 13px;
  color: var(--muted);
}
.admin-pagination-info strong {
  color: var(--text);
}
.admin-pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-page-list {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.admin-page-btn:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}
.admin-page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.admin-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.admin-page-dots {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
}
.admin-pagination-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.admin-pagination-jump input {
  width: 58px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}
.admin-pagination-jump input:focus {
  border-color: var(--border-strong);
  outline: none;
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 860px) {
  .admin-editor-grid {
    grid-template-columns: 1fr;
  }
}
.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.admin-field-group .field {
  margin: 0;
}
.admin-field-group textarea.admin-input {
  min-height: 85px;
  resize: vertical;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
}
.admin-field-group textarea.admin-input:focus {
  border-color: var(--brand);
}
.admin-field-group input.admin-input {
  height: 42px;
  padding: 0 14px;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
}
.admin-field-group input.admin-input:focus {
  border-color: var(--brand);
}


@keyframes cookieSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes cookieSlideOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  to   { opacity: 0; transform: translateX(-50%) translateY(32px) scale(0.96); }
}

/* ---------- Page Transition ---------- */
#view.page-exit {
  animation: viewExit 0.2s var(--ease) forwards;
}
#view.page-enter {
  animation: viewEnter 0.38s var(--ease-out) both;
}

/* Nav entrance */
.nav-inner {
  animation: navIn 0.5s var(--ease-out) 0.1s both;
}

/* ---------- Scroll Reveal System ---------- */
.sr {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.65s var(--ease-out);
  will-change: opacity, transform;
}
.sr.sr-visible {
  opacity: 1;
  transform: none;
}
.sr-scale {
  opacity: 0;
  transform: scale(0.93);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.sr-scale.sr-visible {
  opacity: 1;
  transform: none;
}
.sr-left {
  opacity: 0;
  transform: translateX(-26px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.sr-left.sr-visible {
  opacity: 1;
  transform: none;
}
.sr-right {
  opacity: 0;
  transform: translateX(26px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.sr-right.sr-visible {
  opacity: 1;
  transform: none;
}
.sr-d1 { transition-delay: 0.06s; }
.sr-d2 { transition-delay: 0.12s; }
.sr-d3 { transition-delay: 0.18s; }
.sr-d4 { transition-delay: 0.24s; }
.sr-d5 { transition-delay: 0.30s; }
.sr-d6 { transition-delay: 0.36s; }

/* ---------- Logo adaptive filter ---------- */
/* Splash logo and Hero logo sit on transparent/neutral bg — adapt to theme */
.splash-logo img,
.hero-logo img {
  filter: var(--logo-filter, none);
  transition: filter 0.4s var(--ease);
}
.logo .mark img {
  filter: var(--logo-filter, none);
}
:root[data-theme="dark"] {
  --logo-filter: brightness(0) invert(1) opacity(0.96) drop-shadow(0 0 20px rgba(255, 255, 255, 0.18));
}
:root[data-theme="light"] {
  --logo-filter: brightness(0) saturate(0) opacity(0.85) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* ---------- Hero logo animation ---------- */
.hero-logo {
  animation: logoBounce 0.9s var(--ease-out) both;
}
.hero-logo:hover {
  animation: float 3s ease-in-out infinite;
}

/* ---------- Nav underline indicator ---------- */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  right: 50%;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition:
    left 0.25s var(--ease-out),
    right 0.25s var(--ease-out),
    opacity 0.2s;
  opacity: 0;
}
.nav-links a.active::after {
  left: 14px;
  right: 14px;
  opacity: 1;
}

/* ---------- Button ripple layer ---------- */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity 0.18s;
  border-radius: inherit;
  pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn:active::before { opacity: 0.18; }

/* ---------- Hero gradient text animation ---------- */
.hero-title .grad {
  background-size: 250% 100%;
  animation: gradFlow 7s ease infinite;
}
.slogan-band .big .grad {
  background-size: 250% 100%;
  animation: gradFlow 8s ease 0.5s infinite;
}

/* ---------- Enhanced card hovers ---------- */
.plan.lot,
.feat-card,
.social,
.stat-card,
.step-card,
.update-card {
  transition:
    transform 0.32s var(--ease-out),
    box-shadow 0.32s var(--ease-out),
    border-color 0.22s var(--ease);
}

/* ---------- FAQ accent adjustment ---------- */
.faq-item.open {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-1);
}
.faq-item.open .faq-q { color: var(--text); }
.faq-item.open .faq-icon {
  background: var(--btn-bg);
  border-color: transparent;
  color: var(--btn-fg);
}

/* ---------- Auth card ---------- */
.auth-card.reveal {
  animation: pop 0.45s var(--ease-out) both;
}

/* ---------- Existing reveal system (kept for hero elements) ---------- */
.reveal { animation: rise 0.65s var(--ease-out) both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }
.reveal.d5 { animation-delay: 0.40s; }

.hero-title { animation: slideUp 0.85s var(--ease-out) 0.05s both; }
.hero-sub   { animation: slideUp 0.85s var(--ease-out) 0.15s both; }
.hero-cta   { animation: slideUp 0.85s var(--ease-out) 0.25s both; }

.step-card { animation: rise 0.6s var(--ease-out) both; }
.step-card:nth-child(1) { animation-delay: 0.05s; }
.step-card:nth-child(3) { animation-delay: 0.15s; }
.step-card:nth-child(5) { animation-delay: 0.25s; }

.stat-card { animation: pop 0.6s var(--ease-out) both; }
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.25s; }

.faq-item { animation: rise 0.5s var(--ease-out) both; }
.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.10s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.20s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }

.update-card { animation: slideUp 0.6s var(--ease-out) both; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .sr, .sr-scale, .sr-left, .sr-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  place-items: center;
  padding: 0;
}
.burger svg {
  width: 18px;
  height: 18px;
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .plans,
  .plans-2 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan.lot { min-height: 0; }
  .bento,
  .bento-4 { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dash-grid > * { grid-column: span 12 !important; }
  .nav-links { display: none; }
  .burger { display: grid; }
  .footer-links { gap: 32px; }
  .hero-logo { width: 105px; height: 105px; }
  .hero-logo img { width: 100%; height: 100%; }
  .sec-actions { grid-template-columns: 1fr; }
  .val-email { max-width: 140px; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .keys-gen { width: 100%; }
  .keys-gen .btn { flex: 1; }
  .search-field { min-width: 0; width: 100%; }
  .key-form { flex-direction: column; align-items: stretch; }
  .key-form .field { max-width: none; }
  .key-form .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .bento,
  .bento-4 { grid-template-columns: 1fr; }
  .plan.lot { padding: 28px 24px; }
  .stat-row { grid-template-columns: 1fr; }
  .nav-actions .lang-btn .lng { display: none; }
  .auth-card { padding: 26px; }
  .legal-doc .card { padding: 24px; }
  .nav-inner { padding: 8px 8px 8px 12px; gap: 8px; }
  .logo .word { font-size: 16px; }
  .btn-lg { height: 48px; padding: 0 22px; }
  .admin-tabs { width: 100%; overflow-x: auto; }
  .nav-actions .btn { padding: 0 12px; font-size: 13px; height: 38px; }
  .nav-actions .nav-auth { display: none; }
  .maint-form { flex-direction: column; align-items: stretch; }
  .maint-select,
  .maint-datetime { width: 100%; min-width: 0; }
  .trust-badges { width: 100%; justify-content: center; }
  .trust-badge { font-size: 11px; padding: 4px 8px; }
  .buy-checkout-grid { grid-template-columns: 1fr; }
  .payment-methods-grid { grid-template-columns: 1fr; }
  .features-bento-grid { grid-template-columns: 1fr; }
  .feat-hero-card { grid-column: 1 / -1; }
  .feat-wide-card { grid-column: 1 / -1; }
  .feat-hero-card { flex-direction: column; }
  .feat-split-content { flex-direction: column; gap: 16px; }
  .card-inputs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NEW FEATURES BENTO GRID
   ============================================================ */
.features-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.feat-card-pro {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.feat-card-pro:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 16px 36px -12px rgba(99, 102, 241, 0.15), var(--shadow-1);
}

.feat-hero-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.feat-wide-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

.feat-top-tags,
.feat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.feat-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.feat-icon-badge svg {
  width: 22px;
  height: 22px;
}

.feat-pill-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--brand);
  border: 1px solid rgba(99, 102, 241, 0.24);
}

.feat-stat-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.feat-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.feat-card-pro h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feat-card-pro p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.feat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.chip-item svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

/* Feature Visual HUD */
.feat-visual-hud {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.hud-top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.hud-dot.red { background: #ef4444; }
.hud-dot.yellow { background: #f59e0b; }
.hud-dot.green { background: #22c55e; }

.hud-title {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-mono);
}

.hud-modules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-mod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
}

.mod-toggle {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.mod-toggle.on {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.mod-toggle.boost {
  background: rgba(99, 102, 241, 0.15);
  color: var(--brand);
}

.feat-mini-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.boot-step,
.config-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.boot-icon svg {
  width: 14px;
  height: 14px;
  color: #22c55e;
}

.badge-preset {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
}

.feat-split-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.feat-split-content h3 {
  margin-bottom: 4px;
}

.feat-split-content p {
  margin-bottom: 0;
}

.feat-update-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.patch-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.patch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

/* ============================================================
   PAGE: BUY / CHECKOUT STYLES
   ============================================================ */
.buy-checkout-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto 60px;
}

.buy-summary-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.buy-summary-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.buy-product-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #4f46e5 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.5);
}

.buy-product-icon svg {
  width: 26px;
  height: 26px;
}

.buy-summary-head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 4px;
}

.buy-period-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--brand);
}

.buy-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.buy-price-val {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.buy-price-period {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.buy-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}

.benefit-item svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 2px;
}

.buy-security-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.buy-security-footer svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}

/* Buy Form Card */
.buy-form-card {
  padding: 32px;
  border-radius: var(--radius-lg);
}

.buy-step-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.pay-method-card {
  position: relative;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}

.pay-method-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.pay-method-card.selected {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, var(--surface-2) 100%);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-sm);
}

.pay-method-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pay-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
}

.pay-icon-box.sbp-badge {
  background: #2563eb;
  color: #fff;
  letter-spacing: 0.05em;
}

.pay-icon-box.crypto-badge {
  background: #8b5cf6;
  color: #fff;
}
.pay-icon-box.crypto-badge svg { width: 20px; height: 20px; }

.pay-icon-box.card-badge {
  background: #059669;
  color: #fff;
}
.pay-icon-box.card-badge svg { width: 20px; height: 20px; }

.pay-fee-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.pay-method-name {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.pay-method-sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.pay-radio-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}

.pay-method-card.selected .pay-radio-dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--surface-2);
}

/* Payment Details Panel */
.payment-details-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.pay-details-box {
  animation: fadeIn 0.25s ease;
}

/* SBP View */
.sbp-qr-wrapper {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sbp-mock-qr {
  position: relative;
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  color: #000;
}

.qr-svg {
  width: 100%;
  height: 100%;
}

.qr-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 3px;
}

.sbp-instructions {
  flex: 1;
}

.sbp-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.sbp-timer svg { width: 14px; height: 14px; }

.sbp-p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 12px;
}

.sbp-bank-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bank-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* Crypto View */
.crypto-coin-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.coin-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.coin-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.coin-btn.active {
  background: var(--brand);
  color: var(--brand-fg);
  border-color: var(--brand);
  font-weight: 700;
}

.crypto-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.address-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.addr-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.addr-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crypto-hint {
  font-size: 12.5px;
  color: var(--text-2);
}

/* Cards View */
.card-inputs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.card-logos-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-logo-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Buy Checkout Form */
.buy-checkout-form .field {
  margin-bottom: 20px;
}

.buy-submit-btn {
  margin-top: 10px;
}

/* Modal for generated key */
.buy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.buy-modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-2);
}

.modal-success-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.modal-success-badge svg {
  width: 30px;
  height: 30px;
}

.buy-modal-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.generated-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.gen-key-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.modal-email-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buy Product Switcher Cards */
.buy-product-selector-wrap {
  margin-bottom: 24px;
}
.buy-selector-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.buy-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .buy-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .buy-products-grid {
    grid-template-columns: 1fr;
  }
}
.buy-prod-option {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.buy-prod-option:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.buy-prod-option.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, var(--surface-2) 100%);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-1);
}
.prod-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.prod-opt-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-3);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text-2);
}
.buy-prod-option.active .prod-opt-tag {
  background: var(--brand);
  color: var(--brand-fg);
}
.prod-opt-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.prod-opt-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.prod-opt-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* Spoof Badge */
.spoof-badge {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

/* Frozen Subscription Hero */
.sub-hero-frozen {
  border-color: #3b82f6 !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, var(--surface-2) 100%) !important;
}
.frozen-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #3b82f6;
  color: #fff;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

/* ============================================================
   Buy Duration Selector — Custom Cards / Boxes
   ============================================================ */
.buy-selector-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.buy-selector-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.buy-duration-boxes-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) {
  .buy-duration-boxes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 680px) {
  .buy-duration-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .buy-duration-boxes-grid {
    grid-template-columns: 1fr;
  }
}

.buy-dur-box {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 124px;
  user-select: none;
  overflow: hidden;
}

.buy-dur-box:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.buy-dur-box.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, var(--surface-2) 100%);
  box-shadow: 0 0 0 1px var(--brand), 0 8px 25px rgba(139, 92, 246, 0.22);
  transform: translateY(-2px);
}

.buy-dur-box.popular {
  border-color: rgba(139, 92, 246, 0.4);
}
.buy-dur-box.popular.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 10px 28px rgba(139, 92, 246, 0.35);
}

.buy-dur-box.vip {
  border-color: rgba(245, 158, 11, 0.4);
}
.buy-dur-box.vip.active {
  border-color: #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, var(--surface-2) 100%);
  box-shadow: 0 0 0 1px #f59e0b, 0 10px 28px rgba(245, 158, 11, 0.25);
}

.dur-box-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-bottom-left-radius: 8px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}
.dur-box-ribbon.vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.dur-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dur-box-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}
.buy-dur-box.active .dur-box-badge {
  color: var(--brand);
  background: rgba(139, 92, 246, 0.15);
}
.buy-dur-box.vip.active .dur-box-badge {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}

.dur-radio-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.buy-dur-box.active .dur-radio-indicator {
  border-color: var(--brand);
}
.buy-dur-box.vip.active .dur-radio-indicator {
  border-color: #f59e0b;
}

.dur-radio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}
.buy-dur-box.active .dur-radio-dot {
  background: var(--brand);
  box-shadow: 0 0 6px var(--brand);
}
.buy-dur-box.vip.active .dur-radio-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.dur-box-period {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.dur-box-price-wrap {
  margin-bottom: 6px;
}
.dur-box-price {
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.3px;
}
.buy-dur-box.active .dur-box-price {
  color: #fff;
}

.dur-box-footer {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.dur-box-daily {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: block;
}
.buy-dur-box.active .dur-box-daily {
  color: var(--brand);
}
.buy-dur-box.vip.active .dur-box-daily {
  color: #fbbf24;
}


/* Promo Code Box on /buy */
.promo-box {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.promo-box label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
}
.promo-input-row {
  display: flex;
  gap: 8px;
}
.promo-input-row input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.promo-input-row input:focus {
  outline: none;
  border-color: var(--brand);
}
.discount-applied-pill {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Payment Method Notice Box */
.pay-details-box {
  margin-bottom: 20px;
}
.pay-method-notice-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.pay-method-notice-row strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 14px;
}
.pay-method-notice-row p {
  margin: 0;
}
.notice-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.notice-icon svg {
  width: 18px;
  height: 18px;
}

/* Order Success State on /buy */
.buy-success-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.buy-success-card {
  max-width: 580px;
  width: 100%;
  text-align: center;
  padding: 42px 32px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.success-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
}
.success-icon-box svg {
  width: 32px;
  height: 32px;
}
.buy-success-card h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.success-lead {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
}
.success-key-box {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 28px;
  text-align: left;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}
.key-box-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.key-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.key-box-code {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.05em;
}
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Admin Grids & Panels */
.admin-subhead-row {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-mini-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--brand);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.admin-mini-ico svg {
  width: 13px;
  height: 13px;
}
.btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ico svg,
.btn svg {
  width: 15px;
  height: 15px;
}
.admin-card-inner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 14px;
}
.admin-card-inner svg {
  max-width: 20px;
  max-height: 20px;
}
.admin-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.admin-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 768px) {
  .admin-form-grid-3,
  .admin-form-grid-2 {
    grid-template-columns: 1fr;
  }
}
.admin-prices-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
@media (max-width: 900px) {
  .admin-prices-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 520px) {
  .admin-prices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Loader Customizer Modal */
.customizer-modal-card {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-2);
}
.customizer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.customizer-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--brand);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.customizer-ico svg {
  width: 24px;
  height: 24px;
}
.customizer-head h3 {
  font-size: 18px;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.customizer-head p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.customizer-form .field {
  margin-bottom: 18px;
}
.preset-name-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.name-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font-display);
}
.name-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.padding-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.padding-head strong {
  font-size: 13px;
  color: var(--brand);
}
.padding-sub-info {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.padding-sub-info code {
  color: var(--brand);
  font-size: 11px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.custom-icon-picker-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.custom-icon-preview-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1.5px dashed var(--border-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.custom-icon-preview-box:hover {
  border-color: var(--brand);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.25);
}
.custom-icon-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.custom-icon-badge-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
}
.custom-icon-preview-box:hover .custom-icon-badge-overlay {
  opacity: 1;
}
.custom-icon-badge-overlay svg {
  width: 20px;
  height: 20px;
}
.custom-icon-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.custom-icon-info-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.custom-icon-info-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.custom-icon-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.icon-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 520px) {
  .icon-presets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.icon-preset {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
}
.icon-preset:hover {
  border-color: var(--border-strong);
}
.icon-preset.active {
  border-color: var(--brand);
  background: rgba(139, 92, 246, 0.1);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--brand);
}
.preset-icon-badge {
  font-size: 18px;
  display: grid;
  place-items: center;
}
.preset-icon-badge svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   Feature Chips & Interactive Multi-Input
   ============================================================ */
.feature-chips-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 96px;
  transition: border-color 0.2s ease;
}
.feature-chips-container:focus-within {
  border-color: var(--brand);
}
.feature-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  align-items: center;
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-chip-icon {
  color: var(--brand);
  display: flex;
  align-items: center;
}
.feature-chip-icon svg { width: 12px; height: 12px; }
.feature-chip-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin-left: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.feature-chip-remove:hover {
  color: #ef4444;
}
.feature-chips-input-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.feature-add-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.feature-add-input:focus {
  border-color: var(--brand);
}
.feature-add-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.feature-add-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ============================================================
   Modern File Upload Dropzone
   ============================================================ */
.file-dropzone-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--brand);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-1px);
}
.dropzone-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.dropzone-icon-box svg { width: 24px; height: 24px; }
.dropzone-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.dropzone-sub {
  font-size: 12px;
  color: var(--muted);
}
.dropzone-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-selected-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 6px;
}
.file-selected-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.file-ext-badge {
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}
.file-selected-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-selected-size {
  font-size: 11.5px;
  color: var(--muted);
}
.file-remove-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.file-remove-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ============================================================
   Maintenance Page & Admin Alert Banner
   ============================================================ */
.maint-admin-banner {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.18), rgba(139, 92, 246, 0.18));
  border-bottom: 1px solid rgba(239, 68, 68, 0.35);
  padding: 10px 16px;
  position: relative;
  z-index: 99;
}
.maint-admin-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text);
}
.maint-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseDot 1.4s infinite;
  display: inline-block;
  flex: none;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.maint-banner-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* ============================================================
   Maintenance Page — Dark Gray / Graphite Minimal Style
   ============================================================ */
.maint-dark-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: radial-gradient(circle at 50% 30%, #15181e 0%, #0b0c0f 85%);
  color: #e2e8f0;
}

.maint-dark-content {
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maint-brand-mark {
  margin-bottom: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.maint-logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.maint-gray-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: #1c2028;
  border: 1px solid #2b313d;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.maint-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  animation: pulseDot 1.6s infinite;
}

.maint-dark-title {
  font-size: 32px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.maint-dark-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 540px;
}

.maint-gray-timeline {
  width: 100%;
  background: #14171e;
  border: 1px solid #232731;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  text-align: left;
}

.maint-timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.maint-timeline-lbl {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.maint-timeline-lbl svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.maint-timeline-val {
  font-weight: 700;
  color: #f1f5f9;
}

.maint-gray-bar {
  height: 5px;
  width: 100%;
  background: #232731;
  border-radius: 6px;
  overflow: hidden;
}

.maint-gray-bar-fill {
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, #475569, #94a3b8, #475569);
  background-size: 200% 100%;
  animation: graySlide 2.5s linear infinite;
  border-radius: 6px;
}

@keyframes graySlide {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.maint-gray-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 30px;
}

@media (max-width: 580px) {
  .maint-gray-nodes {
    grid-template-columns: 1fr;
  }
}

.maint-gray-node {
  background: #14171e;
  border: 1px solid #232731;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.maint-gray-node:hover {
  border-color: #384152;
}

.maint-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.maint-node-dot.ok {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.maint-node-dot.warn {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.maint-node-name {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.maint-node-status {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.maint-gray-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.maint-gray-support {
  margin-top: 26px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.maint-gray-support a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.maint-gray-support a:hover {
  color: #f8fafc;
  text-decoration: underline;
}

/* ============================================================
   UNIVERSAL MODAL SYSTEM & PRODUCT EDITING MODAL
   ============================================================ */
.modal-backdrop {
  display: none !important;
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 9, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal-backdrop.active,
.modal-backdrop.is-open {
  display: flex !important;
  animation: aethModalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-hidden {
  display: none !important;
}

@keyframes aethModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, #14141d 0%, #0d0d14 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 22px;
  padding: 26px 30px;
  box-shadow: 0 30px 90px -15px rgba(0, 0, 0, 0.95), 0 0 50px -10px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: aethModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 4px;
}

@keyframes aethModalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.modal-icon-badge svg {
  width: 22px !important;
  height: 22px !important;
  color: #c4b5fd !important;
}

.modal-title-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-title-text {
  font-family: var(--font-display, inherit);
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin: 0;
}

.modal-title-sub {
  font-size: 12.5px;
  color: var(--muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-title-sub strong {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-weight: 600;
}

.modal-close-btn,
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2, #94a3b8);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close-btn:hover,
.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
  transform: scale(1.05);
}

/* Modal Form Section Boxes */
.modal-form-section {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-form-section:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(139, 92, 246, 0.22);
}

.modal-form-section-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #a78bfa;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.modal-form-section .field label {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
  display: block;
}

.modal-form-section .admin-input,
.modal-form-section .admin-select {
  background: rgba(10, 11, 16, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 10px !important;
  color: #f1f5f9 !important;
  font-size: 13.5px !important;
  padding: 9px 13px !important;
  transition: all 0.2s ease !important;
}

.modal-form-section .admin-input:focus,
.modal-form-section .admin-select:focus {
  border-color: rgba(139, 92, 246, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), 0 0 16px rgba(139, 92, 246, 0.15) !important;
  background: rgba(14, 15, 22, 0.95) !important;
  outline: none !important;
}

/* Pricing cards in modal */
.modal-form-section .admin-prices-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .modal-form-section .admin-prices-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .modal-form-section .admin-prices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal-form-section .admin-prices-grid .field {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 10px 10px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.modal-form-section .admin-prices-grid .field:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.modal-form-section .admin-prices-grid .field label {
  font-size: 10.5px;
  font-weight: 700;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.modal-form-section .admin-prices-grid .field input {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 8px !important;
}

.modal-actions-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-actions-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.modal-actions-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.modal-actions-footer .btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
  transition: all 0.2s ease;
}

.modal-actions-footer .btn-primary:hover {
  background: linear-gradient(135deg, #9a70ff 0%, #7c3aed 100%);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

/* ============================================================
   GLOBAL SVG ICON SIZING GUARDS
   ============================================================ */
svg.aeth-ico,
.aeth-ico {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: -0.15em;
}

/* Containers guard to prevent any rogue SVG stretching */
.modal-card svg,
.dash-card svg,
.admin-card-inner svg,
.tbl svg,
.admin-toolbar svg {
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
}

.feature-add-btn svg,
.feature-add-btn .aeth-ico {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

.feature-chip-icon svg,
.feature-chip-icon .aeth-ico {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0 !important;
}

.card-title svg,
.card-title .aeth-ico {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  color: var(--brand);
}

.btn svg,
.btn .aeth-ico {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* ============================================================
   REDESIGNED PRODUCT EDIT MODAL (CYBERPUNK OBSIDIAN STYLE)
   ============================================================ */
.modal-card.modal-card-lg {
  max-width: 840px;
  background: linear-gradient(180deg, #13131c 0%, #0b0b11 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 35px 100px -15px rgba(0, 0, 0, 0.95), 0 0 45px -10px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px 32px;
  animation: aethModalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow-x: auto;
}

.modal-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.modal-nav-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.modal-nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(99, 102, 241, 0.25) 100%);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.edit-tab-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: tabFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.edit-tab-pane.active {
  display: flex;
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cyberpunk Switch Component */
.aeth-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(20, 20, 30, 0.4) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  transition: all 0.2s ease;
}

.aeth-switch-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.aeth-switch-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aeth-switch-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aeth-switch-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.aeth-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.aeth-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.aeth-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #272733;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.aeth-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.aeth-switch input:checked + .aeth-slider {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
}

.aeth-switch input:checked + .aeth-slider::before {
  transform: translateX(24px);
}

/* Purchase Status Badges on /buy */
.purchase-disabled-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.buy-prod-option.disabled-prod {
  opacity: 0.72;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.buy-prod-disabled-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-transform: uppercase;
}

/* ============================================================
   REDESIGNED /docs (2-COLUMN MODERN CARD LAYOUT)
   ============================================================ */
.docs-split-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 640px;
  padding: 0 !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #111117 0%, #0d0d12 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow: hidden;
  box-shadow: 0 25px 80px -15px rgba(0, 0, 0, 0.8) !important;
}

.docs-sidebar {
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}

.docs-sidebar-header {
  padding: 0 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.docs-sidebar-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.docs-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}

.docs-menu-item.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-color: rgba(139, 92, 246, 0.35);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.15);
}

.docs-menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: all 0.18s ease;
}

.docs-menu-item.active .docs-menu-icon {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}

.docs-menu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.docs-menu-text strong {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-menu-text span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-menu-item.active .docs-menu-text span {
  color: #cbd5e1;
}

.docs-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 10px 0;
}

.docs-main-content {
  padding: 30px 36px;
  overflow-y: auto;
  max-height: 820px;
}

/* Quickstart & Spoofer Step Cards in Docs */
.docs-step-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.docs-step-card {
  display: flex;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.docs-step-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.3);
}

.docs-step-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.docs-step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-step-body h4 {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.docs-step-body p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

.docs-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 8px;
  font-family: monospace;
  font-size: 12.5px;
  color: #a78bfa;
}

@media (max-width: 900px) {
  .docs-split-card {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 16px;
  }
  .docs-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .docs-menu-item {
    width: auto;
    flex-shrink: 0;
  }
  .docs-main-content {
    padding: 20px;
  }
}

/* ============================================================
   COMPREHENSIVE LIGHT THEME ("БЕЛЫЙ СТИЛЬ") POLISH
   ============================================================ */
:root[data-theme="light"] {
  --bg: #f8fafc !important;
  --bg-elevated: #ffffff !important;
  --surface: #ffffff !important;
  --surface-2: #f1f5f9 !important;
  --surface-3: #e2e8f0 !important;
  --text: #0f172a !important;
  --text-2: #334155 !important;
  --muted: #64748b !important;
  --border: #e2e8f0 !important;
  --border-strong: #cbd5e1 !important;
  --primary: #7c3aed !important;
  --input-bg: #ffffff !important;
  --input-focus-bg: #ffffff !important;
  --toast-bg: #0f172a !important;
  --toast-fg: #ffffff !important;
}

/* Cards and Glass Panels on Light Theme */
[data-theme="light"] .card,
[data-theme="light"] .dash-card,
[data-theme="light"] .modal-card,
[data-theme="light"] .buy-summary-card,
[data-theme="light"] .buy-form-card,
[data-theme="light"] .buy-success-card,
[data-theme="light"] .legal-doc .card,
[data-theme="light"] .docs-split-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

[data-theme="light"] .docs-sidebar {
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .docs-menu-item {
  color: #475569 !important;
}

[data-theme="light"] .docs-menu-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .docs-menu-item.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(99, 102, 241, 0.06) 100%) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  color: #6d28d9 !important;
}

[data-theme="light"] .docs-step-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .docs-step-body h4 {
  color: #0f172a !important;
}

[data-theme="light"] .docs-step-body p {
  color: #475569 !important;
}

[data-theme="light"] .docs-code-box {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #6d28d9 !important;
}

/* Headings and Texts */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .card-title,
[data-theme="light"] .modal-title-text,
[data-theme="light"] .maint-dark-title {
  color: #0f172a !important;
}

[data-theme="light"] p,
[data-theme="light"] .sub,
[data-theme="light"] .field-hint,
[data-theme="light"] .key-hint {
  color: #475569 !important;
}

/* Tables in Light Mode */
[data-theme="light"] .tbl th {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .tbl td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .tbl tbody tr:hover {
  background: #f8fafc !important;
}

[data-theme="light"] #docs-errors-table td {
  color: #0f172a !important;
}

[data-theme="light"] #docs-errors-table td:nth-child(3) {
  color: #334155 !important;
}

[data-theme="light"] #docs-errors-table td:nth-child(4) div {
  background: rgba(124, 58, 237, 0.08) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
  color: #5b21b6 !important;
}

/* Pricing cards in Light Mode */
[data-theme="light"] .dur-box-price {
  color: #0f172a !important;
}

[data-theme="light"] .dur-box-period {
  color: #0f172a !important;
}

[data-theme="light"] .dur-box-daily {
  color: #64748b !important;
}

[data-theme="light"] .buy-dur-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .buy-dur-box:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .buy-dur-box.active {
  border-color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.04) !important;
}

[data-theme="light"] .buy-prod-option {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .buy-prod-option .prod-opt-name {
  color: #0f172a !important;
}

[data-theme="light"] .buy-prod-option .prod-opt-price {
  color: #7c3aed !important;
}

/* Modal and inputs in Light Mode */
[data-theme="light"] .modal-backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(8px) !important;
}

[data-theme="light"] .modal-form-section {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .modal-form-section-title {
  color: #0f172a !important;
}

[data-theme="light"] .modal-nav-tabs {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .modal-nav-tab {
  color: #64748b !important;
}

[data-theme="light"] .modal-nav-tab.active {
  color: #ffffff !important;
  background: #7c3aed !important;
}

[data-theme="light"] .admin-input,
[data-theme="light"] .admin-select,
[data-theme="light"] .inp input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .admin-input:focus,
[data-theme="light"] .admin-select:focus,
[data-theme="light"] .inp input:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

[data-theme="light"] .aeth-switch-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .aeth-switch-title {
  color: #0f172a !important;
}

[data-theme="light"] .aeth-switch-desc {
  color: #64748b !important;
}

[data-theme="light"] label {
  color: #334155 !important;
}


