
:root {
  /* STEP 0: MASTER DESIGN TOKENS */
  --bg: #0b0e13;            /* page background */
  --surface: #151a23;       /* cards, panels */
  --surface-2: #1a1e26;     /* header, table header */
  --border: #2a3342;        /* hairlines, input borders */
  --teal: #2dd4bf;          /* PRIMARY accent — single unified teal */
  --teal-dark: #0d9488;     /* hover/darker teal */
  --teal-ink: #06201c;      /* dark text on teal buttons */
  --text: #f1f5f9;          /* headings, primary text */
  --text-dim: #94a3b8;      /* secondary text, labels */
  --green: #22c55e;         /* gains, success */
  --red: #ef4444;           /* losses, destructive */
  --amber: #f59e0b;         /* warnings, alerts */
  --radius: 10px;           /* single radius — all buttons, inputs, cards */
  --radius-sm: 6px;         /* small elements (table pills, badges) */

  /* Legacy aliases mapped to tokens */
  --card: var(--surface);
  --card-rgb: 21, 26, 35;
  --muted: var(--text-dim);
  --accent: var(--teal);
  --accent-rgb: 45, 212, 191;
  --nav-bg: var(--surface-2);
  --manual-text: var(--text);
  --manual-button: var(--teal);
  --manual-button-text: var(--teal-ink);
  --ok: var(--green);
  --err: var(--red);
  --warning: var(--amber);
  --glass-blur: 10px;
}

/* Base HTML & Body with instant dark canvas to eliminate white flash */
html {
  background: var(--bg);
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text) !important;
  font-weight: 700;
  margin-top: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: 28px; line-height: 1.3; }
h2 { font-size: 22px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.3; }

/* Sticky Footer Spec */
.page-footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
}

/* Header Stability */
.nav {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--text);
  backdrop-filter: blur(var(--glass-blur, 8px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 8px));
  border-bottom: 1px solid var(--border);
  z-index: 2000;
  min-height: 58px;
}
.nav .inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  position: relative;
  width: 100%;
  min-height: 58px;
  box-sizing: border-box;
}
.nav .inner .nav-brand-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal);
  pointer-events: none;
  white-space: nowrap;
}
.nav .inner .muted {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: .04em;
  text-align: right;
}
.theme-toggle,
.settings-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text) !important;
  font-size: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: none !important;
  outline: none;
}
.theme-toggle:hover,
.settings-btn:hover {
  background: rgba(45, 212, 191, 0.08) !important;
  border-color: rgba(45, 212, 191, 0.3) !important;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.2) !important;
}
.time-display, #srv {
  font-size: 13px !important;
  color: var(--teal) !important;
  letter-spacing: .03em;
  font-weight: 600;
}
.title {
  font-weight: 700;
  font-size: 18px;
  color: var(--text) !important;
}

/* Hamburger */
.hamburger, .mj-hamburger {
  width: 34px;
  height: 28px;
  padding: 4px 2px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s ease;
}
.hamburger:hover, .mj-hamburger:hover {
  border-color: var(--teal);
}
.hamburger span, .mj-hamburger span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--teal) !important;
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Drawer */
.drawer, .mj-drawer {
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  width: 280px !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border-right: 1px solid var(--border) !important;
  transform: translateX(-100%) !important;
  transition: transform 0.25s ease !important;
  z-index: 2100 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}
.drawer.open, .mj-drawer.open {
  transform: translateX(0) !important;
}
.drawer .head, .mj-dhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer .content {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
}
.drawer-info {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 12px !important;
  margin-bottom: 12px !important;
}
.drawer-info span { font-size: 12px; color: var(--text-dim); }
.drawer-info strong { font-size: 15px; color: var(--text); }
.drawer .content .badge, .drawer .content .link, .mj-link {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  background: var(--surface-2) !important;
  color: var(--text) !important;
  margin: 6px 0 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  text-align: left !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}
.drawer .content .badge:hover, .drawer .content .link:hover, .mj-link:hover {
  border-color: var(--teal) !important;
  background: rgba(45, 212, 191, 0.08) !important;
}

/* Cards Specification */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 18px;
  box-shadow: none !important;
}

/* ==========================================================================
   BUTTON SPECIFICATION — Exactly 3 Variants + Table Row Actions
   ========================================================================== */

/* Primary Button Spec */
.btn-primary,
.primary-btn,
.pill-btn.primary,
.apply-btn,
.scanner-btn,
.pay-btn,
#custom-pay-btn,
button.primary,
input[type="submit"].primary,
form[data-scanner-form] button[type="submit"] {
  background: var(--teal) !important;
  color: var(--teal-ink) !important;
  border: none !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border-radius: var(--radius) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}
.btn-primary:hover,
.primary-btn:hover,
.pill-btn.primary:hover,
.apply-btn:hover,
.scanner-btn:hover,
.pay-btn:hover,
#custom-pay-btn:hover,
button.primary:hover,
form[data-scanner-form] button[type="submit"]:hover {
  background: var(--teal-dark) !important;
  color: var(--teal-ink) !important;
}

/* Secondary Button Spec */
.btn-secondary,
.btn-ghost,
.pill-btn:not(.primary):not(.logout-btn),
.otp-btn,
#clearFilters,
button.secondary,
.btn-outline {
  background: transparent !important;
  border: 1px solid var(--teal) !important;
  color: var(--teal) !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border-radius: var(--radius) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}
.btn-secondary:hover,
.btn-ghost:hover,
.pill-btn:not(.primary):not(.logout-btn):hover,
.otp-btn:hover,
#clearFilters:hover,
button.secondary:hover {
  background: rgba(45, 212, 191, 0.1) !important;
  border-color: var(--teal) !important;
  color: var(--teal) !important;
}

/* Danger Button Spec (Logout / Destructive) */
.logout-btn,
.btn-danger,
button.danger {
  background: var(--red) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border-radius: var(--radius) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: opacity 0.15s ease !important;
}
.logout-btn:hover,
.btn-danger:hover {
  opacity: 0.9 !important;
}

/* Table Row Action Buttons (Add / Remove) */
.watch-btn {
  background: var(--teal) !important;
  color: var(--teal-ink) !important;
  border: none !important;
  padding: 4px 12px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  cursor: pointer;
  display: inline-block;
  text-decoration: none !important;
  box-shadow: none !important;
}
.watch-btn:hover {
  background: var(--teal-dark) !important;
  color: var(--teal-ink) !important;
}
.watch-btn--remove {
  background: transparent !important;
  color: var(--red) !important;
  border: 1px solid var(--red) !important;
  padding: 4px 12px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  cursor: pointer;
  display: inline-block;
  text-decoration: none !important;
  box-shadow: none !important;
}
.watch-btn--remove:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: var(--red) !important;
}

/* ==========================================================================
   INPUTS & SELECTS SPECIFICATION
   ========================================================================== */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
select,
textarea {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
select {
  height: 42px;
  padding: 0 12px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.15) !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--surface) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   TABLES SPECIFICATION
   ========================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  font-size: 13px;
}
table thead th,
table thead th a,
.kinetic-table th,
.results-table thead th {
  background: var(--surface-2) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 12px !important;
  text-align: left;
}
table tbody tr {
  border-bottom: 1px solid var(--border) !important;
  transition: background 0.15s ease;
}
table tbody tr:hover {
  background: rgba(45, 212, 191, 0.03) !important;
}
table tbody td {
  border-bottom: 1px solid var(--border) !important;
  padding: 10px 12px;
  color: var(--text);
  vertical-align: middle;
}
.sort-link {
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 700;
  display: inline-block;
}
.sort-link:hover,
.sort-link.active {
  color: var(--text) !important;
  text-decoration: none !important;
}

/* ==========================================================================
   PAGINATION SPECIFICATION
   ========================================================================== */
.global-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.global-pagination-btn,
.pag-btn {
  background: var(--surface-2) !important;
  color: var(--text-dim) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.global-pagination-btn:hover:not(:disabled):not(.disabled),
.pag-btn:hover:not(.disabled) {
  border-color: var(--teal) !important;
  color: var(--text) !important;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.2) !important;
  text-decoration: none !important;
}
.global-pagination-btn.active,
.pag-btn.active,
.limit.active {
  background: var(--teal) !important;
  color: var(--teal-ink) !important;
  border-color: var(--teal) !important;
}
.global-pagination-btn:disabled,
.global-pagination-btn.disabled,
.pag-btn.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}
.limit {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}

/* ==========================================================================
   ALERTS & NOTICES SPECIFICATION
   ========================================================================== */
.notice {
  padding: 14px 18px;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  margin-bottom: 12px;
  font-size: 14px;
}
.notice-warning {
  border: 1px solid var(--amber) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  color: var(--amber) !important;
  border-radius: var(--radius) !important;
}

/* Badges & Pills */
.badge,
.badge-ui,
.pill,
.access-tier,
.success-badge {
  border-radius: var(--radius-sm) !important;
  font-size: 12px;
  font-weight: 600;
}
.success-badge {
  background: rgba(34, 197, 94, 0.12) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: var(--green) !important;
  padding: 6px 14px;
  display: inline-flex;
}

/* Trend Colors */
.value-trend, .metric-up, .metric-down { font-weight: 600; }
.value-trend.value-pos, .metric-up { color: var(--green) !important; }
.value-trend.value-neg, .metric-down { color: var(--red) !important; }

/* Tooltip Popup */
#custom-tip {
  position: fixed;
  background: var(--surface, #151a23);
  color: var(--text, #f1f5f9);
  border: 1px solid var(--border, #2a3342);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 12px;
  max-width: 300px;
  white-space: pre-line;
  line-height: 1.6;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .1s ease, transform .1s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  word-break: break-word;
  font-family: 'Inter', system-ui, Arial;
}
#custom-tip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scanner Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.scan-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: scanSpin 0.8s linear infinite;
}
@keyframes scanSpin {
  to { transform: rotate(360deg); }
}

/* Standard In-Table Loading State (FIX 8) */
.table-loading-cell {
  padding: 64px 20px !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: var(--surface) !important;
  border: none !important;
}
.in-table-loader {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
}
.in-table-loader-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.in-table-loader-sub {
  font-size: 13px;
  color: var(--text-dim, #94a3b8);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Responsive adjustments for mobile (e.g. 390px spot-check) */
.table-responsive,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .nav .inner .nav-brand-center {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav .inner {
    padding: 10px 12px;
  }
  .global-pagination {
    gap: 4px;
  }
  .global-pagination-btn,
  .pag-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
}

/* ==========================================================================
   THEME SETTINGS SLIDE-IN DRAWER & BACKDROP
   ========================================================================== */
#mj-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(var(--glass-blur, 8px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 8px));
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#mj-popup-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

#mj-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface, #151a23);
  color: var(--text, #f1f5f9);
  border-left: 1px solid var(--border, #2a3342);
  box-shadow: -10px 0 36px rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}
#mj-popup.open {
  transform: translateX(0);
  visibility: visible;
}

.theme-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #2a3342);
  background: var(--surface-2, #1a1e26);
  flex-shrink: 0;
}
.theme-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-drawer-icon {
  font-size: 20px;
}
.theme-drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #f1f5f9);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.theme-drawer-close {
  border: 1px solid var(--border, #2a3342);
  background: var(--surface, #151a23);
  color: var(--text-dim, #94a3b8);
  font-size: 22px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}
.theme-drawer-close:hover {
  color: var(--text, #f1f5f9);
  border-color: var(--teal, #2dd4bf);
  background: rgba(45, 212, 191, 0.08);
}

.theme-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.theme-section {
  display: flex;
  flex-direction: column;
}
.theme-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim, #94a3b8);
  margin-bottom: 12px;
}

.theme-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theme-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--border, #2a3342);
  background: var(--surface-2, #1a1e26);
  color: var(--text, #f1f5f9);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.theme-option:hover {
  border-color: var(--teal, #2dd4bf);
  background: rgba(45, 212, 191, 0.05);
}
.theme-option.active {
  border-color: var(--teal, #2dd4bf) !important;
  background: rgba(45, 212, 191, 0.12) !important;
  box-shadow: 0 0 0 1px var(--teal, #2dd4bf);
}
.theme-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.theme-swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.theme-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.theme-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #f1f5f9);
  line-height: 1.3;
}
.theme-desc {
  font-size: 11.5px;
  color: var(--text-dim, #94a3b8);
  line-height: 1.2;
}
.theme-check {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal, #2dd4bf);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s ease;
}
.theme-option.active .theme-check {
  opacity: 1;
  transform: scale(1);
}

.theme-slider-card {
  padding: 14px 16px;
  background: var(--surface-2, #1a1e26);
  border: 1px solid var(--border, #2a3342);
  border-radius: var(--radius, 10px);
}
.theme-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.theme-slider-title-wrap {
  display: flex;
  flex-direction: column;
}
.theme-slider-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #f1f5f9);
}
.theme-slider-hint {
  font-size: 11.5px;
  color: var(--text-dim, #94a3b8);
}
.theme-slider-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal, #2dd4bf);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-sm, 6px);
  padding: 2px 8px;
}
.theme-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface, #151a23);
  border: 1px solid var(--border, #2a3342);
  outline: none;
  cursor: pointer;
  margin: 6px 0 2px;
}
.theme-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal, #2dd4bf);
  cursor: pointer;
  border: 2px solid var(--surface-2, #1a1e26);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease;
}
.theme-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}
.theme-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal, #2dd4bf);
  cursor: pointer;
  border: 2px solid var(--surface-2, #1a1e26);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
