:root {
  color-scheme: dark;
  --bg: #09070d;
  --surface: #141018;
  --surface-2: #1c1722;
  --line: rgba(230, 194, 122, 0.22);
  --text: #f7f3ea;
  --muted: #b3a89a;
  --gold: #e6c27a;
  --gold-2: #9a7436;
  --violet: #8d56ff;
  --ok: #3ddc97;
  --warn: #ffc864;
  --danger: #ff7189;
  --radius: 18px;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body.is-reseller {
  --line: rgba(141, 86, 255, 0.35);
  --gold: #c7a6ff;
  --gold-2: #8d56ff;
}
body.is-reseller .brand-logo {
  display: block;
  width: 168px;
  height: auto;
  margin: 0 0 10px;
}
body.is-reseller .side .brand-logo { width: 176px; height: auto; margin: 0 auto 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(230, 194, 122, 0.16), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(141, 86, 255, 0.18), transparent 36%),
    var(--bg);
}
.login-card, .modal-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(28, 23, 34, 0.96), rgba(12, 10, 16, 0.96));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.brand-kicker {
  margin: 0;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--gold);
}
h1, h2, h3 { margin: 0; font-weight: 650; }
.login-card h1 { margin: 8px 0 12px; font-size: 28px; }
.login-card p, .muted { color: var(--muted); }
label { display: grid; gap: 6px; margin: 14px 0; font-size: 14px; }
.choice { display: flex; align-items: center; gap: 10px; }
.choice input { width: auto; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0a10;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.button, button.button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.button.primary, .button.gold {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1a1206;
  font-weight: 700;
}
body.is-reseller .button.primary { color: white; }
.button.danger { background: rgba(255, 113, 137, 0.16); color: var(--danger); }
.button.wide { width: 100%; }
.button:disabled { opacity: 0.55; cursor: wait; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.side {
  padding: 22px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #100d14;
}
.side nav { display: grid; gap: 6px; margin-top: 22px; }
.side a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
}
.side a.is-active, .side a:hover { background: rgba(230, 194, 122, 0.12); color: var(--gold); }
.toolbar a.is-active { border-color: var(--gold); color: var(--gold); }
.workspace { min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 18px; letter-spacing: 0.08em; }
.content { padding: 22px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.card span { display: block; color: var(--muted); font-size: 13px; }
.card strong { display: block; margin-top: 8px; font-size: 28px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.06);
}
.tag.active, .tag.trial { color: var(--ok); }
.tag.expiring { color: var(--warn); }
.tag.expired, .tag.blocked, .tag.trial_expired, .tag.removed { color: var(--danger); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.feedback { min-height: 1.2em; }
.feedback.is-error { color: var(--danger); }
.feedback.is-success { color: var(--ok); }
.hero-create {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(141, 86, 255, 0.25), rgba(230, 194, 122, 0.08));
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}
.modal-card { width: min(560px, 100%); max-height: min(88vh, 760px); overflow: auto; }
.credential {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #0c0a10;
  border: 1px dashed var(--line);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search { min-width: min(280px, 100%); }

.customer-list { display: none; }
.customer-card { position: relative; }
.customer-menu {
  position: fixed;
  z-index: 4;
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 16px);
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
  background: #1c1722;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side nav { display: flex; flex-wrap: wrap; }
  .split { grid-template-columns: 1fr; }
  table { display: block; overflow: auto; }
  body.is-reseller .customer-table { display: none; }
  body.is-reseller .customer-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  body.is-reseller .customer-card {
    padding: 14px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  body.is-reseller .customer-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }
  body.is-reseller .customer-card-body {
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  body.is-reseller .customer-card-body strong { font-size: 16px; overflow-wrap: anywhere; }
  body.is-reseller .customer-card-body span,
  body.is-reseller .customer-meta { color: var(--muted); font-size: 13px; }
  body.is-reseller .customer-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
  body.is-reseller .menu-button { flex: none; min-height: 40px; padding: 8px 14px; }
  body.is-reseller .customer-menu .button {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    border-radius: 12px;
  }
  body.is-reseller .empty-customers { color: var(--muted); }
}

.sports-grid { display: grid; gap: 16px; }
.sports-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sports-match { display: flex; gap: 10px; align-items: center; font-size: 22px; font-weight: 700; }
.sports-match span { color: var(--gold); font-size: 14px; }
.sports-time { font-size: 20px; font-weight: 700; }
.sports-preview { width: min(100%, 420px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #0c0a10; }
.sports-loading { color: var(--gold); font-weight: 650; }
.sports-channels { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.sports-channel { justify-content: flex-start; }
.sports-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
  font-weight: 650;
}
.sports-switch input {
  appearance: none;
  width: 48px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: #3a3342;
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
}
.sports-switch input::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f7f3ea;
  top: 2px;
  left: 2px;
}
.sports-switch input:checked { background: var(--gold-2); }
.sports-switch input:checked::after { transform: translateX(20px); }
.sports-switch input:disabled { cursor: wait; }

body.is-reseller {
  background:
    radial-gradient(ellipse at 50% -8%, rgba(138, 52, 255, 0.55), transparent 42%),
    radial-gradient(ellipse at 100% 12%, rgba(48, 92, 255, 0.28), transparent 36%),
    radial-gradient(ellipse at 0% 88%, rgba(96, 24, 170, 0.34), transparent 40%),
    #070512;
}
body.is-reseller .shell {
  display: block;
  width: min(520px, 100%);
  margin: 0 auto;
  background: transparent;
}
body.is-reseller .side {
  position: relative;
  padding: 8px 16px 0;
  border: 0;
  background: transparent;
  text-align: center;
}
body.is-reseller .reseller-brand { position: relative; padding-top: 8px; }
body.is-reseller .brand-kicker {
  margin: 0;
  color: #d7c4ff;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 700;
}
body.is-reseller #resellerName {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
}
body.is-reseller .logout-button {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(167, 110, 255, 0.45);
  background: rgba(18, 10, 36, 0.72);
}
body.is-reseller .side nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  overflow: visible;
  padding-bottom: 6px;
}
body.is-reseller .side a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 8px 8px;
  border: 1px solid rgba(128, 92, 255, 0.55);
  background: linear-gradient(180deg, rgba(22, 16, 58, 0.92), rgba(10, 8, 28, 0.92));
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(70, 40, 140, 0.25);
}
body.is-reseller .side a[data-nav="account"] {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-left: 16px;
}
body.is-reseller .nav-ico {
  display: inline-flex;
  flex: none;
  width: 18px;
  height: 18px;
  color: #7ecbff;
}
body.is-reseller .nav-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.is-reseller .side a.is-active,
body.is-reseller .side a:hover {
  border-color: rgba(190, 130, 255, 0.95);
  background: linear-gradient(180deg, rgba(78, 36, 160, 0.72), rgba(28, 14, 70, 0.92));
  color: #fff;
  box-shadow: 0 0 16px rgba(150, 70, 255, 0.45);
}
body.is-reseller .workspace { min-width: 0; }
body.is-reseller .page-title {
  margin: 8px 16px 0;
  font-size: 28px;
  letter-spacing: 0;
}
body.is-reseller .content { padding: 12px 16px 28px; }
body.is-reseller .toolbar.reseller-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
body.is-reseller .search-form { position: relative; width: 100%; }
body.is-reseller .search-form .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #c9b6ff;
}
body.is-reseller .search-form .search {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px 12px 44px;
  border-radius: 16px;
  border: 1px solid rgba(168, 98, 255, 0.55);
  background: rgba(16, 10, 34, 0.82);
  box-shadow: 0 0 18px rgba(120, 40, 220, 0.22);
}
body.is-reseller .create-access {
  min-height: 54px;
  border-radius: 18px;
  font-size: 18px;
  background: linear-gradient(90deg, #7b3dff 0%, #a15cff 48%, #6a46ff 100%);
  box-shadow: 0 10px 28px rgba(112, 48, 255, 0.45);
}
body.is-reseller .customer-table { display: none; }
body.is-reseller .customer-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.is-reseller .customer-card {
  padding: 16px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(48, 24, 86, 0.78), rgba(14, 8, 28, 0.92));
  border: 1px solid rgba(164, 96, 255, 0.48);
  box-shadow: 0 0 0 1px rgba(80, 30, 150, 0.25), 0 14px 32px rgba(0, 0, 0, 0.35);
}
body.is-reseller .customer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
body.is-reseller .customer-card-head strong {
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
body.is-reseller .menu-button {
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(176, 120, 255, 0.7);
  background: rgba(28, 14, 58, 0.85);
  box-shadow: 0 0 14px rgba(140, 70, 255, 0.28);
}
body.is-reseller .menu-dots {
  width: auto;
  height: auto;
  background: none;
  font-size: 16px;
  line-height: 1;
}
body.is-reseller .customer-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 10px 0 0;
  color: #ddd0f2;
  font-size: 13px;
}
body.is-reseller .customer-facts b { color: #fff; font-weight: 750; }
body.is-reseller .customer-facts span { display: inline-flex; align-items: center; gap: 5px; }
body.is-reseller .customer-facts > span + span {
  padding-left: 10px;
  border-left: 1px solid rgba(186, 150, 255, 0.35);
}
body.is-reseller .customer-last { color: #cbbbe4; }
body.is-reseller .ico {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #b794ff;
}
body.is-reseller .ico svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.is-reseller .tag {
  gap: 6px;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}
body.is-reseller .tag.active {
  color: #f4fff8;
  background: linear-gradient(180deg, #2adf72, #12a84c);
  box-shadow: 0 0 12px rgba(32, 210, 100, 0.35);
}
body.is-reseller .tag.active::before,
body.is-reseller .tag.expiring::before,
body.is-reseller .tag.expired::before,
body.is-reseller .tag.blocked::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
body.is-reseller .tag.expiring { color: #2a1a00; background: #ffc864; }
body.is-reseller .tag.expired,
body.is-reseller .tag.blocked,
body.is-reseller .tag.removed { color: #fff; background: #e24b68; }
body.is-reseller .customer-menu {
  background: rgba(22, 12, 40, 0.96);
  border-color: rgba(164, 96, 255, 0.5);
}
body.is-reseller .hero-create,
body.is-reseller .card {
  border-radius: 22px;
  border: 1px solid rgba(164, 96, 255, 0.4);
  background: linear-gradient(180deg, rgba(48, 24, 86, 0.72), rgba(14, 8, 28, 0.9));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
body.is-reseller .hero-create .button.primary,
body.is-reseller .button.primary {
  background: linear-gradient(90deg, #7b3dff, #a15cff 55%, #6a46ff);
  color: #fff;
}
body.is-reseller table { display: block; overflow: auto; }
body.is-reseller .mp-hero {
  margin-bottom: 12px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(70, 170, 255, 0.45);
  background:
    radial-gradient(circle at 88% 40%, rgba(40, 140, 255, 0.35), transparent 42%),
    linear-gradient(180deg, rgba(18, 28, 70, 0.92), rgba(10, 12, 32, 0.94));
  box-shadow: 0 0 24px rgba(40, 120, 255, 0.2);
}
body.is-reseller .mp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
body.is-reseller .mp-brand .ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #1f6dff;
  align-items: center;
  justify-content: center;
}
body.is-reseller .mp-brand .ico svg { width: 22px; height: 22px; }
body.is-reseller .mp-brand strong { font-size: 22px; line-height: 0.95; letter-spacing: -0.03em; }
body.is-reseller .mp-hero p { margin: 10px 0 0; max-width: 240px; color: #d5def5; font-size: 13px; }
body.is-reseller .mp-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
body.is-reseller .mp-state {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(164, 96, 255, 0.4);
  background: linear-gradient(180deg, rgba(36, 18, 70, 0.8), rgba(12, 8, 28, 0.92));
}
body.is-reseller .mp-badge {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #9ec4ff;
  background: rgba(40, 90, 180, 0.35);
}
body.is-reseller .mp-badge.is-check { color: #d9c8ff; background: rgba(120, 60, 220, 0.4); }
body.is-reseller .mp-badge .ico,
body.is-reseller .mp-badge .ico svg { width: 18px; height: 18px; }
body.is-reseller .mp-state span { display: block; color: #cbbbe4; font-size: 12px; }
body.is-reseller .mp-state strong { display: block; margin-top: 2px; font-size: 16px; }
body.is-reseller .mp-state em { display: block; margin-top: 4px; color: #b9a8d4; font-style: normal; font-size: 12px; }
body.is-reseller .mp-state em.is-on { color: #3ddc97; }
body.is-reseller .mp-panel {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(164, 96, 255, 0.4);
  background: linear-gradient(180deg, rgba(36, 18, 70, 0.78), rgba(12, 8, 28, 0.92));
}
body.is-reseller .mp-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 18px;
}
body.is-reseller .mp-panel h2 .ico { color: #c7a6ff; }
body.is-reseller .mp-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
}
body.is-reseller .mp-toggle input { width: 22px; height: 22px; margin-top: 2px; accent-color: #7b3dff; }
body.is-reseller .mp-toggle b,
body.is-reseller .mp-plan b { display: block; }
body.is-reseller .mp-toggle small,
body.is-reseller .mp-plan small { display: block; color: #cbbbe4; font-size: 12px; }
body.is-reseller .mp-field-label { margin: 10px 0 6px; font-size: 14px; }
body.is-reseller .mp-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(164, 96, 255, 0.35);
  background: rgba(8, 6, 18, 0.72);
}
body.is-reseller .mp-input input {
  border: 0;
  background: transparent;
  padding-left: 0;
}
body.is-reseller .mp-icon-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #d7c4ff;
  background: transparent;
}
body.is-reseller .mp-saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 8px 8px 12px;
  border-radius: 12px;
  color: #d9ffe8;
  background: rgba(18, 120, 70, 0.45);
}
body.is-reseller .mp-saved span { display: inline-flex; align-items: center; gap: 6px; }
body.is-reseller .mp-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(8, 6, 18, 0.45);
}
body.is-reseller .mp-plan > span:first-child { display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; }
body.is-reseller .mp-plan .ico { grid-row: span 2; align-self: center; }
body.is-reseller .mp-money { display: flex; align-items: center; gap: 6px; color: #fff; }
body.is-reseller .mp-money input { width: 88px; text-align: right; }

@media (min-width: 980px) {
  body.is-reseller .shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    margin: 0;
  }
  body.is-reseller .side {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    overflow: auto;
    border-right: 1px solid rgba(164, 96, 255, 0.28);
    background: rgba(10, 6, 22, 0.78);
  }
  body.is-reseller .side .brand-logo { width: 148px; }
  body.is-reseller .side nav {
    display: grid;
    grid-template-columns: 1fr;
    flex: none;
    margin-top: 22px;
    overflow: visible;
  }
  body.is-reseller .side a {
    justify-content: flex-start;
    text-align: left;
    border-radius: 14px;
    padding: 12px 14px;
  }
  body.is-reseller .logout-button {
    position: static;
    width: 100%;
    margin-top: auto;
  }
  body.is-reseller .content { padding: 28px 32px 48px; }
  body.is-reseller .page-title { margin: 0 0 18px; }
  body.is-reseller .toolbar.reseller-tools {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
  }
  body.is-reseller .customer-list {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
  }
  body.is-reseller .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.is-reseller .pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
body.is-reseller .pager span { color: #d7c4ff; font-size: 14px; }
body.is-reseller .page-link[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

body.is-reseller.page-credits {
  background:
    radial-gradient(ellipse at 78% 0%, rgba(92, 46, 255, 0.62), transparent 34%),
    radial-gradient(ellipse at 8% 18%, rgba(36, 150, 255, 0.2), transparent 28%),
    radial-gradient(ellipse at 96% 72%, rgba(128, 36, 230, 0.42), transparent 36%),
    radial-gradient(ellipse at 0% 92%, rgba(28, 54, 180, 0.32), transparent 34%),
    #050314;
}
body.is-reseller.page-credits .page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 16px 0;
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(190, 230, 255, 0.35);
}
body.is-reseller.page-credits .page-title::after {
  content: "";
  width: 108px;
  height: 3px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #8eecff 42%, rgba(80, 210, 255, 0));
  box-shadow: 0 0 8px #7ef0ff, 0 0 16px rgba(90, 210, 255, 0.85);
}
body.is-reseller.page-credits .content { padding-top: 14px; }
body.is-reseller .credits-balance {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 16px 8px 16px 18px;
  overflow: hidden;
  border-radius: 22px;
  border: 1.5px solid rgba(176, 112, 255, 0.95);
  background:
    radial-gradient(circle at 84% 48%, rgba(156, 64, 255, 0.62), transparent 46%),
    radial-gradient(circle at 12% 18%, rgba(70, 150, 255, 0.2), transparent 42%),
    linear-gradient(180deg, #1c1450 0%, #140c38 58%, #0c0824 100%);
  box-shadow:
    0 0 0 1px rgba(90, 30, 180, 0.4),
    0 0 28px rgba(130, 60, 255, 0.42),
    inset 0 0 28px rgba(90, 40, 200, 0.28);
}
body.is-reseller .credits-balance::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 58%;
  height: 160%;
  background: linear-gradient(115deg, transparent 36%, rgba(170, 110, 255, 0.16), transparent 64%);
  pointer-events: none;
}
body.is-reseller .credits-balance-copy { position: relative; z-index: 1; min-width: 0; }
body.is-reseller .credits-balance-copy span {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
}
body.is-reseller .credits-balance-copy p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 0;
}
body.is-reseller .credits-balance-copy strong {
  font-size: clamp(42px, 12vw, 58px);
  line-height: 0.92;
  font-weight: 820;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #f7fdff 0%, #c8f4ff 38%, #5ad4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(80, 200, 255, 0.45));
}
body.is-reseller .credits-balance-copy em {
  color: #f3fbff;
  font-style: normal;
  font-size: clamp(18px, 4.6vw, 26px);
  font-weight: 720;
  letter-spacing: -0.03em;
}
body.is-reseller .credits-coins {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 118px;
  justify-self: end;
  filter: drop-shadow(0 10px 16px rgba(90, 20, 180, 0.5));
}
body.is-reseller .credits-ledger {
  overflow: hidden;
  border-radius: 22px;
  border: 1.5px solid rgba(158, 96, 255, 0.78);
  background: linear-gradient(180deg, rgba(20, 12, 48, 0.96), rgba(8, 6, 22, 0.98));
  box-shadow: 0 0 22px rgba(110, 40, 220, 0.28), inset 0 0 18px rgba(60, 20, 120, 0.18);
}
body.is-reseller table.credits-table {
  display: table;
  width: 100%;
  overflow: visible;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
body.is-reseller .credits-table th:nth-child(1),
body.is-reseller .credits-table td:nth-child(1) { width: 19%; }
body.is-reseller .credits-table th:nth-child(2),
body.is-reseller .credits-table td:nth-child(2) { width: 24%; }
body.is-reseller .credits-table th:nth-child(3),
body.is-reseller .credits-table td:nth-child(3) { width: 14%; }
body.is-reseller .credits-table th:nth-child(4),
body.is-reseller .credits-table td:nth-child(4) { width: 17%; }
body.is-reseller .credits-table th,
body.is-reseller .credits-table td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(140, 90, 220, 0.2);
  vertical-align: middle;
}
body.is-reseller .credits-table th {
  color: #e4d8ff;
  font-size: 12px;
  font-weight: 680;
  background: rgba(46, 22, 92, 0.55);
}
body.is-reseller .credits-table tbody tr:last-child td { border-bottom: 0; }
body.is-reseller .credits-h {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
body.is-reseller .credits-table .ico,
body.is-reseller .credits-table .ico svg {
  width: 13px;
  height: 13px;
  color: #d7c6ff;
}
body.is-reseller .tx-when {
  display: block;
  color: #f4efff;
  font-size: 12px;
  line-height: 1.25;
}
body.is-reseller .tx-when b { display: block; font-weight: 680; }
body.is-reseller .tx-when span { display: block; color: #ddd2f2; }
body.is-reseller .tx-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
}
body.is-reseller .tx-pill .ico,
body.is-reseller .tx-pill .ico svg {
  width: 13px;
  height: 13px;
  color: #fff;
  flex: none;
}
body.is-reseller .tx-pill.buy,
body.is-reseller .tx-pill.create,
body.is-reseller .tx-pill.in {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: 0 0 10px rgba(40, 110, 255, 0.35);
}
body.is-reseller .tx-pill.renew,
body.is-reseller .tx-pill.adjust,
body.is-reseller .tx-pill.out {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  box-shadow: 0 0 10px rgba(130, 70, 240, 0.38);
}
body.is-reseller .tx-pill.refund {
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  box-shadow: 0 0 10px rgba(20, 180, 160, 0.28);
}
body.is-reseller .qty {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.is-reseller .qty-in { color: #3dff78; text-shadow: 0 0 8px rgba(40, 230, 100, 0.35); }
body.is-reseller .qty-out { color: #ff3d62; text-shadow: 0 0 8px rgba(255, 50, 90, 0.3); }
body.is-reseller .tx-balance {
  color: #f7f4ff;
  font-size: 12px;
  white-space: nowrap;
}
body.is-reseller .tx-desc {
  color: #f6f2ff;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
body.is-reseller .credits-empty {
  padding: 28px 12px;
  text-align: center;
  color: #cbbbe4;
}
@media (max-width: 430px) {
  body.is-reseller .credits-balance {
    grid-template-columns: minmax(0, 1fr) 112px;
    padding: 14px 2px 14px 14px;
  }
  body.is-reseller .credits-coins { width: 112px; height: 82px; }
  body.is-reseller .credits-balance-copy strong { font-size: 40px; }
  body.is-reseller .credits-balance-copy em { font-size: 16px; }
  body.is-reseller .credits-balance-copy p { flex-wrap: nowrap; }
  body.is-reseller .credits-table th,
  body.is-reseller .credits-table td { padding: 10px 4px; }
  body.is-reseller .credits-h { gap: 3px; font-size: 11px; }
  body.is-reseller .tx-pill { padding: 4px 5px; font-size: 10px; }
}
@media (min-width: 980px) {
  body.is-reseller.page-credits .page-title {
    margin: 4px 32px 0;
    font-size: 40px;
  }
  body.is-reseller.page-credits .content { padding-top: 16px; }
  body.is-reseller .credits-balance { padding: 18px 12px 18px 26px; }
  body.is-reseller .credits-table th,
  body.is-reseller .credits-table td { padding: 14px 12px; }
  body.is-reseller .tx-pill { font-size: 12px; }
}

body.is-reseller .pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
}
body.is-reseller .pay-head h2 {
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.03em;
}
body.is-reseller .pay-head-ico {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(168, 110, 255, 0.85);
  color: #d7c6ff;
  background: rgba(20, 12, 48, 0.8);
  box-shadow: 0 0 14px rgba(130, 60, 255, 0.28);
}
body.is-reseller .pay-head-ico .ico,
body.is-reseller .pay-head-ico .ico svg { width: 20px; height: 20px; }
body.is-reseller .pay-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
body.is-reseller .pay-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(120, 90, 220, 0.45);
  color: #efe8ff;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(28, 18, 62, 0.92), rgba(12, 8, 28, 0.94));
}
body.is-reseller .pay-filter .ico { color: #d5c6ff; }
body.is-reseller .pay-filter.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #7b3dff, #9a5cff 55%, #6d46ff);
  box-shadow: 0 8px 20px rgba(110, 50, 255, 0.35);
}
body.is-reseller .pay-filter.is-active .ico { color: #fff; }
body.is-reseller .pay-list { display: grid; gap: 10px; }
body.is-reseller .pay-card {
  padding: 12px 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(150, 96, 255, 0.55);
  background: linear-gradient(180deg, rgba(24, 14, 58, 0.92), rgba(10, 8, 28, 0.96));
  box-shadow: 0 0 16px rgba(90, 40, 180, 0.18);
}
body.is-reseller .pay-card-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 16px;
  gap: 8px;
  align-items: center;
}
body.is-reseller .pay-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
body.is-reseller .pay-avatar.is-blue { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
body.is-reseller .pay-avatar.is-violet { background: linear-gradient(180deg, #8b5cf6, #6d28d9); }
body.is-reseller .pay-who { min-width: 0; }
body.is-reseller .pay-who strong,
body.is-reseller .pay-who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.is-reseller .pay-who strong { font-size: 16px; }
body.is-reseller .pay-who span { color: #cbbbe4; font-size: 13px; }
body.is-reseller .pay-money { display: flex; align-items: center; gap: 8px; }
body.is-reseller .pay-money b { font-size: 16px; font-weight: 780; letter-spacing: -0.02em; }
body.is-reseller .pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
body.is-reseller .pay-badge .ico,
body.is-reseller .pay-badge .ico svg { width: 12px; height: 12px; color: #fff; }
body.is-reseller .pay-badge.ok { background: linear-gradient(180deg, #22c55e, #15803d); }
body.is-reseller .pay-badge.wait { background: linear-gradient(180deg, #f5b942, #d97706); color: #2a1a00; }
body.is-reseller .pay-badge.wait .ico { color: #2a1a00; }
body.is-reseller .pay-badge.bad { background: linear-gradient(180deg, #ef4444, #dc2626); }
body.is-reseller .pay-chevron { color: #d7c6ff; }
body.is-reseller .pay-chevron .ico,
body.is-reseller .pay-chevron .ico svg { width: 16px; height: 16px; }
body.is-reseller .pay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 10px;
  color: #d5c8ee;
  font-size: 12px;
}
body.is-reseller .pay-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
body.is-reseller .pay-meta span + span {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(180, 150, 255, 0.35);
}
body.is-reseller .pay-meta .ico,
body.is-reseller .pay-meta .ico svg { width: 13px; height: 13px; color: #b9a4e6; }
body.is-reseller .pay-empty { margin: 8px 0 0; color: #cbbbe4; text-align: center; }

body.is-reseller.page-history .workspace,
body.is-reseller.page-history .content,
body.is-reseller.page-history .act-head,
body.is-reseller.page-history .act-list,
body.is-reseller.page-history .act-card,
body.is-reseller.page-history .act-copy { min-width: 0; max-width: 100%; }
body.is-reseller .act-head h2 {
  margin: 2px 0 0;
  font-size: 32px;
  font-weight: 760;
  letter-spacing: -0.03em;
}
body.is-reseller .act-head p {
  margin: 4px 0 14px;
  color: #b7a8d4;
  font-size: 14px;
  line-height: 1.35;
}
body.is-reseller .act-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
body.is-reseller .act-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 6px;
  border-radius: 16px;
  border: 1px solid rgba(120, 90, 200, 0.38);
  color: #efe8ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(24, 16, 52, 0.94), rgba(10, 8, 24, 0.96));
}
body.is-reseller .act-filter span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.is-reseller .act-filter .ico { color: #d5c6ff; }
body.is-reseller .act-filter .ico,
body.is-reseller .act-filter .ico svg { width: 15px; height: 15px; }
body.is-reseller .act-filter.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #7a35f5, #9a55ff 58%, #6d3dff);
  box-shadow: 0 8px 18px rgba(110, 48, 255, 0.32);
}
body.is-reseller .act-filter.is-active .ico { color: #fff; }
body.is-reseller .act-list { display: grid; gap: 10px; }
body.is-reseller .act-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(132, 104, 196, 0.32);
  background: linear-gradient(180deg, rgba(20, 14, 46, 0.94), rgba(8, 6, 20, 0.98));
}
body.is-reseller .act-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
}
body.is-reseller .act-ico .ico,
body.is-reseller .act-ico .ico svg { width: 20px; height: 20px; color: #fff; }
body.is-reseller .act-ico.is-blue { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
body.is-reseller .act-ico.is-green { background: linear-gradient(180deg, #22c55e, #15803d); }
body.is-reseller .act-ico.is-violet { background: linear-gradient(180deg, #8b5cf6, #6d28d9); }
body.is-reseller .act-ico.is-amber { background: linear-gradient(180deg, #f59e0b, #d97706); }
body.is-reseller .act-ico.is-cyan { background: linear-gradient(180deg, #22d3ee, #0891b2); }
body.is-reseller .act-ico.is-pink { background: linear-gradient(180deg, #ec4899, #be185d); }
body.is-reseller .act-ico.is-red { background: linear-gradient(180deg, #f87171, #dc2626); }
body.is-reseller .act-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
body.is-reseller .act-copy p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  color: #cbbde4;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body.is-reseller .act-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
body.is-reseller .act-badge.is-green { color: #d1fae5; background: #166534; }
body.is-reseller .act-badge.is-pink { color: #fce7f3; background: #9d174d; }
body.is-reseller .act-badge.is-amber { color: #ffedd5; background: #9a3412; }
body.is-reseller .act-badge.is-violet { color: #ede9fe; background: #5b21b6; }
body.is-reseller .act-when {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: #d5c8ee;
  font-size: 11px;
  line-height: 1.2;
}
body.is-reseller .act-when span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
body.is-reseller .act-when .ico,
body.is-reseller .act-when .ico svg { width: 12px; height: 12px; color: #b9a4e6; }
body.is-reseller .act-empty { margin: 8px 0 0; color: #cbbbe4; text-align: center; }
body.is-reseller.page-history .act-pager { margin-top: 18px; gap: 12px; }
body.is-reseller.page-history .act-pager .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(130, 100, 210, 0.35);
  background: rgba(16, 10, 32, 0.92);
  color: #efe8ff;
  font-weight: 700;
}
body.is-reseller.page-history .act-pager .page-link.is-next {
  border-color: transparent;
  background: linear-gradient(90deg, #7a3dff, #9b4dff);
  box-shadow: 0 8px 18px rgba(120, 50, 255, 0.32);
}
body.is-reseller.page-history .act-pager .ico,
body.is-reseller.page-history .act-pager .ico svg { width: 14px; height: 14px; }
body.is-reseller.page-history .act-pager .is-prev .ico { transform: scaleX(-1); }
body.is-reseller.page-history .act-pager span {
  min-width: 36px;
  color: #efe8ff;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 360px) {
  body.is-reseller .act-head h2 { font-size: 28px; }
  body.is-reseller .act-filter {
    flex-direction: column;
    gap: 2px;
    min-height: 54px;
    padding: 6px 2px;
    font-size: 10px;
  }
  body.is-reseller .act-filter span {
    white-space: normal;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.1;
  }
  body.is-reseller .act-filter .ico,
  body.is-reseller .act-filter .ico svg { width: 14px; height: 14px; }
  body.is-reseller .act-card { padding: 10px; gap: 8px; }
  body.is-reseller .act-copy strong { font-size: 14px; }
  body.is-reseller.page-history .act-pager .page-link { padding: 8px 10px; }
}
@media (min-width: 980px) {
  body.is-reseller.page-history .act-head h2 { font-size: 36px; }
  body.is-reseller .act-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.is-reseller .act-list { max-width: 920px; }
  body.is-reseller .act-copy strong { font-size: 16px; }
}

body.is-admin { overflow-x: clip; }
body.is-admin .shell { grid-template-columns: 240px minmax(0, 1fr); }
body.is-admin.nav-collapsed .shell { grid-template-columns: 72px minmax(0, 1fr); }
body.is-admin .side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  overflow: auto;
  background:
    radial-gradient(circle at 0 0, rgba(124, 92, 255, 0.16), transparent 42%),
    #0d0b14;
  border-right: 1px solid rgba(124, 92, 255, 0.22);
}
body.is-admin .side-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body.is-admin .side-title { display: block; margin-top: 2px; font-size: 15px; }
body.is-admin .side nav {
  display: grid;
  align-content: start;
  gap: 2px;
  margin-top: 12px;
}
body.is-admin .nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 8px 4px;
  border: 0;
  background: transparent;
  color: #8d86a6;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.is-admin .nav-group-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
body.is-admin .nav-group.is-collapsed .nav-group-toggle::after { transform: rotate(-45deg); }
body.is-admin .nav-group.is-collapsed .nav-group-links { display: none; }
body.is-admin .nav-group-links { display: grid; gap: 2px; }
body.is-admin .side a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #ddd6ee;
}
body.is-admin .side a svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.is-admin .side a:hover { background: rgba(124, 92, 255, 0.12); color: #f4eeff; }
body.is-admin .side a.is-active {
  color: #f7f3ff;
  background: rgba(124, 92, 255, 0.22);
  box-shadow: inset 2px 0 0 #9b8cff;
}
body.is-admin .nav-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(155, 140, 255, 0.28);
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.08);
  color: #ddd6ee;
}
body.is-admin .nav-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.is-admin #navOpen { display: none; }
body.is-admin .topbar-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.is-admin .stage-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(155, 140, 255, 0.22);
  background: rgba(20, 16, 32, 0.9);
}
body.is-admin .stage-note h2 { margin-bottom: 8px; font-size: 18px; }
body.is-admin .stage-note p { margin: 0; color: var(--muted); }
body.is-admin.nav-collapsed .side-brand { justify-content: center; }
body.is-admin.nav-collapsed .side-brand-copy,
body.is-admin.nav-collapsed .nav-group-toggle { display: none; }
body.is-admin.nav-collapsed .nav-group.is-collapsed .nav-group-links { display: grid; }
body.is-admin.nav-collapsed .side a { justify-content: center; padding-inline: 0; }
body.is-admin.nav-collapsed .side a span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
body.is-admin.nav-collapsed .side a { position: relative; }
body.is-admin.nav-collapsed .side a:hover::after,
body.is-admin.nav-collapsed .side a:focus-visible::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(155, 140, 255, 0.35);
  background: #1b1730;
  color: #f4eeff;
  font-size: 12px;
  white-space: nowrap;
}
body.is-admin .nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
}
body.is-admin .workspace { min-width: 0; }
body.is-admin .device-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
body.is-admin #playlistSearch { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
body.is-admin #playlistSearch .search,
body.is-admin #playlistSearch select { width: min(100%, 280px); }
body.is-admin .device-tabs a.is-active { background: rgba(124, 92, 255, 0.22); color: #f4eeff; }
body.is-admin .mac-counts { margin-bottom: 14px; }
body.is-admin .mac-counts strong { font-size: 22px; }
body.is-admin .mac-cards,
body.is-admin .playlist-cards,
body.is-admin .trial-cards { display: none; }
body.is-admin #trialUrlForm input,
body.is-admin #bannerBaseForm input,
body.is-admin #bannerForm input,
body.is-admin #appUpdateForm input { max-width: 100%; }
body.is-admin .banner-list { display: grid; gap: 10px; }
body.is-admin .banner-card img,
body.is-admin #bannerAi img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; }
body.is-admin #appUpdateForm fieldset { border: 1px solid rgba(155, 140, 255, 0.2); border-radius: 14px; padding: 12px; }
body.is-admin #bannerHits { display: flex; flex-wrap: wrap; gap: 8px; }
body.is-admin .mac-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(155, 140, 255, 0.2);
  background: rgba(20, 16, 32, 0.9);
}
body.is-admin .mac-card span { color: var(--muted); font-size: 13px; }
body.is-admin .mac-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
body.is-admin .mac-card strong { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  body.is-admin .shell,
  body.is-admin.nav-collapsed .shell { grid-template-columns: 1fr; }
  body.is-admin #navOpen { display: inline-flex; }
  body.is-admin #navCollapse { display: none; }
  body.is-admin .side {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(280px, 88vw);
    transform: translateX(-105%);
    transition: transform 160ms ease;
  }
  body.is-admin.nav-open .side { transform: none; }
  body.is-admin .side nav { display: grid; flex-wrap: nowrap; }
  body.is-admin.nav-collapsed .side-brand { justify-content: space-between; }
  body.is-admin.nav-collapsed .side-brand-copy { display: block; }
  body.is-admin.nav-collapsed .nav-group-toggle { display: flex; }
  body.is-admin.nav-collapsed .nav-group.is-collapsed .nav-group-links { display: none; }
  body.is-admin.nav-collapsed .side a { justify-content: flex-start; padding: 7px 10px; }
  body.is-admin.nav-collapsed .side a span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  body.is-admin.nav-collapsed .side a:hover::after,
  body.is-admin.nav-collapsed .side a:focus-visible::after { content: none; }
  body.is-admin .content { padding: 16px; }
  body.is-admin .mac-table,
  body.is-admin .playlist-table,
  body.is-admin .trial-table { display: none; }
  body.is-admin .mac-cards,
  body.is-admin .playlist-cards,
  body.is-admin .trial-cards { display: grid; gap: 10px; }
}

.credit-switch { display: grid; gap: 8px; margin-bottom: 18px; }
.credit-switch strong { font-size: 22px; }
.credit-pack { display: grid; gap: 6px; }
.credit-pack strong { font-size: 28px; }
.credit-pack.is-best { outline: 1px solid rgba(124, 92, 255, 0.55); }
.credit-pack .best-note { color: #d8ccff; font-size: 12px; }
.pix-modal { display: grid; gap: 12px; }
.pix-modal img { width: min(240px, 100%); margin: 0 auto; background: #fff; border-radius: 12px; }
.pix-code { word-break: break-all; font-size: 13px; }
.needs-review { color: #f4b740; font-weight: 700; }
body.is-reseller #turnstileBox { margin: 8px 0 4px; min-height: 70px; }
body.is-admin .mfa-qr {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin: 12px 0;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
}
body.is-admin .mfa-secret {
  margin: 8px 0 12px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}
body.is-admin .mfa-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
body.is-admin .mfa-codes code {
  padding: 8px 10px;
  border-radius: 10px;
  background: #0c0a10;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
