/* ── SpineRehab — Nebula Glass Design System ── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0F0C29;
  --bg-mid: #1A103C;
  --glass: rgba(255,255,255,.05);
  --glass-border: rgba(255,255,255,.10);
  --glass-hover: rgba(255,255,255,.08);
  --primary: #D8B4FE;
  --primary-dim: rgba(216,180,254,.20);
  --secondary: #99F6E4;
  --text: #FFFFFF;
  --text-60: rgba(255,255,255,.60);
  --text-40: rgba(255,255,255,.40);
  --success: #34D399;
  --warning: #FCD34D;
  --danger: #F87171;
  --spine-blue: #93C5FD;
  --spine-orange: #FDBA74;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-card: 0 8px 32px rgba(0,0,0,.20);
  --shadow-btn: 0 10px 30px rgba(216,180,254,.30);
  --font: 'Manrope', -apple-system, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex; justify-content: center;
}

.app-shell {
  width: 100%; max-width: 430px;
  min-height: 100dvh;
  position: relative;
  background: var(--bg);
}
@media (min-width: 500px) {
  body { background: #08061A; }
  .app-shell { box-shadow: 0 0 80px rgba(216,180,254,.06); }
}

.hidden { display: none !important; }
.view { min-height: 100dvh; }

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #D8B4FE, #C084FC);
  color: #1A103C; border: none;
  padding: 14px 28px; border-radius: var(--radius-xl);
  font-size: .95rem; font-weight: 800;
  cursor: pointer; min-height: 48px;
  box-shadow: var(--shadow-btn);
  text-transform: uppercase; letter-spacing: .04em;
  transition: transform .15s, opacity .15s;
  font-family: var(--font);
}
.btn-primary:active { transform: scale(.97); opacity: .85; }
.btn-lg { width: 100%; font-size: 1rem; padding: 16px; }
.btn-text {
  background: none; border: none; color: var(--primary);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: 8px 4px; min-height: 44px; font-family: var(--font);
}
.btn-icon {
  background: var(--primary-dim); border: 1px solid rgba(216,180,254,.30);
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.btn-secondary {
  background: var(--primary-dim); color: var(--primary);
  border: 1px solid rgba(216,180,254,.30);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .85rem; cursor: pointer;
  min-height: 44px; transition: all .2s; font-family: var(--font);
}

/* ── Onboarding ── */
.onboard-container { padding: 16px 16px calc(80px + var(--safe-b)); }
.onboard-progress {
  height: 4px; background: var(--glass);
  border-radius: 2px; margin-bottom: 24px; overflow: hidden;
}
.onboard-progress-bar {
  height: 100%; background: linear-gradient(90deg, #D8B4FE, #99F6E4);
  border-radius: 2px; transition: width .4s ease;
}
.onboard-step { display: none; animation: fadeIn .3s ease; }
.onboard-step.active { display: block; }
.onboard-step h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.subtitle { color: var(--text-60); font-size: .9rem; line-height: 1.5; margin-bottom: 24px; }
.onboard-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(15,12,41,.90); backdrop-filter: blur(12px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px calc(12px + var(--safe-b));
  border-top: 1px solid var(--glass-border);
  max-width: 430px; margin: 0 auto;
}

/* ── Step header ── */
.step-header { margin-bottom: 28px; }
.step-number {
  display: inline-block; font-size: .7rem; font-weight: 700;
  color: var(--primary); background: var(--primary-dim);
  padding: 3px 10px; border-radius: 9999px;
  margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase;
}

/* ── Fields ── */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: 8px; color: var(--text-60);
}
.field-icon {
  width: 16px; height: 16px; vertical-align: -2px; margin-right: 4px;
  color: var(--primary);
}
.field input[type="text"],
.field input[type="number"],
.field input[type="time"] {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); font-size: .95rem;
  background: var(--glass); color: var(--text);
  min-height: 48px; transition: all .2s; font-family: var(--font);
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(216,180,254,.12); }
.field input::placeholder { color: var(--text-40); }
.time-input {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); font-size: .95rem;
  background: var(--glass); color: var(--text);
  min-height: 48px; font-family: var(--font); color-scheme: dark;
}
.time-input:focus { outline: none; border-color: var(--primary); }

/* ── Chips ── */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group-vertical { display: flex; flex-direction: column; gap: 8px; }
.chip {
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-60);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .2s; min-height: 44px; font-family: var(--font);
}
.chip.selected {
  background: var(--primary-dim);
  border-color: rgba(216,180,254,.40);
  color: var(--primary);
}
.chip:active { transform: scale(.96); }
.chip-wide {
  width: 100%; text-align: left; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.chip-title { font-weight: 700; font-size: .9rem; color: var(--text); }
.chip-desc { font-size: .78rem; color: var(--text-40); font-weight: 400; }
.chip-wide.selected .chip-title { color: var(--primary); }
.chip-wide.selected .chip-desc { color: var(--primary); opacity: .7; }
.chip-sm { padding: 6px 12px; font-size: .8rem; min-height: 36px; }

/* ── App Header ── */
.app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: rgba(15,12,41,.90); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 40;
}
.app-logo { font-weight: 800; font-size: 1.15rem; color: var(--primary); letter-spacing: -.5px; }

/* ── Bottom Tab Bar ── */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 8px calc(8px + var(--safe-b));
  background: rgba(15,12,41,.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  z-index: 50; max-width: 430px; margin: 0 auto;
}
.tab-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: var(--text-40);
  font-size: .68rem; font-weight: 600; cursor: pointer;
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: all .2s; font-family: var(--font); min-width: 56px;
}
.tab-btn svg { width: 22px; height: 22px; }
.tab-btn.active { color: var(--primary); }
.tab-btn-primary {
  background: var(--primary-dim);
  border-radius: var(--radius-lg); padding: 8px 16px;
}
.tab-btn-primary.active {
  background: linear-gradient(135deg, rgba(216,180,254,.25), rgba(153,246,228,.15));
}

/* ── Tab Content ── */
.tab-content {
  padding: 16px 16px calc(96px + var(--safe-b));
  animation: fadeIn .25s ease;
}
.tab-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -.02em; }

/* ── Cards ── */
.card {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); padding: 24px;
  margin-bottom: 16px; box-shadow: var(--shadow-card);
  position: relative;
}
.card h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.text-soft { color: var(--text-40); font-size: .85rem; margin-top: 4px; }
.greeting-card {
  background: linear-gradient(135deg, rgba(216,180,254,.15), rgba(153,246,228,.08));
  border-color: rgba(216,180,254,.20);
}
.greeting-card .text-soft { color: var(--text-60); }

/* ── Pain Assessment ── */
.pain-slider-wrap { margin: 16px 0; }
.pain-slider-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.pain-slider-header label { font-weight: 600; font-size: .9rem; }
.pain-guide-btn {
  background: var(--primary-dim); border: 1px solid rgba(216,180,254,.30);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  color: var(--primary); display: flex; align-items: center;
  justify-content: center; font-family: var(--font);
}
.pain-value {
  font-size: 2rem; font-weight: 800; text-align: center;
  margin: 8px 0; letter-spacing: -.03em;
}
.pain-value.green { color: var(--success); }
.pain-value.yellow { color: var(--warning); }
.pain-value.red { color: var(--danger); }
.pain-value.black { color: var(--text-40); }
.pain-labels {
  display: flex; justify-content: space-between;
  font-size: .72rem; color: var(--text-40); margin-bottom: 4px;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: rgba(255,255,255,.1); border-radius: 3px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px;
  background: var(--primary); border-radius: 50%; cursor: pointer;
  border: none; box-shadow: 0 0 12px rgba(216,180,254,.40);
}
.pain-location {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.pain-loc-btn {
  padding: 8px 14px; border-radius: 9999px;
  border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-60);
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .2s; font-family: var(--font);
}
.pain-loc-btn.active {
  background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.30);
  color: var(--danger);
}

/* ── Traffic Light Badge ── */
.traffic-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 9999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
}
.traffic-green { background: rgba(52,211,153,.15); color: var(--success); }
.traffic-yellow { background: rgba(252,211,77,.15); color: var(--warning); }
.traffic-red { background: rgba(248,113,113,.15); color: var(--danger); }
.traffic-rest { background: rgba(255,255,255,.08); color: var(--text-40); }
.traffic-emergency { background: rgba(248,113,113,.25); color: #FCA5A5; }

/* ── Streak ── */
.streak-display {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 800;
}
.streak-num { color: var(--spine-orange); font-size: 1.4rem; }

/* ── Exercise Cards ── */
.exercise-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 16px;
  margin-bottom: 10px; cursor: pointer; transition: border-color .2s;
}
.exercise-card:active { border-color: var(--primary); }
.exercise-card-header {
  display: flex; justify-content: space-between; align-items: center;
}
.exercise-name { font-weight: 700; font-size: .9rem; }
.exercise-meta {
  display: flex; gap: 8px; align-items: center;
  margin-top: 6px; font-size: .78rem; color: var(--text-40);
}
.exercise-badge {
  padding: 2px 8px; border-radius: 9999px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-acute { background: rgba(248,113,113,.12); color: var(--danger); }
.badge-subacute { background: rgba(252,211,77,.12); color: var(--warning); }
.badge-maintenance { background: rgba(52,211,153,.12); color: var(--success); }
.exercise-detail {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--glass-border);
  animation: fadeIn .2s ease;
}
.exercise-desc { font-size: .85rem; line-height: 1.6; color: var(--text-60); margin-bottom: 12px; }
.exercise-mod {
  background: rgba(253,186,116,.08); border: 1px solid rgba(253,186,116,.20);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: .82rem; color: var(--spine-orange); margin-bottom: 10px;
}
.exercise-why {
  font-size: .82rem; color: var(--text-40); line-height: 1.5;
  font-style: italic;
}
/* ── Video Modal ── */
.video-modal {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(15,12,41,.95);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fadeIn .2s ease;
}
.video-modal-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden; animation: slideUp .3s ease;
}
.video-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}
.video-modal-title {
  font-weight: 700; font-size: .95rem;
}
.video-modal-body { padding: 0; }
.video-container {
  position: relative; width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}
.video-container iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

.video-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 10px 18px;
  background: var(--primary-dim); color: var(--primary);
  border: 1px solid rgba(216,180,254,.30); cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 700;
  text-decoration: none; transition: all .2s;
  font-family: var(--font);
}
.video-link:active { transform: scale(.97); opacity: .8; }
.exercise-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 10px 0;
}
.exercise-spec {
  text-align: center; padding: 8px;
  background: rgba(255,255,255,.03); border-radius: var(--radius-sm);
}
.exercise-spec-label {
  font-size: .65rem; color: var(--text-40); text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: 2px;
}
.exercise-spec-val { font-weight: 700; font-size: .88rem; }
.exercise-svg-wrap {
  display: flex; justify-content: center; align-items: center;
  height: 120px; margin: 12px 0;
}
.exercise-fav {
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; padding: 4px; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-40); transition: color .2s;
}
.exercise-fav.active { color: var(--warning); }

/* ── Filter Chips ── */
.filter-bar {
  display: flex; gap: 6px; margin-bottom: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.filter-bar::-webkit-scrollbar { display: none; }

/* ── Session Overlay ── */
.session-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  display: flex; flex-direction: column;
  max-width: 430px; margin: 0 auto;
}
.session-header {
  padding: 16px;
  background: rgba(15,12,41,.90); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}
.session-progress-bar {
  height: 4px; background: var(--glass);
  border-radius: 2px; overflow: hidden; margin-top: 8px;
}
.session-progress-fill {
  height: 100%; background: linear-gradient(90deg, #D8B4FE, #99F6E4);
  border-radius: 2px; transition: width .4s ease;
}
.session-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.session-exercise-name {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 4px;
  letter-spacing: -.02em;
}
.session-set-counter {
  font-size: .85rem; color: var(--text-60); margin-bottom: 16px;
}
.session-timer {
  font-size: 3.5rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--spine-blue); margin: 16px 0;
}
.session-actions {
  display: flex; gap: 12px; margin-top: 24px; width: 100%;
  justify-content: center;
}
.session-footer {
  padding: 16px; display: flex; gap: 12px;
  border-top: 1px solid var(--glass-border);
}

/* ── Timer Ring ── */
.timer-ring {
  width: 180px; height: 180px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: conic-gradient(var(--spine-blue) var(--progress, 100%), rgba(255,255,255,.08) 0);
  margin: 24px auto;
}
.timer-ring::before {
  content: ''; position: absolute;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--bg);
}
.timer-ring-text {
  position: relative; z-index: 1;
  font-size: 2.5rem; font-weight: 800;
  color: var(--spine-blue); letter-spacing: -.03em;
}

/* ── Streak Calendar ── */
.streak-calendar {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px; margin: 12px 0;
}
.streak-day {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 600;
}
.streak-done { background: rgba(153,246,228,.20); color: var(--secondary); }
.streak-missed { background: rgba(255,255,255,.04); color: var(--text-40); }
.streak-today { background: var(--primary-dim); color: var(--primary); border: 2px solid var(--primary); }
.streak-future { background: transparent; color: var(--text-40); opacity: .3; }
.streak-day-labels {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px; margin-bottom: 4px;
}
.streak-day-label {
  text-align: center; font-size: .6rem; font-weight: 700;
  color: var(--text-40); text-transform: uppercase;
}

/* ── Pain Chart ── */
.pain-chart { margin: 16px 0; }
.pain-chart svg { width: 100%; height: 120px; }

/* ── Milestones ── */
.milestone {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-border);
  margin-bottom: 8px;
}
.milestone.earned {
  background: linear-gradient(135deg, rgba(216,180,254,.10), rgba(153,246,228,.06));
  border-color: rgba(216,180,254,.20);
}
.milestone.locked { opacity: .4; }
.milestone-icon { font-size: 1.5rem; }
.milestone-name { font-weight: 700; font-size: .88rem; }
.milestone-desc { font-size: .75rem; color: var(--text-40); }

/* ── Learn Cards ── */
.learn-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); margin-bottom: 10px;
  overflow: hidden; transition: border-color .2s;
}
.learn-card.read { opacity: .6; }
.learn-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; cursor: pointer;
}
.learn-card-header:active { background: var(--glass-hover); }
.learn-card-check {
  width: 24px; height: 24px; min-width: 24px;
  border: 2px solid var(--glass-border);
  border-radius: 8px; display: grid; place-content: center;
  font-size: .8rem; font-weight: 700;
}
.learn-card.read .learn-card-check {
  background: rgba(52,211,153,.15); border-color: var(--success);
  color: var(--success);
}
.learn-card-title { font-weight: 700; font-size: .88rem; flex: 1; }
.learn-card-arrow {
  color: var(--text-40); transition: transform .25s;
  width: 18px; height: 18px;
}
.learn-card.open .learn-card-arrow { transform: rotate(180deg); }
.learn-card-body {
  padding: 0 16px 16px;
  font-size: .88rem; line-height: 1.7; color: var(--text-60);
  animation: fadeIn .2s ease;
}
.learn-card-body strong { color: var(--text); }
.learn-card-body ul { padding-left: 16px; margin: 8px 0; }
.learn-card-body li { margin-bottom: 6px; }

/* ── Lesson Modal ── */
.lesson-modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15,12,41,.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fadeIn .25s ease;
}
.lesson-card {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px; max-width: 400px; width: 100%;
  box-shadow: var(--shadow-card); animation: slideUp .3s ease;
  max-height: 80vh; overflow-y: auto;
}
.lesson-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.lesson-counter {
  font-size: .72rem; font-weight: 700;
  color: var(--primary); background: var(--primary-dim);
  padding: 3px 10px; border-radius: 9999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.lesson-close {
  background: none; border: none; color: var(--text-40);
  font-size: 1.4rem; cursor: pointer; padding: 4px 8px;
  min-width: 40px; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.lesson-text {
  font-size: .92rem; line-height: 1.7; color: var(--text-60);
}
.lesson-text strong { color: var(--text); }

/* ── Settings ── */
.settings-section {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); margin-bottom: 10px; overflow: hidden;
}
.settings-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; cursor: pointer; transition: background .15s;
}
.settings-header:active { background: var(--glass-hover); }
.settings-header h3 { margin: 0; font-size: 1rem; }
.settings-body { padding: 0 24px 20px; animation: fadeIn .2s ease; }
.settings-input {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); font-size: .9rem;
  background: var(--glass); color: var(--text);
  min-height: 44px; font-family: var(--font);
}
.settings-input:focus { outline: none; border-color: var(--primary); }

/* Toggle switch */
.toggle-switch {
  width: 48px; height: 28px; border-radius: 14px;
  background: rgba(255,255,255,.12); border: none;
  position: relative; cursor: pointer; transition: background .2s;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 11px;
  background: var(--text-40); transition: all .2s;
}
.toggle-switch.on { background: var(--primary-dim); }
.toggle-switch.on::after { left: 23px; background: var(--primary); }
.notif-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .9rem; font-weight: 600; color: var(--text-60);
}
.notif-toggle-row:last-child { border: none; }

.btn-settings-danger {
  width: 100%; padding: 14px 16px; margin-top: 16px;
  background: rgba(248,113,113,.08); color: var(--danger);
  border: 1px solid rgba(248,113,113,.20);
  border-radius: var(--radius-sm); font-size: .88rem;
  font-weight: 700; cursor: pointer; text-align: center;
  font-family: var(--font);
}

/* ── Atmospheric Orbs ── */
.orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: -1;
  filter: blur(80px);
}
.orb-1 {
  width: 300px; height: 300px; top: -100px; right: -100px;
  background: rgba(216,180,254,.08);
}
.orb-2 {
  width: 250px; height: 250px; bottom: 100px; left: -80px;
  background: rgba(153,246,228,.06);
}
.orb-3 {
  width: 200px; height: 200px; top: 40%; right: -60px;
  background: rgba(147,197,253,.05);
}

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }