:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --border: #2a3544;
  --text: #e8eef5;
  --muted: #8b9aad;
  --accent: #3d9cf5;
  --accent-dim: #256bb3;
  --danger: #f05b5b;
  --radius: 12px;
  --font: system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --admin-glow: rgba(61, 156, 245, 0.12);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1100px, 92vw); margin: 0 auto; padding: 1.5rem 0; flex: 1; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.flex { display: flex; align-items: center; }
.gap { gap: 0.75rem; }

.site-header, .site-footer {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-footer { border-top: 1px solid var(--border); border-bottom: none; margin-top: auto; }

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--accent); }

.hero {
  padding: 2rem 0 1rem;
}
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 0.5rem; }
.hero p { color: var(--muted); max-width: 60ch; margin: 0; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.chip:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.chip.active { background: var(--accent-dim); border-color: var(--accent); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img {
  aspect-ratio: 4/3;
  background: #121820;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { color: var(--muted); font-size: 0.9rem; }
.card-body { padding: 1rem; flex: 1; }
.card-body h2 { font-size: 1.05rem; margin: 0.25rem 0; }
.meta { font-size: 0.8rem; color: var(--accent); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.desc { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0; }
.price { font-weight: 600; margin: 0; }

.api-teaser {
  margin: 3rem 0 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.api-teaser h2 { margin-top: 0; }
.code {
  background: #121820;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}
.code code { color: #a8d5ff; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Admin / forms */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}
.auth-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.auth-card h1 { margin-top: 0; font-size: 1.35rem; }

.form label { display: block; margin-bottom: 1rem; font-size: 0.9rem; color: var(--muted); }
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #121820;
  color: var(--text);
  font: inherit;
}
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  border-color: var(--accent);
  color: #fff;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }

.error { color: var(--danger); }
.success { color: #6bdc9a; }

.stats { display: flex; gap: 1rem; margin: 1.5rem 0; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  min-width: 120px;
}
.stat strong { display: block; font-size: 1.75rem; }
.stat span { color: var(--muted); font-size: 0.85rem; }

.panel {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel h2 { margin-top: 0; font-size: 1.15rem; }

.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.grid-form .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .grid-form { grid-template-columns: 1fr; }
}

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 500; }
.actions { white-space: nowrap; }
.link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0 0.35rem;
}
.link.danger { color: var(--danger); }
form.inline { display: inline; }

.prose h1 { margin-top: 0; }
.prose h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose code {
  background: #121820;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.thumb-preview {
  max-height: 120px;
  max-width: 200px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: #121820;
}
.td-thumb { vertical-align: middle; }
.table-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
}

/* —— Admin shell (modern) —— */
.admin-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(26, 34, 44, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--admin-glow);
}

.admin-header-inner {
  padding: 0.85rem 0;
}

.admin-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.admin-logo:hover { color: var(--accent); text-decoration: none; }

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
}

.admin-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.admin-nav a:hover {
  color: var(--text);
  background: rgba(61, 156, 245, 0.08);
  text-decoration: none;
}

.admin-nav a.is-active {
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  box-shadow: 0 2px 12px rgba(61, 156, 245, 0.25);
}

.admin-nav-muted { opacity: 0.85; }
.admin-nav-out { color: var(--danger) !important; }
.admin-nav-out:hover { background: rgba(240, 91, 91, 0.12) !important; }

.admin-main {
  flex: 1;
  padding-bottom: 2rem;
}

.admin-footer {
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.page-head { margin-bottom: 1.5rem; }
.page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-lead { margin: 0; max-width: 56ch; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-grid--inline {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
  background: linear-gradient(145deg, var(--surface) 0%, #151c24 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--card-shadow);
}

.stat-card--compact { padding: 1rem 1.15rem; }

.stat-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stat-card__value {
  font-size: 1.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stat-card__value--sm { font-size: 1.15rem; line-height: 1.35; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card {
  border-radius: 14px;
}

.card-pad { padding: 1.35rem 1.5rem; }
.card--flush { padding: 0; overflow: hidden; }
.card-title { margin: 0 0 0.35rem; font-size: 1.05rem; }
.card-sub { margin: 0 0 1rem; }

.form-stack label { margin-bottom: 1.1rem; }
/* Must beat `.form label { display: block }` so control + text stay on one row */
.form.form-stack label.checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form.form-stack label.checkbox-row:hover {
  border-color: rgba(61, 156, 245, 0.45);
  background: var(--admin-glow);
}
.form.form-stack label.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  margin: 0.12rem 0 0;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: #121820;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.form.form-stack label.checkbox-row input[type="checkbox"]:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--admin-glow);
}
.form.form-stack label.checkbox-row input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--admin-glow);
}
.form.form-stack label.checkbox-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form.form-stack label.checkbox-row input[type="checkbox"]:checked {
  border-color: var(--accent);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 0.8rem 0.8rem no-repeat,
    linear-gradient(180deg, #4ba8ff, var(--accent-dim));
  box-shadow: 0 2px 8px rgba(61, 156, 245, 0.35);
}
.form.form-stack label.checkbox-row > span {
  flex: 1;
  min-width: 0;
  color: var(--muted);
}
.form.form-stack label.checkbox-row:has(input:checked) > span {
  color: var(--text);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  cursor: pointer;
}
.checkbox-row input { margin-top: 0.2rem; flex-shrink: 0; }
.form-actions { margin-top: 0.5rem; }

.req { color: var(--danger); }

.btn-primary,
.btn.btn-primary {
  background: linear-gradient(180deg, #4ba8ff, var(--accent-dim));
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(61, 156, 245, 0.22);
}

.btn-ghost,
.btn.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.alert-success {
  background: rgba(107, 220, 154, 0.12);
  border: 1px solid rgba(107, 220, 154, 0.35);
  color: #8ee4b8;
}

.alert-error {
  background: rgba(240, 91, 91, 0.1);
  border: 1px solid rgba(240, 91, 91, 0.35);
  color: #ff9a9a;
}

.table-compact th,
.table-compact td {
  padding: 0.5rem 0.45rem;
  font-size: 0.88rem;
}

.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.badge-ok {
  background: rgba(107, 220, 154, 0.15);
  color: #8ee4b8;
}

.badge-warn {
  background: rgba(245, 180, 80, 0.15);
  color: #f5c86a;
}

.view-product__grid {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .view-product__grid { grid-template-columns: 1fr; }
}

.view-product__media {
  background: #121820;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-product__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view-product__placeholder {
  padding: 2rem;
  text-align: center;
}

.def-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  font-size: 0.92rem;
}

.def-list dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.def-list dd {
  margin: 0;
}

.def-list__desc {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.55;
}

.table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.card--flush .table { margin: 0; }
.card--flush .table th:first-child,
.card--flush .table td:first-child { padding-left: 1rem; }
.card--flush .table th:last-child,
.card--flush .table td:last-child { padding-right: 1rem; }

.auth-card {
  box-shadow: var(--card-shadow);
}

/* —— Admin API reference —— */
.api-docs-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.api-base-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: #121820;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.api-base-pill__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.api-base-pill__value {
  font-size: 0.9rem;
  color: #a8d5ff;
  word-break: break-all;
}

.api-docs-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.api-endpoint {
  background: linear-gradient(160deg, var(--surface) 0%, #151c24 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--card-shadow);
}

.api-endpoint__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.api-endpoint__path {
  font-size: 0.95rem;
  color: #c5d4e8;
}

.api-endpoint__alt {
  width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
}

.api-endpoint__alt code {
  background: #121820;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.api-endpoint__desc {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 75ch;
}

.api-method {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.api-method--get {
  background: rgba(107, 220, 154, 0.2);
  color: #8ee4b8;
}

.api-method--post {
  background: rgba(61, 156, 245, 0.22);
  color: #7ec4ff;
}

.api-method--put {
  background: rgba(245, 180, 80, 0.2);
  color: #f5c86a;
}

.api-method--del {
  background: rgba(240, 91, 91, 0.18);
  color: #ff9a9a;
}

.api-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.api-split--full {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .api-split { grid-template-columns: 1fr; }
}

.api-block__title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.api-block__meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.api-status {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  margin-right: 0.35rem;
  border-radius: 4px;
  background: #121820;
  color: #a8d5ff;
}

.api-json {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #0a0e12;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-x: auto;
  max-height: 22rem;
  overflow-y: auto;
}

.api-json code {
  color: #b8d4f0;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

.api-json--err {
  margin-top: 0.65rem;
  border-color: rgba(240, 91, 91, 0.35);
  max-height: 8rem;
}

.api-json--err code {
  color: #ffb4b4;
}

.api-docs-foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.api-docs-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.api-flow-list {
  margin: 0;
  padding-left: 1.35rem;
  max-width: 52rem;
}

.api-flow-list > li {
  margin-bottom: 0.75rem;
}

.api-flow-list > li:last-child {
  margin-bottom: 0;
}

.api-webhook-card code {
  font-size: 0.85em;
}

.api-endpoint-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #121820;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.api-endpoint-note strong {
  color: #c5d4e8;
}

/* —— v2: storefront contact + glass header —— */
.page-contact {
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(61, 156, 245, 0.14) 0%, transparent 50%),
    var(--bg);
}

.site-header--glass {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 20, 25, 0.82) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
}

.nav a.is-active {
  color: var(--text) !important;
  font-weight: 600;
}

.contact-main { padding: 0.5rem 0 2.5rem; }
.contact-hero { margin-bottom: 2rem; }
.contact-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7ec4ff;
  margin: 0 0 0.5rem;
}
.contact-title { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.1rem); letter-spacing: -0.02em; }
.contact-lead { max-width: 50ch; margin: 0.75rem 0 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.contact-card { border-radius: 16px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2); }
.contact-line { margin: 0.5rem 0 0; font-size: 1.05rem; }
.contact-link { font-weight: 600; }
.contact-list { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.55; }
.contact-list li { margin-bottom: 0.4rem; }

/* —— Admin v2: ambient + refined shell —— */
.admin-body--v2 {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(61, 156, 245, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(100, 80, 200, 0.06) 0%, transparent 40%),
    var(--bg);
}

.admin-header {
  background: linear-gradient(180deg, rgba(20, 27, 35, 0.97) 0%, rgba(20, 27, 35, 0.88) 100%);
  border-bottom: 1px solid rgba(42, 53, 68, 0.9);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.admin-foot-dot { opacity: 0.45; margin: 0 0.35rem; }

/* —— API docs v2 —— */
.api-docs-page { position: relative; }
.api-docs-hero--v2 { position: relative; overflow: hidden; }
.api-hero-blob {
  position: absolute;
  right: -20%;
  top: -40%;
  width: 55%;
  min-width: 200px;
  height: 180%;
  background: radial-gradient(circle, rgba(61, 156, 245, 0.15) 0%, transparent 65%);
  pointer-events: none;
}
.api-docs-hero--v2 { padding-right: 0.5rem; }
.api-docs-hero--v2 .page-title { position: relative; }
.api-endpoint { border-radius: 18px; border: 1px solid rgba(42, 53, 68, 0.95); }
.api-block__title { color: #8ec8ff; }
.api-base-pill { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2); }
#api-overview, #webhook-order, .api-endpoint, .api-webhook-card {
  scroll-margin-top: 5.5rem;
}

/* —— Auth v2 —— */
.auth-body--v2 { position: relative; overflow: hidden; }
.auth-ambient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 10%, rgba(61, 156, 245, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(120, 90, 200, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.auth-body--v2 .auth-card { position: relative; z-index: 1; }
.auth-card--elevated {
  border: 1px solid rgba(61, 156, 245, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  max-width: 420px;
}
.auth-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7ec4ff;
}
.auth-card--elevated h1 { margin: 0 0 0.5rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.btn-wide { width: 100%; }
.auth-back { margin: 1.25rem 0 0; }

@media (max-width: 720px) {
  .admin-nav { justify-content: flex-end; }
}

/* —— Admin Settings —— */
.page-head--compact { margin-bottom: 1.25rem; }
.settings-alerts { margin-bottom: 1.25rem; }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
  align-items: start;
}
.settings-card { border-radius: 16px; }
.settings-lead {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 40rem;
}
.settings-lead a { font-weight: 500; }
.field-hint {
  margin: -0.45rem 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Admin Users —— */
.users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem 1.15rem;
  background: linear-gradient(145deg, var(--surface) 0%, #151c24 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.users-toolbar__filter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: min(100%, 220px);
}
.users-toolbar__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7ec4ff;
}
.user-period-select {
  width: 100%;
  min-width: 200px;
  max-width: 280px;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #121820;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.user-period-select:hover {
  border-color: rgba(61, 156, 245, 0.45);
}
.user-period-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--admin-glow);
}
.users-toolbar__exports {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem 0.75rem;
}
.users-toolbar__export-label {
  display: block;
  width: 100%;
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
@media (min-width: 640px) {
  .users-toolbar__exports {
    width: auto;
    flex-direction: row;
    align-items: center;
  }
  .users-toolbar__export-label {
    width: auto;
    margin: 0 0.35rem 0 0;
    padding-bottom: 0.45rem;
  }
  .users-toolbar__export-btns {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
.users-toolbar__export-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.btn-users-vcf {
  border-color: rgba(61, 156, 245, 0.55);
  background: linear-gradient(180deg, rgba(75, 168, 255, 0.2), rgba(37, 107, 179, 0.12));
  color: #e8f4ff;
  font-weight: 600;
}
.btn-users-vcf:hover {
  border-color: var(--accent);
  filter: brightness(1.06);
}
@media (max-width: 639px) {
  .users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .users-toolbar__filter {
    max-width: none;
  }
  .user-period-select {
    max-width: none;
  }
  .users-toolbar__exports {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(42, 53, 68, 0.9);
  }
  .users-toolbar__export-btns {
    width: 100%;
  }
  .users-toolbar__export-btns .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}
