:root {
  --bg: #F3F5FA;
  --card: #FFFFFF;
  --card-2: #F7F8FC;
  --text: #0E1525;
  --muted: #667085;
  --faint: #98A2B3;
  --line: #E7EAF2;
  --primary: #3D5AFE;
  --primary-2: #7C4DFF;
  --primary-soft: #EEF1FF;
  --primary-text: #2F46D6;
  --accent: #FF7A1A;
  --accent-soft: #FFF1E6;
  --success: #12A150;
  --success-soft: #E6F7EE;
  --danger: #E5383B;
  --danger-soft: #FDECEC;
  --warn: #D97706;
  --warn-soft: #FEF5E7;
  --star: #FDB022;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .16);
  --r: 18px;
  --r-sm: 12px;
  --hero: linear-gradient(135deg, #3D5AFE 0%, #6A4DFF 55%, #9B5CFF 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  --bg: #0B0F17;
  --card: #151B27;
  --card-2: #1B2231;
  --text: #EDF0F7;
  --muted: #98A2B3;
  --faint: #6B7587;
  --line: #242C3B;
  --primary: #5B74FF;
  --primary-2: #8B63FF;
  --primary-soft: #1D2547;
  --primary-text: #A5B4FF;
  --accent-soft: #3A2412;
  --success-soft: #0F2E1F;
  --danger-soft: #3A1717;
  --warn-soft: #3A2A10;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --hero: linear-gradient(135deg, #2E47E0 0%, #5536E0 55%, #7B3FE6 100%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--primary-text); text-decoration: none; }
.ic { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.num { font-variant-numeric: tabular-nums; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; }
.page { padding: 16px 16px calc(96px + var(--safe-b)); animation: fadeIn .22s ease; }
.page.no-nav { padding-bottom: calc(110px + var(--safe-b)); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- typography */
h1 { font-size: 26px; line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 20px; margin: 0; font-weight: 750; letter-spacing: -.01em; }
h3 { font-size: 16px; margin: 0; font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap16 { gap: 16px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 12px; }
.section-title h2 { font-size: 18px; }
.section-title button { color: var(--primary-text); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 2px; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.card.tight { padding: 12px; }
.card + .card { margin-top: 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.list-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.list-item + .list-item { border-top: 1px solid var(--line); }
.list-item .chev { color: var(--faint); }
.list-item:active { background: var(--card-2); }
.icon-box { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.ib-blue { background: var(--primary-soft); color: var(--primary-text); }
.ib-orange { background: var(--accent-soft); color: var(--accent); }
.ib-green { background: var(--success-soft); color: var(--success); }
.ib-red { background: var(--danger-soft); color: var(--danger); }
.ib-violet { background: #F2ECFF; color: #7C3AED; }
[data-theme="dark"] .ib-violet { background: #2A1F47; color: #B794F6; }
.ib-gray { background: var(--card-2); color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 650; font-size: 15px;
  background: var(--primary); color: #fff; transition: transform .08s ease, opacity .15s, background .15s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.grad { background: var(--hero); box-shadow: 0 8px 20px rgba(61, 90, 254, .3); }
.btn.soft { background: var(--primary-soft); color: var(--primary-text); }
.btn.ghost { background: var(--card-2); color: var(--text); }
.btn.outline { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.btn.success { background: var(--success); }
.btn.danger { background: var(--danger); }
.btn.danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn.orange { background: var(--accent); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.xs { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 9px; gap: 5px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); color: var(--text); }
.icon-btn.plain { box-shadow: none; background: var(--card-2); }
.link-btn { color: var(--primary-text); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- chips & badges */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 550; white-space: nowrap; flex-shrink: 0;
  transition: all .15s;
}
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.on-blue { background: var(--primary); color: #fff; border-color: var(--primary); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--card-2); color: var(--muted);
}
.badge.blue { background: var(--primary-soft); color: var(--primary-text); }
.badge.green { background: var(--success-soft); color: var(--success); }
.badge.orange { background: var(--accent-soft); color: var(--accent); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.dark { background: var(--text); color: var(--bg); }
.grade { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--success-soft); color: var(--success); font-weight: 750; font-size: 12px; }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--success); }
.dot.pulse { box-shadow: 0 0 0 0 rgba(18, 161, 80, .5); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0); } }

/* ---------------------------------------------------------------- avatar & stars */
.avatar { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 17px; flex-shrink: 0; letter-spacing: .02em; }
.avatar.lg { width: 84px; height: 84px; border-radius: 26px; font-size: 30px; }
.avatar.sm { width: 36px; height: 36px; border-radius: 12px; font-size: 13px; }
.avatar.xs { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.rating .ic { color: var(--star); }

/* ---------------------------------------------------------------- inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 2px; }
.input, .textarea, .select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1.5px solid var(--line);
  background: var(--card); outline: none; transition: border .15s, box-shadow .15s; font-size: 15px;
}
.textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-box .input { padding-left: 44px; height: 50px; border-radius: 15px; border-color: transparent; box-shadow: var(--shadow); }
.seg { display: flex; background: var(--card-2); padding: 4px; border-radius: 13px; gap: 4px; }
.seg button { flex: 1; height: 38px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.toggle { width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle.on { background: var(--success); }
.toggle.on::after { transform: translateX(20px); }
input[type=range] { width: 100%; accent-color: var(--primary); }

/* ---------------------------------------------------------------- hero */
.hero {
  background: var(--hero); color: #fff; border-radius: 26px; padding: 20px; position: relative; overflow: hidden;
  box-shadow: 0 14px 34px rgba(61, 90, 254, .28);
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.hero::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.hero::after { width: 140px; height: 140px; right: 40px; bottom: -80px; background: rgba(255, 255, 255, .06); }
.hero > * { position: relative; z-index: 1; }
.hero .muted { color: rgba(255, 255, 255, .78); }
.hero .search-box .input { background: #fff; color: #0E1525; border: 0; }
.balance-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); padding: 7px 12px; border-radius: 999px; font-weight: 650; font-size: 14px; color: #fff; }

.exam-banner {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r);
  background: linear-gradient(135deg, #FF7A1A, #FF4D6D); color: #fff; box-shadow: 0 10px 24px rgba(255, 90, 50, .25); width: 100%; text-align: left;
}
.exam-banner .icon-box { background: rgba(255, 255, 255, .2); color: #fff; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.quick .icon-box { width: 54px; height: 54px; border-radius: 18px; box-shadow: var(--shadow); }

.course-card { width: 150px; flex-shrink: 0; background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; gap: 10px; }
.course-card .t { font-weight: 650; font-size: 14px; line-height: 1.25; min-height: 36px; }

/* ---------------------------------------------------------------- tutor card */
.tutor-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: block; width: 100%; text-align: left; transition: transform .1s; }
.tutor-card:active { transform: scale(.985); }
.tutor-card + .tutor-card { margin-top: 12px; }
.tutor-card .name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 5px; }
.tutor-card .verified { color: var(--primary); }
.tutor-card .meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.tutor-card .courses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.course-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card-2); border-radius: 9px; padding: 4px 4px 4px 9px; font-size: 12px; font-weight: 600; }
.tutor-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.price small { font-weight: 500; color: var(--muted); font-size: 12px; }
.next-slot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--success); }

/* ---------------------------------------------------------------- tutor profile */
.profile-head { text-align: center; padding: 8px 0 4px; }
.profile-head .avatar { margin: 0 auto 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 4px; }
.stat-row > div { text-align: center; }
.stat-row > div + div { border-left: 1px solid var(--line); }
.stat-row .v { font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; }
.stat-row .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.days::-webkit-scrollbar { display: none; }
.day { flex-shrink: 0; width: 64px; padding: 10px 0; border-radius: 14px; background: var(--card-2); text-align: center; border: 1.5px solid transparent; }
.day .d { font-size: 12px; color: var(--muted); font-weight: 600; }
.day .n { font-size: 18px; font-weight: 800; }
.day .c { font-size: 11px; color: var(--success); font-weight: 600; }
.day.on { background: var(--primary-soft); border-color: var(--primary); }
.day.empty { opacity: .45; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { height: 42px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 650; font-size: 14px; background: var(--card); }
.slot.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.dist { display: grid; grid-template-columns: 14px 1fr 26px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.bar { height: 7px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--star); }
.bar.blue > i { background: var(--primary); }
.bar.green > i { background: var(--success); }
.review + .review { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + var(--safe-b));
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.sticky-cta > .inner { max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }

/* ---------------------------------------------------------------- bottom nav */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b);
}
.nav .inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--faint); position: relative; }
.nav button.on { color: var(--primary); }
.nav button.on .ic { transform: translateY(-1px); }
.nav .ndot { position: absolute; top: 9px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--card); }

/* ---------------------------------------------------------------- topbar */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 40px; }
.topbar h1 { font-size: 24px; }

/* ---------------------------------------------------------------- sessions */
.session { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.session + .session { margin-top: 12px; }
.session .when { font-weight: 750; font-size: 15px; }
.session .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.session .actions .btn { flex: 1; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.st-pending { background: var(--warn-soft); color: var(--warn); }
.st-confirmed { background: var(--primary-soft); color: var(--primary-text); }
.st-completed { background: var(--success-soft); color: var(--success); }
.st-cancelled, .st-declined { background: var(--card-2); color: var(--muted); }
.st-disputed { background: var(--danger-soft); color: var(--danger); }
.st-refunded { background: var(--card-2); color: var(--muted); }
.escrow-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 600; }

/* ---------------------------------------------------------------- sheet */
.backdrop { position: fixed; inset: 0; background: rgba(8, 12, 22, .5); z-index: 60; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 26px 26px 0 0; padding: 8px 16px calc(20px + var(--safe-b));
  animation: up .28s cubic-bezier(.2, .9, .3, 1); max-width: 560px; margin: 0 auto;
}
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 4px auto 14px; }
.sheet h2 { margin-bottom: 14px; }
.breakdown { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.breakdown .row { justify-content: space-between; }
.breakdown .total { border-top: 1px dashed var(--line); padding-top: 10px; font-size: 17px; font-weight: 800; }

/* ---------------------------------------------------------------- misc */
.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 100;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; width: max-content; max-width: calc(100% - 32px); animation: drop .25s ease;
}
.toast.err { background: var(--danger); color: #fff; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon-box { width: 64px; height: 64px; border-radius: 22px; margin: 0 auto 14px; }
.skeleton { background: linear-gradient(90deg, var(--card-2) 25%, var(--line) 50%, var(--card-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.kpi { background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.kpi .v { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n { width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.progress { height: 6px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--hero); border-radius: 99px; transition: width .3s ease; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); text-align: left; font-weight: 550; transition: all .15s; }
.option + .option { margin-top: 8px; }
.option .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.option .box.round { border-radius: 50%; }
.option.on { border-color: var(--primary); background: var(--primary-soft); }
.option.on .box { background: var(--primary); border-color: var(--primary); }
.scale { display: grid; gap: 6px; }
.scale button { height: 46px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); font-weight: 700; }
.scale button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.success-anim { width: 96px; height: 96px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 24px auto 16px; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.onb { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; padding: 24px 20px calc(24px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.onb .art { flex: 1; display: grid; place-items: center; }
.onb .art .circle { width: 200px; height: 200px; border-radius: 60px; background: var(--hero); display: grid; place-items: center; color: #fff; box-shadow: 0 20px 50px rgba(61, 90, 254, .35); transform: rotate(-6deg); }
.onb .art .circle .ic { transform: rotate(6deg); }
.onb .dots { display: flex; gap: 6px; justify-content: center; margin: 18px 0; }
.onb .dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: all .2s; }
.onb .dots i.on { width: 24px; background: var(--primary); }
.persona { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); width: 100%; text-align: left; }
.persona + .persona { margin-top: 10px; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.tx + .tx { border-top: 1px solid var(--line); }
.plus { color: var(--success); }
.minus { color: var(--text); }
.file-drop { border: 2px dashed var(--line); border-radius: 16px; padding: 20px; text-align: center; color: var(--muted); display: block; cursor: pointer; }
.file-drop.has { border-color: var(--success); color: var(--success); background: var(--success-soft); }
.lang-switch { display: flex; gap: 6px; }
.lang-switch button { height: 32px; padding: 0 12px; border-radius: 10px; font-weight: 700; font-size: 13px; background: var(--card-2); color: var(--muted); }
.lang-switch button.on { background: var(--primary); color: #fff; }
.hr-text { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 20px 0 10px; }
.hr-text::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pass-card { background: linear-gradient(135deg, #111827, #312E81); color: #fff; border-radius: var(--r); padding: 18px; position: relative; overflow: hidden; }
.pass-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(167, 139, 250, .5), transparent 70%); }
.pass-card > * { position: relative; z-index: 1; }
.pass-card .muted { color: rgba(255, 255, 255, .7); }
.ref-code { font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 800; letter-spacing: .12em; }
.mb8 { margin-bottom: 8px; }
.slot.booked { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.slot.past { opacity: .35; }
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 16px; }
[data-theme="dark"] .seg button.on { background: #2B3548; }
/* ---------------------------------------------------------------- sign-up */
.reg h1 { font-size: 25px; }
.reg-steps { display: flex; gap: 6px; }
.reg-steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background .3s; }
.reg-steps i.on { background: var(--primary); }
.reg-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; margin: 28px 0 18px; }
.email-box { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 13px; background: var(--card); overflow: hidden; transition: border .15s, box-shadow .15s; }
.email-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.email-box.bad { border-color: var(--danger); }
.email-box.good { border-color: var(--success); }
.email-box .input { border: 0; box-shadow: none !important; flex: 1; min-width: 0; font-size: 18px; font-weight: 700; letter-spacing: .06em; padding-right: 4px; }
.email-box .suffix { padding-right: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.err-text { color: var(--danger); font-weight: 600; }
.code-input { height: 60px; text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .45em; }
.demo-code { border: 1.5px dashed var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 12px 14px; }
.demo-code .small { color: var(--text); }
.code-big { font-size: 26px; font-weight: 800; letter-spacing: .3em; color: var(--text); cursor: pointer; }

/* ---------------------------------------------------------------- maintenance */
.maint { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; max-width: 460px; margin: 0 auto; }
.maint-art { width: 128px; height: 128px; border-radius: 38px; display: grid; place-items: center; color: #fff; margin-bottom: 24px;
  background: linear-gradient(135deg, #FF9F1C, #FF5A36); box-shadow: 0 18px 44px rgba(255, 110, 40, .35); animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.maint-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px;
  background: linear-gradient(90deg, #FF9F1C, #FF5A36); color: #fff; font-size: 12px; font-weight: 700; }
