/*
 * NexoVirt starter theme. Plain CSS, no framework, no external files.
 * Change the variables below to rebrand; everything else follows them. The accent follows the provider's colour from
 * NexoVirt's branding settings (--nx-brand, --nx-brand-contrast, set by NexoVirt on every themed page).
 * Classes: sx-* belong to this theme, nx-* are NexoVirt's own parts (forms, toasts, dialogs, banners).
 */

:root {
  color-scheme: light;
  --sx-bg: #fafafa;
  --sx-surface: #ffffff;
  --sx-subtle: #f4f4f5;
  --sx-fg: #18181b;
  --sx-muted: #71717a;
  --sx-line: #e4e4e7;
  --sx-line-strong: #d4d4d8;
  --sx-accent: var(--nx-brand, #2563eb);
  --sx-accent-hover: color-mix(in srgb, var(--sx-accent) 85%, #000);
  --sx-accent-fg: var(--nx-brand-contrast, #ffffff);
  --sx-accent-soft: color-mix(in srgb, var(--sx-accent) 8%, #fff);
  --sx-accent-text: color-mix(in srgb, var(--sx-accent) 70%, #000);
  --sx-ok: #15803d;
  --sx-ok-soft: #f0fdf4;
  --sx-warn: #b45309;
  --sx-warn-soft: #fffbeb;
  --sx-danger: #dc2626;
  --sx-danger-soft: #fef2f2;
  --sx-sidebar: #ffffff;
  --sx-shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 1px 3px rgba(24, 24, 27, .06);
  --sx-shadow-lg: 0 10px 30px rgba(24, 24, 27, .12);
  --sx-radius: 10px;
  --sx-radius-sm: 6px;
  --sx-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sx-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sx-sidebar-width: 16rem;

  /* NexoVirt's toasts and dialogs follow the theme. */
  --nx-core-bg: var(--sx-surface);
  --nx-core-fg: var(--sx-fg);
  --nx-core-accent: var(--sx-accent);
  --nx-core-danger: var(--sx-danger);
  --nx-core-success: var(--sx-ok);
  --nx-core-warning: #f59e0b;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --sx-bg: #09090b;
    --sx-surface: #18181b;
    --sx-subtle: #27272a;
    --sx-fg: #fafafa;
    --sx-muted: #a1a1aa;
    --sx-line: #27272a;
    --sx-line-strong: #3f3f46;
    --sx-accent: var(--nx-brand, #3b82f6);
    --sx-accent-hover: color-mix(in srgb, var(--sx-accent) 75%, #fff);
    --sx-accent-soft: color-mix(in srgb, var(--sx-accent) 14%, transparent);
    --sx-accent-text: color-mix(in srgb, var(--sx-accent) 55%, #fff);
    --sx-ok: #4ade80;
    --sx-ok-soft: rgba(74, 222, 128, .12);
    --sx-warn: #fbbf24;
    --sx-warn-soft: rgba(251, 191, 36, .12);
    --sx-danger: #f87171;
    --sx-danger-soft: rgba(248, 113, 113, .12);
    --sx-sidebar: #0f0f11;
    --sx-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --sx-shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--sx-bg);
  color: var(--sx-fg);
  font: 15px/1.55 var(--sx-font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--sx-accent); text-decoration: none; }
a:hover { color: var(--sx-accent-hover); text-decoration: underline; }

code, .sx-mono { font-family: var(--sx-mono); font-size: .85em; }
code { padding: .1rem .35rem; background: var(--sx-subtle); border-radius: 4px; word-break: break-all; }

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--sx-accent); outline-offset: 2px; border-radius: 4px; }

.sx-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sx-icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sx-icon-sm { width: 1rem; height: 1rem; }
.sx-icon-lg { width: 1.75rem; height: 1.75rem; }

.sx-muted { color: var(--sx-muted); }
.sx-small { font-size: .85rem; }
.sx-nowrap { white-space: nowrap; }

/* ---------- App shell ---------- */

.sx-shell { min-height: 100vh; }

.sx-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sx-sidebar-width);
  background: var(--sx-sidebar);
  border-right: 1px solid var(--sx-line);
  overflow-y: auto;
}

.sx-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1.1rem 1.25rem;
  color: var(--sx-fg);
  font-weight: 650;
  font-size: 1.02rem;
}
.sx-brand:hover { color: var(--sx-fg); text-decoration: none; }
.sx-brand img { max-height: 2rem; width: auto; }
.sx-brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--sx-accent);
  color: var(--sx-accent-fg);
  font-weight: 700;
  font-size: .95rem;
}

.sx-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .sx-logo-light.sx-has-dark { display: none; }
  .sx-logo-dark { display: inline; }
}

.sx-nav { flex: 1; padding: .25rem .75rem 1rem; }
.sx-nav-heading {
  margin: 1.1rem .6rem .35rem;
  color: var(--sx-muted);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sx-nav ul { margin: 0; padding: 0; list-style: none; }
.sx-nav-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .6rem;
  border-radius: var(--sx-radius-sm);
  color: var(--sx-muted);
  font-weight: 500;
  font-size: .92rem;
}
.sx-nav-link:hover { background: var(--sx-subtle); color: var(--sx-fg); text-decoration: none; }
.sx-nav-link[aria-current="page"], .sx-nav-link.sx-active { background: var(--sx-accent-soft); color: var(--sx-accent-text); }
.sx-nav-link span:first-of-type { flex: 1; }
.sx-nav .sx-nav-sub { margin: .15rem 0 .35rem 1.6rem; padding-left: .55rem; border-left: 1px solid var(--sx-line); }
.sx-nav-sub .sx-nav-link { padding: .35rem .6rem; font-size: .87rem; }

.sx-badge-count {
  min-width: 1.35rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: var(--sx-accent);
  color: var(--sx-accent-fg);
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
}

.sx-sidebar-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--sx-line); color: var(--sx-muted); font-size: .8rem; }

.sx-main { display: flex; flex-direction: column; min-height: 100vh; margin-left: var(--sx-sidebar-width); }

.sx-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 3.75rem;
  padding: 0 1.5rem;
  background: color-mix(in srgb, var(--sx-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--sx-line);
}
.sx-topbar-spacer { flex: 1; }

.sx-menu-button {
  display: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-left: -.5rem;
  border-radius: var(--sx-radius-sm);
  color: var(--sx-fg);
  cursor: pointer;
}
.sx-menu-button:hover { background: var(--sx-subtle); }

.sx-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .75rem;
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  background: var(--sx-surface);
  color: var(--sx-fg);
  font-size: .87rem;
  font-weight: 500;
}
.sx-pill:hover { border-color: var(--sx-line-strong); color: var(--sx-fg); text-decoration: none; }
.sx-pill .sx-muted { font-weight: 400; }

/* User menu: <details> so it works without JavaScript. */
.sx-user { position: relative; }
.sx-user > summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .5rem .25rem .25rem;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  font-size: .9rem;
  font-weight: 500;
}
.sx-user > summary::-webkit-details-marker { display: none; }
.sx-user > summary:hover { background: var(--sx-subtle); }
.sx-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--sx-subtle);
  color: var(--sx-fg);
  font-size: .85rem;
  font-weight: 650;
}
.sx-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  width: 15rem;
  padding: .4rem;
  background: var(--sx-surface);
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius);
  box-shadow: var(--sx-shadow-lg);
}
.sx-user-menu-head { padding: .5rem .65rem .6rem; border-bottom: 1px solid var(--sx-line); margin-bottom: .3rem; }
.sx-user-menu-head strong { display: block; }
.sx-user-menu a, .sx-user-menu button {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .5rem .65rem;
  border: 0;
  border-radius: var(--sx-radius-sm);
  background: none;
  color: var(--sx-fg);
  font: inherit;
  font-size: .9rem;
  text-align: left;
  cursor: pointer;
}
.sx-user-menu a:hover, .sx-user-menu button:hover { background: var(--sx-subtle); text-decoration: none; }
.sx-user-menu form { margin: 0; }

.sx-content { flex: 1; width: 100%; max-width: 82rem; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }

.sx-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.sx-pretitle { margin-bottom: .2rem; color: var(--sx-muted); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sx-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.sx-page { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.sx-page:has(> .sx-aside > *) { grid-template-columns: minmax(0, 1fr) 21rem; }
.sx-page-main, .sx-aside { display: grid; gap: 1.25rem; min-width: 0; }
.sx-aside:not(:has(*)) { display: none; }

.sx-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--sx-line);
  color: var(--sx-muted);
  font-size: .82rem;
}
.sx-footer a { color: var(--sx-muted); }
.sx-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }

.sx-impersonating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1rem;
  padding: .5rem 1rem;
  background: var(--sx-warn-soft);
  color: var(--sx-fg);
  border-bottom: 1px solid var(--sx-line);
  font-size: .87rem;
}

/* Mobile drawer: a checkbox toggles the sidebar, a label over the page closes it. */
.sx-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.sx-scrim { display: none; }

@media (max-width: 960px) {
  .sx-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--sx-shadow-lg); }
  .sx-main { margin-left: 0; }
  .sx-menu-button { display: grid; }
  .sx-nav-toggle:checked ~ .sx-sidebar { transform: none; }
  .sx-nav-toggle:checked ~ .sx-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(9, 9, 11, .45); }
  .sx-nav-toggle:focus-visible ~ .sx-main .sx-menu-button { outline: 2px solid var(--sx-accent); outline-offset: 2px; }
  .sx-page:has(> .sx-aside > *) { grid-template-columns: minmax(0, 1fr); }
  .sx-topbar { padding: 0 1rem; }
  .sx-content { padding: 1.25rem 1rem 2.5rem; }
  .sx-hide-sm { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-sidebar { transition: none; }
}

/* ---------- Cards, stats, lists ---------- */

.sx-card {
  background: var(--sx-surface);
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius);
  box-shadow: var(--sx-shadow);
  min-width: 0;
}
.sx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--sx-line);
}
.sx-card-header a { font-size: .87rem; font-weight: 500; }
.sx-card-body { padding: 1.25rem; }
.sx-card-footer { padding: .85rem 1.25rem; border-top: 1px solid var(--sx-line); background: var(--sx-subtle); border-radius: 0 0 var(--sx-radius) var(--sx-radius); }

.sx-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.sx-stat { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.25rem; }
.sx-stat-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 9px;
  background: var(--sx-accent-soft);
  color: var(--sx-accent-text);
}
.sx-stat-label { color: var(--sx-muted); font-size: .82rem; font-weight: 500; }
.sx-stat-value { margin-top: .1rem; font-size: 1.45rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.sx-stat-note { margin-top: .2rem; color: var(--sx-muted); font-size: .8rem; }
a.sx-stat { color: inherit; }
a.sx-stat:hover { text-decoration: none; border-color: var(--sx-line-strong); }

.sx-list { margin: 0; padding: 0; list-style: none; }
.sx-list > li { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1.25rem; border-top: 1px solid var(--sx-line); }
.sx-list > li:first-child { border-top: 0; }
.sx-list-main { flex: 1; min-width: 0; }
.sx-list-title { font-weight: 500; overflow-wrap: anywhere; }
.sx-list-meta { color: var(--sx-muted); font-size: .8rem; }
.sx-dot { width: .5rem; height: .5rem; margin-top: .45rem; flex: none; border-radius: 999px; background: var(--sx-line-strong); }
.sx-dot-accent { background: var(--sx-accent); }
.sx-dot-ok { background: var(--sx-ok); }
.sx-dot-warn { background: var(--sx-warn); }
.sx-dot-danger { background: var(--sx-danger); }

.sx-dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; font-size: .9rem; }
.sx-dl dt { color: var(--sx-muted); }
.sx-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

/* ---------- Tables ---------- */

.sx-table-wrap { overflow-x: auto; }
.sx-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sx-table th {
  padding: .65rem 1.25rem;
  background: var(--sx-subtle);
  color: var(--sx-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.sx-table td { padding: .85rem 1.25rem; border-top: 1px solid var(--sx-line); vertical-align: middle; }
.sx-table tbody tr:hover td { background: color-mix(in srgb, var(--sx-subtle) 55%, transparent); }
.sx-table .sx-right { text-align: right; }
.sx-table form { margin: 0; }
.sx-card > .sx-table-wrap:first-child .sx-table th:first-child { border-top-left-radius: var(--sx-radius); }
.sx-card > .sx-table-wrap:first-child .sx-table th:last-child { border-top-right-radius: var(--sx-radius); }
/* .sx-table-stack: on phones each row becomes a stacked block, so its action links stay visible without scrolling. */
@media (max-width: 640px) {
  .sx-table-stack thead { display: none; }
  .sx-table-stack tr, .sx-table-stack td { display: block; }
  .sx-table-stack td { border-top: 0; padding: .35rem 1rem; text-align: left !important; }
  .sx-table-stack tbody tr:first-child td:first-child, .sx-table-stack td:first-child { border-top: 1px solid var(--sx-line); padding-top: .85rem; }
  .sx-table-stack td:last-child { padding-bottom: .85rem; }
  .sx-table-stack .sx-nowrap { white-space: normal; }
  .sx-table-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--sx-muted); }
}

.sx-server { display: flex; align-items: center; gap: .75rem; min-width: 12rem; }
.sx-server a { color: var(--sx-fg); font-weight: 600; }
.sx-os {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 8px;
  background: var(--sx-subtle);
  color: var(--sx-muted);
  overflow: hidden;
}
.sx-os img { width: 1.5rem; height: 1.5rem; object-fit: contain; }

/* ---------- Badges, alerts ---------- */

.sx-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--sx-subtle);
  color: var(--sx-muted);
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
}
.sx-badge::before { content: ""; width: .4rem; height: .4rem; border-radius: 999px; background: currentColor; }
.sx-badge-plain::before { display: none; }
.sx-badge-ok { background: var(--sx-ok-soft); color: var(--sx-ok); }
.sx-badge-warn { background: var(--sx-warn-soft); color: var(--sx-warn); }
.sx-badge-danger { background: var(--sx-danger-soft); color: var(--sx-danger); }
.sx-badge-accent { background: var(--sx-accent-soft); color: var(--sx-accent-text); }

.sx-alert {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius);
  background: var(--sx-surface);
  font-size: .9rem;
}
.sx-alert .sx-icon { margin-top: .05rem; }
.sx-alert-body { flex: 1; min-width: 0; }
.sx-alert-body strong { display: block; margin-bottom: .1rem; }
.sx-alert form { margin: 0; }
.sx-alert-info { background: var(--sx-accent-soft); border-color: transparent; }
.sx-alert-info > .sx-icon { color: var(--sx-accent); }
.sx-alert-ok { background: var(--sx-ok-soft); border-color: transparent; }
.sx-alert-ok > .sx-icon { color: var(--sx-ok); }
.sx-alert-warn { background: var(--sx-warn-soft); border-color: transparent; }
.sx-alert-warn > .sx-icon { color: var(--sx-warn); }
.sx-alert-danger { background: var(--sx-danger-soft); border-color: transparent; }
.sx-alert-danger > .sx-icon { color: var(--sx-danger); }
.sx-stack { display: grid; gap: .75rem; }
.sx-banners { display: grid; gap: .6rem; margin-bottom: 1.25rem; }

/* ---------- Buttons and forms (also NexoVirt's fixed blocks) ---------- */

.sx-button, .nx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.35rem;
  padding: .45rem .95rem;
  border: 1px solid var(--sx-line-strong);
  border-radius: var(--sx-radius-sm);
  background: var(--sx-surface);
  color: var(--sx-fg);
  font: inherit;
  font-size: .9rem;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}
.sx-button:hover, .nx-button:hover { background: var(--sx-subtle); color: var(--sx-fg); text-decoration: none; }
.sx-button-primary, .nx-button-primary { background: var(--sx-accent); border-color: var(--sx-accent); color: var(--sx-accent-fg); }
.sx-button-primary:hover, .nx-button-primary:hover { background: var(--sx-accent-hover); border-color: var(--sx-accent-hover); color: var(--sx-accent-fg); }
.sx-button-danger, .nx-button-danger { color: var(--sx-danger); }
.sx-button-danger:hover, .nx-button-danger:hover { background: var(--sx-danger-soft); color: var(--sx-danger); }
fieldset.nx-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.nx-reinstall-same { margin-bottom: 1rem; }
.sx-button-sm { min-height: 2rem; padding: .3rem .7rem; font-size: .84rem; }
.sx-button-ghost { border-color: transparent; background: none; }
.sx-icon-button { width: 2rem; min-height: 2rem; padding: 0; }
.sx-button-block, .nx-form .nx-button-primary { width: 100%; }

.sx-form, .nx-form { display: grid; gap: 1rem; margin: 0; }
.sx-field, .nx-field { display: grid; gap: .35rem; }
.sx-label, .nx-label { font-size: .87rem; font-weight: 550; }
.sx-hint, .nx-hint { color: var(--sx-muted); font-size: .8rem; }
.sx-input, .nx-input, .sx-form select, .sx-form textarea, .nx-form select, .nx-form textarea {
  width: 100%;
  min-height: 2.5rem;
  padding: .5rem .75rem;
  border: 1px solid var(--sx-line-strong);
  border-radius: var(--sx-radius-sm);
  background: var(--sx-surface);
  color: var(--sx-fg);
  font: inherit;
  font-size: .93rem;
}
.sx-form textarea, .nx-form textarea { min-height: 7rem; resize: vertical; }
.sx-input:focus, .nx-input:focus, .sx-form select:focus, .sx-form textarea:focus, .nx-form select:focus, .nx-form textarea:focus {
  outline: none;
  border-color: var(--sx-accent);
  box-shadow: 0 0 0 3px var(--sx-accent-soft);
}
.sx-form input[type="file"] { padding: .4rem; }
.sx-check, .nx-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; }
.sx-check input, .nx-check input { width: 1rem; height: 1rem; margin-top: .2rem; accent-color: var(--sx-accent); }
.sx-input-group { display: flex; }
.sx-input-group .sx-input { border-radius: var(--sx-radius-sm) 0 0 var(--sx-radius-sm); }
.sx-input-group .sx-addon {
  display: grid;
  place-items: center;
  padding: 0 .75rem;
  border: 1px solid var(--sx-line-strong);
  border-left: 0;
  border-radius: 0 var(--sx-radius-sm) var(--sx-radius-sm) 0;
  background: var(--sx-subtle);
  color: var(--sx-muted);
  font-size: .87rem;
}
.sx-form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }

.nx-block { display: grid; gap: 1rem; }
.nx-passkey { display: grid; }
.nx-passkey .nx-button, #nx-passkey-2fa { width: 100%; }
.nx-account-types { display: flex; gap: .4rem; padding: .25rem; border-radius: var(--sx-radius-sm); background: var(--sx-subtle); }
.nx-account-type { flex: 1; padding: .4rem .6rem; border-radius: 5px; color: var(--sx-muted); font-size: .87rem; font-weight: 550; text-align: center; }
.nx-account-type:hover { color: var(--sx-fg); text-decoration: none; }
.nx-account-type.nx-active { background: var(--sx-surface); color: var(--sx-fg); box-shadow: var(--sx-shadow); }

/* Segmented links (e.g. the account types above the sign-up form). */
.sx-segmented { display: flex; gap: .3rem; padding: .25rem; border-radius: var(--sx-radius-sm); background: var(--sx-subtle); }
.sx-segmented a { flex: 1; padding: .4rem .6rem; border-radius: 5px; color: var(--sx-muted); font-size: .87rem; font-weight: 550; text-align: center; }
.sx-segmented a:hover { color: var(--sx-fg); text-decoration: none; }
.sx-segmented a[aria-current="page"] { background: var(--sx-surface); color: var(--sx-fg); box-shadow: var(--sx-shadow); }

/* ---------- Empty states ---------- */

.sx-empty { display: grid; justify-items: center; gap: .4rem; padding: 2.75rem 1.5rem; text-align: center; }
.sx-empty img { width: 7rem; height: auto; margin-bottom: .5rem; opacity: .9; }
.sx-empty-title { font-size: 1rem; font-weight: 600; }
.sx-empty-text { max-width: 26rem; color: var(--sx-muted); font-size: .9rem; }
.sx-empty .sx-button { margin-top: .6rem; }

/* ---------- Tickets ---------- */

.sx-thread { display: grid; gap: 1rem; }
.sx-message { display: flex; gap: .75rem; max-width: 46rem; }
.sx-message-you { margin-left: auto; flex-direction: row-reverse; }
.sx-message-bubble { min-width: 0; padding: .8rem 1rem; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); background: var(--sx-surface); }
.sx-message-you .sx-message-bubble { background: var(--sx-accent-soft); border-color: transparent; }
.sx-message-head { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .3rem; font-size: .82rem; }
.sx-message-head strong { font-size: .87rem; }
.sx-message-text { overflow-wrap: anywhere; font-size: .93rem; }
.sx-files { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.sx-file { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .55rem; border: 1px solid var(--sx-line); border-radius: 999px; background: var(--sx-surface); font-size: .8rem; }

/* ---------- FAQ ---------- */

.sx-faq details { border-top: 1px solid var(--sx-line); }
.sx-faq details:first-child { border-top: 0; }
.sx-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 550;
  list-style: none;
}
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary .sx-icon { transition: transform .15s ease; color: var(--sx-muted); }
.sx-faq details[open] summary .sx-icon { transform: rotate(90deg); }
.sx-faq-answer { padding: 0 1.25rem 1.1rem; color: var(--sx-muted); }

/* ---------- Status ---------- */

.sx-overall { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; }
.sx-overall .sx-stat-icon { width: 3rem; height: 3rem; }
.sx-overall-ok .sx-stat-icon { background: var(--sx-ok-soft); color: var(--sx-ok); }
.sx-overall-warn .sx-stat-icon { background: var(--sx-warn-soft); color: var(--sx-warn); }
.sx-overall-danger .sx-stat-icon { background: var(--sx-danger-soft); color: var(--sx-danger); }
.sx-uptime { display: flex; gap: 2px; height: 2rem; margin-top: .6rem; }
.sx-day { flex: 1; min-width: 2px; border-radius: 2px; background: var(--sx-line); }
.sx-day-ok { background: var(--sx-ok); opacity: .85; }
.sx-day-warn { background: var(--sx-warn); }
.sx-day-danger { background: var(--sx-danger); }
.sx-uptime-legend { display: flex; justify-content: space-between; margin-top: .35rem; color: var(--sx-muted); font-size: .75rem; }

/* ---------- Sign-in pages ---------- */

.sx-auth { display: grid; min-height: 100vh; place-items: center; padding: 2rem 1rem; }
.sx-auth-box { width: 100%; max-width: 25rem; }
.sx-auth-brand { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.sx-auth-card { padding: 2rem; }
.sx-auth-card h1 { margin-bottom: .35rem; font-size: 1.35rem; }
.sx-auth-lead { margin-bottom: 1.5rem; color: var(--sx-muted); font-size: .92rem; }
.sx-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1.25rem; font-size: .87rem; }
.sx-auth-foot { margin-top: 1.5rem; color: var(--sx-muted); font-size: .8rem; text-align: center; }
.sx-auth-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-bottom: .4rem; }
.sx-auth-foot a { color: var(--sx-muted); }
.sx-auth-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 12px; background: var(--sx-accent-soft); color: var(--sx-accent-text); }
.sx-divider { margin: 1.25rem 0; border: 0; border-top: 1px solid var(--sx-line); }

/* ---------- NexoVirt parts ---------- */

.nx-toast { border-radius: var(--sx-radius-sm); border: 1px solid var(--sx-line); border-left-width: 4px; box-shadow: var(--sx-shadow-lg); font-family: var(--sx-font); }
.nx-dialog { border: 1px solid var(--sx-line); border-radius: var(--sx-radius); box-shadow: var(--sx-shadow-lg); font-family: var(--sx-font); }
.nx-dialog-input { border: 1px solid var(--sx-line-strong); border-radius: var(--sx-radius-sm); background: var(--sx-surface); color: var(--sx-fg); }
.nx-dialog-actions button { border-radius: var(--sx-radius-sm); }
.nx-theme-banner, .nx-return-admin { border-radius: var(--sx-radius-sm); box-shadow: var(--sx-shadow-lg); font-family: var(--sx-font); }
.nx-return-admin { padding: .5rem .75rem; color: #000; font-weight: 600; }
.nx-return-admin:hover { color: #000; }

.sx-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

/* ---------- Server page ---------- */

.sx-power { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.sx-button:disabled, .sx-button[disabled] { opacity: .45; cursor: not-allowed; }
.sx-button:disabled:hover { background: var(--sx-surface); }
.nx-busy { opacity: .7; }

/* The status badge follows the live state NexoVirt's status widget writes into data-nx-state. */
[data-nx-state="running"] .sx-live-badge { background: var(--sx-ok-soft); color: var(--sx-ok); }
[data-nx-state="provisioning"] .sx-live-badge, [data-nx-state="rebooting"] .sx-live-badge,
[data-nx-state="starting"] .sx-live-badge, [data-nx-state="stopping"] .sx-live-badge,
[data-nx-state="shutting-down"] .sx-live-badge { background: var(--sx-warn-soft); color: var(--sx-warn); }
[data-nx-state="suspended"] .sx-live-badge, [data-nx-state="error"] .sx-live-badge { background: var(--sx-danger-soft); color: var(--sx-danger); }

.sx-facts { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
.sx-fact { display: flex; align-items: center; gap: .25rem; min-height: 2rem; margin-top: .1rem; font-weight: 600; overflow-wrap: anywhere; }
.sx-traffic { display: grid; gap: .45rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--sx-line); }

.sx-meter { width: 100%; height: .5rem; border: 0; border-radius: 999px; background: var(--sx-subtle); overflow: hidden; appearance: none; }
.sx-meter::-webkit-progress-bar { background: var(--sx-subtle); border-radius: 999px; }
.sx-meter::-webkit-progress-value { background: var(--sx-accent); border-radius: 999px; }
.sx-meter::-moz-progress-bar { background: var(--sx-accent); border-radius: 999px; }
.sx-meter-warn::-webkit-progress-value { background: var(--sx-warn); }
.sx-meter-warn::-moz-progress-bar { background: var(--sx-warn); }
.sx-meter-danger::-webkit-progress-value { background: var(--sx-danger); }
.sx-meter-danger::-moz-progress-bar { background: var(--sx-danger); }
/* Waiting without a known step count: one flat block slides along (a single colour, not a colour fade). */
.sx-meter:indeterminate { background-color: var(--sx-subtle); background-image: linear-gradient(var(--sx-accent), var(--sx-accent));
    background-size: 35% 100%; background-repeat: no-repeat; animation: sx-meter-slide 1.6s ease-in-out infinite; }
.sx-meter:indeterminate::-webkit-progress-bar { background: transparent; }
.sx-meter:indeterminate::-moz-progress-bar { background: transparent; }
@keyframes sx-meter-slide { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { .sx-meter:indeterminate { animation: none; background-position: 0 0; } }
.nx-table .nx-row-note { color: var(--sx-muted); font-size: .8rem; }
.sx-edit-form { padding: .75rem; border: 1px solid var(--sx-line); border-radius: var(--sx-radius-sm); }
.sx-edit-form > .sx-subtitle { grid-column: 1 / -1; margin: 0; }

.sx-charts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.sx-chart { display: grid; gap: .5rem; padding: .85rem 1rem; border: 1px solid var(--sx-line); border-radius: var(--sx-radius-sm); color: var(--sx-accent); --nx-chart-height: 5.5rem; }
.sx-chart .sx-row, .sx-chart [data-nx-field] { color: var(--sx-fg); }
.sx-chart .sx-muted[data-nx-field] { color: var(--sx-muted); font-variant-numeric: tabular-nums; }
.sx-chart[data-nx-state="error"] { color: var(--sx-line-strong); }

.sx-section { display: grid; gap: .75rem; border-top: 1px solid var(--sx-line); }
.sx-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.sx-inline-form .sx-input { flex: 1 1 10rem; width: auto; min-height: 2rem; padding: .3rem .6rem; }
.sx-inline-form .sx-label { flex: 0 0 auto; min-width: 7rem; }
.sx-list-tight > li { padding: .5rem 0; align-items: center; }
.sx-card .sx-server h2 { font-size: 1.05rem; }
.sx-live-badge { text-transform: capitalize; }
.sx-fact .sx-mono { white-space: nowrap; }

/* ---------- Server panes (snapshots, backups, firewall, ISO, boot) ---------- */

.sx-subtitle { margin: .5rem 0 0; font-size: .9rem; font-weight: 600; }
.sx-form-inline { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); align-items: end; }
.nx-table .nx-row-action { padding: .2rem .55rem; border: 1px solid var(--sx-line); border-radius: var(--sx-radius-sm); background: var(--sx-surface); color: var(--sx-fg); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: none; }
.nx-table .nx-row-action:hover { background: var(--sx-subtle); text-decoration: none; }
.nx-table td[data-nx-badge] { font-weight: 600; text-transform: capitalize; } /* open -> Open, answered -> Answered */
.nx-table td[data-nx-badge="answered"] { color: var(--sx-ok); }
.nx-table td[data-nx-badge="open"] { color: var(--sx-warn); }
.nx-table td[data-nx-badge="done"], .nx-table td[data-nx-badge="ACCEPT"] { color: var(--sx-ok); }
.nx-table td[data-nx-badge="running"] { color: var(--sx-accent-text); }
.nx-table td[data-nx-badge="failed"], .nx-table td[data-nx-badge="DROP"], .nx-table td[data-nx-badge="REJECT"] { color: var(--sx-danger); }

/* Provisioning screen: the error line shows only once the widget fills it. */
.sx-alert:empty { display: none; }
.nx-fieldset { display: grid; gap: 1rem; }
.nx-field > .nx-button { justify-self: start; align-self: flex-start; }

/* Account blocks (security, VPN). */
.nx-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.nx-qr { display: block; max-width: 240px; height: auto; border: 1px solid var(--sx-line); border-radius: var(--sx-radius-sm); background: #fff; }
.nx-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.nx-vpn-config { display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--sx-line); border-radius: var(--sx-radius-sm); background: var(--sx-subtle); }
.nx-vpn-config textarea { font-family: var(--sx-mono, monospace); font-size: .8rem; }

/* ---------- Shop: categories, product cards, filters ---------- */

.sx-products { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); align-items: stretch; }
.sx-product { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.4rem; }
.sx-product-featured { border-color: var(--sx-accent); box-shadow: 0 0 0 1px var(--sx-accent), var(--sx-shadow); }
.sx-product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.sx-product-name { margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
.sx-product-tagline { margin: .2rem 0 0; color: var(--sx-muted); font-size: .85rem; }
.sx-product-text { margin: 0; color: var(--sx-muted); font-size: .88rem; }
.sx-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.sx-price-value { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sx-price-period { color: var(--sx-muted); font-size: .85rem; }
.sx-price-was { color: var(--sx-muted); font-size: .9rem; }
.sx-price-note { width: 100%; color: var(--sx-muted); font-size: .8rem; }
.sx-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sx-spec { display: grid; gap: .1rem; padding: .6rem .4rem; border-radius: var(--sx-radius-sm); background: var(--sx-subtle); text-align: center; }
.sx-spec-value { font-weight: 650; overflow-wrap: anywhere; }
.sx-spec-label { color: var(--sx-muted); font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.sx-features { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.sx-features li { display: flex; gap: .5rem; align-items: flex-start; }
.sx-features .sx-icon { margin-top: .15rem; color: var(--sx-ok); }
.sx-features-cols { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.sx-games { display: flex; flex-wrap: wrap; gap: .35rem; }
.sx-game { width: 2rem; height: 2rem; border-radius: 6px; object-fit: cover; background: var(--sx-subtle); }
.sx-game-lg { width: 3rem; height: 3rem; border-radius: 10px; }
.sx-product-foot { display: grid; gap: .45rem; margin-top: auto; justify-items: start; }
.sx-product-foot .sx-button-block { justify-self: stretch; }

.sx-categories { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.sx-category { display: flex; flex-direction: column; overflow: hidden; color: inherit; transition: border-color .15s, transform .15s; }
.sx-category:hover { border-color: var(--sx-line-strong); color: inherit; text-decoration: none; transform: translateY(-2px); }
.sx-category-image { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 1px solid var(--sx-line); }
.sx-category-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 1.25rem 1.25rem 0; border-radius: 12px; background: var(--sx-accent-soft); color: var(--sx-accent-text); }
.sx-category-icon svg { width: 1.6rem; height: 1.6rem; }
.sx-category-icon-sm { width: 2.5rem; height: 2.5rem; margin: 0; flex: none; }
.sx-category-body { flex: 1; padding: 1rem 1.25rem 0; }
.sx-category-name { margin: 0; font-size: 1.05rem; font-weight: 650; }
.sx-category-text { margin: .3rem 0 0; color: var(--sx-muted); font-size: .88rem; }
.sx-category-foot { display: flex; align-items: center; gap: .5rem; padding: 1rem 1.25rem; font-size: .87rem; }
.sx-category-from { margin-left: auto; font-weight: 600; }
.sx-category-intro { display: flex; align-items: center; gap: .9rem; }
.sx-category-intro p { margin: 0; }

.sx-filters { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); align-items: end; }
.sx-filter-actions { flex-wrap: nowrap; }
.sx-range-inputs { display: flex; align-items: center; gap: .4rem; }
.sx-range-inputs .sx-input { min-width: 0; }
.sx-result-count { margin: 0; }
.sx-game-tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.sx-game-tile { display: grid; justify-items: center; gap: .5rem; padding: .9rem .6rem; color: inherit; font-size: .88rem; font-weight: 600; text-align: center; }
.sx-game-tile:hover { border-color: var(--sx-line-strong); color: inherit; text-decoration: none; }
.sx-game-tile-active { border-color: var(--sx-accent); box-shadow: 0 0 0 1px var(--sx-accent); }

/* Order page: the product on top, billing periods, then NexoVirt's order block. */
.sx-order-hero { display: grid; gap: 1.5rem; padding: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.sx-order-hero-main { display: grid; gap: 1.1rem; min-width: 0; }
.sx-order-hero-price { display: grid; gap: .35rem; align-content: start; }
.sx-order-name { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.sx-specs-wide { max-width: 34rem; }
.sx-periods { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.sx-period { display: grid; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--sx-line-strong); border-radius: var(--sx-radius-sm); background: var(--sx-surface); color: inherit; }
.sx-period:hover { border-color: var(--sx-accent); color: inherit; text-decoration: none; }
.sx-period-active { border-color: var(--sx-accent); box-shadow: 0 0 0 1px var(--sx-accent) inset; background: var(--sx-accent-soft); }
.sx-period-name { color: var(--sx-muted); font-size: .8rem; font-weight: 600; }
.sx-period-price { font-weight: 650; }
.sx-period .sx-badge { justify-self: start; }
@media (min-width: 56rem) {
  .sx-order-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .sx-order-hero-price { justify-items: end; text-align: right; min-width: 12rem; }
}

/* NexoVirt's order block (nx.order_form()): the same form as the default order page, styled by its nx- classes. */
.nx-order { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.nx-order-setup, .nx-order-aside { display: grid; gap: 1.25rem; min-width: 0; }
.nx-order .nx-fieldset { gap: 1.25rem; }
.nx-order-section, .nx-order-summary { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); background: var(--sx-surface); box-shadow: var(--sx-shadow); min-width: 0; }
.nx-order-section > .card-body, .nx-order-section > .card-header > div, .nx-order-summary-body, .nx-order-footer { display: grid; gap: 1rem; min-width: 0; }
.nx-order-section p { margin: 0; }
.nx-order-heading { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1rem; font-weight: 650; }
.nx-order-step { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: none; border-radius: 999px; background: var(--sx-accent-soft); color: var(--sx-accent-text); font-size: .8rem; font-weight: 700; }
.nx-choices { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.nx-choices-inline { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.nx-choices-stack { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.nx-choices[hidden], [hidden] { display: none !important; }
.nx-choice { position: relative; display: grid; height: 100%; padding: .85rem 1rem; border: 1px solid var(--sx-line-strong); border-radius: var(--sx-radius-sm); background: var(--sx-surface); cursor: pointer; transition: border-color .15s, background-color .15s; }
.nx-choice:hover { border-color: var(--sx-accent); }
.nx-choice input { position: absolute; opacity: 0; pointer-events: none; }
.nx-choice:has(input:checked) { border-color: var(--sx-accent); box-shadow: 0 0 0 1px var(--sx-accent) inset; background: var(--sx-accent-soft); }
.nx-choice:has(input:focus-visible) { outline: 2px solid var(--sx-accent); outline-offset: 2px; }
.nx-choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.nx-choice-body { display: flex; gap: .6rem; align-items: flex-start; }
.nx-choice-tile { padding: 1rem .75rem; }
.nx-choice-tile .nx-choice-body { flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.nx-choice .form-selectgroup-check { display: none; }
.nx-choice-image { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.nx-choice-title, .nx-choice-text { display: block; }
.nx-choice-title { font-size: .92rem; font-weight: 600; }
.nx-choice-text { color: var(--sx-muted); font-size: .8rem; }
.nx-game-art img:not(.avatar) { width: 100%; max-height: 6rem; border-radius: 4px; object-fit: cover; }
.nx-game-art .avatar { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 8px; object-fit: cover; background: var(--sx-subtle); }
.nx-game-art .avatar svg { width: 1.5rem; height: 1.5rem; }
.nx-game-current { display: flex; align-items: center; gap: .75rem; }
.nx-game-order { display: grid; gap: 1rem; }
.nx-field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.nx-field-row > .nx-field-wide { grid-column: 1 / -1; }
.nx-addons { display: grid; }
.nx-addon { padding: .85rem 0; border-top: 1px solid var(--sx-line); }
.nx-addon:first-child { padding-top: 0; border-top: 0; }
.nx-addon-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.nx-addon-icon .avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 8px; background: var(--sx-subtle); color: var(--sx-muted); }
.nx-addon-icon svg { width: 1.2rem; height: 1.2rem; }
.nx-addon-main { display: grid; flex: 1; gap: .15rem; min-width: 12rem; }
.nx-addon-name { font-weight: 600; }
.nx-addon-control, .nx-addon-slider { display: flex; align-items: center; gap: .75rem; }
.nx-addon-control { min-width: 14rem; }
.nx-addon-slider { flex: 1; }
.nx-range { flex: 1; accent-color: var(--sx-accent); }
.nx-addon-value { min-width: 6.5rem; padding: .15rem .55rem; border-radius: 999px; background: var(--sx-subtle); font-size: .8rem; font-weight: 600; text-align: center; }
.nx-addon-value.bg-primary-lt { background: var(--sx-accent-soft); color: var(--sx-accent-text); }
.nx-badge { padding: .05rem .45rem; border-radius: 999px; background: var(--sx-subtle); color: var(--sx-muted); font-size: .72rem; font-weight: 600; }
.nx-order-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr)); gap: .5rem; padding: .75rem; border-radius: var(--sx-radius-sm); background: var(--sx-subtle); text-align: center; }
.nx-spec-title { color: var(--sx-muted); font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.nx-spec-value { font-weight: 650; }
.nx-order-divider { padding-top: .75rem; border-top: 1px solid var(--sx-line); color: var(--sx-muted); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.nx-order-summary-body { gap: .55rem; }
.nx-order-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.nx-order-line > div:first-child { color: var(--sx-muted); }
.nx-order-line > div:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-order-total { margin: .2rem 0 0; padding-top: .65rem; border-top: 1px solid var(--sx-line); font-size: 1.15rem; font-weight: 700; }
.nx-order-total > div:first-child { color: var(--sx-fg); }
.nx-order-discount > div { color: var(--sx-ok) !important; }
.nx-order .text-danger { color: var(--sx-danger); }
.nx-coupon { display: flex; gap: .5rem; margin-top: .5rem; }
.nx-coupon .nx-input { flex: 1; min-width: 0; text-transform: uppercase; }
.nx-coupon .nx-input::placeholder { text-transform: none; }
.nx-order .alert-title { margin: 0 0 .2rem; font-size: .9rem; }
.nx-consent { display: grid; gap: .6rem; font-size: .85rem; }
.nx-order-actions { display: grid; gap: .5rem; }
.nx-order-actions .nx-button { width: 100%; }
.nx-order-footer > .nx-hint { text-align: center; }
.nx-order[aria-busy="true"] .nx-order-actions { opacity: .7; }
.nx-notice { padding: .75rem 1rem; border-radius: var(--sx-radius-sm); background: var(--sx-subtle); font-size: .9rem; }
.nx-notice-info { background: var(--sx-accent-soft); }
.nx-notice-warning { background: var(--sx-warn-soft); }
.nx-notice-danger { background: var(--sx-danger-soft); color: var(--sx-danger); }
@media (min-width: 64rem) {
  .nx-order { grid-template-columns: minmax(0, 1fr) 21rem; }
  .nx-order-aside { position: sticky; top: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-category, .nx-choice { transition: none; }
  .sx-category:hover { transform: none; }
}
