/* =====================================================================
   ReadQuest AI — components.css
   Buttons, cards, pills, progress, stats, badges, reward, forms, landing, modal, toasts, tabs, tables
   Ported unchanged from the original app.css (v2) unless marked NEW.
   ===================================================================== */
/* ---------- Buttons ---------- */
.btn {
  --b: var(--primary); --b-d: var(--primary-700); --t: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--b); color: var(--t); box-shadow: 0 5px 0 var(--b-d);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s; user-select: none;
}
.btn:hover { filter: brightness(1.05); color: var(--t); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--b-d); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--sun { --b: var(--sun); --b-d: #d39a0a; --t: var(--ink); }
.btn--mint { --b: var(--mint); --b-d: var(--mint-700); }
.btn--coral { --b: var(--coral); --b-d: var(--coral-700); }
.btn--grape { --b: var(--grape); --b-d: #7139b8; }
.btn--ghost { --b: #fff; --b-d: #d6dbef; --t: var(--ink); }
.btn--sm { min-height: 42px; padding: 8px 14px; font-size: 1rem; border-radius: 13px; }
.btn--lg { min-height: 64px; padding: 16px 30px; font-size: 1.35rem; border-radius: 20px; }
.btn--block { width: 100%; }
.btn .spinner { width: 20px; height: 20px; border-width: 3px; border-color: rgba(255,255,255,.4); border-top-color: currentColor; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .8); position: relative; }
.card--tight { padding: 18px; }
.card h2, .card h3 { margin-top: 0; }
.card__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin: 0 0 14px; }
.card__title .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); font-size: 1.3rem; }
.card--sun { background: linear-gradient(140deg, #fff8e1, #ffe9b0); }
.card--mint { background: linear-gradient(140deg, #e6fbf8, #c9f2ec); }
.card--grape { background: linear-gradient(140deg, #f5edff, #e6d6ff); }

.hero-card {
  position: relative; overflow: hidden; color: #fff; border-radius: 32px; padding: 30px 32px;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.25), transparent 40%), linear-gradient(130deg, #5b5bf7 0%, #7b5cf5 45%, #b65cf0 100%);
  box-shadow: var(--shadow-lg);
}
.hero-card h1 { color: #fff; margin-bottom: 6px; }
.hero-card .hero-sub { font-weight: 700; opacity: .95; margin-bottom: 18px; }
.hero-card__leo { position: absolute; right: 18px; bottom: -8px; width: 170px; animation: bob 3.2s ease-in-out infinite; }
.hero-card__content { max-width: calc(100% - 170px); position: relative; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; background: var(--primary-50); color: var(--primary-700); }
.hero-card .pill { background: rgba(255,255,255,.2); color: #fff; }
.pill--sun { background: var(--sun-50); color: #8a5b00; }
.pill--mint { background: var(--mint-50); color: var(--mint-700); }
.pill--coral { background: var(--coral-50); color: var(--coral-700); }
.pill--grape { background: var(--grape-50); color: #6a2fb5; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* ---------- Progress bars ---------- */
.progress { height: 22px; background: rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; position: relative; }
.card .progress { background: #edf0fb; }
.progress__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun), #ff9f43); position: relative; transition: width .8s cubic-bezier(.2,.8,.2,1); min-width: 22px; }
.progress__fill::after { content: ""; position: absolute; inset: 3px 8px auto; height: 6px; border-radius: 999px; background: rgba(255,255,255,.55); }
.progress--mint .progress__fill { background: linear-gradient(90deg, #4be3c9, var(--mint)); }
.progress-label { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 6px; font-size: .95rem; }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); text-align: center; }
.stat__icon { font-size: 1.8rem; line-height: 1; }
.stat__value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; margin-top: 6px; }
.stat__label { color: var(--muted); font-weight: 800; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Badges ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.badge { text-align: center; padding: 16px 10px; border-radius: 22px; background: linear-gradient(160deg, #fff, #f3f5ff); border: 2px solid #e8ebfa; }
.badge__icon { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: radial-gradient(circle at 30% 30%, #fff6cf, var(--sun)); box-shadow: 0 4px 0 #d39a0a; }
.badge__name { font-family: var(--font-display); font-weight: 800; line-height: 1.15; }
.badge__desc { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.badge.is-locked { filter: grayscale(1); opacity: .55; }
.badge.is-locked .badge__icon { background: #e6e8f2; box-shadow: 0 4px 0 #c7cbe0; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-mini { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: radial-gradient(circle at 30% 30%, #fff6cf, var(--sun)); box-shadow: 0 3px 0 #d39a0a; }
.badge-mini.is-locked { filter: grayscale(1); opacity: .4; }

/* ---------- Reward widget ---------- */
.reward { display: flex; gap: 16px; align-items: center; }
.reward__gift { font-size: 3.2rem; animation: wiggle 2.8s ease-in-out infinite; }
.reward__body { flex: 1; }
.reward__nums { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.reward.is-unlocked .reward__gift { animation: pop 1s ease infinite alternate; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@keyframes pop { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ---------- Trade card (dashboard) ---------- */
.trade-ticket { border-radius: 22px; padding: 18px; background: linear-gradient(140deg, #e6fbf8, #d3f3ff); border: 2px dashed #9fdcd3; }
.trade-ticket__day { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--mint-700); }
.trade-ticket__swap { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; margin: 6px 0; flex-wrap: wrap; }
.swap-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); box-shadow: 0 3px 0 #d39a0a; font-size: 1.2rem; }
.trade-ticket__meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field label, .field .label { display: block; font-weight: 800; margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 600; display: block; margin-top: 4px; }
.input, select.input {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 16px; border: 2px solid #dbe0f3; background: #fbfcff;
  font: inherit; font-weight: 700; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 91, 247, .2); }
.input[aria-invalid="true"] { border-color: var(--coral); }
.field-error { color: var(--coral-700); font-weight: 800; font-size: .92rem; margin-top: 6px; }
.alert { padding: 14px 16px; border-radius: 16px; font-weight: 700; display: flex; gap: 10px; align-items: flex-start; }
.alert--error { background: var(--coral-50); color: #9b2c2c; }
.alert--success { background: var(--mint-50); color: #0e6b62; }
.alert--info { background: var(--primary-50); color: var(--primary-700); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label {
  display: grid; place-items: center; gap: 2px; min-height: 76px; border-radius: 18px; background: #f5f7ff; border: 3px solid transparent;
  cursor: pointer; font-size: 2rem; transition: transform .1s, border-color .1s; font-weight: 800;
}
.choice-grid label small { font-size: .7rem; color: var(--muted); }
.choice-grid label:hover { transform: translateY(-2px); }
.choice-grid input:checked + label { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 4px 0 var(--primary); }
.choice-grid input:focus-visible + label { box-shadow: var(--focus); }
.choice-grid--text label { font-size: 1rem; min-height: 60px; padding: 8px; text-align: center; }

/* ---------- Auth / landing ---------- */
.auth-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: min(520px, 100%); }
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card .brand__leo { width: 64px; height: 64px; }
.auth-card .brand__text { font-size: 2rem; }
.auth-tag { text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--muted); margin-bottom: 20px; font-size: 1.15rem; }
.demo-box { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--sun-50); font-size: .92rem; font-weight: 600; }
.demo-box button { margin: 4px 4px 0 0; }

.landing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: calc(100vh - 160px); padding: 30px 0; }
.landing h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.02; margin-bottom: 14px; }
.landing h1 .hl { background: linear-gradient(90deg, var(--primary), var(--grape)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing .tagline { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--coral); margin-bottom: 12px; }
.landing .lead { font-size: 1.2rem; color: var(--ink-2); font-weight: 600; max-width: 34em; }
.landing__art { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.landing__blob { position: absolute; inset: 6%; border-radius: 44% 56% 52% 48% / 50% 42% 58% 50%; background: linear-gradient(140deg, #ffe08a, #ffb86b 40%, #ff8fa3); animation: morph 10s ease-in-out infinite; box-shadow: var(--shadow-lg); }
.landing__leo { position: absolute; inset: 12% 14% 4%; width: 72%; animation: bob 3.4s ease-in-out infinite; }
.float-chip { position: absolute; background: #fff; border-radius: 18px; padding: 10px 14px; font-weight: 800; box-shadow: var(--shadow); font-size: .95rem; display: flex; gap: 6px; align-items: center; animation: bob 4s ease-in-out infinite; }
.float-chip.f1 { top: 6%; left: -4%; } .float-chip.f2 { top: 40%; right: -6%; animation-delay: -1.3s; } .float-chip.f3 { bottom: 8%; left: 2%; animation-delay: -2.4s; }
.feature-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 26px; }
@keyframes morph { 0%,100% { border-radius: 44% 56% 52% 48% / 50% 42% 58% 50%; } 50% { border-radius: 56% 44% 45% 55% / 42% 56% 44% 58%; } }

.speech-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); max-width: 34em; margin: 4px 0 6px; text-align: left; }
.speech-card img { flex-shrink: 0; background: var(--primary-50); border-radius: 50%; }
.speech-card p { margin: 0; font-weight: 600; }
.hero-card__leo { width: 150px; bottom: -6px; }

/* Reading-level switch */
.band-switch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #fff; border-radius: 18px; padding: 6px; box-shadow: var(--shadow-sm); }
.band-switch__label { font-weight: 800; font-size: .88rem; color: var(--muted); padding: 0 6px; }
.band-btn { border: 0; background: none; font: inherit; font-weight: 800; padding: 9px 14px; border-radius: 13px; cursor: pointer; color: var(--ink-2); }
.band-btn:hover { background: var(--primary-50); }
.band-btn.is-active { background: var(--primary); color: #fff; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 18px; background: rgba(31, 37, 68, .5); backdrop-filter: blur(3px); }
.modal__card { background: #fff; border-radius: 28px; padding: 28px; width: min(500px, 100%); box-shadow: var(--shadow-lg); text-align: center; max-height: 90vh; overflow: auto; }
.modal__icon { font-size: 3.4rem; }

/* ---------- Toasts ---------- */
.toast-region { position: fixed; top: 90px; right: 18px; z-index: 400; display: grid; gap: 10px; width: min(360px, calc(100vw - 36px)); }
.toast { background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg); font-weight: 800; border-left: 7px solid var(--primary); animation: toastin .35s ease; }
.toast--success { border-left-color: var(--mint); } .toast--error { border-left-color: var(--coral); } .toast--info { border-left-color: var(--sky); }
.toast.is-leaving { animation: toastout .3s ease forwards; }
@keyframes toastin { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastout { to { opacity: 0; transform: translateX(30px); } }

/* ---------- States ---------- */
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid #dfe3f6; border-top-color: var(--primary); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.state { text-align: center; padding: 34px 18px; }
.state__icon { font-size: 3.6rem; margin-bottom: 6px; }
.state h3 { margin-bottom: 4px; }
.state p { color: var(--muted); font-weight: 600; }
.loading-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.85); display: grid; place-items: center; z-index: 10; border-radius: inherit; }
.loading-overlay p { font-weight: 800; color: var(--muted); margin-top: 10px; }

/* ---------- Leaderboard ---------- */
.tabs { display: inline-flex; background: #fff; padding: 6px; border-radius: 18px; box-shadow: var(--shadow-sm); gap: 4px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 10px 18px; border-radius: 13px; text-decoration: none; font-weight: 800; color: var(--ink-2); border: 0; background: none; cursor: pointer; font: inherit; font-weight: 800; }
.tabs .is-active { background: var(--primary); color: #fff; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; max-width: 720px; margin: 10px auto 26px; }
.podium__spot { text-align: center; }
.podium__avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; font-size: 2.6rem; background: #fff; box-shadow: var(--shadow); border: 5px solid #fff; }
.podium__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.podium__pts { font-weight: 800; color: var(--muted); }
.podium__block { margin-top: 10px; border-radius: 20px 20px 8px 8px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: #fff; }
.podium__spot--1 .podium__block { height: 150px; background: linear-gradient(180deg, #ffd34d, #f5a623); }
.podium__spot--2 .podium__block { height: 112px; background: linear-gradient(180deg, #b8c4e6, #8f9cc6); }
.podium__spot--3 .podium__block { height: 90px; background: linear-gradient(180deg, #ffb48a, #e07b4a); }
.podium__spot--1 .podium__avatar { width: 104px; height: 104px; font-size: 3.2rem; border-color: var(--sun); }
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rank-list li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 10px 16px; box-shadow: var(--shadow-sm); font-weight: 800; }
.rank-list .rank { width: 36px; height: 36px; border-radius: 50%; background: #eef0f9; display: grid; place-items: center; font-family: var(--font-display); }
.rank-list .av { font-size: 1.6rem; }
.rank-list .pts { margin-left: auto; color: var(--primary-700); }
.rank-list .is-me { outline: 3px solid var(--sun); background: #fffbea; }

/* ---------- Tables (progress / admin) ---------- */
.table-wrap { overflow-x: auto; border-radius: 20px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef0f8; vertical-align: middle; }
.table th { background: #f6f7fd; font-weight: 800; color: var(--ink-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.table tr:last-child td { border-bottom: 0; }
.table .stars { color: var(--sun-600); letter-spacing: 1px; }


/* =====================================================================
   NEW · Ryan — the reading explorer (inline SVG character with moods)
   data-mood: idle | speaking | listening | happy | thinking | encourage
   ===================================================================== */
.ryan { display: inline-block; position: relative; line-height: 0; }
.ryan__svg { width: 100%; height: auto; display: block; overflow: visible; }
.ryan__svg * { transform-box: fill-box; }
.ryan__wave { transform-origin: 0% 100%; animation: ryan-wave 3.6s ease-in-out infinite; }
.ryan__eyes { transform-origin: 50% 50%; animation: ryan-blink 4.8s infinite; }
.ryan__talk, .ryan__grin { opacity: 0; }
.ryan__head { transform-origin: 50% 90%; transition: transform .3s; }
.ryan__brows { transition: transform .3s; transform-origin: 50% 50%; }
@keyframes ryan-wave { 0%, 60%, 100% { transform: rotate(0); } 68% { transform: rotate(-14deg); } 76% { transform: rotate(8deg); } 84% { transform: rotate(-10deg); } 92% { transform: rotate(4deg); } }
@keyframes ryan-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes ryan-talk { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes ryan-talk-smile { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ryan-jump { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-18%) rotate(-5deg); } 65% { transform: translateY(0) rotate(3deg); } }
@keyframes ryan-nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-6deg); } 65% { transform: rotate(4deg); } }
@keyframes ryan-sway { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }

.ryan[data-mood="idle"] .ryan__svg { animation: ryan-sway 3.2s ease-in-out infinite; }
.ryan[data-mood="speaking"] .ryan__talk { animation: ryan-talk .32s steps(1) infinite; }
.ryan[data-mood="speaking"] .ryan__smile { animation: ryan-talk-smile .32s steps(1) infinite; }
.ryan[data-mood="speaking"] .ryan__wave { animation: none; transform: rotate(-6deg); }
.ryan[data-mood="speaking"]::after,
.ryan[data-mood="listening"]::after {
  content: "🔊"; position: absolute; top: 2%; right: -6%; font-size: clamp(1rem, 2.2vw, 1.6rem); line-height: 1;
  animation: pop .5s ease infinite alternate;
}
.ryan[data-mood="listening"]::after { content: "👂"; }
.ryan[data-mood="listening"] .ryan__head { transform: rotate(-6deg); }
.ryan[data-mood="happy"] .ryan__svg { animation: ryan-jump .6s ease 2; }
.ryan[data-mood="happy"] .ryan__smile { opacity: 0; }
.ryan[data-mood="happy"] .ryan__grin { opacity: 1; }
.ryan[data-mood="happy"] .ryan__wave { animation: ryan-wave .9s ease-in-out infinite; }
.ryan[data-mood="thinking"] .ryan__head { transform: rotate(5deg); }
.ryan[data-mood="thinking"] .ryan__brows { transform: translateY(-3px); }
.ryan[data-mood="encourage"] .ryan__head { animation: ryan-nod .8s ease 1; }

/* Speech bubble that belongs to Ryan */
.ryan-bubble { position: relative; background: #fff; border-radius: 22px; padding: 14px 18px; box-shadow: var(--shadow); font-weight: 700; line-height: 1.45; }
.ryan-bubble strong { color: var(--primary-700); }
.ryan-bubble--left::after { content: ""; position: absolute; left: -12px; bottom: 22px; border: 12px solid transparent; border-right-color: #fff; border-left: 0; }
.ryan-bubble--down::after { content: ""; position: absolute; bottom: -12px; left: 34px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }

/* "Ask Ryan to read" — the voice feature presented as Ryan's power */
.btn-read { --b: #fff; --b-d: #f0b11a; --t: var(--ink); border: 3px solid var(--sun); }
.btn-read .ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); font-size: 1rem; }
.btn-read.is-speaking { animation: pulse-ring 1s ease infinite; }
.star-off { filter: grayscale(1); opacity: .25; }

/* Small HUD stat chips */
.hud { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hud__chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 800; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); }
.hud__chip b { font-family: var(--font-display); font-size: 1.15rem; }
.hud__chip .i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); }
.hud__chip small { color: var(--muted); font-weight: 800; }
a.pill { text-decoration: none; }
a.pill:hover { filter: brightness(.97); }

/* NEW · reward loop strip */
.loop { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: loop; }
.loop li { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 800; box-shadow: var(--shadow-sm); font-size: .92rem; }
.loop li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-50); }
.loop li + li::before { content: "→"; color: var(--muted); margin: 0 4px 0 -2px; }
.reward-hero .reward__gift { font-size: 4.2rem; }

/* Option groups (shared: profile, trades, wizard) — moved from swap.css */
.option-group { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.option-group input { position: absolute; opacity: 0; pointer-events: none; }
.option-group label { display: grid; place-items: center; gap: 4px; padding: 14px 10px; border-radius: 18px; background: #f5f7ff; border: 3px solid transparent; cursor: pointer; font-weight: 800; text-align: center; min-height: 86px; }
.option-group label .ico { font-size: 1.8rem; }
.option-group input:checked + label { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 4px 0 var(--primary); }
.option-group input:focus-visible + label { box-shadow: var(--focus); }
.option-group--sm { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.option-group--sm label { min-height: 56px; }
