:root {
  color-scheme: dark;
  --bg: #050505;
  --workspace-bg: #111111;
  --panel: #141416;
  --panel-raised: #1a1a1e;
  --line: rgba(255, 255, 255, .085);
  --muted: #8e8e93;
  --text: #f5f5f7;
  --accent: #C41C10;
  --accent-hover: #ff3526;
  --success: #73c89b;
  --warning: #e8b55f;
  --danger: #f12617;
  --content-width: 1380px;
  --side-space: clamp(1.25rem, 3.2vw, 2.5rem);
  --soft-shadow: 0 14px 42px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 450 14.5px/1.6 -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
a:hover { color: #fff; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
p { color: var(--muted); }
strong { color: var(--text); }

/* Aeza-style App Shell & Left Sidebar Navigation */
.aeza-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100svh;
  background: var(--bg);
}
.aeza-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  padding: 14px 14px 16px;
  background: var(--bg);
  overflow-y: auto;
  user-select: none;
}
.aeza-account-card {
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: #090909;
  overflow: hidden;
}
.aeza-account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.aeza-handle {
  color: #e5e5ea;
  font-size: .92rem;
  font-style: italic;
  font-weight: 750;
  letter-spacing: .01em;
}
.aeza-bell {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #a1a1a6;
}
.aeza-bell:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.aeza-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 12px 14px;
}
.aeza-balance-value {
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 780;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.aeza-topup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 27px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-style: italic;
  font-weight: 800;
  transform: skewX(-10deg);
}
.aeza-topup-badge > span { display: inline-block; transform: skewX(10deg); }
.aeza-topup-badge:hover { background: var(--accent-hover); color: #fff; transform: skewX(-10deg) translateY(-1px); }

.aeza-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aeza-nav-link, .aeza-logout-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 41px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #8e8e93;
  font-size: .87rem;
  font-weight: 520;
  letter-spacing: -.01em;
  cursor: pointer;
}
.aeza-nav-link svg, .aeza-logout-btn svg {
  flex: 0 0 auto;
  color: #6e6e73;
  transition: color .18s ease;
}
.aeza-nav-link:hover, .aeza-logout-btn:hover {
  background: rgba(255, 255, 255, .04);
  color: #f2f2f7;
  transform: none;
  box-shadow: none;
}
.aeza-nav-link:hover svg, .aeza-logout-btn:hover svg { color: #d1d1d6; }
.aeza-nav-link.is-current {
  background: #1a1a1a;
  color: #ffffff;
  font-weight: 620;
}
.aeza-nav-link.is-current svg { color: #ffffff; }

.aeza-add-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  margin: 14px 0 10px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 11px;
  background: #151515;
  color: #f2f2f7;
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.aeza-add-service:hover { background: #1d1d1d; border-color: rgba(255, 255, 255, .14); color: #fff; }
.aeza-add-icons { display: inline-flex; align-items: center; gap: 8px; color: #8e8e93; }
.aeza-plus { color: var(--accent); font-size: 1.1rem; font-weight: 600; line-height: 1; }
.aeza-divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .1); }

.aeza-nav-secondary { margin-top: 2px; }
.logout-form { margin: 2px 0 0; width: 100%; }

.aeza-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px 4px 2px;
}
.aeza-brand-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: #111111;
}
.aeza-brand-badge img { display: block; width: 24px; height: 18px; object-fit: contain; }
.aeza-brand-caption { color: #636366; font-size: .75rem; font-weight: 600; letter-spacing: -.01em; }

.aeza-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100svh - 20px);
  margin: 10px 10px 10px 0;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 20px;
  background: var(--workspace-bg);
  overflow: hidden;
}

.site-main {
  flex: 1 1 auto;
  width: min(100%, var(--content-width));
  max-width: none;
  margin: 0 auto;
  padding: clamp(1.6rem, 3vw, 2.6rem) var(--side-space) clamp(3rem, 5vw, 4.5rem);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none;
  min-height: 62px;
  margin: 0;
  padding: 1rem var(--side-space);
  border-top: 1px solid var(--line);
  background: transparent;
  color: #6e6e73;
  font-size: .75rem;
}
.site-footer > * { width: auto; margin: 0; }
.site-footer > a { color: #aeaeb2; }
.site-footer > a:hover, .text-link:hover { color: var(--accent-hover); }

h1, h2, h3 {
  color: var(--text);
  font-family: inherit;
}
h1, .home-hero h1 {
  margin: .25rem 0 .85rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.aeza-page-title {
  margin: .15rem 0 0;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 720;
  letter-spacing: -.025em;
}
h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -.025em;
}
h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem;
  margin: 0 0 .4rem;
  color: #ffffff;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-transform: none;
}
.meta-slash {
  color: #52525b;
  font-weight: 400;
}
.meta-loc {
  color: #a1a1a6;
  font-weight: 500;
}
.header-caption {
  display: none !important;
}
.page-lead { max-width: 680px; margin: .45rem 0 0; font-size: .92rem; }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .72rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover, button:hover { transform: translateY(-1px); border-color: var(--accent-hover); background: var(--accent-hover); color: #fff; box-shadow: 0 8px 28px rgba(241, 38, 23, .18); }
.button:active, button:active { transform: scale(.97); }
.button.secondary, button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  box-shadow: none;
}
.button.secondary:hover, button.secondary:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .07); }
.button:disabled, button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.danger-button, button.danger-button { border-color: var(--line); background: rgba(255, 255, 255, .04); color: var(--text); }
.danger-button:hover, button.danger-button:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; }
.subtle, button.subtle { min-height: 40px; padding: .55rem .9rem; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; }
.subtle:hover, button.subtle:hover { transform: none; background: rgba(255, 255, 255, .05); color: var(--text); box-shadow: none; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .38rem .85rem;
  border: 1px solid #2e2e34;
  border-radius: 999px;
  background: #1e1e22;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.3;
}
.text-link:hover {
  border-color: rgba(255, 255, 255, .24);
  background: #27272c;
  color: #ffffff;
}

.panel {
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)), var(--panel);
  box-shadow: var(--soft-shadow);
}
.compact { max-width: 680px; margin: 2rem auto 0; }
.notice, .auth-plan-summary {
  display: block;
  margin: 0 0 1.15rem;
  padding: 0 0 .85rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: .84rem;
}
.notice:empty { display: none !important; }
.notice p { margin: .25rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.notice strong, .auth-plan-summary strong { color: var(--text); }
.error, .auth-error { color: var(--text); }
.muted { color: var(--muted); }

input, select, textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: .45rem 0 1.1rem;
  padding: .72rem .9rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: .8rem;
  background: #0a0a0a;
  color: var(--text);
  font-size: .87rem;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: #6f6b66; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
label { display: block; color: #c4bfb7; font-size: .77rem; font-weight: 650; }
input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: .65rem; margin: .9rem 0; }
.check span { color: #c4bfb7; }
textarea, pre { overflow-wrap: anywhere; white-space: pre-wrap; }
small { color: var(--muted); font-size: .72rem; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.1rem 0 .2rem; }
.fields input, .fields select { margin-bottom: .8rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 1rem 0; }
.actions form { margin: 0; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.title-row h2 { margin: 0; }
.value { margin-top: 1rem; color: var(--text); font-family: inherit; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 740; letter-spacing: -.03em; }
.badge, .payment-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9d4cc;
  font-size: .68rem;
  line-height: 1.3;
  white-space: nowrap;
}
.badge.active, .status-running { color: var(--success); border-color: var(--line); background: transparent; }
.badge.soon, .status-provisioning { color: var(--warning); border-color: var(--line); background: transparent; }
.badge.expired, .badge.paused, .status-error, .status-suspended { color: var(--muted); border-color: var(--line); background: transparent; }
.status-stopped { color: #b9b5ad; border-color: var(--line); background: transparent; }
.setup { color: var(--muted); }

/* Aeza-style Services Overview Table & Wireframe Bento Cards */
.aeza-services-overview { margin: 1.4rem 0 1.35rem; }
.aeza-table-head {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.3fr 1fr 1.1fr 1.1fr;
  gap: 1rem;
  padding: 0 .9rem .8rem;
  border-bottom: 1px solid var(--line);
  color: #6e6e73;
  font-size: .82rem;
  font-weight: 520;
}
.aeza-empty-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: .85rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 12px;
  background: rgba(255, 255, 255, .012);
  color: #56565b;
  font-size: .78rem;
  font-weight: 500;
}
.aeza-table-rows { display: grid; gap: .45rem; margin-top: .7rem; }
.aeza-table-row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.3fr 1fr 1.1fr 1.1fr;
  align-items: center;
  gap: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #161616;
  color: var(--text);
  font-size: .8rem;
}
.aeza-table-row:hover { border-color: rgba(255, 255, 255, .18); background: #1b1b1b; }
.aeza-table-row code { color: #aeaeb2; font-size: .75rem; }

.aeza-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin: 0 0 1.6rem;
}
.aeza-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  background: #171717;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.aeza-bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .16);
  background: #1c1c1c;
}
.aeza-bento-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.aeza-bento-top h2, .aeza-bento-top h3 {
  margin: 0 0 .25rem;
  color: #f2f2f7;
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: -.015em;
}
.aeza-bento-top p {
  margin: 0;
  color: #6e6e73;
  font-size: .74rem;
  line-height: 1.45;
}
.aeza-bento-arrow {
  display: inline-grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0b0b0b;
  color: #d1d1d6;
  font-size: .95rem;
  line-height: 1;
}
.aeza-wireframe {
  margin-top: auto;
  color: #48484a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem;
}
.aeza-wireframe-stack, .aeza-wireframe-term {
  display: grid;
  gap: 5px;
}
.aeza-wireframe-stack > div, .aeza-wireframe-term > div {
  height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 7px;
  background: rgba(0, 0, 0, .16);
}
.aeza-wireframe-circles {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  height: 120px;
}
.aeza-wireframe-circles .circle-sm {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: #636366;
  font-size: .72rem;
}
.aeza-wireframe-circles .circle-lg {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: #636366;
  font-size: .82rem;
}

.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid rgba(255, 255, 255, .075); border-radius: .9rem; }
table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: .8rem .9rem; background: rgba(255, 255, 255, .035); color: #9d9991; font-size: .63rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
td { padding: .9rem; border-top: 1px solid rgba(255, 255, 255, .075); color: #dbd7cf; font-size: .78rem; vertical-align: middle; }
tr:hover td { background: rgba(255, 255, 255, .02); }
.empty-cell { padding: 1.4rem; color: var(--muted); text-align: center; }

/* Главная витрина */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  margin: 0 0 1.3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 1.6rem;
  background: radial-gradient(ellipse at 88% 6%, rgba(241, 38, 23, .15), transparent 31rem), linear-gradient(120deg, #090909, #100a09);
}
.hero-copy { position: relative; z-index: 1; max-width: 800px; }
.hero-aside { position: relative; z-index: 1; display: grid; min-width: 0; place-items: center; }
.brand-mark-stage { width: min(100%, 380px); filter: drop-shadow(0 0 50px rgba(241, 38, 23, .12)); }
.brand-mark-stage img { display: block; width: 100%; height: auto; mix-blend-mode: screen; }
.home-hero h1 { max-width: 800px; margin: 1rem 0 1.2rem; font-size: clamp(2.8rem, 7.2vw, 6.3rem); line-height: .98; }
.home-hero h1 span { color: var(--accent); }
.home-hero .hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 0; color: #b8b3aa; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; margin-top: 1.8rem; }
.signup { margin: 0; }
.signup > summary { display: inline-flex; width: max-content; min-height: 46px; list-style: none; }
.signup > summary::-webkit-details-marker { display: none; }
.signup[open] > summary { margin-bottom: 1rem; }
.registration-panel { width: min(100%, 520px); margin: 0; }
.registration-panel h2 { margin-bottom: 1rem; }
.sandbox-notice, .notice-mark, .home-notice { display: none !important; }
.plan-section { margin: 0 0 clamp(3rem, 6vw, 5rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.section-heading > p { max-width: 440px; margin: 0; font-size: .83rem; line-height: 1.7; }
/* Вариант 3: Компактные строки-списки тарифов со стрелкой › */
.plan-list {
  display: grid;
  gap: .55rem;
}
.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .9rem 1.15rem;
  border: 1px solid #222225;
  border-radius: 12px;
  background: #0c0c0e;
  color: var(--text);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.plan-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .26);
  background: #141418;
}
.plan-row.is-featured {
  border-color: rgba(255, 255, 255, .28);
  background: #121216;
}
.plan-row-main {
  min-width: 0;
}
.plan-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem;
  font-size: .92rem;
  line-height: 1.35;
}
.plan-row-title strong {
  color: #ffffff;
  font-weight: 720;
  letter-spacing: -.015em;
}
.plan-row-specs {
  color: #8e8e93;
  font-size: .8rem;
  font-weight: 450;
}
.plan-row-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-top: .2rem;
  color: #ffffff;
  font-size: .74rem;
  font-weight: 600;
}
.plan-row-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .85rem;
}
.plan-row-price {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 740;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.plan-row-price small {
  color: #8e8e93;
  font-size: .74rem;
  font-weight: 450;
}
.plan-row-arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #2e2e34;
  border-radius: 50%;
  background: #1e1e22;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.plan-row:hover .plan-row-arrow,
.plan-row.is-featured .plan-row-arrow {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.plan-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 1.35rem; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.plan-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .24); background-color: #141414; }
.plan-card h3 { margin: .15rem 0 .7rem; font-family: inherit; font-size: 1rem; font-weight: 680; letter-spacing: -.02em; }
.plan-price { margin: 0 0 1rem; color: var(--text); font-family: inherit; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 740; letter-spacing: -.03em; }
.plan-price small { font-family: inherit; letter-spacing: 0; }
.plan-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin: auto 0 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.plan-specs span { color: #c2bdb5; font-size: .72rem; }
.plan-card .button { width: 100%; }
.feature-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; margin-bottom: 1rem; }
.feature-panel h2 { max-width: 420px; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.feature-panel p { margin: 0 0 1rem; font-size: .85rem; line-height: 1.75; }
.legacy-callout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.legacy-callout h2 { margin: 0; font-size: 1.1rem; }
.legacy-callout p:not(.eyebrow) { max-width: 660px; margin: .5rem 0 0; font-size: .8rem; }

/* Вход и регистрация */
.auth-panel { max-width: 540px; margin: clamp(1.2rem, 5vw, 3rem) auto; padding: clamp(1.5rem, 4vw, 2.5rem); }
.auth-panel h1 { margin-top: .6rem; font-size: clamp(2rem, 4vw, 3rem); }
.auth-lead { margin: 0 0 1.4rem; font-size: .85rem; }
.auth-panel form > button { width: 100%; margin-top: .3rem; }
.auth-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .5rem; margin: 1.35rem 0 0; font-size: .78rem; }
.auth-switch a { color: #ffffff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-error { display: block; margin-bottom: 1rem; }

/* Кабинет клиента */
.dashboard-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin: 0 0 1.35rem; }
.dashboard-intro h1 { margin: .35rem 0 .5rem; }
.dashboard-intro .page-lead { margin: 0; }
.dashboard-intro-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.aeza-add-service.is-current {
  border-color: rgba(255, 255, 255, .36);
  background: #1a1a1f;
}

/* Правое выезжающее окно пополнения баланса (б+ · Баланс Плюс) */
.topup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(4px);
}
.topup-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: min(100vw, 430px);
  height: 100svh;
  padding: 1.5rem 1.45rem 1.8rem;
  border-left: 1px solid #222225;
  background: #0d0d10;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .7);
  overflow-y: auto;
  transform: translateX(104%);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}
.topup-drawer.is-open {
  transform: translateX(0);
}
.topup-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f1f24;
}
.topup-drawer-head h2 {
  margin: .2rem 0 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 720;
  letter-spacing: -.025em;
}
.topup-close-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #2e2e34;
  border-radius: 50%;
  background: #18181c;
  color: #a1a1a6;
  font-size: .86rem;
  line-height: 1;
}
.topup-close-btn:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
  transform: none;
}
.topup-balance-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.1rem;
  border: 1px solid #222225;
  border-radius: 12px;
  background: #121216;
}
.topup-balance-summary span:first-child {
  display: block;
  color: #8e8e93;
  font-size: .74rem;
  font-weight: 600;
}
.topup-balance-summary strong {
  display: block;
  margin-top: .15rem;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: -.03em;
}
.topup-drawer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.topup-section {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.topup-label, .topup-section > label {
  margin: 0;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 680;
}
.tactile-step-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a1a1a6;
  font-size: .75rem;
  font-weight: 680;
}
.tactile-step-label span:last-child {
  color: #52525b;
}

/* Круглые шайбы (Pucks) с подписью снизу */
.puck-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
}
.puck-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.puck-item:hover {
  background: transparent;
  transform: translateY(-1px);
}
.puck-circle {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid #26262c;
  border-radius: 50%;
  background: #0b0b0e;
  color: #f4f4f6;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.02em;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.puck-item:hover .puck-circle {
  border-color: rgba(255, 255, 255, .42);
}
.puck-item.is-active .puck-circle {
  border-color: #ffffff;
  background: #ffffff;
  color: #050505;
}
.puck-sub {
  color: #8e8e93;
  font-size: .72rem;
  font-weight: 600;
}
.puck-item.is-active .puck-sub {
  color: #ffffff;
  font-weight: 700;
}

/* Сетка 2x2 карточек с радио-кружками */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.type-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .6rem;
  min-height: 52px;
  margin: 0;
  padding: .65rem .8rem;
  border: 1px solid #232329;
  border-radius: 12px;
  background: #0b0b0e;
  color: #e4e4e7;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.type-card:hover {
  border-color: rgba(255, 255, 255, .34);
  background: #141419;
  transform: none;
}
.type-card.is-active {
  border-color: #ffffff;
  background: #18181f;
}
.type-card strong {
  display: block;
  color: #ffffff;
  font-size: .8rem;
  font-weight: 720;
  line-height: 1.2;
}
.type-card small {
  display: block;
  margin-top: .12rem;
  color: #8e8e93;
  font-size: .68rem;
  font-weight: 500;
}
.radio-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid #52525b;
  border-radius: 50%;
}
.type-card.is-active .radio-dot {
  border-color: #ffffff;
}
.type-card.is-active .radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

/* Компактная матрица ячеек (3 этажа текста) */
.slot-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
.slot-matrix-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .slot-matrix-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.slot-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  min-height: 68px;
  padding: .6rem .45rem;
  border: 1px solid #232329;
  border-radius: 11px;
  background: #0b0b0e;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.slot-cell:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, .36);
  background: #141419;
  transform: none;
}
.slot-cell.is-active {
  border-color: #ffffff;
  background: #191921;
}
.slot-cell.is-muted,
.slot-cell:disabled {
  opacity: .36;
  cursor: not-allowed;
}
.slot-top {
  color: #ffffff;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
}
.slot-mid {
  color: #8e8e93;
  font-size: .68rem;
  font-weight: 500;
}
.slot-price {
  margin-top: .1rem;
  color: #e4e4e7;
  font-size: .72rem;
  font-weight: 700;
}
.topup-submit {
  width: 100%;
}
.topup-guest-box {
  padding: 1.25rem;
  border: 1px solid #222225;
  border-radius: 14px;
  background: #121216;
}
.topup-guest-box h3 {
  margin: .3rem 0 .5rem;
  color: #ffffff;
  font-size: 1.1rem;
}
.topup-guest-box p:not(.eyebrow) {
  margin: 0 0 1.1rem;
  color: #8e8e93;
  font-size: .82rem;
  line-height: 1.55;
}
.topup-guest-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.environment-badge, .environment-badge > span { display: none !important; }
.dashboard-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.25rem 0; padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.dashboard-nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: .4rem .8rem; border: 1px solid transparent; border-radius: 999px; color: #a8a39b; font-size: .74rem; font-weight: 700; }
.dashboard-nav a:hover { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .04); }
.dashboard-nav a span { display: inline-grid; min-width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text); font-size: .65rem; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.3rem 0 1.5rem; }
.overview-card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .8rem; min-height: 92px; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(130deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)); }
.overview-card > span { grid-column: 1 / -1; color: #a8a39b; font-size: .67rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.overview-card > strong { grid-row: 2; color: var(--text); font-family: inherit; font-size: 1.6rem; font-weight: 740; letter-spacing: -.03em; line-height: 1; }
.overview-card > small { grid-row: 2; align-self: end; padding-bottom: .05rem; }
.overview-card-accent > strong { color: var(--accent); }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1rem; align-items: start; }
.dashboard-columns > .panel { min-width: 0; margin: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.panel-heading .eyebrow { margin-bottom: .45rem; }
.panel-heading h2 { margin: 0; }
.quiet-tag { flex: 0 0 auto; color: #817c74; font-size: .68rem; }
.project-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.project-chip { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; padding: .42rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: #e0dcd4; font-size: .74rem; overflow-wrap: anywhere; }
.project-chip > span { display: none !important; }
.stacked-form { padding-top: 1rem; border-top: 1px solid var(--line); }
.inline-control { display: flex; align-items: center; gap: .55rem; }
.inline-control input { min-width: 0; margin: .45rem 0 0; }
.inline-control button { flex: 0 0 auto; margin-top: .45rem; }
.order-panel .panel-heading { margin-bottom: .35rem; }
.order-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; margin-top: .8rem; }
.order-fields label:first-child { grid-column: 1 / -1; }
.field-label { margin-top: .25rem; }
.field-help { margin: -.55rem 0 1rem; color: #89847d; font-size: .7rem; line-height: 1.55; }
.order-panel form > .button { margin-top: .15rem; }
.dashboard-section { margin-top: clamp(2.8rem, 5vw, 4.5rem); scroll-margin-top: 100px; }
.section-heading { align-items: end; }
.section-heading h2 { margin: 0; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 31rem), 1fr)); gap: 1rem; }
.server-card { min-width: 0; margin: 0; padding: clamp(1.1rem, 2.2vw, 1.6rem); }
.server-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.server-heading .eyebrow { margin-bottom: .45rem; }
.server-heading h3 { font-family: inherit; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 680; letter-spacing: -.02em; overflow-wrap: anywhere; }
.status-badge { display: inline-flex; align-items: center; gap: .42rem; flex: 0 0 auto; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 999px; font-size: .66rem; font-weight: 750; white-space: nowrap; }
.status-badge > span { display: none !important; }
.server-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; padding: 1.1rem 0; }
.server-facts > div { min-width: 0; }
.server-facts > div > span { display: block; margin-bottom: .25rem; color: #89847d; font-size: .64rem; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.server-facts strong { display: block; color: #e9e5dd; font-size: .78rem; font-weight: 700; overflow-wrap: anywhere; }
.server-facts strong small { font-family: inherit; font-size: .66rem; }
.break-value { word-break: break-word; }
.resource-details { padding: .8rem 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.resource-details summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; color: #c9c4bc; font-size: .77rem; font-weight: 700; list-style: none; }
.resource-details summary::-webkit-details-marker { display: none; }
.resource-details summary::after { color: var(--accent); content: '+'; font-size: 1.1rem; line-height: 1; }
.resource-details[open] summary::after { content: '−'; }
.resource-details > p { margin: .7rem 0; font-size: .73rem; line-height: 1.6; }
.resource-details pre { max-height: 150px; margin: .8rem 0 0; padding: .8rem; border: 1px solid var(--line); border-radius: .7rem; background: #080808; color: #bab5ad; font-size: .68rem; }
.server-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1rem; }
.server-actions form { flex: 1 1 8rem; min-width: 0; margin: 0; }
.server-actions button { width: 100%; min-height: 40px; padding: .55rem .7rem; font-size: .7rem; }
.server-actions .renew-form { display: flex; flex-basis: 100%; align-items: center; gap: .5rem; }
.server-actions .renew-form select { flex: 1 1 auto; min-width: 0; min-height: 40px; margin: 0; padding: .4rem .6rem; font-size: .7rem; }
.server-actions .renew-form button { flex: 0 0 auto; width: auto; }
.server-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.renewal-setting { grid-column: 1 / -1; padding-bottom: .6rem; }
.renewal-setting .check { margin: .3rem 0 .65rem; }
.renewal-setting .field-help { margin-left: 1.7rem; }
.renewal-setting > button, .resource-details button { min-height: 38px; padding: .5rem .8rem; font-size: .69rem; }
.danger-details { grid-column: 1 / -1; }
.danger-details[open] { padding-bottom: .15rem; }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 250px; padding: 2rem; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 1.35rem; background: rgba(255, 255, 255, .015); }
.empty-state h3 { margin: .15rem 0 .25rem; font-family: inherit; font-size: 1rem; font-weight: 680; letter-spacing: -.02em; }
.empty-state p:not(.eyebrow) { max-width: 400px; margin: .25rem 0 1rem; font-size: .78rem; }
.empty-state .button { margin-top: .3rem; }
.lower-sections { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); margin-top: 1.2rem; scroll-margin-top: 100px; }
.lower-sections > section { scroll-margin-top: 100px; }
.notification-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.notification-list li { display: flex; gap: .7rem; padding: .85rem 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.notification-list li:first-child { padding-top: 0; border-top: 0; }
.notification-dot { display: none !important; }
.notification-list li p { margin: 0; color: #d7d2ca; font-size: .76rem; }
.notification-list time { display: block; margin-top: .25rem; color: #77736d; font-size: .64rem; }
.empty-notification { color: var(--muted); font-size: .76rem; }
.lower-sections .table-wrap { margin-top: .2rem; }
.lower-sections table { min-width: 700px; }

/* Администрирование KTV Cloud */
.admin-nav { margin-top: 1rem; }
.admin-overview { margin-bottom: 1.5rem; }
.admin-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-plan-card { min-width: 0; margin: 0; }
.admin-plan-card h3 { margin: .2rem 0 .65rem; font-family: inherit; font-weight: 680; letter-spacing: -.02em; }
.admin-plan-price { margin: 0; color: var(--text); font-family: inherit; font-size: 1.35rem; font-weight: 740; letter-spacing: -.03em; }
.admin-plan-price small { font-family: inherit; letter-spacing: 0; }
.admin-plan-cost { margin: .25rem 0 1rem; font-size: .72rem; }
.admin-plan-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .8rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.admin-plan-form input { margin: .35rem 0 .7rem; }
.admin-plan-form button { grid-column: 1 / -1; justify-self: start; }
.table-panel { margin: 0; padding: 1rem; }
.table-panel .table-wrap { border: 0; }
.mobile-table-hint { display: none; }
.admin-row-actions { display: grid; min-width: 9.5rem; gap: .4rem; }
.admin-row-actions form { margin: 0; }
.admin-row-actions button { width: 100%; min-height: 36px; padding: .4rem .65rem; font-size: .67rem; }
.admin-user-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.admin-user-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .9fr); align-items: center; gap: 1rem; margin: 0; padding: 1.1rem 1.25rem; }
.admin-user-card .eyebrow { margin-bottom: .35rem; }
.admin-user-card strong { overflow-wrap: anywhere; font-size: .8rem; }
.admin-user-card form { margin: 0; }
.admin-user-card .check { margin: 0 0 .7rem; }
.admin-user-card form > button { min-height: 38px; padding: .5rem .75rem; font-size: .68rem; }
.admin-error-list { display: grid; gap: .7rem; }
.admin-error { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: .85rem 0; border-bottom: 1px solid var(--line); background: transparent; }
.admin-error p { margin: .3rem 0 0; color: var(--muted); font-size: .77rem; }
.admin-error .text-link { flex: 0 0 auto; }
.compact-empty { min-height: 150px; margin: 0; }
.payment-pending { color: var(--warning); border-color: var(--line); background: transparent; }
.payment-sandbox_paid { color: var(--success); border-color: var(--line); background: transparent; }
.payment-canceled { color: #b9b5ad; border-color: var(--line); background: transparent; }

/* Таблицы и страницы прежнего кабинета */
.projects > .panel { margin-bottom: 1rem; }
.login { max-width: 520px; margin: 2rem auto; }
.login h1 { font-size: 2rem; }
.login form > button { width: 100%; }
.access { overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .plan-grid, .admin-plan-grid, .aeza-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-columns { grid-template-columns: 1fr; }
  .lower-sections { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .aeza-shell { grid-template-columns: 1fr; }
  .aeza-sidebar {
    position: relative;
    height: auto;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .aeza-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .aeza-nav-link, .aeza-logout-btn {
    width: auto;
    min-height: 36px;
    padding: 0 11px;
    gap: 6px;
    font-size: .8rem;
  }
  .aeza-add-service { margin: 10px 0 8px; }
  .aeza-sidebar-footer { display: none; }
  .aeza-workspace {
    margin: 0;
    border: 0;
    border-radius: 0;
    min-height: auto;
  }
  .aeza-table-head { display: none; }
  .aeza-table-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .8rem; }
}

@media (max-width: 1100px) {
  .admin-nav ~ .dashboard-section .mobile-table-hint { display: block; margin: -.85rem 0 .7rem; color: #89847d; font-size: .67rem; }
}

@media (max-width: 700px) {
  :root { --side-space: 1rem; }
  .site-header { position: sticky; }
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: .35rem .7rem; padding: .55rem 0; }
  .brand { gap: .55rem; }
  .brand img { width: 36px; height: 28px; }
  .primary-nav { order: 3; flex: 1 0 100%; justify-content: space-between; gap: .2rem; margin: 0; }
  .primary-nav .nav-link { min-height: 34px; padding: 0 .62rem; font-size: .7rem; }
  .logout-form { margin-left: auto; }
  .logout-form .subtle { min-height: 34px; padding: .4rem .7rem; }
  .site-main { min-height: calc(100svh - 160px); padding-top: 1.6rem; }
  .site-footer { min-height: 66px; font-size: .68rem; }
  .home-hero { padding: 1.6rem 1.25rem; border-radius: 1.15rem; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: clamp(2.5rem, 12vw, 4.2rem); }
  .hero-aside { justify-self: center; width: min(60vw, 240px); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 1.2rem; }
  .plan-price { font-size: 1.8rem; }
  .feature-panel { grid-template-columns: 1fr; gap: .3rem; }
  .legacy-callout { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .auth-panel { margin-top: .5rem; }
  .dashboard-intro { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .overview-grid { gap: .45rem; }
  .overview-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 102px; padding: .75rem; }
  .overview-card > span { font-size: .56rem; letter-spacing: .06em; }
  .overview-card > strong { font-size: 1.35rem; }
  .overview-card > small { font-size: .59rem; line-height: 1.3; }
  .dashboard-columns { gap: .75rem; }
  .grid, .fields { grid-template-columns: 1fr; gap: .4rem; }
  .order-fields { grid-template-columns: 1fr; gap: 0; }
  .order-fields label:first-child { grid-column: auto; }
  .inline-control { align-items: stretch; flex-direction: column; }
  .inline-control button { margin-top: 0; }
  .server-grid { grid-template-columns: minmax(0, 1fr); }
  .server-settings { grid-template-columns: 1fr; }
  .server-actions form { flex-basis: calc(50% - .25rem); }
  .server-actions button { font-size: .68rem; }
  .admin-plan-grid, .admin-user-list { grid-template-columns: 1fr; }
  .admin-user-card { grid-template-columns: 1fr; gap: .7rem; }
  .admin-error { align-items: flex-start; flex-direction: column; }
  .mobile-table-hint { display: block; margin: -.85rem 0 .7rem; color: #89847d; font-size: .67rem; }
}

@media (max-width: 420px) {
  .brand-wordmark { font-size: .74rem; }
  .primary-nav .nav-link { padding: 0 .4rem; font-size: .65rem; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: .2rem; }
  .site-footer > span, .site-footer > a { width: auto; margin: 0; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions > *, .hero-actions .signup, .hero-actions .signup > summary { width: 100%; }
  .server-heading { align-items: flex-start; flex-direction: column; }
  .server-facts { gap: .75rem; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .dashboard-intro > div { min-width: 0; }
  .dashboard-intro h1, .compact h1 { font-size: clamp(1.55rem, 8vw, 1.75rem); overflow-wrap: anywhere; }
}

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