:root {
  --bg: #08090d;
  --bg-soft: #0f1117;
  --surface: rgba(20, 22, 30, 0.82);
  --surface-strong: #171924;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f6f7fb;
  --muted: #aeb4c2;
  --heading: #ffffff;
  --accent: #ff2e2e;
  --accent-2: #d41414;
  --accent-soft: rgba(255, 46, 46, 0.16);
  --accent-glow: 0 24px 70px rgba(255, 46, 46, 0.24);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 46, 46, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 46, 46, 0.10), transparent 24%),
    linear-gradient(180deg, #07080c 0%, #0a0d14 100%);
}

body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
code, .code-area { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
textarea, input, select { min-width: 0; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}
.ui-icon svg { width: 100%; height: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 15, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 22px rgba(255, 46, 46, 0.35));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.desktop-nav > a:not(.button) {
  font-size: 0.95rem;
  color: var(--muted);
}
.desktop-nav > a:not(.button):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(8, 10, 15, 0.96);
}
.mobile-drawer-inner {
  display: grid;
  gap: 10px;
  padding: 16px 0 20px;
}
.mobile-drawer a {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.badge,
.eyebrow,
.mini-label,
.plan-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffd0d0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow,
.mini-label,
.plan-kicker {
  padding: 0;
  background: transparent;
  border: 0;
  color: #f1a8a8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: scale(1.025); }
.button.primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: 0 14px 36px rgba(255, 46, 46, 0.30);
}
.button.subtle:hover,
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.button.danger {
  background: rgba(239,68,68,.14);
  color: #ffdada;
  border-color: rgba(239,68,68,.24);
}
.button.full-width { width: 100%; }

.section { padding: 88px 0; }
.hero-section { padding: 56px 0 76px; }
.hero-grid,
.two-column-grid,
.auth-grid,
.dashboard-layout,
.faq-layout,
.support-grid,
.split-intro,
.admin-user-grid,
.footer-grid { display: grid; gap: 24px; }
.hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
.two-column-grid,
.auth-grid,
.support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-layout { grid-template-columns: 290px minmax(0, 1fr); align-items: start; }
.faq-layout { grid-template-columns: .85fr 1.15fr; align-items: start; }
.split-intro { grid-template-columns: .78fr 1.22fr; align-items: start; }
.admin-user-grid { grid-template-columns: 1.15fr .85fr; }
.footer-grid { grid-template-columns: 1.2fr .7fr .7fr; align-items: start; }

.hero-copy h1,
.section-heading h2,
.page-head h1,
.auth-copy h1,
.center-card h1 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--heading);
}
.hero-copy h1 { font-size: clamp(2.9rem, 6vw, 5rem); max-width: 10ch; }
.section-heading h2,
.page-head h1,
.auth-copy h1,
.center-card h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.hero-text,
.section-heading p,
.page-head p,
.auth-copy p,
.muted,
.feature-card p,
.platform-card p,
.plan-card p,
.step-card p,
.info-card p,
.footer-copy,
.footer-column a,
.auth-card-head p { color: var(--muted); line-height: 1.7; }
.hero-text { margin: 20px 0 0; max-width: 60ch; font-size: 1.08rem; }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading.narrow { max-width: 520px; }
.section-heading.align-left { margin-bottom: 0; }

.hero-actions,
.hero-meta,
.support-actions,
.status-row,
.checkbox-row,
.split-actions,
.sidebar-status-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions { margin-top: 30px; }
.hero-meta { margin-top: 28px; }
.hero-panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card { overflow: hidden; }
.glow-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    radial-gradient(circle at top center, rgba(255,46,46,.18), transparent 42%),
    var(--surface-strong);
  box-shadow: var(--accent-glow), var(--shadow);
}
.hero-panel {
  display: grid;
  gap: 24px;
  padding: 30px;
}
.hero-visual {
  min-height: 180px;
  display: grid;
  place-items: center;
}
.hero-logo {
  width: min(78%, 240px);
  filter: drop-shadow(0 0 34px rgba(255, 46, 46, 0.42));
}
.hero-panel-copy h2 { margin: 8px 0 10px; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.hero-panel-copy p { margin: 0; }
.hero-list,
.feature-list,
.instruction-list,
.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-list li,
.feature-list li,
.instruction-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}
.hero-list li::before,
.feature-list li::before,
.instruction-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5e5e;
}
.feature-list.relaxed { gap: 10px; }
.instruction-list { list-style: decimal inside; }
.instruction-list li::before { display: none; }

.meta-pill {
  min-width: 166px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.meta-pill strong { display: block; font-size: 1.15rem; }
.meta-pill span { color: var(--muted); font-size: .94rem; display: block; }
.meta-pill .ui-icon { width: 1.35rem; height: 1.35rem; color: #ff9a9a; }

.feature-grid,
.plan-grid,
.platform-grid,
.stat-grid,
.steps-grid {
  display: grid;
  gap: 20px;
}
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.small-gap { gap: 16px; }

.feature-card,
.platform-card,
.plan-card,
.step-card,
.metric-card,
.info-card,
.auth-card,
.mini-card,
.billing-summary,
.compact-card,
.center-card {
  padding: 24px;
}
.feature-card,
.platform-card,
.step-card,
.metric-card,
.info-card,
.auth-card,
.mini-card,
.center-card { display: grid; gap: 14px; }
.feature-card h3,
.platform-card h3,
.plan-card h3,
.step-card h3,
.info-card h2,
.auth-card h2,
.admin-user-head h3,
.center-card h1 { margin: 0; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,46,46,.14);
  color: #ffb9b9;
}
.feature-icon.small { width: 38px; height: 38px; }
.feature-icon .ui-icon { width: 1.2rem; height: 1.2rem; }

.accent-section {
  background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan-card.popular {
  border-color: rgba(255, 46, 46, 0.32);
  box-shadow: var(--accent-glow), var(--shadow);
}
.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.plan-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,46,46,.16);
  color: #ffcece;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plan-price { display: flex; align-items: baseline; gap: 10px; }
.plan-price strong { font-size: clamp(1.85rem, 2.3vw, 2.1rem); }
.plan-price span,
.plan-description,
.plan-note { color: var(--muted); }
.plan-description { min-height: 118px; }
.plan-footer { margin-top: auto; display: grid; gap: 14px; }

.timeline-grid .step-card span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.05);
  color: #ffd0d0;
  font-weight: 700;
}
.platform-head {
  display: flex;
  gap: 14px;
  align-items: start;
}
.platform-card ol { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.72; }
.platform-card li + li { margin-top: 10px; }

.faq-list { display: grid; gap: 16px; }
.faq-item { padding: 20px 22px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding-right: 32px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted);
  font-size: 1.1rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 14px 0 0; }

.support-grid {
  align-items: center;
  padding: 30px;
  background: linear-gradient(180deg, rgba(255,46,46,.10), rgba(255,255,255,.02));
}

.auth-section {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
}
.auth-card { max-width: 520px; justify-self: end; width: 100%; }
.auth-card-head { display: grid; gap: 8px; margin-bottom: 4px; }
.auth-points { display: grid; gap: 14px; margin-top: 24px; }
.mini-card {
  grid-template-columns: 44px 1fr;
  align-items: start;
}
.mini-card strong { display: block; margin-bottom: 4px; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
}
.divider::before,
.divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dev-box,
.note-box,
.empty-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.dev-box strong,
.note-box strong,
.empty-box strong { color: var(--text); display: block; margin-bottom: 6px; }

.stack-form { display: grid; gap: 16px; }
.stack-form label,
.stack-form > label { display: grid; gap: 8px; }
.stack-form span { font-size: .95rem; color: #dddde5; }
input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}
textarea { resize: vertical; min-height: 118px; }
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 85, 85, 0.42);
  box-shadow: 0 0 0 4px rgba(255,46,46,.12);
}
input:disabled,
textarea:disabled { opacity: .8; }
.code-area { min-height: 140px; line-height: 1.55; overflow-wrap: anywhere; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.grid-span-2 { grid-column: span 2; }
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.checkbox-row input { width: auto; min-height: auto; }

.flash-stack { padding-top: 16px; display: grid; gap: 10px; }
.flash {
  display: flex;
  align-items: start;
  gap: 12px;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.flash-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  flex: 0 0 auto;
}
.flash-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.24); }
.flash-warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.26); }
.flash-danger { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.28); }

.dashboard-shell { padding-top: 36px; }
.dashboard-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 22px;
  padding: 20px;
}
.sidebar-user { display: flex; gap: 14px; align-items: center; min-width: 0; }
.sidebar-user img { width: 52px; height: 52px; flex: 0 0 auto; }
.sidebar-user strong,
.sidebar-user span { display: block; overflow-wrap: anywhere; }
.sidebar-user span { color: var(--muted); font-size: .92rem; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}
.sidebar-nav a.active,
.sidebar-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-color: var(--line);
}
.sidebar-nav a .ui-icon { width: 1rem; height: 1rem; }
.dashboard-main { min-width: 0; display: grid; gap: 22px; }
.page-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.page-head > div { max-width: 760px; }

.metric-card { gap: 10px; }
.metric-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .94rem;
}
.metric-card strong { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.metric-card small { color: var(--muted); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}
.compact-form textarea { min-height: 110px; }
.tiny-meta { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.table-wrap { overflow-x: auto; }
.table-wrap table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.table-wrap th { color: #dddde5; font-size: .92rem; font-weight: 600; }
.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.detail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list span { color: var(--muted); }
.detail-list strong { overflow-wrap: anywhere; }
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  font-size: .82rem;
}
.status-chip.success { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.28); color: #d7ffe4; }
.status-chip.warning { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.28); color: #ffe7c2; }
.status-chip.danger { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.28); color: #ffd4d4; }

.table-stack { display: grid; gap: 18px; }
.admin-user-card,
.plan-edit-card { padding: 22px; }
.admin-user-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}
.admin-user-head p { margin: 6px 0 0; color: var(--muted); }
.inner-card {
  padding: 20px;
  display: grid;
  gap: 16px;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.05);
}
.inline-form { margin: 0; }
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, .4fr)) auto;
  gap: 14px;
  align-items: end;
}
.filter-search { position: relative; }
.filter-search .ui-icon {
  position: absolute;
  left: 16px;
  top: 48px;
  color: var(--muted);
}
.filter-search input { padding-left: 44px; }
.compact-card { padding: 20px; }

.billing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.billing-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 8px;
}
.billing-summary strong { font-size: 1.25rem; }

.center-card-wrap { display: grid; place-items: center; }
.center-card {
  max-width: 620px;
  text-align: center;
  justify-items: center;
}
.center-actions { justify-content: center; }

.site-footer {
  padding: 34px 0 54px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-brand { margin-bottom: 10px; }
.footer-brand-block { max-width: 360px; }
.footer-copy { margin: 0; }
.footer-column {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-title {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f2b0b0;
  font-weight: 700;
}
.footer-column a:hover { color: var(--text); }

.copy-btn[data-copied="1"] { box-shadow: 0 0 0 4px rgba(34,197,94,.14); }

@media (max-width: 1120px) {
  .hero-grid,
  .two-column-grid,
  .auth-grid,
  .dashboard-layout,
  .faq-layout,
  .support-grid,
  .split-intro,
  .admin-user-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar { position: static; }
  .feature-grid,
  .plan-grid,
  .platform-grid,
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { justify-self: stretch; }
  .plan-description { min-height: 0; }
  .footer-grid { gap: 18px; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .mobile-drawer { display: block; }
  .filter-bar { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero-section { padding-top: 36px; }
  .topbar { min-height: 72px; }
  .feature-grid,
  .plan-grid,
  .platform-grid,
  .stat-grid,
  .steps-grid,
  .grid-2,
  .compact-plans,
  .billing-summary { grid-template-columns: 1fr; }
  .grid-span-2 { grid-column: auto; }
  .page-head,
  .admin-user-head,
  .support-actions,
  .hero-actions,
  .split-actions,
  .hero-meta,
  .footer-grid { flex-direction: column; align-items: stretch; }
  .hero-copy h1 { max-width: none; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .meta-pill { width: 100%; }
  .button.full-width,
  .support-actions .button,
  .hero-actions .button,
  .split-actions .button { width: 100%; }
  .detail-list li { flex-direction: column; }
  .center-actions { width: 100%; }
}


/* v4 landing refresh */
:root {
  --card-hover: translateY(-8px) scale(1.01);
}

.hero-stack {
  display: grid;
  gap: 28px;
  justify-items: center;
  align-items: center;
}

.hero-centered {
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero-copy h1 {
  max-width: 12ch;
  margin-inline: auto;
}

.hero-narrow {
  max-width: 700px;
}

.hero-actions-centered,
.hero-meta-centered {
  justify-content: center;
}

.button-xl {
  min-height: 60px;
  padding: 0 30px;
  font-size: 1.02rem;
  font-weight: 700;
}

.hero-visual-wrap {
  width: 100%;
  display: grid;
  justify-items: center;
}

.hero-shield-card {
  width: min(100%, 520px);
  min-height: 320px;
  padding: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at center, rgba(255,46,46,.22), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(17, 19, 27, .92);
}

.floating-logo {
  animation: floatShield 5.6s ease-in-out infinite;
}

@keyframes floatShield {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.015); }
}

.interactive-card,
.interactive-pill,
.button {
  will-change: transform, box-shadow, border-color, background-color;
}

.interactive-card,
.interactive-pill {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.interactive-card:hover,
.interactive-pill:hover {
  transform: var(--card-hover);
  border-color: rgba(255, 85, 85, 0.22);
  box-shadow: 0 18px 48px rgba(0,0,0,.28), 0 12px 30px rgba(255,46,46,.12);
}

.section-tight {
  padding-top: 34px;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.feature-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-description-short {
  min-height: auto;
}

.plans-note {
  margin: 22px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.device-card {
  padding: 24px 18px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.device-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,46,46,.14);
  color: #ffb5b5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.device-icon .ui-icon {
  width: 1.45rem;
  height: 1.45rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .floating-logo, .button, .interactive-card, .interactive-pill {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 1120px) {
  .device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-copy h1 {
    max-width: 14ch;
  }
  .hero-shield-card {
    min-height: 260px;
    width: min(100%, 420px);
  }
  .feature-grid-3,
  .plan-grid-2,
  .device-grid {
    grid-template-columns: 1fr;
  }
}

.hero-single {
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-stack-single {
  justify-items: center;
  text-align: center;
}
.hero-stack-single .hero-copy h1 {
  max-width: 12ch;
  margin-inline: auto;
}
.hero-button-main {
  min-width: 240px;
  min-height: 58px;
  font-size: 1.05rem;
}
.footer-grid-simple {
  grid-template-columns: 1.3fr .7fr .7fr;
}
.footer-note {
  color: var(--muted);
  font-size: .92rem;
}
.auth-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-single-wrap {
  max-width: 560px;
}
.auth-single-wrap-narrow {
  max-width: 520px;
}
.auth-card-centered {
  padding: 34px;
}
.auth-card-head-center {
  text-align: center;
}
.auth-card-head-center h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.auth-form-main,
.auth-form-secondary {
  margin-top: 16px;
}
.button-lg {
  min-height: 52px;
}
.auth-secondary-link {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffd0d0;
  font-weight: 700;
}
.inline-link:hover { color: #fff; }
.register-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
  opacity: 0;
}
.register-panel.is-open {
  max-height: 280px;
  opacity: 1;
  margin-top: 14px;
}
.notice-box,
.success-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-top: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: #eafff0;
}
.admin-auth-page .site-header,
.admin-auth-page .site-footer {
  display: none;
}
.admin-auth-page {
  min-height: 100vh;
}
.hero-meta-centered .meta-pill {
  min-width: 210px;
  justify-content: center;
}
@media (max-width: 760px) {
  .footer-grid-simple {
    grid-template-columns: 1fr;
  }
  .auth-card-centered {
    padding: 24px;
  }
  .hero-button-main {
    width: 100%;
    min-width: 0;
  }
}

/* v6 landing polish */
.brand {
  gap: 12px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(255, 46, 46, 0.22);
}

.landing-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.landing-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: saturate(1.15) contrast(1.05);
}
.landing-stage-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 46, 46, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(5, 6, 11, 0.44) 0%, rgba(7, 8, 14, 0.66) 40%, rgba(8, 9, 13, 0.92) 100%);
}
.landing-stage .hero-section,
.landing-stage .section {
  position: relative;
  z-index: 1;
}
.hero-single {
  padding: 86px 0 88px;
}
.hero-narrow-clean {
  max-width: 860px;
}
.hero-copy h1 {
  max-width: 11ch;
  text-align: center;
}
.hero-meta-compact {
  margin-top: 24px;
}
.hero-button-main {
  min-width: 240px;
}
.feature-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-card {
  min-height: 100%;
}
.feature-card h3 {
  font-size: 1.08rem;
}
.feature-card p {
  font-size: 0.98rem;
}
.plan-card h3 {
  font-size: 1.35rem;
}
.plan-card p {
  margin: 0;
}
.device-grid-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.device-card {
  padding: 20px 12px;
  gap: 10px;
  min-height: 0;
}
.device-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}
.device-icon-lg {
  width: 74px;
  height: 74px;
  border-radius: 22px;
}
.device-icon-lg .ui-icon {
  width: 2rem;
  height: 2rem;
}
.faq-shell {
  display: grid;
  gap: 26px;
}
.faq-heading-clean {
  margin-bottom: 0;
}
.faq-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.faq-item {
  min-height: 100%;
}
.faq-item p {
  color: var(--muted);
  line-height: 1.65;
}
.support-card-center {
  padding: 34px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,46,46,.12), rgba(255,255,255,.03));
}
.support-card-center p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}
.support-actions-center {
  justify-content: center;
}
.site-footer {
  padding: 28px 0 42px;
}
.footer-grid-clean {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
}
.footer-column-nav {
  grid-template-columns: repeat(3, auto);
  gap: 18px;
  align-items: center;
}
.footer-column-nav a {
  color: var(--muted);
}
.footer-telegram-wrap {
  display: flex;
  justify-content: flex-end;
}
.footer-telegram {
  min-width: 170px;
}
.footer-copy {
  margin-top: 6px;
}
.footer-note {
  display: none;
}

@media (max-width: 1120px) {
  .device-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid-clean {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-column-nav,
  .footer-telegram-wrap {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .hero-single {
    padding: 62px 0 70px;
  }
  .feature-grid-3,
  .faq-grid-two,
  .device-grid-compact {
    grid-template-columns: 1fr;
  }
  .device-card {
    padding: 18px 14px;
  }
  .device-icon-lg {
    width: 68px;
    height: 68px;
  }
  .footer-column-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
}

/* v7 refinements */
.mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.profile-shortcut,
.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-shortcut:hover,
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}
.profile-shortcut .ui-icon,
.nav-toggle .ui-icon { width: 1.15rem; height: 1.15rem; }
.mobile-backdrop {
  position: fixed;
  inset: 78px 0 0;
  background: rgba(5, 7, 10, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 45;
}
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 46;
}
body.nav-open .mobile-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open .mobile-drawer { display: block; }

.hero-copy h1 {
  max-width: 13ch;
  text-align: center;
}
.hero-button-main {
  min-width: 240px;
}
.advantages-landing.section-tight {
  padding-top: 58px;
  padding-bottom: 68px;
}
.section-after-video {
  padding-top: 70px;
  padding-bottom: 52px;
}
.section-platforms {
  padding-top: 52px;
  padding-bottom: 82px;
}
.plans-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
}
.device-grid-compact {
  gap: 14px;
}
.device-card {
  padding: 18px 10px;
  justify-items: center;
  text-align: center;
}
.device-icon-lg {
  width: 78px;
  height: 78px;
}
.device-icon-lg .ui-icon {
  width: 2.25rem;
  height: 2.25rem;
}
.faq-heading-clean .eyebrow { display: none; }
.faq-grid-two {
  align-items: start;
}
.faq-item {
  min-height: 0;
}
.faq-item summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  line-height: 1.45;
}
.support-card-center {
  gap: 16px;
}
.support-card-center .eyebrow {
  display: none;
}
.footer-grid-clean {
  grid-template-columns: 1fr auto auto;
  gap: 20px;
}
.footer-docs-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}
.footer-docs-inline a {
  color: var(--muted);
  font-size: .94rem;
}
.footer-docs-inline a:hover,
.footer-column-nav a:hover {
  color: var(--text);
}
.legal-section {
  padding-top: 72px;
}
.legal-wrap {
  display: grid;
  gap: 22px;
}
.legal-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.legal-updated {
  color: var(--muted);
  white-space: nowrap;
}
.legal-card {
  padding: 28px;
  display: grid;
  gap: 22px;
}
.legal-block h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.legal-block p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.78;
}
.admin-toolbar-card {
  display: grid;
  gap: 18px;
}
.admin-list-head {
  display: grid;
  grid-template-columns: 2.1fr 1.3fr .9fr .9fr .7fr;
  gap: 18px;
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-user-list {
  display: grid;
  gap: 14px;
}
.admin-user-row {
  overflow: hidden;
}
.admin-user-summary {
  display: grid;
  grid-template-columns: 2.1fr 1.3fr .9fr .9fr .7fr;
  align-items: center;
  gap: 18px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
}
.admin-user-summary::-webkit-details-marker { display: none; }
.admin-user-summary-main {
  display: grid;
  gap: 4px;
}
.admin-user-summary-main strong {
  font-size: 1rem;
}
.admin-user-summary-main span,
.admin-user-summary-traffic,
.admin-user-summary-balance,
.admin-user-summary-open {
  color: var(--muted);
}
.admin-user-summary-open {
  justify-self: end;
  font-weight: 700;
}
.admin-user-row[open] .admin-user-summary-open {
  color: var(--text);
}
.admin-user-details {
  border-top: 1px solid var(--line);
  padding: 18px 20px 20px;
  display: grid;
  gap: 18px;
}
.admin-user-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.balance-inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.balance-inline-form input {
  width: 130px;
}
.admin-user-state-card {
  align-self: start;
}
.desktop-only { display: grid; }
.hero-section.hero-single {
  padding-bottom: 56px;
}
.section.section-tight {
  padding-top: 62px;
}

@media (max-width: 1120px) {
  .footer-grid-clean {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .legal-head {
    grid-template-columns: 1fr;
  }
  .admin-list-head,
  .admin-user-summary {
    grid-template-columns: 1.8fr 1.2fr .9fr .9fr .7fr;
  }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-actions { display: inline-flex; }
  .topbar {
    min-height: 74px;
    gap: 14px;
  }
  .brand {
    min-width: 0;
    gap: 12px;
    font-size: .98rem;
  }
  .brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-list-head,
  .desktop-only { display: none; }
  .admin-user-summary {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }
  .admin-user-summary-open {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .section-after-video {
    padding-top: 58px;
    padding-bottom: 38px;
  }
  .section-platforms {
    padding-top: 40px;
    padding-bottom: 72px;
  }
  .faq-grid-two {
    grid-template-columns: 1fr;
  }
  .legal-head {
    display: grid;
  }
  .legal-updated {
    white-space: normal;
  }
  .footer-docs-inline {
    flex-direction: column;
    gap: 10px;
  }
}

/* v8 cabinet/admin production polish */
body { -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
.hero-copy h1, .section-heading h2, .page-head h1, .auth-card-head h1 { font-weight: 900; letter-spacing: -0.055em; }
.clean-head p { max-width: 640px; font-size: 1.02rem; }
.button { transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: scale(1.025); }
.button.danger, .mini-action.danger { color: #fff; background: rgba(255, 61, 61, .14); border-color: rgba(255, 90, 90, .36); }
.user-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.focus-metric { padding: 22px; min-height: 138px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.focus-metric span { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 700; }
.focus-metric strong { font-size: clamp(2rem, 4vw, 3.6rem); line-height: .95; color: var(--text); letter-spacing: -.06em; }
.cabinet-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; margin: 22px 0; }
.connect-box { min-height: 280px; display: flex; align-items: center; padding: clamp(24px, 4vw, 42px); background: radial-gradient(circle at 20% 10%, rgba(255, 43, 43, .22), transparent 38%), rgba(18, 19, 27, .82); }
.connect-box h2 { font-size: clamp(2rem, 5vw, 4.4rem); margin: 8px 0 12px; letter-spacing: -.06em; }
.connect-box p { max-width: 560px; color: var(--muted); }
.clean-steps { margin-top: 22px; padding: 26px; }
.clean-steps h2 { margin: 0 0 18px; }
.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps-row div { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.steps-row strong { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,45,45,.16); color: #fff; }
.device-create-card { padding: 20px; margin-bottom: 20px; }
.device-create-form { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 14px; align-items: end; }
.device-create-form label, .settings-grid label, .admin-edit-grid label { display: grid; gap: 7px; }
.device-access-list { display: grid; gap: 14px; }
.device-access-card { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px; }
.device-card-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.device-card-main h2 { margin: 0 0 4px; font-size: 1.1rem; }
.device-card-main p { margin: 0; color: var(--muted); }
.device-card-meta { display: flex; gap: 10px; color: var(--muted); font-weight: 700; }
.device-card-actions, .admin-user-actions-row, .admin-device-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.admin-toolbar-card { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-list-head, .admin-user-summary { display: grid; grid-template-columns: 1.5fr .85fr .65fr .65fr .35fr; gap: 14px; align-items: center; }
.admin-list-head { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; padding: 0 18px 10px; }
.admin-user-row { padding: 0; overflow: hidden; }
.admin-user-summary { cursor: pointer; list-style: none; padding: 18px; }
.admin-user-summary::-webkit-details-marker { display: none; }
.admin-user-summary-main { min-width: 0; }
.admin-user-summary-main strong { display: block; overflow-wrap: anywhere; }
.admin-user-summary-main span, .admin-user-summary-traffic { color: var(--muted); }
.admin-user-summary-open { color: var(--accent); font-weight: 800; }
.admin-user-details { border-top: 1px solid rgba(255,255,255,.08); padding: 18px; display: grid; gap: 18px; }
.admin-edit-grid, .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-edit-grid .wide, .settings-grid .wide { grid-column: 1 / -1; }
.balance-inline-form { display: flex; gap: 8px; }
.balance-inline-form input { max-width: 130px; }
.admin-device-list { display: grid; gap: 10px; }
.admin-device-list h3 { margin: 0; }
.admin-device-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.admin-device-row span { display: block; color: var(--muted); margin-top: 4px; }
.mini-action { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--text); border-radius: 12px; padding: 8px 10px; font-weight: 800; cursor: pointer; }
.settings-form { display: grid; gap: 18px; }
.settings-section { padding: 22px; }
.settings-section h2 { margin: 0 0 18px; }
.seo-landing-text { margin-top: 22px; text-align: center; color: var(--muted); }
@media (max-width: 980px) { .user-stat-grid, .cabinet-grid, .download-grid, .steps-row { grid-template-columns: 1fr 1fr; } .device-access-card { grid-template-columns: 1fr; } .admin-list-head { display:none; } .admin-user-summary { grid-template-columns: 1fr; } .admin-edit-grid, .settings-grid, .device-create-form { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .user-stat-grid, .cabinet-grid, .download-grid, .steps-row { grid-template-columns: 1fr; } .connect-box h2 { font-size: 2.4rem; } .admin-user-actions-row, .device-card-actions { flex-direction: column; align-items: stretch; } .admin-user-actions-row .button, .device-card-actions .button { width: 100%; justify-content: center; } }

/* Auth email confirmation and password reset flow */
.warning-box {
  background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .28);
  color: #fff4db;
}
.danger-box {
  background: rgba(255, 61, 61, .12);
  border-color: rgba(255, 90, 90, .30);
  color: #ffe8e8;
}
.auth-status-card span { line-height: 1.55; }
.auth-status-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.auth-status-actions form { margin: 0; }
.button.small {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: .9rem;
}
.form-link-row {
  margin-top: -6px;
  display: flex;
  justify-content: flex-end;
}
.form-link-row a,
.auth-secondary-link a {
  color: #ffd0d0;
  font-weight: 800;
  text-decoration: none;
}
.form-link-row a:hover,
.auth-secondary-link a:hover { color: #fff; }
.form-muted,
.auth-bottom-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
  text-align: center;
}
.clean-error-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: inherit;
  line-height: 1.55;
}
.auth-message-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.auth-message-actions form { display: grid; }

/* v8.1 login/register switch and clean video fallback */
.landing-video {
  background: #07080d;
}
.auth-panel {
  display: none;
}
.auth-panel.is-active {
  display: block;
  animation: authPanelIn .18s ease-out both;
}
.auth-panel .auth-card-head {
  margin-bottom: 0;
}
@keyframes authPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-panel.is-active { animation: none; }
}


/* v8.3 auth UX and button hover polish */
.button:hover {
  transform: scale(1.025);
}
.button.primary:hover {
  transform: scale(1.035);
  box-shadow: 0 18px 42px rgba(255, 46, 46, 0.34);
}
.button.subtle:hover,
.nav-toggle:hover {
  transform: scale(1.025);
}
.auth-toggle-button {
  min-width: 170px;
}
.auth-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
}
.auth-status-card strong {
  line-height: 1.35;
}
.auth-status-card span {
  display: none;
}
.auth-status-actions {
  margin-top: 0;
  flex: 0 0 auto;
}
.auth-status-actions:empty {
  display: none;
}
@media (max-width: 560px) {
  .auth-status-card {
    display: grid;
    justify-items: stretch;
  }
  .auth-status-actions,
  .auth-status-actions form,
  .auth-status-actions .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .button.primary:hover,
  .button.subtle:hover,
  .nav-toggle:hover {
    transform: none;
  }
}

/* v8.4 cabinet UX cleanup */
.sidebar-status-row { display: none !important; }
.dashboard-title-only { align-items: flex-start; }
.user-stat-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.focus-metric {
  min-width: 0;
  min-height: 116px;
  padding: 18px;
}
.focus-metric span {
  min-width: 0;
  font-size: .88rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.focus-metric strong {
  display: block;
  max-width: 100%;
  font-size: clamp(1.55rem, 2.45vw, 2.55rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  white-space: nowrap;
  overflow: visible;
}
.connect-box-centered {
  justify-content: center;
  text-align: center;
}
.connect-box-centered > div {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.connect-box-centered h2 {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(2.05rem, 4vw, 3.6rem);
}
.connect-box-centered .split-actions,
.center-actions {
  justify-content: center;
}
select {
  color-scheme: dark;
  background-color: rgba(255,255,255,.045);
  color: var(--text);
}
select:focus {
  background-color: rgba(255,255,255,.065);
  color: var(--text);
}
select option {
  background: #151720;
  color: #f6f7fb;
}
.device-create-form .button.primary {
  min-width: 130px;
}
.device-access-card {
  grid-template-columns: minmax(240px, 1fr) auto auto;
}
.device-access-card-new {
  border-color: rgba(255, 46, 46, .28);
  box-shadow: 0 18px 46px rgba(255, 46, 46, .10);
}
.device-instruction-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.device-instruction-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.device-instruction-head strong {
  font-size: 1rem;
}
.app-link {
  color: #ffd0d0;
  font-weight: 800;
}
.app-link:hover { color: #fff; }
.device-instruction-panel ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}
.device-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.instruction-note { margin: 0; }
.download-grid { display: none !important; }
.clean-steps { display: none !important; }
@media (max-width: 1220px) {
  .user-stat-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .user-stat-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-access-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .user-stat-grid-5 { grid-template-columns: 1fr; }
  .focus-metric strong { white-space: normal; }
  .connect-box-centered h2 { font-size: 2.25rem; white-space: normal; }
  .device-create-form .button.primary { width: 100%; }
  .device-quick-actions .button { width: 100%; }
}

/* v8.5 device connection production polish */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.user-stat-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.user-stat-grid-4 .focus-metric {
  min-height: 112px;
  padding: 18px 19px;
}
.user-stat-grid-4 .focus-metric span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .86rem;
}
.user-stat-grid-4 .focus-metric strong {
  font-size: clamp(1.55rem, 2.25vw, 2.42rem);
  line-height: 1;
  white-space: nowrap;
}
.connect-box-centered .button-lg {
  min-width: 210px;
}
.device-create-form select,
.device-create-form input,
.connection-link-row input {
  background: #171a22;
  color: #f8f9fc;
  border-color: rgba(255,255,255,.16);
}
.device-access-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
}
.device-card-top {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
}
.device-card-main h2 {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.device-card-main p {
  color: #c5cbd8;
  font-weight: 650;
  line-height: 1.35;
}
.platform-icon {
  background: rgba(255, 46, 46, .14);
  color: #fff;
  border: 1px solid rgba(255, 78, 78, .22);
}
.device-card-meta {
  justify-content: flex-end;
  white-space: nowrap;
  color: #e3e7ef;
}
.device-card-actions form { margin: 0; }
.device-card-actions .button {
  min-height: 42px;
  padding-inline: 15px;
}
.device-instruction-panel {
  padding: 0;
  overflow: hidden;
  background: rgba(12, 14, 20, .64);
  border-color: rgba(255,255,255,.11);
}
.device-instruction-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 15px 16px;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.device-instruction-summary::-webkit-details-marker { display: none; }
.toggle-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  flex: 0 0 auto;
}
.toggle-mark::before { content: '+'; font-size: 1.25rem; line-height: 1; }
.device-instruction-panel[open] .toggle-mark::before { content: '−'; }
.device-instruction-panel > :not(summary) {
  margin-left: 16px;
  margin-right: 16px;
}
.device-instruction-panel > :last-child {
  margin-bottom: 16px;
}
.connection-link-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.connection-link-box strong { color: #fff; }
.connection-link-box p {
  margin: 4px 0 0;
  color: #bdc3d1;
  line-height: 1.55;
}
.connection-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.connection-link-row input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-quick-actions {
  margin-top: 12px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.device-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.device-app-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.app-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.app-card-head strong { display: block; color: #fff; line-height: 1.2; }
.app-card-head small { display: block; margin-top: 2px; color: #c0c6d3; line-height: 1.35; }
.app-badge {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,46,46,.16);
  border: 1px solid rgba(255,70,70,.24);
  color: #fff;
  font-weight: 900;
}
.device-app-card p {
  margin: 0;
  color: #c6ccda;
  line-height: 1.55;
  font-size: .93rem;
}
.app-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.device-steps {
  margin-top: 14px !important;
  padding-left: 22px !important;
  color: #d7dce8 !important;
  line-height: 1.75 !important;
}
.instruction-note {
  padding: 0 0 14px;
  color: #d7dce8;
}
@media (max-width: 1180px) {
  .user-stat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .device-card-top { grid-template-columns: 1fr; align-items: stretch; }
  .device-card-meta { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .user-stat-grid-4 { grid-template-columns: 1fr; }
  .user-stat-grid-4 .focus-metric span,
  .user-stat-grid-4 .focus-metric strong { white-space: normal; }
  .device-app-grid,
  .connection-link-row { grid-template-columns: 1fr; }
  .device-card-actions,
  .device-quick-actions,
  .app-card-actions { align-items: stretch; }
  .device-card-actions .button,
  .device-card-actions form,
  .device-quick-actions .button,
  .app-card-actions .button { width: 100%; }
}

/* v8.6 balance top-up payments */
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  align-items: start;
}
.payment-card,
.payment-side-card,
.payment-history {
  padding: 22px;
}
.payment-card-head p { margin: 6px 0 0; }
.payment-form { display: grid; gap: 18px; }
.payment-amount-label { display: grid; gap: 8px; }
.payment-amount-label span,
.payment-options h3 {
  margin: 0;
  color: #f5f6fb;
  font-size: .98rem;
}
.quick-amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-amount {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: #f8f9fc;
  font-weight: 800;
}
.quick-amount:hover,
.quick-amount.is-active {
  border-color: rgba(255, 46, 46, .36);
  background: rgba(255, 46, 46, .14);
}
.payment-provider-grid,
.payment-method-grid,
.crypto-currency-grid {
  display: grid;
  gap: 12px;
}
.payment-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.payment-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crypto-currency-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.payment-provider-card,
.payment-method-card,
.crypto-currency-card {
  position: relative;
  cursor: pointer;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.payment-method-card,
.crypto-currency-card {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 78px;
}
.payment-provider-card:hover,
.payment-method-card:hover,
.crypto-currency-card:hover,
.payment-provider-card.is-active,
.payment-method-card.is-active,
.crypto-currency-card.is-active {
  transform: scale(1.01);
  border-color: rgba(255, 46, 46, .34);
  background: rgba(255, 46, 46, .10);
}
.payment-provider-card input,
.payment-method-card input,
.crypto-currency-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-provider-card strong,
.payment-method-card strong,
.crypto-currency-card strong { display: block; color: #fff; line-height: 1.2; }
.payment-provider-card small,
.payment-method-card small,
.crypto-currency-card small { display: block; margin-top: 4px; color: #c1c7d5; line-height: 1.35; }
.provider-logo-img {
  width: 112px;
  height: 45px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 14px;
}
.provider-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 950;
  letter-spacing: -.03em;
  border: 1px solid rgba(255,255,255,.14);
}
.provider-logo-robo { background: linear-gradient(135deg, #e62626, #9f1111); }
.provider-logo-crypto { background: linear-gradient(135deg, #6d5dfc, #33b5ff); }
.payment-options {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
}
.payment-options.is-hidden { display: none; }
.warning-inline {
  margin: 0;
  color: #ffe7b5;
  line-height: 1.55;
}
.payment-submit-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 14px;
  align-items: center;
}
.payment-submit-row p { margin: 0; }
.payment-side-card h2 { margin: 0 0 14px; }
.payment-side-card ol {
  margin: 0;
  padding-left: 20px;
  color: #d3d8e4;
  line-height: 1.75;
}
.payment-history {
  margin-top: 18px;
  overflow: hidden;
}
.payment-history > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 900;
}
.payment-history > summary::-webkit-details-marker { display: none; }
.payment-history .toggle-mark::before { content: '+'; }
.payment-history[open] .toggle-mark::before { content: '−'; }
.payment-history-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.payment-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.payment-history-row strong { display: block; color: #fff; }
.payment-history-row span { color: #c2c8d6; }
.payment-history-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.payment-history-meta small { color: var(--muted); white-space: nowrap; }
.payment-details {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
}
.payment-details > summary {
  cursor: pointer;
  color: #ffd0d0;
  font-weight: 850;
  list-style: none;
}
.payment-details > summary::-webkit-details-marker { display: none; }
.payment-detail-list {
  margin-top: 12px;
}
.payment-empty { margin: 16px 0 0; }
.payment-result-card .detail-list { width: 100%; text-align: left; }
.payment-admin-summary { grid-template-columns: 1.4fr .75fr .65fr .75fr .25fr; }
@media (max-width: 980px) {
  .payment-layout,
  .payment-provider-grid,
  .payment-method-grid,
  .crypto-currency-grid,
  .payment-submit-row,
  .payment-history-row { grid-template-columns: 1fr; }
  .payment-history-meta { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .payment-card,
  .payment-side-card,
  .payment-history { padding: 18px; }
  .quick-amounts .quick-amount,
  .payment-submit-row .button { width: 100%; }
}

/* v8.6.1 balance cleanup */
.payment-layout {
  grid-template-columns: minmax(0, 1fr);
}
.payment-card {
  max-width: 980px;
  width: 100%;
}
.crypto-currency-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 70px;
}
.crypto-currency-card strong {
  margin: 0;
  white-space: nowrap;
}
.crypto-currency-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .9rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.02em;
}
.payment-submit-row {
  grid-template-columns: auto;
  justify-content: start;
}
@media (max-width: 980px) {
  .payment-card { max-width: none; }
}
