/* =====================================================================
   XONI MLBB INTELLIGENCE — MOBILE-FIRST MATTE OBSIDIAN DESIGN SYSTEM
   Zero Emojis | Custom SVG Icons | Bespoke Esports Dark Palette
   ===================================================================== */

:root {
  --bg: #09090b;
  --bg-elevated: #111114;
  --surface: #141418;
  --surface-2: #1b1b21;
  --surface-hover: #22222a;

  --border: #23232a;
  --border-strong: #32323c;

  --text-1: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;

  --accent: #fafafa;
  --accent-ink: #09090b;
  --gold: #eab308;
  --gold-soft: rgba(234, 179, 8, 0.12);
  --gold-border: rgba(234, 179, 8, 0.3);

  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --green-border: rgba(34, 197, 94, 0.28);

  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  --red-border: rgba(239, 68, 68, 0.28);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #27272e; border-radius: 99px; }

.x-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.spin { animation: xSpin 0.9s linear infinite; }

@keyframes xSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes barSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(240%); }
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.animate-in { animation: fadeUp 0.4s var(--ease) both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }

/* Announcement Strip */
.announcement-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: #17150e;
  border-bottom: 1px solid var(--gold-border);
  color: #fde047;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}
.announcement-bar.visible { display: flex; }

/* Mobile-First Top Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 540px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.status-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseLive 2s infinite;
}

.status-chip.premium {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: #fde047;
}
.status-chip.premium .dot { background: var(--gold); }

/* Mobile-First Main App Container */
.container {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 14px 96px;
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(12, 12, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-inner {
  max-width: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.bnav-btn.active {
  color: var(--text-1);
  background: var(--surface-2);
}

.bnav-btn.active .x-icon {
  color: var(--gold);
}

/* Compact Hero */
.hero {
  padding: 8px 2px 16px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.hero h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-1);
  margin-bottom: 6px;
}

.hero p {
  font-size: 13.5px;
  color: var(--text-2);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card-pad { padding: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-1);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover:not(:disabled) { background: var(--surface-hover); }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) { background: #e4e4e7; }

.btn-gold {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: #fde047;
}
.btn-gold:hover:not(:disabled) { background: rgba(234, 179, 8, 0.2); }

.btn-emerald {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: #4ade80;
}
.btn-emerald:hover:not(:disabled) { background: rgba(34, 197, 94, 0.2); }

.btn-danger {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: #f87171;
}
.btn-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.2); }

.btn-sm {
  padding: 7px 11px;
  font-size: 12px;
  border-radius: 9px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
}

/* Lookup Form (Mobile-First Stacked / 2-Col Inputs) */
.lookup-card {
  padding: 16px;
  margin-bottom: 14px;
}

.lookup-inputs {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-3);
  pointer-events: none;
  display: flex;
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 16px; /* Prevents iOS Safari zoom on focus */
  outline: none;
  transition: border-color 0.18s var(--ease);
}

.input.has-icon { padding-left: 38px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); }
.input::placeholder { color: var(--text-3); font-size: 14px; }

.lookup-submit {
  width: 100%;
  height: 48px;
  font-size: 14.5px;
}

/* Quota Strip */
.quota-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quota-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  flex: 1;
  min-width: 0;
}

.quota-bar-wrap {
  width: 82px;
  height: 6px;
  background: #23232a;
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}

.quota-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.5s var(--ease);
}

/* Live Progress Bar */
.progress-panel {
  display: none;
  padding: 16px;
  margin-bottom: 14px;
}
.progress-panel.visible {
  display: block;
  animation: fadeUp 0.28s var(--ease) both;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.progress-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.progress-pct {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
}

.progress-track {
  height: 9px;
  border-radius: 99px;
  background: #1f1f26;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.4s var(--ease);
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: barSweep 1.2s infinite;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  text-align: center;
  transition: all 0.25s var(--ease);
}

.pipe-step .step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f3f46;
}

.pipe-step.active {
  color: #fde047;
  border-color: var(--gold-border);
  background: var(--gold-soft);
}
.pipe-step.active .step-dot {
  background: var(--gold);
  animation: pulseLive 1s infinite;
}

.pipe-step.done {
  color: #4ade80;
  border-color: var(--green-border);
  background: var(--green-soft);
}
.pipe-step.done .step-dot { background: var(--green); }

/* Error Box */
.alert-box {
  display: none;
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  color: #fca5a5;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.alert-box.visible {
  display: flex;
  animation: fadeUp 0.25s var(--ease) both;
}

/* Result Section */
.result-section { display: none; }
.result-section.visible { display: block; }

.profile-header {
  padding: 16px;
  margin-bottom: 12px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.avatar-frame {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  padding: 2px;
  background: var(--border-strong);
  border: 1px solid var(--gold-border);
  flex-shrink: 0;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg);
  display: block;
}

.level-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--gold-border);
  color: #fde047;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.player-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
  word-break: break-word;
}

.player-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.player-bio {
  font-size: 12.5px;
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-gold { background: var(--gold-soft); color: #fde047; border: 1px solid var(--gold-border); }
.badge-emerald { background: var(--green-soft); color: #4ade80; border: 1px solid var(--green-border); }
.badge-rose { background: var(--red-soft); color: #f87171; border: 1px solid var(--red-border); }
.badge-neutral { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* Mobile-First Grids */
.grid-2-mobile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

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

.kpi-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-icon {
  color: var(--gold);
  display: flex;
}

.kpi-value {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-1);
  line-height: 1.25;
}

.kpi-sub {
  font-size: 11.5px;
  color: var(--text-2);
}

/* Section Card Header */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-1);
}

/* Rings */
.rings-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.ring-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.ring-svg {
  width: 50px;
  height: 50px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.ring-bg { fill: none; stroke: #23232a; stroke-width: 6; }
.ring-fg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s var(--ease);
}

/* Key-Value List */
.kv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12.5px;
}

.kv-label {
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kv-val {
  font-weight: 600;
  color: var(--text-1);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-word;
}

/* Skin Breakdown */
.skin-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skin-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-2);
}

.skin-track {
  height: 6px;
  border-radius: 99px;
  background: #23232a;
  overflow: hidden;
}

.skin-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--gold);
  transition: width 0.7s var(--ease);
}

/* Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
}

/* Views & Code Blocks */
.tab-view { display: none; }
.tab-view.active {
  display: block;
  animation: fadeUp 0.3s var(--ease) both;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #d4d4d8;
  overflow-x: auto;
  position: relative;
  line-height: 1.6;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
}

.method-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.method-get { background: var(--green-soft); color: #4ade80; border: 1px solid var(--green-border); }
.method-post { background: var(--gold-soft); color: #fde047; border: 1px solid var(--gold-border); }

/* Footer */
.footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-links a:hover { color: var(--gold); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.modal-overlay.open {
  display: flex;
  animation: fadeUp 0.2s var(--ease) both;
}

.modal-box {
  width: 100%;
  max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}

/* Toast */
.toast-stack {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 28px);
  max-width: 420px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.22s var(--ease) both;
}
.toast.success { border-color: var(--green-border); color: #bbf7d0; }
.toast.error { border-color: var(--red-border); color: #fecaca; }

/* =====================================================================
   ADMIN CONTROL PANEL (MOBILE-FIRST + DESKTOP RESPONSIVE)
   ===================================================================== */
.admin-login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-login-card {
  width: 100%;
  max-width: 390px;
  padding: 24px;
}

.admin-shell {
  display: none;
  min-height: 100dvh;
}
.admin-shell.active { display: block; }

.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}

.admin-header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-tabs-strip {
  max-width: 980px;
  margin: 10px auto 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.admin-tabs-strip::-webkit-scrollbar { display: none; }

.side-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s var(--ease);
}

.side-link.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.admin-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px 60px;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.grid-admin-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

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

@media (min-width: 768px) {
  .grid-admin-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-admin-2 { grid-template-columns: repeat(2, 1fr); }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 560px;
}

th {
  text-align: left;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #27272e;
  border-radius: 99px;
  transition: 0.22s var(--ease);
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #d4d4d8;
  border-radius: 50%;
  transition: 0.22s var(--ease);
}

.switch input:checked + .slider { background: var(--gold); }
.switch input:checked + .slider::before {
  transform: translateX(20px);
  background: #09090b;
}
