:root,
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-card: #1a1a1a;
  --bg-hover: #262626;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e5e5e5;
  --muted: #737373;
  --accent: #ffffff;
  --accent-strong: #d4d4d4;
  --accent-soft: rgba(255, 255, 255, 0.10);
  --positive: #4ade80;
  --positive-soft: rgba(74, 222, 128, 0.12);
  --warning: #fbbf24;
  --negative: #f87171;
  --negative-soft: rgba(248, 113, 113, 0.12);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f5f5f5;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #171717;
  --muted: #737373;
  --accent: #171717;
  --accent-strong: #000000;
  --accent-soft: rgba(0, 0, 0, 0.08);
  --positive: #16a34a;
  --positive-soft: rgba(22, 163, 74, 0.12);
  --warning: #d97706;
  --negative: #dc2626;
  --negative-soft: rgba(220, 38, 38, 0.12);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

[data-theme="blue"] {
  --bg: #0c0d10;
  --bg-elev: #12141a;
  --bg-card: #161922;
  --bg-hover: #1d212d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --muted: #9aa0ad;
  --accent: #477bff;
  --accent-strong: #3567e8;
  --accent-soft: rgba(71, 123, 255, 0.14);
  --positive: #4cc38a;
  --positive-soft: rgba(76, 195, 138, 0.14);
  --warning: #e5a00d;
  --negative: #e5484d;
  --negative-soft: rgba(229, 72, 77, 0.14);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
}

.accent-text {
  color: var(--accent);
}

.positive-text {
  color: var(--positive);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Announcement & Header */
.announcement-bar {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  padding: 8px 0;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.brand-ver {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 12px 0;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--bg-hover);
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.btn-lg {
  height: 42px;
  padding: 0 18px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  outline: none;
}

.input:focus {
  border-color: var(--accent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.status-pill.issued, .status-pill.active, .status-pill.paid {
  background: var(--positive-soft);
  border-color: rgba(76, 195, 138, 0.35);
  color: var(--positive);
}

.status-pill.pending {
  color: var(--warning);
}

.status-pill.revoked, .status-pill.refunded {
  background: var(--negative-soft);
  border-color: rgba(229, 72, 77, 0.35);
  color: var(--negative);
}

.form-error, .form-feedback {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-top: 8px;
}

.form-error, .form-feedback.is-err {
  background: var(--negative-soft);
  border: 1px solid rgba(229, 72, 77, 0.35);
  color: var(--negative);
}

.form-feedback.is-ok {
  background: var(--positive-soft);
  border: 1px solid rgba(76, 195, 138, 0.35);
  color: var(--positive);
}

/* Hero & Showcase */
.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--accent);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.hero-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hero-telemetry dt {
  font-size: 12px;
  color: var(--muted);
}

.hero-telemetry dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.client-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  min-height: 360px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.client-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.client-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.client-bg-scrim {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.6;
}

.hud-watermark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: rgba(12, 13, 16, 0.78);
  border: 1px solid var(--border);
  font-size: 12px;
  align-self: flex-start;
}

.hud-watermark .sep {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
}

.clickgui-window {
  position: relative;
  z-index: 1;
  background: rgba(18, 20, 26, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
}

.clickgui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.clickgui-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cg-tab {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.cg-tab.is-active {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

.theme-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.theme-dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.theme-dot::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--dot-color, var(--accent));
}

.theme-dot[data-accent="#477bff"] { --dot-color: #477bff; }
.theme-dot[data-accent="#4cc38a"] { --dot-color: #4cc38a; }
.theme-dot[data-accent="#ededed"] { --dot-color: #ededed; }

.theme-dot.is-active {
  border-color: #fff;
}

.clickgui-body {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cg-mod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
}

.cg-mod.is-on {
  border-color: rgba(71, 123, 255, 0.45);
  background: rgba(71, 123, 255, 0.08);
}

.cg-mod-name {
  font-size: 13px;
  font-weight: 500;
}

.cg-mod-desc {
  font-size: 11px;
  color: var(--muted);
}

.cg-switch {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  position: relative;
  flex-shrink: 0;
}

.cg-mod.is-on .cg-switch {
  background: var(--accent);
  border-color: var(--accent);
}

.clickgui-foot {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

/* Sections, Bento, Cosmetics, Pricing, Releases */
.section {
  padding: 56px 0;
}

.section-border {
  border-top: 1px solid var(--border);
}

.section-head, .section-head-inline {
  margin-bottom: 24px;
}

.section-head h2, .section-head-inline h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.section-head p, .section-head-inline p {
  margin: 0;
  color: var(--muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bento-card, .panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
}

.bento-wide {
  grid-column: span 2;
}

.bento-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}

.icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bento-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.bento-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}

.screenshot-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.screenshot-card figcaption {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  border-top: 1px solid var(--border);
}

.cosmetics-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}

.cosmetics-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cosmetics-panel-head h3 {
  margin: 0;
  font-size: 16px;
}

.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cosmetic-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.cosmetic-tile img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cosmetic-name {
  font-size: 13px;
  font-weight: 500;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pricing-header h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.pricing-header p {
  margin: 0;
  color: var(--muted);
}

.promo-widget {
  display: flex;
  gap: 8px;
  align-items: center;
}

.promo-widget .input {
  width: 160px;
}

.promo-feedback {
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
}

.promo-feedback.is-ok {
  background: var(--positive-soft);
  color: var(--positive);
}

.promo-feedback.is-err {
  background: var(--negative-soft);
  color: var(--negative);
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tariff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tariff-card.is-featured {
  border-color: var(--accent);
}

.tariff-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tariff-title {
  margin: 0;
  font-size: 18px;
}

.tariff-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9bb8ff;
}

.tariff-sub, .tariff-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tariff-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tariff-price {
  font-size: 24px;
  font-weight: 600;
}

.tariff-old-price {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.order-lookup-strip {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.order-lookup-copy h3 {
  margin: 0 0 2px;
  font-size: 16px;
}

.order-lookup-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.order-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-lookup-form .input {
  width: 170px;
}

.lookup-result {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.releases-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.release-row {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: start;
}

.release-ver {
  font-weight: 600;
}

.release-mc {
  font-size: 12px;
  color: var(--muted);
}

.release-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.release-notes {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.release-date {
  font-size: 12px;
  color: var(--muted);
}

/* Docs & Cabinet */
.doc-container {
  max-width: 820px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.back-link:hover {
  color: var(--text);
}

.doc-meta {
  color: var(--muted);
  margin: 6px 0 24px;
}

.doc-blocks {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.doc-blocks h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.doc-blocks p {
  margin: 0;
  color: var(--muted);
}

.cabinet-container {
  max-width: 1040px;
}

.auth-panel {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-tab {
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cabinet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cabinet-head h1 {
  margin: 0;
}

.cabinet-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cabinet-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}

.kpi-label {
  font-size: 12px;
  color: var(--muted);
}

.kpi-val {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.cabinet-grid h3, .cabinet-table-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.hwid-actions {
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th, .data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-elev);
}

/* Footer & Modal */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-cols {
  display: flex;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-title {
  color: var(--text);
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  z-index: 90;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast:not([hidden]) {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-ok {
  border-color: rgba(76, 195, 138, 0.45);
  color: var(--positive);
}

.toast.is-err {
  border-color: rgba(229, 72, 77, 0.45);
  color: var(--negative);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
}

.modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h3, .modal-head p {
  margin: 0;
}

.modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-summary {
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
}

.summary-total {
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.success-box {
  text-align: center;
}

.order-code-big {
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0;
}

.modal-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Embedded Admin Inside Cabinet */
.cab-admin-panel {
  margin-bottom: 18px;
}

.cab-admin-frame-wrap {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elev);
}

.cab-admin-frame-wrap iframe {
  width: 100%;
  height: 78vh;
  border: 0;
  display: block;
}

.cab-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.cab-admin-header h3 {
  margin: 0;
}

.cab-admin-subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cab-admin-toolbar {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.cab-form-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.cab-form-box h4 {
  margin: 0 0 8px;
}

.cab-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.cab-form-inline .input {
  width: auto;
  min-width: 110px;
}

#cab-adm-gen-out {
  margin-top: 10px;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .showcase-split, .bento-grid, .tariffs-grid, .cabinet-stats, .cabinet-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .clickgui-body {
    grid-template-columns: 1fr;
  }
  .release-row {
    grid-template-columns: 1fr;
  }
  .toast {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}