:root,
[data-theme="dark"] {
  --bg: #08080a;
  --bg2: #08080a;
  --card: rgba(18, 18, 22, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5fa;
  --muted: #8c8c96;
  --gold: #c8c8d0;
  --ok: #3dd68c;
  --wait: #d6b03d;
  --ink: #ffffff;
  --ink-fg: #0c0c10;
  --nav: rgba(8, 8, 10, 0.78);
  --modal-dim: rgba(0, 0, 0, 0.72);
  --field: #1c1c22;
  --feat-hover: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --spark: 255, 255, 255;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f3f1ea;
  --bg2: #ebe7dc;
  --card: #fffcf6;
  --line: rgba(28, 24, 18, 0.1);
  --text: #16140f;
  --muted: #6d675c;
  --gold: #8f6e3e;
  --ok: #1f8a58;
  --wait: #b8862a;
  --ink: #111111;
  --ink-fg: #ffffff;
  --nav: rgba(243, 241, 234, 0.78);
  --modal-dim: rgba(22, 20, 15, 0.45);
  --field: #ffffff;
  --feat-hover: rgba(143, 110, 62, 0.35);
  --shadow: 0 10px 30px rgba(22, 20, 15, 0.04);
  --spark: 22, 20, 15;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: color 0.5s var(--ease), background 0.5s var(--ease);
}

#sparks {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.logo.sm { width: 22px; height: 22px; }
.logo.modal-logo {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 12px;
}
[data-theme="light"] .logo,
[data-theme="light"] .logo-hero {
  filter: invert(1);
  mix-blend-mode: multiply;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--nav);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.28em;
  font-size: 13px;
  font-weight: 600;
}
.nav nav { display: flex; gap: 22px; flex: 1; }
.nav nav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}
.nav nav a:hover { color: var(--text); }
.nav-right { display: flex; gap: 10px; align-items: center; }
#navGuest { display: flex; gap: 10px; align-items: center; }
#navGuest[hidden],
#navUser[hidden],
.guest-only[hidden],
.user-only[hidden] { display: none !important; }
body.is-in #navGuest { display: none !important; }
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
  letter-spacing: 0.06em;
}
.nav-user-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}
.live-timer {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  min-height: 1em;
}
.live-timer.cab {
  font-size: 10px;
  margin: -6px 0 12px;
}
.nav-user:hover { border-color: var(--ink); }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--ink-fg);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.avatar.lg {
  width: 88px;
  height: 88px;
  font-size: 32px;
  cursor: pointer;
  border: 1px solid var(--line);
}
.avatar img, .avatar span, .avatar b {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
}
.chip, .lang {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  min-width: 42px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:hover { color: var(--text); }

.btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn.solid { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 14px 26px; }
.btn.full { width: 100%; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-icon.lg { width: 52px; height: 52px; }
.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line);
  background: rgba(88, 101, 242, 0.14);
  color: #7289da;
}
.nav-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.85;
}
.nav-discord:hover { opacity: 1; color: #7289da; }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer-actions { display: none; }
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-scrim[hidden] { display: none !important; }
body.nav-open { overflow: hidden; }

.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding: 32px 64px 72px;
}
.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ok);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  font-family: "Metal Mania", Cinzel, serif;
  font-size: clamp(72px, 14vw, 176px);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.hero-copy { text-align: left; }
.tag {
  font-family: Cinzel, serif;
  font-size: clamp(18px, 2.2vw, 28px);
  color: var(--gold);
  margin: 8px 0 22px;
  letter-spacing: 0.06em;
  text-align: left;
}
.lead {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  font-size: 16px;
}
.cta { display: flex; gap: 12px; margin: 32px 0 28px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  display: flex;
  gap: 22px;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.hero-meta b { color: var(--text); display: block; font-weight: 500; }

.hero-art {
  position: relative;
  height: 74vh;
  display: grid;
  place-items: center;
}
.logo-glow {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  animation: breathe 6.5s var(--ease) infinite;
}
[data-theme="light"] .logo-glow {
  background: radial-gradient(circle, rgba(143, 110, 62, 0.22), transparent 68%);
}
.logo-hero {
  width: min(460px, 48vw);
  height: auto;
  animation: float 8s var(--ease) infinite;
  transform-origin: center;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.02); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.panel {
  position: relative;
  z-index: 2;
  padding: 88px 64px;
  border-top: 1px solid var(--line);
}
.sec { margin-bottom: 40px; }
.sec h2 {
  font-family: Cinzel, serif;
  font-size: 42px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.sec p { color: var(--muted); margin-top: 10px; max-width: 560px; line-height: 1.6; }

.status-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.status-card, .product, .faq details, .steps li, .review-slot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.status-card .row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.status-card h3 { font-size: 18px; font-weight: 500; }
.status-card em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ok);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: var(--ok); }
.dot.wait { background: var(--wait); }
.status-card p, .muted, .steps p { color: var(--muted); line-height: 1.65; font-size: 14px; }

.products { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; max-width: none; }
.products .product.featured {
  width: 100%;
  max-width: none;
  padding: 34px 42px;
}
#products .sec p { max-width: 720px; }
.product h3 { font-family: Cinzel, serif; font-size: 32px; margin-bottom: 8px; }
.product .muted { font-size: 15px; line-height: 1.55; }
.product ul { margin: 22px 0 30px; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.product li { margin: 10px 0; }
.prices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.prices button {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 16px;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.prices button:hover { transform: translateY(-3px); }
.prices button span { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.prices button b { font-size: 30px; font-weight: 600; }
.prices button.on { border-color: var(--ink); background: var(--ink); color: var(--ink-fg); }
.prices button.on span { color: color-mix(in srgb, var(--ink-fg) 65%, transparent); }
.product.key-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.product.key-card .key-copy { flex: 1; min-width: 0; }
.product.key-card .key-copy ul { display: none; }
.product.key-card .key-cta {
  flex: 0 0 auto;
  width: auto;
  min-width: 132px;
  margin: 0;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.ghost-badge { color: var(--wait); }
.product.dim { opacity: 0.82; }

.review-slot {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 16px;
  color: var(--muted);
  border-style: dashed;
}
.review-slot .logo { width: 64px; height: 64px; }

.review-panel {
  position: relative;
  overflow: hidden;
  /* 1920×960 source — keep full frame, no half-crop */
  aspect-ratio: 2 / 1;
  width: 100%;
  min-height: 320px;
  max-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 0;
}
.review-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050508;
}
.review-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #050508;
}
.review-bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0.28) 45%, rgba(8, 8, 10, 0.78) 100%),
    radial-gradient(ellipse 70% 50% at 50% 40%, transparent, rgba(8, 8, 10, 0.45));
}
[data-theme="light"] .review-bg-veil {
  background:
    linear-gradient(180deg, rgba(243, 241, 234, 0.55) 0%, rgba(243, 241, 234, 0.28) 45%, rgba(243, 241, 234, 0.82) 100%),
    radial-gradient(ellipse 70% 50% at 50% 40%, transparent, rgba(243, 241, 234, 0.4));
}
.review-panel > .sec {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding-bottom: 8px;
}
.review-panel > .sec h2,
.review-panel > .sec p {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.media-badge {
  color: #111;
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.admin-panel { margin-top: 0; }
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.admin-lead { margin: 4px 0 0; font-size: 13px; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.admin-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 12px Outfit, system-ui, sans-serif;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.admin-tab.is-on {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.admin-sec { display: grid; gap: 12px; }
.admin-block {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
}
.admin-block-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-toolbar .dfield { margin: 0; }
.admin-toolbar .dbtn.sm {
  width: auto;
  margin: 0;
  padding: 10px 14px;
  white-space: nowrap;
}
.admin-grow { flex: 1 1 180px; min-width: 140px; }
.admin-quick {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.admin-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.admin-result code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px) {
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-quick { margin-left: 0; width: 100%; }
}
.admin-sub {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.admin-key-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.admin-key-form .admin-dur,
.admin-dur {
  flex: 0 0 88px;
  margin: 0;
}
.admin-dur input { width: 100%; }
.freeze-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.freeze-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.freeze-row .admin-select {
  width: auto;
  min-width: 110px;
  margin: 0;
}
.freeze-row .dbtn {
  width: auto;
  margin-top: 0;
  padding: 10px 14px;
}
.admin-select {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  padding: 0 12px;
  font: 500 13px Outfit, system-ui, sans-serif;
}
.admin-table-wrap {
  overflow: auto;
  max-height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 2px;
}
.admin-keys-wrap { max-height: 240px; }
.admin-users-wrap { max-height: 320px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table th,
.admin-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}
.admin-table th {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: #121218;
  z-index: 1;
}
.admin-table .ok { color: var(--ok); }
.admin-keys-table td:first-child {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.admin-pill.free {
  color: #7dffb3;
  background: rgba(61, 214, 140, 0.12);
}
.admin-pill.used {
  color: #c8c8d0;
  background: rgba(255,255,255,0.06);
}
.admin-pill.promo {
  color: #9ecbff;
  background: rgba(110, 168, 255, 0.12);
}
.admin-pill.buy {
  color: #ffd38a;
  background: rgba(255, 191, 90, 0.12);
}
.admin-pill.key {
  color: #d2d2da;
  background: rgba(255,255,255,0.05);
}
.admin-flags {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.admin-flag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.admin-flag.on { color: #7dffb3; background: rgba(61, 214, 140, 0.12); }
.admin-flag.ban { color: #ff8a8a; background: rgba(255, 80, 80, 0.14); }
.admin-flag.media { color: #9ecbff; background: rgba(110, 168, 255, 0.12); }
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.admin-actions .chip { min-height: 26px; padding: 3px 7px; font-size: 11px; }
.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.admin-key-out { margin-top: 8px; }
.admin-key-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 160px;
  overflow: auto;
  font-size: 12px;
  color: #9a9aa6;
}
.admin-key-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: ui-monospace, monospace;
}
.admin-batch-out {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
  color: #e8e8ec;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  resize: vertical;
  box-sizing: border-box;
}
.admin-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dd68c;
  margin-right: 6px;
  vertical-align: middle;
}
.admin-ban-tag { color: #ff6b6b; font-weight: 600; }
.admin-note-cell {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8a8a96;
  font-size: 11px;
}
.admin-hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 16px 0;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.steps li {
  display: grid;
  gap: 12px;
  min-height: 180px;
  transition: transform 0.65s var(--ease);
}
.steps li:hover { transform: translateY(-8px); }
.steps b {
  font-family: Cinzel, serif;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 13px;
}
.steps h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { transition: border-color 0.35s var(--ease); }
.faq details[open] { border-color: var(--feat-hover); }
.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; color: var(--muted); line-height: 1.7; }

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 12px;
  text-transform: uppercase;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--modal-dim);
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease), backdrop-filter 0.55s var(--ease);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal[hidden] { display: none; }
.modal.is-open[hidden] { display: grid; }
.modal-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  transform: translateY(22px) scale(0.97);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.55s var(--ease);
}
.modal.is-open .modal-card {
  transform: none;
  opacity: 1;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.tab {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}
.tab.on {
  background: var(--ink);
  color: var(--ink-fg);
  border-color: var(--ink);
}
.modal-card h2 { font-family: Cinzel, serif; margin-bottom: 6px; text-align: center; }

/* Custom centered dialogs (replace browser alert/confirm) */
.ui-dialog-overlay {
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.ui-dialog-overlay[hidden] { display: none !important; }
.ui-dialog-overlay.is-open .ui-dialog {
  transform: none;
  opacity: 1;
}
.ui-dialog {
  width: min(400px, 100%);
  background: var(--card, #0e0e12);
  border: 1px solid var(--line, rgba(255,255,255,0.12));
  border-radius: 22px;
  padding: 26px 24px 20px;
  text-align: center;
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)), opacity 0.4s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}
.ui-dialog-eyebrow {
  margin: 0 0 10px;
  font-family: Cinzel, serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #8b8b96);
}
.ui-dialog-msg {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink, #fff);
  white-space: pre-line;
}
.ui-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.ui-dialog-actions .btn {
  min-width: 110px;
  margin: 0;
}
.modal-card .muted { text-align: center; }
.modal-card label { display: block; margin: 14px 0; font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.modal-card label[hidden] { display: none !important; }
.modal-card input {
  width: 100%;
  margin-top: 6px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.modal-card input:focus { border-color: var(--ink); }
.x {
  position: absolute;
  right: 14px; top: 10px;
  background: none; border: 0;
  font-size: 28px; cursor: pointer; color: var(--muted);
}
.hint { margin-top: 12px; min-height: 1.2em; font-size: 13px; color: var(--gold); text-align: center; }

.dash-overlay {
  background: rgba(8, 8, 12, 0.92);
  align-items: start;
  overflow: auto;
  padding: 18px 16px 40px;
  backdrop-filter: blur(18px);
}
#pay.dash-overlay,
#topUp.dash-overlay { align-items: center; }
.topup-modal {
  max-width: 420px;
  width: min(100%, 420px);
}
.topup-modal .topup-methods { margin-top: 14px; }
.topup-modal .cab-ticket-steps { margin: 12px 0; }
.topup-modal #topUpLater { margin-top: 12px; }
.dash {
  --blue: #ffffff;
  --ink-on: #111111;
  --card2: #1c1c21;
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  padding: 8px 8px 24px;
  transform: translateY(28px) scale(0.985);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.6s var(--ease);
}
.modal.is-open .dash {
  transform: none;
  opacity: 1;
}
.dash-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-right: 36px;
}
.dash-ava {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--blue);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.dash-ava:hover { transform: scale(1.04); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.dash-ava span, .dash-ava img, .dash-ava b {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--ink-on);
}
.dash-who h2 { font-size: 28px; font-weight: 700; }
.dash-role { color: #8b8b96; font-size: 13px; margin-top: 2px; }
.dash-meta {
  list-style: none;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #8b8b96;
  font-size: 12px;
  margin-left: auto;
}
.dash-bell {
  background: var(--card2);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
}
.dash-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.dash-tabs button {
  background: var(--card2);
  border: 0;
  color: #cfcfd6;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.35s var(--ease);
}
.dash-tabs button:hover { transform: translateY(-1px); }
.dash-tabs button.on { background: var(--blue); color: var(--ink-on); }
.dash-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1.1fr;
  gap: 12px;
}
.dash-grid.two { grid-template-columns: 1fr 1fr; }
.dash-grid.one { grid-template-columns: minmax(280px, 520px); }
.pane {
  display: block;
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
}
.pane.is-leaving {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.pane.is-entering {
  opacity: 0;
  transform: translateY(14px);
}
.pane[hidden] { display: none !important; }
.dcard {
  background: var(--card2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.4s var(--ease);
}
.dcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.modal.is-open .pane-main .dcard,
.modal.is-open .pane-set .dcard {
  animation: cardRise 0.7s var(--ease) both;
}
.modal.is-open .pane-main .dash-col:nth-child(1) .dcard { animation-delay: 0.06s; }
.modal.is-open .pane-main .dash-col:nth-child(2) .dcard { animation-delay: 0.14s; }
.modal.is-open .pane-set .dash-col:nth-child(1) .dcard:nth-child(1) { animation-delay: 0.06s; }
.modal.is-open .pane-set .dash-col:nth-child(1) .dcard:nth-child(2) { animation-delay: 0.12s; }
.modal.is-open .pane-set .dash-col:nth-child(2) .dcard:nth-child(1) { animation-delay: 0.18s; }
.modal.is-open .pane-set .dash-col:nth-child(2) .dcard:nth-child(2) { animation-delay: 0.24s; }
@keyframes cardRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.dcard h3 { font-size: 16px; margin-bottom: 8px; }
.dim { color: #8b8b96; font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.dfield {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #121216;
  border-radius: 12px;
  padding: 0 12px;
  margin: 8px 0;
}
.dfield span { color: #8b8b96; }
.dfield input {
  flex: 1;
  background: none;
  border: 0;
  padding: 12px 0;
  outline: none;
}
.dbtn {
  display: inline-block;
  width: 100%;
  border: 0;
  background: var(--blue);
  color: var(--ink-on);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.dbtn.ghost { background: #2a2a32; color: #ddd; }
.dbtn.sm { width: auto; padding: 10px 14px; margin: 0; }
.dcard.offer {
  background: #f3f3f6;
  color: #111;
}
.dcard.offer .dim, .dcard.offer p { color: #333; }
.dcard.bal {
  background: #fff;
  color: #111;
  overflow: visible;
}
.dcard.bal > p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}
.dcard.bal b {
  font-size: 28px;
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
  line-height: 1.2;
  color: #111;
}
.dcard.bal .bal-topup,
.dcard.bal #cabBalTopUp {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
}
.dcard.bal .bal-topup:hover,
.dcard.bal #cabBalTopUp:hover {
  background: #222;
}
.topup-methods {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.topup-methods .dbtn {
  margin-top: 0;
  text-align: center;
}
.prod-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 12px; color: #9a9aa6; }
.tags em { color: var(--ok); font-style: normal; }
.tags span.ok, #cabSub.ok { color: var(--ok); }
.task-bar, .stripe-bar {
  height: 8px;
  border-radius: 99px;
  background: #121216;
  overflow: hidden;
  margin: 10px 0 6px;
}
.task-bar i, .stripe-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(-45deg, #fff 0 10px, #c8c8c8 10px 20px);
  background-size: 20px 20px;
  animation: stripe 0.8s linear infinite;
}
@keyframes stripe { to { background-position: 20px 0; } }
.task-pct { font-size: 12px; color: #8b8b96; }

.menu-embed {
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0c;
  height: 500px;
  border: 1px solid rgba(255,255,255,.06);
}
.menu-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.hero-art .menu-embed {
  width: min(860px, 100%);
  height: min(500px, 70vh);
  aspect-ratio: 860 / 500;
}

.buy {
  --blue: #ffffff;
  --ink-on: #111111;
  width: min(380px, 100%);
  background: #16161b;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  animation: pop 0.4s var(--ease);
}
.buy-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.buy-head .logo { width: 42px; height: 42px; border-radius: 10px; }
.buy-head h2 { font-size: 20px; }
.buy-head .ok { color: var(--ok); font-size: 12px; }
.buy-lab { color: #8b8b96; font-size: 13px; margin-bottom: 8px; }
.buy-days { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.buy-days button {
  background: #1e1e26;
  border: 0;
  border-radius: 14px;
  padding: 14px 8px;
  color: #ddd;
  cursor: pointer;
}
.buy-days button.on { background: var(--blue); color: var(--ink-on); }
.buy-days small { display: block; margin-top: 4px; opacity: 0.75; font-size: 11px; }
.buy-ref { display: flex; gap: 8px; margin-bottom: 12px; }
.buy-ref input {
  flex: 1;
  background: #1e1e26;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
}
.buy-ref button {
  width: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #111;
  cursor: pointer;
}
.buy-receipt {
  background: #1e1e26;
  border-radius: 14px 14px 0 0;
  padding: 14px;
  margin-bottom: 4px;
  position: relative;
}
.buy-receipt p { display: flex; justify-content: space-between; margin: 6px 0; font-size: 13px; color: #aaa; }
.buy-receipt b { color: #fff; font-size: 18px; }
.buy-receipt::after {
  content: "";
  display: block;
  height: 10px;
  margin: 10px -14px -14px;
  background: radial-gradient(circle at 8px 0, transparent 7px, #16161b 8px);
  background-size: 16px 10px;
}
.buy-go { margin: 14px 0 8px; padding: 14px; font-size: 15px; background: #fff; color: #111; }
.buy-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 10px;
}
.buy-methods button {
  text-align: left;
  border: 1px solid #2a2a32;
  background: #16161c;
  color: #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.buy-methods button.on {
  border-color: var(--blue);
  background: rgba(88, 101, 242, 0.18);
}
.buy-methods b { display: block; font-size: 13px; }
.buy-methods small { display: block; margin-top: 4px; opacity: 0.7; font-size: 11px; }
.buy-discord-hint {
  font-size: 12px;
  color: #9a9aa3;
  line-height: 1.45;
  margin: 0 0 4px;
}
.buy-discord-hint[hidden] { display: none; }
.buy-ticket-guide {
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1a1a20;
  border: 1px solid #2a2a32;
}
.buy-ticket-guide[hidden] { display: none; }
.buy-ticket-title {
  margin: 0 0 10px;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #fff;
}
.buy-ticket-steps {
  margin: 0;
  padding: 0 0 0 18px;
  color: #b8b8c0;
  font-size: 12px;
  line-height: 1.55;
}
.buy-ticket-steps li { margin: 0 0 7px; }
.buy-ticket-steps li:last-child { margin-bottom: 0; }
.buy-ticket-steps b { color: #fff; font-weight: 600; }
.buy-ticket-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #8b8b96;
  line-height: 1.4;
}
.cab-ticket-steps {
  margin: 0 0 12px;
  padding-left: 18px;
}
.admin-bal-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.media-promo-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}
.media-promo-form .dbtn {
  justify-self: start;
}
.media-for-select {
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  outline: none;
}
.media-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.media-sum-item {
  background: #14141a;
  border: 1px solid #2a2a32;
  border-radius: 10px;
  padding: 10px 12px;
}
.media-sum-item span {
  display: block;
  font-size: 11px;
  color: #8b8b96;
  margin-bottom: 4px;
}
.media-sum-item b {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}
.media-stat-cards {
  display: grid;
  gap: 10px;
}
.media-stat-card {
  border: 1px solid #2a2a32;
  border-radius: 12px;
  background: #121218;
  padding: 12px 14px;
}
.media-stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.media-stat-card-head strong {
  font-size: 15px;
  color: #fff;
}
.media-stat-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.media-stat-metrics div {
  background: #18181f;
  border-radius: 8px;
  padding: 8px 10px;
}
.media-stat-metrics span {
  display: block;
  font-size: 11px;
  color: #8b8b96;
}
.media-stat-metrics b {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  color: #e8e8ee;
}
.media-stat-metrics b.ok { color: var(--ok); }
.media-codes-detail {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #2a2a32;
  list-style: none;
}
.media-codes-detail[hidden] { display: none; }
.media-codes-detail li {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 8px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #22222a;
  color: #bbb;
}
.media-codes-detail li:last-child { border-bottom: none; }
.media-codes-detail code {
  color: #fff;
  font-size: 12px;
}
.media-codes-detail .free { color: #8b8b96; }
.media-codes-detail .used { color: var(--ok); }
@media (max-width: 720px) {
  .media-summary { grid-template-columns: 1fr 1fr; }
  .media-stat-metrics { grid-template-columns: 1fr; }
  .media-codes-detail li { grid-template-columns: 1fr; gap: 2px; }
}
.buy-help { font-size: 11px; color: #8b8b96; line-height: 1.4; margin-bottom: 14px; }
.buy-spec { list-style: none; font-size: 12px; color: #8b8b96; }
.buy-spec li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid #2a2a32; }
.buy-spec b { color: #ddd; font-weight: 500; }
.key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.key-row code { font-size: 13px; letter-spacing: 0.08em; }

.builder-card { margin-top: 4px; }
.builder-modal {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--card2, #16161c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 20px 20px 16px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.6s var(--ease);
}
#buildModal.is-open .builder-modal {
  transform: none;
  opacity: 1;
}
#buildModal.dash-overlay {
  align-items: center;
  justify-content: center;
  z-index: 80;
}
.builder-fields label,
.builder-preview-wrap {
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
}
#buildModal.is-open .builder-fields label {
  animation: cardRise 0.65s var(--ease) both;
}
#buildModal.is-open .builder-fields label:nth-child(1) { animation-delay: 0.04s; }
#buildModal.is-open .builder-fields label:nth-child(2) { animation-delay: 0.07s; }
#buildModal.is-open .builder-fields label:nth-child(3) { animation-delay: 0.1s; }
#buildModal.is-open .builder-fields label:nth-child(4) { animation-delay: 0.13s; }
#buildModal.is-open .builder-fields label:nth-child(5) { animation-delay: 0.16s; }
#buildModal.is-open .builder-fields label:nth-child(6) { animation-delay: 0.19s; }
#buildModal.is-open .builder-fields label:nth-child(7) { animation-delay: 0.22s; }
#buildModal.is-open .builder-fields label:nth-child(8) { animation-delay: 0.25s; }
#buildModal.is-open .builder-fields label:nth-child(9) { animation-delay: 0.28s; }
#buildModal.is-open .builder-fields label:nth-child(10) { animation-delay: 0.31s; }
#buildModal.is-open .builder-preview-wrap {
  animation: cardRise 0.75s var(--ease) 0.12s both;
}
.win-props {
  transition: box-shadow 0.4s var(--ease), transform 0.45s var(--ease);
}
.builder-fields input,
.builder-fields textarea {
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.builder-modal .x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #9a9aa6;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.builder-head { margin-bottom: 14px; padding-right: 28px; }
.builder-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
  gap: 18px;
  align-items: start;
}
.builder-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bfield {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 10px;
  align-items: center;
}
.bhint {
  grid-column: 1 / -1;
  margin: -2px 0 8px 178px;
  color: #8b8b96;
  font-size: 11px;
  line-height: 1.35;
}
.bsign {
  display: grid;
  gap: 6px;
}
.bsign input[type="file"] {
  width: 100%;
  color: #bbb;
  font-size: 12px;
}
.bsign input[type="password"] {
  width: 100%;
  background: #121216;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  color: #eee;
  padding: 10px 12px;
  outline: none;
}
.win-sign-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  padding: 6px 8px;
  color: #111;
  font-size: 12px;
  background: #e8f1fb;
}
.bfield span {
  color: #a8a8b4;
  font-size: 13px;
  line-height: 1.2;
}
.bfield input {
  width: 100%;
  background: #121216;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  color: #eee;
  padding: 10px 12px;
  outline: none;
}
.bfield input:focus { border-color: rgba(140,120,255,.45); }
.builder-preview-wrap { min-width: 0; }
.builder-preview-lab {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  color: #8b8b96;
  margin: 0 0 10px;
}
.win-props {
  background: #f0f0f0;
  color: #111;
  border-radius: 4px;
  border: 1px solid #6b6b6b;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
}
.win-props-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #d0d0d0;
  padding: 7px 10px;
}
.win-props-title b { flex: 1; font-weight: 600; font-size: 12px; }
.win-props-title i { font-style: normal; color: #666; }
.win-ico {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(135deg, #5b9bd5, #2b579a);
}
.win-props-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #f0f0f0;
  border-bottom: 1px solid #cfcfcf;
  padding: 0 6px;
}
.win-props-tabs .win-tab,
.win-props-tabs span {
  padding: 7px 9px;
  color: #333;
  border: 1px solid transparent;
  border-bottom: 0;
  margin-bottom: -1px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
}
.win-props-tabs .win-tab:hover { background: #e8e8e8; }
.win-props-tabs .win-tab.on,
.win-props-tabs span.on {
  background: #fff;
  border-color: #cfcfcf;
}
.win-props-body {
  background: #fff;
  padding: 8px 10px 4px;
  max-height: 360px;
  overflow: auto;
  min-height: 280px;
}
.win-props-body[hidden] { display: none !important; }
.win-props-body table {
  width: 100%;
  border-collapse: collapse;
}
.win-props-body th,
.win-props-body td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid #ececec;
  vertical-align: top;
}
.win-props-body th { color: #555; font-weight: 600; width: 42%; }
.win-props-body td:last-child { color: #111; word-break: break-word; }
.win-props-body tr.more td {
  color: #555;
  border-bottom: 1px solid #ddd;
  padding-top: 8px;
  padding-bottom: 8px;
}
.win-props-foot {
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px 10px;
  background: #f0f0f0;
  border-top: 1px solid #d8d8d8;
}
.win-props-foot button {
  min-width: 78px;
  padding: 4px 14px;
  border: 1px solid #adadad;
  border-radius: 3px;
  background: #e1e1e1;
  cursor: default;
}
.win-general { color: #111; font-size: 12px; }
.win-general-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.win-file-ico {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: linear-gradient(135deg, #5b9bd5, #2b579a);
  flex-shrink: 0;
  border: 1px solid #2b579a;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.win-file-ico.big { width: 48px; height: 48px; }
.win-file-ico:hover { outline: 1px solid #0078d7; }
.win-rename {
  flex: 1;
  border: 1px solid #7f9db9;
  padding: 4px 6px;
  background: #fff;
  color: #111;
  font: inherit;
}
.win-user-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid #eee;
  color: #111;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}
.win-user-row.on { background: #0078d7; color: #fff; }
.win-mini { cursor: pointer; }
.win-mini:hover { background: #f0f0f0; }
.win-select:disabled { opacity: .55; }
.win-sep {
  height: 1px;
  background: #dcdcdc;
  margin: 8px 0;
}
.win-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  padding: 3px 0;
}
.win-kv span { color: #555; }
.win-kv b { font-weight: 400; word-break: break-all; }
.win-attrs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.win-attrs label { color: #111; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.win-mini {
  border: 1px solid #adadad;
  background: #e1e1e1;
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 12px;
  color: #111;
  cursor: default;
}
.win-note { color: #111; font-size: 12px; margin: 0 0 8px; line-height: 1.4; }
.win-listbox {
  border: 1px solid #7f9db9;
  background: #fff;
  min-height: 90px;
  margin-bottom: 8px;
}
.win-listbox.tall { min-height: 140px; }
.win-listbox-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  background: #f0f0f0;
  border-bottom: 1px solid #d0d0d0;
  padding: 4px 8px;
  color: #333;
  font-size: 11px;
}
.win-listbox-empty {
  padding: 18px 10px;
  color: #666;
  text-align: center;
  font-size: 12px;
}
.win-row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.win-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-size: 12px;
  margin: 6px 0;
}
.win-select {
  width: 100%;
  max-width: 280px;
  margin: 4px 0 0 22px;
  padding: 3px 6px;
  border: 1px solid #7f9db9;
  background: #fff;
  color: #111;
  font-size: 12px;
}
.win-perm { width: 100%; border-collapse: collapse; font-size: 12px; color: #111; }
.win-perm th, .win-perm td { border: 1px solid #d0d0d0; padding: 4px 6px; text-align: left; }
.win-perm th { background: #f3f3f3; }
.win-custom-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: #111;
}
.win-folder-ico {
  width: 40px;
  height: 32px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffe08a, #e0a800);
  border: 1px solid #c48a00;
}
.win-custom-row p { margin: 2px 0 0; color: #555; font-size: 11px; }
.builder-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}
.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.builder-actions .dbtn { margin-top: 0; white-space: nowrap; }

@media (max-width: 980px) {
  .builder-layout { grid-template-columns: 1fr; }
  .bfield { grid-template-columns: 1fr; gap: 4px; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.95s var(--ease) forwards;
  animation-play-state: paused;
}
.reveal.in { animation-play-state: running; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .logo-hero, .logo-glow, .pulse, .steps li, .btn { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero, .panel, .foot, .nav {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .brand span { letter-spacing: 0.18em; font-size: 12px; }
  .nav-burger { display: inline-flex; }
  .nav-desk-only { display: none !important; }
  .nav-drawer-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 32;
    width: min(320px, 88vw);
    height: 100dvh;
    margin: 0;
    padding: calc(72px + env(safe-area-inset-top)) 22px 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--card);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
    transform: translateX(104%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .nav nav { transform: none; }
  .nav nav a {
    padding: 14px 12px;
    font-size: 14px;
    border-radius: 12px;
    letter-spacing: 0.1em;
  }
  .nav nav a:hover,
  .nav nav a:active { background: var(--field); color: var(--text); }
  .nav-right { gap: 8px; margin-left: auto; }
  #navGuest .btn { padding: 9px 12px; font-size: 11px; }
  #navGuest .btn.ghost { display: none; }
  .nav-user { padding-right: 10px; max-width: 140px; }
  .nav-user-txt { overflow: hidden; }
  #navName {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 40px;
    gap: 28px;
  }
  .hero h1 { font-size: clamp(56px, 18vw, 96px); }
  .lead { font-size: 15px; max-width: none; }
  .cta { margin: 24px 0 20px; }
  .cta .btn.lg { flex: 1 1 auto; text-align: center; justify-content: center; }
  .hero-meta { gap: 14px; }
  .hero-art {
    height: auto;
    min-height: 0;
    width: 100%;
  }
  .hero-art .menu-embed {
    width: 100%;
    height: auto;
    aspect-ratio: 860 / 500;
    max-height: none;
  }

  .panel { padding-top: 56px; padding-bottom: 56px; }
  .sec { margin-bottom: 28px; }
  .sec h2 { font-size: clamp(26px, 8vw, 36px); letter-spacing: 0.08em; }
  .status-grid, .products, .steps, .dash-grid, .dash-grid.two { grid-template-columns: 1fr; }
  .product.key-card { flex-direction: column; align-items: stretch; }
  .product.key-card .key-cta { width: 100%; }
  .prices { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .prices button { padding: 14px 8px; }
  .prices button b { font-size: 22px; }

  .review-panel {
    min-height: 200px;
    max-height: none;
    aspect-ratio: 2 / 1;
  }
  .review-copy { padding: 16px !important; }
  .faq details { padding: 18px; }
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .modal {
    padding: 12px;
    align-items: end;
    place-items: end center;
  }
  .modal-card {
    width: 100%;
    max-height: min(92dvh, 920px);
    overflow: auto;
    border-radius: 20px 20px 12px 12px;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }
  .dash-overlay {
    padding: 10px 10px max(24px, env(safe-area-inset-bottom));
    align-items: stretch;
  }
  .dash { padding: 4px 0 16px; width: 100%; }
  .dash-head { gap: 12px; padding-right: 28px; }
  .dash-ava { width: 56px; height: 56px; border-radius: 14px; }
  .dash-who h2 { font-size: 22px; }
  .dash-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .dash-tabs button { flex: 0 0 auto; white-space: nowrap; }
  .builder-layout { grid-template-columns: 1fr; }
  .bfield { grid-template-columns: 1fr; gap: 4px; }
  .win-kv { grid-template-columns: 1fr; gap: 2px 0; }
}

@media (max-width: 560px) {
  .hero-art .menu-embed { display: none; }
  .hero { padding-bottom: 28px; }
  .cta .btn.lg { width: 100%; }
  .btn-icon.lg { width: 48px; height: 48px; }
  .status-card, .product, .faq details, .steps li { border-radius: 16px; padding: 18px; }
  .product h3 { font-size: 22px; }
  .chip, .btn { min-height: 44px; }
  .nav-burger { min-height: 44px; }
  input, select, textarea { font-size: 16px !important; } /* iOS zoom prevent */
}
