/* Card2App Admin Theme — New Brand (purple/blue/green gradient system) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Prevent horizontal scroll globally — using clip (not hidden) to avoid breaking position:sticky */
html, body { overflow-x: clip; max-width: 100%; }

/* Smooth theme transitions */
*, *::before, *::after {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
/* Don't transition transforms (breaks animations) */
.spinner, .modal, .modal-overlay, .sidebar, .toast { transition: none; }
.spinner { animation: spin 0.6s linear infinite; }
.modal { transition: transform 0.2s; }
.modal-overlay { transition: opacity 0.2s, visibility 0.2s; }
.sidebar { transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); }

:root {
  /* Backgrounds */
  --bg-primary: #050508;
  --bg-secondary: #09090f;
  --bg-card: #111120;
  --bg-input: #161628;
  --bg-hover: #1d1d35;
  /* Text */
  --text-primary: #f1f0f8;
  --text-secondary: #8b8ba0;
  --text-dim: #5a5a72;
  /* Brand gradient */
  --grad: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
  --grad-solid: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #059669 100%);
  --grad-btn: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --grad-btn-hover: linear-gradient(135deg, #6d28d9 0%, #1d4ed8 100%);
  /* Accent (primary purple) */
  --accent: #a78bfa;
  --accent-solid: #7c3aed;
  --accent-dim: rgba(124,58,237,0.12);
  --accent-glow: rgba(124,58,237,0.25);
  --accent-hover: #c4b5fd;
  /* Semantic colors */
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --blue: #60a5fa;
  --blue-solid: #2563eb;
  --blue-dim: rgba(37,99,235,0.12);
  --purple: #a78bfa;
  --purple-solid: #7c3aed;
  --purple-dim: rgba(124,58,237,0.12);
  --green: #34d399;
  --green-solid: #059669;
  --green-dim: rgba(5,150,105,0.12);
  --orange: #fb923c;
  --orange-dim: rgba(251,146,60,0.12);
  /* Borders */
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  /* Shape */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  /* Legacy aliases for backward compat */
  --card-bg: var(--bg-card);
  --text: var(--text-primary);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg-primary: #f5f4fd;
  --bg-secondary: #ffffff;
  --bg-card: #eeecfb;
  --bg-input: #e8e5f5;
  --bg-hover: #ddd9f0;
  --text-primary: #1a1540;
  --text-secondary: #6b6888;
  --text-dim: #9b98b5;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.16);
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --accent-dim: rgba(124,58,237,0.08);
  --accent-glow: rgba(124,58,237,0.15);
  --red-dim: rgba(239,68,68,0.08);
  --blue-dim: rgba(37,99,235,0.08);
  --purple-dim: rgba(124,58,237,0.08);
  --green-dim: rgba(5,150,105,0.08);
  --orange-dim: rgba(251,146,60,0.08);
  /* Darker semantic colors for readability on light backgrounds */
  --orange: #b45309;
  --red: #dc2626;
  --green: #059669;
  --blue: #2563eb;
  /* Card bg alias */
  --card-bg: var(--bg-card);
  --text: var(--text-primary);
}

[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 800px 500px at 20% 0%, rgba(124,58,237,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(37,99,235,0.03) 0%, transparent 70%),
    radial-gradient(ellipse 700px 400px at 10% 70%, rgba(5,150,105,0.03) 0%, transparent 70%);
}

[data-theme="light"] .modal {
  box-shadow: 0 24px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(124,58,237,0.1);
}

[data-theme="light"] .modal-overlay {
  background: rgba(0,0,0,0.35);
}

[data-theme="light"] .sidebar-backdrop {
  background: rgba(0,0,0,0.3);
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* Sidebar bottom theme toggle row */
.sidebar-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-top: 8px;
}

.sidebar-theme-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Builder topbar theme toggle */
.builder-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0;
  line-height: 1;
}

.builder-theme-toggle:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Normalize all topbar button heights */
.builder-topbar .btn-sm {
  height: 34px;
  padding-top: 0;
  padding-bottom: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 800px 500px at 20% 0%, rgba(124,58,237,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(37,99,235,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 700px 400px at 10% 70%, rgba(5,150,105,0.04) 0%, transparent 70%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}

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

/* ── LAYOUT ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.sidebar-logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav { flex: 1; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.sidebar-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.sidebar-link svg, .sidebar-link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 32px;
  max-width: 1200px;
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124,58,237,0.3);
}

.btn-primary:hover {
  background: var(--grad-btn-hover);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
}

.btn-danger:hover {
  background: rgba(239,68,68,0.2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-icon {
  padding: 8px;
  min-width: 36px;
  justify-content: center;
}

/* ── CARDS ── */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value.neutral {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.stat-change {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td { color: var(--text-primary); }

tr:hover td { background: var(--bg-card); }

/* ── FORMS ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b8ba0' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-draft {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge-active {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}

.badge-paused {
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(251,146,60,0.2);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 24px;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(10px);
  transition: transform 0.2s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.1);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
}

.alert-success {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}

/* ── UTILITY ── */
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-red { color: var(--red); }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }

/* ── SPINNER / LOADING ── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}

.toast.success { border-color: rgba(52,211,153,0.3); color: var(--green); }
.toast.error { border-color: rgba(239,68,68,0.2); color: var(--red); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── SECTION HEADERS ── */
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* ── GRADIENT ACCENTS ── */
.accent-bar {
  height: 3px;
  background: var(--grad);
  border-radius: 99px;
}

.gradient-icon {
  background: var(--grad-btn);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ── MOBILE HAMBURGER ── */
.mobile-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  position: fixed;
  top: 12px; right: 16px;
  z-index: 200;
  flex-shrink: 0;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {
  html, body { overflow-x: clip; }

  .mobile-hamburger { display: flex; }

  .sidebar-backdrop.open { display: block; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    z-index: 150;
    display: flex !important;
  }
  .sidebar.open { transform: translateX(0); }

  .main-content {
    margin-left: 0;
    padding: 16px;
    padding-top: 16px;
    min-width: 0;       /* flex item: allow shrinking below content size */
    overflow-x: hidden; /* clip layout overflow; table-wrap handles its own scroll */
  }

  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-right: 52px; /* don't overlap hamburger */
  }

  .modal { padding: 24px 20px; }

  /* Table overflow fix (non-funnel tables only) */
  .table-wrap:not(.funnel-wrap) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap:not(.funnel-wrap) table { min-width: 540px; }

  /* ── FUNNEL TABLE: card layout on mobile ── */
  .funnel-wrap { overflow-x: visible; }
  .funnel-table { min-width: 0 !important; display: block; }
  .funnel-table thead { display: none; }
  .funnel-table tbody { display: block; }

  /* Each row becomes a card */
  .funnel-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border); /* override default td border-bottom reset */
  }
  .funnel-table tbody tr:last-child { margin-bottom: 0; }
  .funnel-table tbody tr:hover td { background: transparent; }

  /* Reset all td padding/borders — layout handled by row flex */
  .funnel-table td { padding: 0; border: none; font-size: 0.88rem; }

  /* Title cell: full width */
  .funnel-table td:nth-child(1) { flex: 0 0 100%; margin-bottom: 4px; }
  /* Hide slug on mobile to save space */
  .funnel-table td:nth-child(1) > div { display: none; }

  /* Status badge */
  .funnel-table td:nth-child(2) { flex: none; }

  /* Questions count */
  .funnel-table td:nth-child(3) { flex: none; font-size: 0.8rem; color: var(--text-secondary); }
  .funnel-table td:nth-child(3)::before { content: '• '; opacity: 0.4; }

  /* Views, Completions, Rate — small meta stats */
  .funnel-table td:nth-child(4),
  .funnel-table td:nth-child(5),
  .funnel-table td:nth-child(6) { flex: none; font-size: 0.78rem; color: var(--text-secondary); }
  .funnel-table td:nth-child(5)::before,
  .funnel-table td:nth-child(6)::before { content: '· '; opacity: 0.4; }

  /* Actions row: full width, separated by top border */
  .funnel-table td:nth-child(7) {
    flex: 0 0 100%;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
  }
}

/* ── SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }

  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-header h1 { font-size: 1.4rem; }
}

/* ── PLAN BADGE (global, used in sidebar + subscription page) ── */
.plan-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-badge-lg.free_trial { background: rgba(251,146,60,0.15); color: var(--orange); border: 1px solid rgba(251,146,60,0.3); }
.plan-badge-lg.starter    { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-glow); }
.plan-badge-lg.growth     { background: rgba(52,211,153,0.12); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }
.plan-badge-lg.scale      { background: rgba(96,165,250,0.12); color: var(--blue); border: 1px solid rgba(96,165,250,0.3); }

/* ─────────────── STYLED RANGE INPUTS ─────────────── */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-btn);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,58,237,0.4);
  border: none;
  transition: box-shadow 0.2s, transform 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover {
  box-shadow: 0 2px 14px rgba(124,58,237,0.6);
  transform: scale(1.15);
}
input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-btn);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,58,237,0.4);
  border: none;
}
input[type=range]::-moz-range-track {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 4px;
}
input[type=range]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2), 0 2px 8px rgba(124,58,237,0.4);
}
