/* ============================================================
   Кошель · MiniApp · design tokens
   ============================================================ */
:root {
  --bg:            #F4F7FB;
  --bg-elev:       #FFFFFF;
  --bg-tint:       #F8FAFD;

  --accent:        #2E7DFF;
  --accent-hover:  #1E6BFF;
  --accent-tint:   #EAF2FF;
  --accent-tint-2: #DDE9FE;
  --accent-deep:   #0F3D8C;

  --success:       #22C55E;
  --success-tint:  #E7F8EE;
  --warn:          #F59E0B;
  --warn-tint:     #FFF3E0;
  --danger:        #E5484D;
  --danger-tint:   #FDE7E7;

  --text:          #0A1428;
  --text-2:        #3A4A66;
  --muted:         #6B7A94;
  --muted-2:       #94A2B8;

  --border:        #E5EBF4;
  --border-strong: #D5DEEC;

  --radius-lg:     22px;
  --radius-md:     14px;
  --radius-sm:     10px;
  --radius-full:   999px;

  --shadow-1: 0 1px 2px rgba(11,18,32,.04);
  --shadow-2: 0 2px 4px rgba(11,18,32,.03), 0 12px 32px -8px rgba(11,18,32,.08);
  --shadow-lift: 0 12px 32px -6px rgba(46,125,255,.35), 0 4px 12px rgba(46,125,255,.18);
  --shadow-sheet: 0 -8px 40px rgba(11,18,32,.12);

  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-in: cubic-bezier(.5,0,.9,.3);
  --dur: 240ms;
  --dur-fast: 160ms;

  --nav-h: 78px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter",
              ui-sans-serif, system-ui, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}
body { min-height: 100vh; }

button {
  font-family: inherit; font-size: inherit; color: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
}
a { color: var(--accent); text-decoration: none; }

/* ============================================================
   App shell
   ============================================================ */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-top: var(--safe-top);
  position: relative;
  isolation: isolate;
}

.screen {
  display: none;
  padding: 8px 20px 0;
  animation: fadeIn 320ms var(--ease);
}
.screen.is-active { display: block; }

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

.hdr {
  padding: 18px 4px 12px;
}
.hdr-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hdr-title {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 4px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.section-title .link {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}

.spacer-nav { height: calc(var(--nav-h) + var(--safe-bot) + 24px); }


/* ============================================================
   Hero — Home
   ============================================================ */
.hero {
  background: linear-gradient(160deg, #2E7DFF 0%, #4E93F5 55%, #6BA8FF 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 110% -10%, rgba(255,255,255,.35) 0%, transparent 55%),
    radial-gradient(90% 60% at -10% 110%, rgba(15,61,140,.35) 0%, transparent 55%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-label {
  font-size: 13px;
  font-weight: 500;
  opacity: .85;
  letter-spacing: 0.02em;
}
.hero-amount {
  margin-top: 6px;
  display: flex; align-items: baseline; gap: 6px;
}
.hero-num {
  font-family: var(--font-num);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-cur { font-size: 22px; font-weight: 600; opacity: .85; }
.hero-sub {
  margin-top: 4px;
  font-size: 14px;
  opacity: .82;
  display: flex; align-items: center; gap: 8px;
}
.hero-days { font-weight: 600; opacity: 1; }
.hero-dot { opacity: .55; }

.hero-bar {
  margin-top: 18px;
  height: 8px;
  background: rgba(255,255,255,.24);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.hero-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.9) 100%);
  border-radius: var(--radius-full);
  transition: width 600ms var(--ease);
}
.hero-bar-legend {
  margin-top: 8px;
  font-size: 12px;
  display: flex; justify-content: space-between;
  opacity: .78;
}


/* ============================================================
   Chips
   ============================================================ */
.chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.chip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-1);
}
.chip-ico { font-size: 20px; }
.chip-txt { font-size: 12.5px; color: var(--text-2); line-height: 1.3; }
.chip-txt b { color: var(--text); font-weight: 600; }
.chip-streak { background: linear-gradient(180deg, #FFF9EE 0%, #FFFFFF 100%); border-color: #F6E5C1; }
.chip-saved  { background: linear-gradient(180deg, #EDFBF2 0%, #FFFFFF 100%); border-color: #C9EBD8; }


/* ============================================================
   Transactions list
   ============================================================ */
.tx-list {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.tx {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.tx:last-child { border-bottom: 0; }
.tx-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px;
}
.tx-name { font-weight: 600; font-size: 15px; color: var(--text); }
.tx-meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tx-amount {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tx-amount-in { color: var(--success); }

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tag-impulse { background: var(--danger-tint); color: var(--danger); }


/* ============================================================
   Pending / deferred card
   ============================================================ */
.pending-card {
  margin-top: 14px;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
  border: 1px solid #F0DEB1;
  border-radius: var(--radius-lg);
  padding: 16px 16px 12px;
  box-shadow: var(--shadow-1);
}
.pending-title { font-size: 13px; font-weight: 600; color: #A67C00; }
.pending-body { margin-top: 8px; font-size: 15px; color: var(--text); }
.pending-actions {
  margin-top: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}


/* ============================================================
   Buttons
   ============================================================ */
.btn {
  height: 48px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), box-shadow var(--dur-fast);
  padding: 0 18px;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--accent-tint);
  color: var(--accent);
}
.btn-ghost {
  background: var(--bg-tint);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-block { width: 100%; }
.btn-ai { margin-top: 16px; width: 100%; }


/* ============================================================
   Period switcher
   ============================================================ */
.period-switch {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  box-shadow: var(--shadow-1);
}
.ps-btn {
  height: 38px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: all var(--dur-fast);
}
.ps-btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(46,125,255,.35);
}


/* ============================================================
   Donut chart card
   ============================================================ */
.donut-card {
  margin-top: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-2);
  text-align: center;
}
.donut-wrap {
  position: relative;
  width: 210px; height: 210px;
  margin: 0 auto;
}
.donut { width: 100%; height: 100%; transform: rotate(0deg); display: block; }
.donut circle { transition: stroke-dashoffset 800ms var(--ease), stroke-dasharray 800ms var(--ease); }
.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 2px;
}
.donut-num {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
}
.donut-lbl { font-size: 12.5px; color: var(--muted); }


/* ============================================================
   Category rows (reports)
   ============================================================ */
.cat-list {
  display: flex; flex-direction: column; gap: 10px;
}
.cat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
}
.cat-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
}
.cat-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 17px;
}
.cat-name { font-weight: 600; font-size: 15px; color: var(--text); }
.cat-amt {
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cat-bar {
  margin-top: 10px;
  height: 6px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.cat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 700ms var(--ease);
}
.cat-legend {
  margin-top: 6px;
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.cat-legend .warn { color: var(--warn); font-weight: 600; }
.cat-legend .danger { color: var(--danger); font-weight: 600; }


/* ============================================================
   Goals
   ============================================================ */
.goal-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-2);
  margin-top: 12px;
}
.goal-primary {
  background: linear-gradient(180deg, #EAF2FF 0%, #FFFFFF 60%);
  border-color: #C9DEFF;
}
.goal-title { font-size: 16px; font-weight: 600; color: var(--text); }
.goal-amounts {
  margin-top: 6px;
  display: flex; align-items: baseline; gap: 6px;
}
.goal-cur {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.goal-of { font-size: 14px; color: var(--muted); font-weight: 500; }
.goal-bar {
  margin-top: 12px;
  height: 8px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.goal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #6BA8FF 100%);
  border-radius: var(--radius-full);
  transition: width 700ms var(--ease);
}
.goal-meta {
  margin-top: 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.btn-mini {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  transition: transform var(--dur-fast);
}
.btn-mini:active { transform: scale(.95); }

.add-goal-btn {
  margin-top: 14px;
  width: 100%;
  height: 52px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  background: transparent;
  transition: all var(--dur-fast);
}
.add-goal-btn:active { background: var(--bg-tint); border-color: var(--accent); color: var(--accent); }


/* ============================================================
   Settings
   ============================================================ */
.settings-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  margin-top: 10px;
}
.settings-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  width: 100%; text-align: left;
}
.settings-row:last-child { border-bottom: 0; }
.sr-lbl { font-size: 14.5px; color: var(--text); font-weight: 500; }
.sr-val {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.btn-row { transition: background var(--dur-fast); }
.btn-row:active { background: var(--bg-tint); }
.chev { font-size: 22px; color: var(--muted-2); font-weight: 400; }


/* ============================================================
   FAB
   ============================================================ */
.fab {
  position: fixed;
  right: 22px;
  bottom: calc(var(--nav-h) + var(--safe-bot) + 16px);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(46,125,255,.4), 0 4px 12px rgba(46,125,255,.24);
  z-index: 30;
  transition: transform var(--dur) var(--ease);
}
.fab:active { transform: scale(.92); }


/* ============================================================
   Bottom nav
   ============================================================ */
.nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-h) + var(--safe-bot));
  padding-bottom: var(--safe-bot);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 20;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 500;
  transition: color var(--dur-fast);
}
.nav-btn.is-active { color: var(--accent); }
.nav-btn.is-active svg { stroke-width: 2.2; }


/* ============================================================
   Sheet (add expense)
   ============================================================ */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,18,32,.5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  z-index: 50;
  transition: opacity var(--dur) var(--ease);
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 50%; bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%; max-width: 480px;
  background: var(--bg-elev);
  border-radius: 24px 24px 0 0;
  padding: 6px 20px calc(var(--safe-bot) + 20px);
  box-shadow: var(--shadow-sheet);
  z-index: 60;
  transition: transform 360ms var(--ease);
  max-height: 92vh;
  overflow-y: auto;
}
.sheet.is-open { transform: translate(-50%, 0); }
.sheet-grip {
  width: 40px; height: 4px;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  margin: 8px auto 12px;
}
.sheet-hdr {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
}
.sheet-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--muted);
  font-size: 14px;
  display: grid; place-items: center;
}
.sheet-title { font-weight: 600; font-size: 16px; text-align: center; color: var(--text); }
.sheet-switch {
  display: flex;
  background: var(--bg-tint);
  border-radius: var(--radius-full);
  padding: 3px;
  font-size: 12px; font-weight: 600;
}
.sheet-switch .ss-on {
  padding: 6px 12px;
  background: var(--bg-elev);
  border-radius: var(--radius-full);
  color: var(--accent);
  box-shadow: var(--shadow-1);
}
.sheet-switch .ss-off {
  padding: 6px 12px;
  color: var(--muted);
}

.calc {
  margin-top: 24px;
  text-align: center;
}
.calc-display {
  display: inline-flex; align-items: baseline; gap: 6px;
}
.calc-num {
  font-family: var(--font-num);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.calc-cur { font-size: 28px; font-weight: 600; color: var(--muted); }
.calc-hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cat-pill {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--dur-fast);
}
.cat-pill span { font-size: 22px; }
.cat-pill.is-active {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.cat-pill:active { transform: scale(.96); }

.sheet-actions { margin-top: 22px; }


/* ============================================================
   Anti-impulse Wizard
   ============================================================ */
.wizard {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  max-width: 480px;
  background: var(--bg);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  overflow-y: auto;
  padding: var(--safe-top) 20px calc(var(--safe-bot) + 24px);
}
.wizard.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wiz-hdr {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
}
.wiz-back, .wiz-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 18px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-1);
}
.wiz-step {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.wiz-progress {
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 6px 0 24px;
}
.wiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 400ms var(--ease);
}

.wiz-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.wiz-eyebrow-danger { color: var(--danger); }

.wiz-q {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
  margin-top: 8px;
}
.wiz-q b { color: var(--danger); font-weight: 700; }
.wiz-streak { color: var(--warn); }

.wiz-obj {
  margin-top: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
  display: flex; justify-content: space-between; align-items: center;
}
.wiz-obj-name { font-weight: 600; }
.wiz-obj-amt {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.wiz-body {
  position: relative;
}
.wiz-step-view {
  display: none;
  animation: slideIn 320ms var(--ease);
}
.wiz-step-view.is-active { display: block; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wiz-choices {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.wiz-choice {
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  box-shadow: var(--shadow-1);
  transition: all var(--dur-fast) var(--ease);
}
.wiz-choice:active { transform: scale(.98); }
.wiz-choice:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}
.wc-emo { font-size: 26px; text-align: center; }
.wc-body { display: flex; flex-direction: column; gap: 2px; }
.wc-body b { font-size: 15.5px; font-weight: 600; color: var(--text); }
.wc-body span { font-size: 13px; color: var(--muted); }

.wiz-choice-good  { border-color: #C9EBD8; background: linear-gradient(180deg, #F4FBF6 0%, #FFF 100%); }
.wiz-choice-warn  { border-color: #F0DEB1; background: linear-gradient(180deg, #FFFBEB 0%, #FFF 100%); }
.wiz-choice-bad   { border-color: #F4C7C8; background: linear-gradient(180deg, #FFF5F5 0%, #FFF 100%); }
.wiz-choice-neutral { }
.wiz-choice-final {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}
.wiz-choice-final .wc-body b,
.wiz-choice-final .wc-body span { color: #fff; }
.wiz-choice-final .wc-body span { opacity: .8; }

/* Step 2: 10/10/10 rows */
.ten-rows {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.ten-row {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-1);
}
.ten-emo { font-size: 20px; }
.ten-body { display: flex; flex-direction: column; }
.ten-body b { font-size: 14.5px; font-weight: 600; }
.ten-body span { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Step 3: alternatives */
.alt-list {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.alt {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-1);
}
.alt-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px;
}
.alt-body { display: flex; flex-direction: column; }
.alt-body b { font-size: 15px; font-weight: 600; }
.alt-body span { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.3; }

/* Step 4: comparison */
.wiz-compare {
  margin-top: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 4px;
}
.wc-line {
  display: grid;
  grid-template-columns: 1fr auto 18px auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 13.5px;
}
.wc-line:last-child { border-bottom: 0; }
.wc-lbl { color: var(--muted); }
.wc-was { color: var(--muted); text-decoration: line-through; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.wc-arrow { color: var(--muted-2); text-align: center; }
.wc-now { font-weight: 700; font-family: var(--font-num); font-variant-numeric: tabular-nums; color: var(--text); }
.wc-now-bad { color: var(--danger); }
