:root {
  --bg: var(--tg-theme-bg-color, #0a1116);
  --surface: var(--tg-theme-secondary-bg-color, #141f27);
  --surface-soft: rgba(255, 255, 255, 0.07);
  --surface-strong: #1d2a34;
  --glass: rgba(20, 31, 39, 0.76);
  --glass-strong: rgba(25, 38, 48, 0.9);
  --text: var(--tg-theme-text-color, #f5f7fb);
  --muted: var(--tg-theme-hint-color, #95a5b3);
  --accent: var(--tg-theme-button-color, #32b7e8);
  --accent-text: var(--tg-theme-button-text-color, #ffffff);
  --line: rgba(255, 255, 255, 0.115);
  --line-strong: rgba(255, 255, 255, 0.18);
  --green: #4fd99a;
  --yellow: #ffd166;
  --red: #ff6b6b;
  --blue: #62c7ff;
  --violet: #a78bfa;
  --radius: 14px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  --soft-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  --bottom-nav-height: 88px;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(155deg, rgba(50, 183, 232, 0.18), rgba(79, 217, 154, 0.05) 34%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 18rem),
    var(--bg);
}

html.has-modal,
html.has-modal body {
  overflow: hidden;
  overscroll-behavior: none;
}

button {
  font: inherit;
  touch-action: manipulation;
  user-select: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  width: min(100%, 680px);
  margin: 0 auto;
}

.app-layout {
  min-height: 100vh;
  padding: calc(16px + env(safe-area-inset-top)) 10px calc(98px + env(safe-area-inset-bottom));
}

.tab-panel {
  animation: panel-enter 220ms ease both;
}

#app.soft-render .tab-panel,
#app.soft-render .exam-media,
#app.soft-render .exam-card,
#app.soft-render .exam-answer-card,
#app.soft-render .exam-result-hero,
#app.soft-render .practice-panel,
#app.soft-render .reward-chip,
#app.soft-render .question-media,
#app.soft-render .question-card,
#app.soft-render .review-block,
#app.soft-render .section,
#app.soft-render .hero {
  animation: none !important;
}

.loading-screen,
.state-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
  text-align: center;
}

.state-card {
  width: min(100%, 360px);
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(50, 183, 232, 0.24), rgba(79, 217, 154, 0.18));
  font-size: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--soft-shadow);
}

.top-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 4px 2px;
}

.top-bar-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-title > div {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.top-bar h1 {
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-back {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.topbar-back:active {
  transform: scale(0.95);
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
}

.user-chip {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.065);
  color: var(--muted);
  font-size: 13px;
}

.status-pill,
.tag,
.risk-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

button.status-pill {
  cursor: pointer;
}

.status-pill.premium {
  color: var(--yellow);
  background: rgba(255, 209, 102, 0.12);
}

.status-pill.free {
  color: var(--blue);
}

.hero,
.section,
.coach-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.coach-hero {
  background:
    linear-gradient(145deg, rgba(50, 183, 232, 0.16), rgba(79, 217, 154, 0.08)),
    var(--glass-strong);
}

.premium-hero {
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.16), rgba(167, 139, 250, 0.08), rgba(50, 183, 232, 0.07)),
    var(--glass-strong);
}

.premium-main-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 214, 112, 0.4);
  border-radius: calc(var(--radius) + 5px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 112, 0.25), transparent 39%),
    radial-gradient(circle at 0% 100%, rgba(158, 106, 255, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(49, 43, 30, 0.98), rgba(19, 27, 34, 0.98) 58%, rgba(27, 23, 38, 0.98));
  box-shadow:
    0 18px 42px rgba(3, 8, 12, 0.27),
    inset 0 1px rgba(255, 255, 255, 0.09);
}

.premium-main-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 209, 102, 0.28), transparent 64%);
  filter: blur(2px);
  pointer-events: none;
}

.premium-main-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 218, 126, 0.98), rgba(194, 151, 255, 0.75), transparent);
}

.premium-main-hero > * {
  position: relative;
  z-index: 1;
}

.premium-hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.premium-hero-sparkles span {
  position: absolute;
  color: rgba(255, 232, 170, 0.23);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.24);
}

.premium-hero-sparkles span:nth-child(1) {
  top: 18px;
  right: 82px;
  font-size: 18px;
}

.premium-hero-sparkles span:nth-child(2) {
  top: 70px;
  right: 28px;
  font-size: 11px;
}

.premium-hero-sparkles span:nth-child(3) {
  right: 108px;
  bottom: 18px;
  font-size: 9px;
}

.premium-orb {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.45), transparent 30%),
    linear-gradient(145deg, rgba(255, 209, 102, 0.35), rgba(167, 139, 250, 0.16)),
    rgba(255, 255, 255, 0.075);
  box-shadow: 0 16px 34px rgba(255, 209, 102, 0.11);
}

.premium-orb > span {
  color: #ffd66e;
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.55);
}

.premium-orb > small {
  position: absolute;
  top: 5px;
  right: 6px;
  color: #fff0bd;
  font-size: 10px;
}

.premium-readiness-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028)),
    rgba(4, 13, 18, 0.22);
}

.premium-readiness-card.preview {
  border-color: rgba(255, 222, 139, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 224, 146, 0.075), rgba(166, 116, 255, 0.045)),
    rgba(4, 13, 18, 0.3);
}

.premium-readiness-card .coach-head strong {
  max-width: 48%;
  color: #ffdc83;
  font-size: 12px;
  line-height: 1.18;
  text-align: right;
}

.premium-active-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(102, 231, 177, 0.25);
  border-radius: 999px;
  background: rgba(44, 181, 130, 0.11);
  color: #8aefc6;
  font-size: 9px;
  font-weight: 950;
}

.premium-readiness-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.premium-readiness-overview > div {
  min-width: 0;
}

.premium-readiness-overview small,
.premium-readiness-overview strong {
  display: block;
}

.premium-readiness-overview small {
  color: rgba(224, 232, 237, 0.7);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.premium-readiness-overview strong {
  margin-top: 3px;
  color: #ffe08a;
  font-size: 21px;
  font-weight: 1000;
  line-height: 1;
}

.premium-readiness-overview > span {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 222, 139, 0.14);
  border-radius: 13px;
  background: rgba(255, 211, 103, 0.07);
  font-size: 17px;
}

.premium-risk-summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255, 191, 95, 0.16);
  border-radius: 14px;
  background: rgba(255, 187, 79, 0.07);
}

.premium-risk-summary > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 197, 89, 0.1);
}

.premium-risk-summary > div {
  min-width: 0;
}

.premium-risk-summary small,
.premium-risk-summary strong {
  display: block;
}

.premium-risk-summary small {
  color: rgba(237, 225, 195, 0.66);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
}

.premium-risk-summary strong {
  margin-top: 2px;
  color: #ffd279;
  font-size: 13px;
  font-weight: 1000;
}

.premium-risk-summary p {
  margin: 6px 0 0;
  color: rgba(225, 232, 236, 0.7);
  font-size: 10px;
  line-height: 1.4;
}

.premium-risk-summary.highRisk {
  border-color: rgba(255, 103, 103, 0.22);
  background: rgba(171, 55, 55, 0.1);
}

.premium-risk-summary.highRisk strong {
  color: #ff8787;
}

.premium-risk-summary.lowRisk {
  border-color: rgba(79, 217, 154, 0.22);
  background: rgba(40, 153, 111, 0.09);
}

.premium-risk-summary.lowRisk strong {
  color: #75e8b9;
}

.premium-analysis-lock {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(221, 199, 255, 0.1);
  border-radius: 12px;
  background: rgba(177, 127, 255, 0.055);
}

.premium-analysis-lock span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
}

.premium-analysis-lock p {
  margin: 0;
  color: rgba(221, 226, 233, 0.68);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}

.profile-hero {
  justify-items: center;
  text-align: center;
}

.hero-top,
.coach-head,
.section-head,
.row-title,
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero h2 {
  margin-top: 3px;
  font-size: 26px;
  line-height: 1.06;
}

.mini-score {
  min-width: 56px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 217, 154, 0.18);
  background: rgba(79, 217, 154, 0.1);
  color: var(--green);
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.home-accuracy-score {
  min-width: 98px;
  max-width: 116px;
  display: grid;
  gap: 2px;
  flex: 0 0 auto;
  line-height: 1.05;
}

.home-accuracy-score strong {
  font-size: 18px;
}

.home-accuracy-score small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
}

.section {
  padding: 12px;
}

.section-head {
  margin-bottom: 10px;
}

.section-title,
.coach-head {
  font-size: 16px;
  font-weight: 900;
}

.section-note,
.row-description,
.empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.page-lead {
  margin-bottom: 12px;
}

.task-hint {
  margin-top: -2px;
  color: rgba(217, 231, 238, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.coach-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.stats-grid,
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.stat {
  min-width: 0;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-label {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat.danger {
  border-color: rgba(255, 107, 107, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 107, 107, 0.105), rgba(255, 107, 107, 0.035)),
    var(--surface-soft);
}

.stat.danger .stat-value,
.stat.danger .stat-label {
  color: var(--red);
}

.primary-actions {
  display: grid;
  gap: 8px;
}

.home-actions {
  grid-template-columns: 1.25fr 0.85fr;
}

.today-focus-card {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(79, 217, 154, 0.24);
  border-radius: calc(var(--radius) + 3px);
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 217, 154, 0.17), transparent 42%),
    linear-gradient(145deg, rgba(79, 217, 154, 0.095), rgba(255, 255, 255, 0.025)),
    rgba(5, 15, 19, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.today-focus-card.premium {
  border-color: rgba(255, 209, 102, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(255, 209, 102, 0.09), rgba(167, 139, 250, 0.045)),
    rgba(10, 14, 19, 0.58);
}

.today-focus-card.complete {
  border-color: rgba(79, 217, 154, 0.32);
}

.today-focus-head,
.today-focus-heading,
.today-focus-footer,
.today-quick-links {
  display: flex;
  align-items: center;
}

.today-focus-head {
  justify-content: space-between;
  gap: 10px;
}

.today-focus-heading {
  min-width: 0;
  gap: 9px;
}

.today-focus-heading > div {
  min-width: 0;
}

.today-focus-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 18px;
}

.today-focus-heading small,
.today-focus-heading strong {
  display: block;
}

.today-focus-heading small {
  margin-bottom: 2px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.today-focus-card.premium .today-focus-heading small {
  color: var(--yellow);
}

.today-focus-heading strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.today-focus-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.today-focus-count,
.today-focus-done {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(79, 217, 154, 0.2);
  border-radius: 999px;
  background: rgba(79, 217, 154, 0.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.today-focus-card.premium .today-focus-count {
  border-color: rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.1);
  color: var(--yellow);
}

.today-focus-footer .action-button {
  min-height: 42px;
}

.today-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.today-quick-links .mini-action {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease;
}

.action-button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.085);
  color: var(--text);
}

.action-button.primary {
  background: linear-gradient(135deg, var(--accent), #36d69d);
  color: #061015;
}

.action-button:active,
.ghost-button:active,
.mode-card:active,
.topic-pill:active,
.topic-select-card:active,
.option-row:active,
.action-card:active,
.mini-action:active,
.shop-category-tab:active,
.tab-button:active {
  transform: scale(0.985);
}

.action-button:disabled,
.mode-card[data-disabled-mode],
.option-row:disabled,
.mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ghost-button {
  min-height: 40px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.task-list,
.topic-list,
.inventory-list,
.shop-list {
  display: grid;
  gap: 8px;
}

.task-group {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  border-color: rgba(79, 217, 154, 0.15);
  background:
    radial-gradient(circle at 4% 0%, rgba(79, 217, 154, 0.11), transparent 34%),
    var(--glass);
}

.task-group::before {
  content: "";
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(79, 217, 154, 0.8), transparent);
}

.daily-task-group {
  border-color: rgba(79, 217, 154, 0.2);
}

.daily-task-group::before {
  background: linear-gradient(90deg, transparent, rgba(79, 217, 154, 0.86), transparent);
}

.premium-goal-group {
  border-color: rgba(255, 209, 102, 0.2);
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 209, 102, 0.14), transparent 36%),
    var(--glass);
}

.premium-goal-group::before {
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.86), transparent);
}

.weekly-task-group {
  border-color: rgba(50, 183, 232, 0.2);
  background:
    radial-gradient(circle at 4% 0%, rgba(50, 183, 232, 0.13), transparent 36%),
    var(--glass);
}

.weekly-task-group::before {
  background: linear-gradient(90deg, transparent, rgba(50, 183, 232, 0.86), transparent);
}

.task-group-head {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.task-group-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.task-group-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 17px;
}

.task-group-heading strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.task-group-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.task-group-meta {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.task-group-meta span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.task-group-meta strong {
  color: var(--green);
  font-size: 14px;
}

.premium-goal-group .task-group-meta strong {
  color: var(--yellow);
}

.weekly-task-group .task-group-meta strong {
  color: var(--blue);
}

.row-card,
.topic-card,
.shop-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    var(--surface-soft);
}

.task-card {
  gap: 9px;
}

.task-card.completed {
  opacity: 0.8;
}

.task-card.ready {
  border-color: rgba(255, 209, 102, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.11), rgba(79, 217, 154, 0.055)),
    var(--surface-soft);
}

.task-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.task-progress-wrap {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.task-progress-caption {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.task-card-footer .progress-line {
  margin: 0;
}

.task-action {
  width: auto;
  min-width: 92px;
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

.task-claim-action {
  border-color: rgba(255, 209, 102, 0.26);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(79, 217, 154, 0.15));
  color: var(--text);
}

.task-done-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(79, 217, 154, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(79, 217, 154, 0.1);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.shop-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(79, 217, 154, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(79, 217, 154, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(50, 183, 232, 0.14), rgba(255, 255, 255, 0.04)),
    var(--glass-strong);
  box-shadow: var(--shadow);
}

.shop-hero strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  line-height: 1;
}

.active-effects {
  max-width: 56%;
  display: grid;
  gap: 4px;
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.active-effects strong {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(79, 217, 154, 0.12);
  color: var(--green);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.shop-category-tab {
  min-height: 38px;
  padding: 8px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: transform 160ms ease, background 180ms ease, color 180ms ease;
}

.shop-category-tab.active {
  background:
    linear-gradient(145deg, rgba(79, 217, 154, 0.22), rgba(98, 199, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.shop-card.interactive,
.inventory-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.045);
}

.shop-purchase-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.shop-quantity {
  min-width: 112px;
  display: grid;
  grid-template-columns: 34px minmax(36px, 1fr) 34px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(4, 13, 18, 0.32);
}

.shop-quantity button {
  border: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #d9e8ec;
  cursor: pointer;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
}

.shop-quantity button:disabled {
  cursor: default;
  opacity: 0.3;
}

.shop-quantity > div {
  display: grid;
  place-content: center;
  text-align: center;
}

.shop-quantity strong,
.shop-quantity small {
  display: block;
  line-height: 1;
}

.shop-quantity strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 1000;
}

.shop-quantity small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.shop-buy-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 12px;
}

.shop-buy-action strong {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(4, 21, 16, 0.12);
  font-size: 10px;
}

.mini-action {
  min-height: 38px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(79, 217, 154, 0.96), rgba(46, 205, 126, 0.9));
  color: #061015;
  cursor: pointer;
  font-size: 13px;
  font-weight: 1000;
  transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.mini-action.subtle {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.confirm-strip {
  display: grid;
  gap: 8px;
  padding: 9px;
  border-radius: var(--radius);
  background: rgba(255, 209, 102, 0.09);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 7px;
}

.shop-toast {
  margin: 10px 0;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(79, 217, 154, 0.1);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  white-space: pre-line;
}

.shop-toast.error {
  background: rgba(255, 107, 107, 0.13);
  color: #ffd6d6;
}

.premium-plan-list {
  display: grid;
  gap: 9px;
}

.premium-discount-note {
  margin: 10px 0;
  padding: 10px 11px;
  border: 1px solid rgba(79, 217, 154, 0.24);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(79, 217, 154, 0.12), rgba(98, 199, 255, 0.07));
  color: #c9ffe7;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.premium-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.premium-feature-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 222, 139, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.095), rgba(165, 112, 255, 0.05)),
    rgba(255, 255, 255, 0.038);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.premium-feature-card span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  font-size: 16px;
}

.premium-feature-card strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.15;
}

.premium-feature-card small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.premium-action-grid {
  display: grid;
  gap: 8px;
}

.premium-action {
  border-color: rgba(255, 209, 102, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.105), rgba(98, 199, 255, 0.052)),
    rgba(255, 255, 255, 0.047);
}

.premium-action .action-card-icon {
  border-color: rgba(255, 209, 102, 0.16);
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.2), transparent 34%),
    rgba(255, 209, 102, 0.09);
}

.premium-duel-action {
  border-color: rgba(184, 137, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(168, 112, 255, 0.13), rgba(255, 209, 102, 0.07)),
    rgba(255, 255, 255, 0.047);
}

.premium-date-section,
.premium-status-section,
.premium-value-section,
.premium-actions-section,
.premium-preview-overview,
.premium-plans-section {
  border-color: rgba(255, 209, 102, 0.11);
}

.premium-value-section,
.premium-plans-section,
.premium-preview-overview {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.075), transparent 34%),
    linear-gradient(145deg, rgba(255, 209, 102, 0.035), rgba(164, 113, 255, 0.025)),
    var(--glass);
}

.premium-preview-overview {
  display: grid;
  gap: 12px;
  border-color: rgba(255, 213, 112, 0.22);
}

.premium-preview-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.premium-preview-heading-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 220, 132, 0.2);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 215, 112, 0.16), rgba(165, 112, 255, 0.09));
  color: #ffe19a;
  font-size: 17px;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.4);
}

.premium-preview-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.15;
}

.premium-preview-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
}

.premium-preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.premium-preview-metrics article {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(8, 16, 22, 0.28);
}

.premium-preview-metrics article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 209, 102, 0.09);
  font-size: 15px;
}

.premium-preview-metrics div {
  min-width: 0;
}

.premium-preview-metrics strong,
.premium-preview-metrics small {
  display: block;
}

.premium-preview-metrics strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.premium-preview-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.premium-trial-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 218, 126, 0.18);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.095), rgba(165, 112, 255, 0.05)),
    rgba(255, 255, 255, 0.03);
}

.premium-trial-card.used {
  border-color: rgba(186, 154, 237, 0.14);
  background:
    linear-gradient(145deg, rgba(170, 122, 239, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.025);
}

.premium-trial-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 222, 139, 0.18);
  border-radius: 13px;
  background: rgba(255, 209, 102, 0.09);
  color: #ffdb81;
  font-size: 17px;
  font-weight: 1000;
}

.premium-trial-card.used .premium-trial-icon {
  border-color: rgba(180, 146, 231, 0.15);
  background: rgba(174, 125, 238, 0.07);
  color: rgba(225, 207, 248, 0.78);
}

.premium-trial-copy {
  min-width: 0;
}

.premium-trial-copy strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.18;
}

.premium-trial-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.32;
}

.premium-trial-action {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 230, 164, 0.25);
  border-radius: 11px;
  background: linear-gradient(135deg, #ffd66f, #efb84a);
  color: #211707;
  cursor: pointer;
  font-size: 10px;
  font-weight: 1000;
  white-space: nowrap;
}

.premium-trial-action.secondary {
  border-color: rgba(221, 199, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(241, 234, 250, 0.9);
}

.premium-plans-section {
  scroll-margin-top: 12px;
  border-color: rgba(255, 213, 112, 0.2);
}

.premium-date-box {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.premium-date-input {
  min-height: 40px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  outline: none;
}

.premium-date-input:focus {
  border-color: rgba(79, 217, 154, 0.42);
  box-shadow: 0 0 0 3px rgba(79, 217, 154, 0.12);
}

.premium-date-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.ghost-button.compact {
  min-height: 32px;
  width: auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.premium-plan-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(98, 199, 255, 0.06)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.12);
}

.premium-plan-card::before {
  content: "";
  position: absolute;
  inset: -55px auto auto -35px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(98, 199, 255, 0.13), transparent 68%);
  pointer-events: none;
}

.premium-plan-card.featured {
  border-color: rgba(255, 209, 102, 0.34);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 209, 102, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(79, 217, 154, 0.075), rgba(98, 199, 255, 0.06)),
    rgba(255, 255, 255, 0.055);
}

.premium-plan-ribbon {
  position: absolute;
  top: 10px;
  right: -30px;
  width: 118px;
  padding: 5px 0;
  transform: rotate(28deg);
  background: linear-gradient(135deg, var(--yellow), #ffe6a3);
  color: #261a04;
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.16);
}

.premium-plan-main,
.premium-plan-price {
  position: relative;
  z-index: 1;
}

.premium-plan-card strong,
.premium-plan-card small,
.premium-plan-price span {
  display: block;
}

.premium-plan-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.premium-plan-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.premium-plan-badge,
.premium-plan-save {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.premium-plan-badge {
  border: 1px solid rgba(98, 199, 255, 0.18);
  background: rgba(98, 199, 255, 0.1);
  color: var(--blue);
}

.premium-plan-badge.plan-2m {
  border-color: rgba(255, 209, 102, 0.24);
  background: rgba(255, 209, 102, 0.12);
  color: var(--yellow);
}

.premium-plan-save {
  background: rgba(79, 217, 154, 0.12);
  color: var(--green);
}

.premium-plan-main > strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.08;
}

.premium-plan-main > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.premium-plan-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.premium-plan-benefits span {
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(217, 231, 238, 0.88);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.premium-plan-price {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
  min-width: 142px;
}

.premium-plan-price .premium-plan-stars {
  color: var(--yellow);
  font-size: 20px;
  font-weight: 1000;
  line-height: 1;
}

.premium-plan-old-price {
  color: rgba(217, 231, 238, 0.48);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.premium-plan-rate {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.premium-plan-price .mini-action {
  min-width: 132px;
  border: 1px solid rgba(255, 235, 177, 0.42);
  background:
    linear-gradient(135deg, #ffe18b, #f6bd4e 58%, #dfa235);
  color: #241805;
  box-shadow:
    0 10px 24px rgba(238, 177, 54, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  text-shadow: 0 1px rgba(255, 255, 255, 0.2);
}

.premium-plan-card.featured .premium-plan-price .mini-action {
  border-color: rgba(255, 241, 197, 0.62);
  background:
    linear-gradient(135deg, #ffebaa, #ffd05f 52%, #ecad39);
  box-shadow:
    0 12px 28px rgba(255, 195, 70, 0.27),
    0 0 0 1px rgba(255, 210, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.premium-plan-price .mini-action:active {
  filter: brightness(0.96);
}

.mini-dev-note {
  margin: -2px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(98, 199, 255, 0.14);
  border-radius: 14px;
  background: rgba(98, 199, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.dev-feature-list {
  display: grid;
  gap: 8px;
}

.dev-feature {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.dev-feature span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.dev-feature strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 26%, rgba(98, 199, 255, 0.16), transparent 34%),
    rgba(1, 7, 11, 0.72);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  animation: modal-backdrop-enter 180ms ease both;
}

.chest-modal {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100vh - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: chest-modal-enter 260ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.purchase-outcome-backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(79, 217, 154, 0.23), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(98, 199, 255, 0.12), transparent 30%),
    rgba(1, 7, 11, 0.8);
}

.purchase-outcome-backdrop.premium {
  background:
    radial-gradient(circle at 50% 17%, rgba(255, 209, 102, 0.28), transparent 34%),
    radial-gradient(circle at 18% 84%, rgba(171, 119, 255, 0.17), transparent 32%),
    rgba(3, 5, 11, 0.83);
}

.purchase-outcome-backdrop.cancelled,
.purchase-outcome-backdrop.error {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 107, 107, 0.17), transparent 34%),
    rgba(3, 6, 10, 0.79);
}

.purchase-outcome-modal {
  position: relative;
  width: min(100%, 410px);
  max-height: calc(100vh - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  gap: 14px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  padding: 25px 17px 17px;
  border: 1px solid rgba(79, 217, 154, 0.28);
  border-radius: 27px;
  background:
    radial-gradient(circle at 50% -12%, rgba(79, 217, 154, 0.22), transparent 40%),
    linear-gradient(160deg, rgba(28, 49, 49, 0.99), rgba(12, 21, 27, 0.99));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  animation: purchase-outcome-enter 430ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.purchase-outcome-modal::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(112, 255, 192, 0.92), transparent);
}

.purchase-outcome-modal.premium {
  border-color: rgba(255, 218, 126, 0.4);
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 209, 102, 0.28), transparent 39%),
    radial-gradient(circle at 0% 100%, rgba(165, 112, 255, 0.14), transparent 40%),
    linear-gradient(160deg, rgba(48, 41, 29, 0.99), rgba(20, 20, 30, 0.99));
}

.purchase-outcome-modal.premium::before {
  background: linear-gradient(90deg, transparent, #ffe19a, rgba(190, 145, 255, 0.8), transparent);
}

.purchase-outcome-modal.cancelled,
.purchase-outcome-modal.error {
  border-color: rgba(255, 107, 107, 0.25);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 107, 107, 0.17), transparent 39%),
    linear-gradient(160deg, rgba(48, 34, 38, 0.99), rgba(19, 21, 27, 0.99));
}

.purchase-outcome-modal.cancelled::before,
.purchase-outcome-modal.error::before {
  background: linear-gradient(90deg, transparent, rgba(255, 130, 130, 0.9), transparent);
}

.purchase-outcome-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.purchase-outcome-confetti i {
  --confetti-x: 0px;
  --confetti-y: -90px;
  --confetti-rotate: 90deg;
  position: absolute;
  top: 92px;
  left: 50%;
  width: 6px;
  height: 11px;
  border-radius: 3px;
  background: var(--green);
  opacity: 0;
  animation: purchase-confetti-burst 820ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.purchase-outcome-confetti i:nth-child(1) {
  --confetti-x: -120px;
  --confetti-y: -72px;
  --confetti-rotate: -120deg;
  background: #ffd66e;
}

.purchase-outcome-confetti i:nth-child(2) {
  --confetti-x: -88px;
  --confetti-y: -112px;
  --confetti-rotate: 140deg;
  background: #62c7ff;
  animation-delay: 45ms;
}

.purchase-outcome-confetti i:nth-child(3) {
  --confetti-x: -48px;
  --confetti-y: -128px;
  --confetti-rotate: -190deg;
  background: #b58bfa;
  animation-delay: 85ms;
}

.purchase-outcome-confetti i:nth-child(4) {
  --confetti-x: -12px;
  --confetti-y: -136px;
  --confetti-rotate: 210deg;
  background: #4fd99a;
  animation-delay: 30ms;
}

.purchase-outcome-confetti i:nth-child(5) {
  --confetti-x: 38px;
  --confetti-y: -132px;
  --confetti-rotate: -170deg;
  background: #ffd66e;
  animation-delay: 70ms;
}

.purchase-outcome-confetti i:nth-child(6) {
  --confetti-x: 78px;
  --confetti-y: -112px;
  --confetti-rotate: 180deg;
  background: #62c7ff;
  animation-delay: 110ms;
}

.purchase-outcome-confetti i:nth-child(7) {
  --confetti-x: 110px;
  --confetti-y: -82px;
  --confetti-rotate: -130deg;
  background: #ff8bad;
  animation-delay: 55ms;
}

.purchase-outcome-confetti i:nth-child(8) {
  --confetti-x: 132px;
  --confetti-y: -46px;
  --confetti-rotate: 160deg;
  background: #4fd99a;
  animation-delay: 95ms;
}

.purchase-outcome-visual {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  justify-self: center;
}

.purchase-outcome-halo {
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(79, 217, 154, 0.32), rgba(79, 217, 154, 0.08) 52%, transparent 72%);
  filter: blur(1px);
  animation: purchase-halo-pulse 1.8s ease-in-out infinite;
}

.purchase-outcome-modal.premium .purchase-outcome-halo {
  background:
    radial-gradient(circle, rgba(255, 215, 112, 0.42), rgba(173, 119, 255, 0.11) 54%, transparent 73%);
}

.purchase-outcome-modal.cancelled .purchase-outcome-halo,
.purchase-outcome-modal.error .purchase-outcome-halo {
  background:
    radial-gradient(circle, rgba(255, 107, 107, 0.28), rgba(255, 107, 107, 0.06) 54%, transparent 73%);
}

.purchase-outcome-visual > strong {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(173, 255, 218, 0.28);
  border-radius: 21px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(145deg, rgba(79, 217, 154, 0.29), rgba(32, 80, 70, 0.54));
  color: #b6ffe0;
  font-size: 28px;
  line-height: 1;
  box-shadow:
    0 15px 34px rgba(4, 10, 13, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: purchase-icon-pop 560ms cubic-bezier(0.16, 1, 0.22, 1) 90ms both;
}

.purchase-outcome-modal.premium .purchase-outcome-visual > strong {
  border-color: rgba(255, 231, 164, 0.42);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(145deg, rgba(255, 215, 112, 0.35), rgba(120, 84, 164, 0.28));
  color: #ffe08b;
  font-size: 31px;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.52);
}

.purchase-outcome-modal.cancelled .purchase-outcome-visual > strong,
.purchase-outcome-modal.error .purchase-outcome-visual > strong {
  border-color: rgba(255, 154, 154, 0.28);
  background: linear-gradient(145deg, rgba(255, 107, 107, 0.22), rgba(105, 53, 66, 0.32));
  color: #ffb4b4;
}

.purchase-outcome-visual > small {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 5px;
  color: #fff1bc;
  font-size: 15px;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.74);
  animation: purchase-spark-twinkle 1.25s ease-in-out infinite;
}

.purchase-outcome-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.purchase-outcome-eyebrow {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.1em;
}

.purchase-outcome-modal.premium .purchase-outcome-eyebrow {
  color: #ffda79;
}

.purchase-outcome-modal.cancelled .purchase-outcome-eyebrow,
.purchase-outcome-modal.error .purchase-outcome-eyebrow {
  color: #ff9a9a;
}

.purchase-outcome-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 6.4vw, 28px);
  line-height: 1.08;
}

.purchase-outcome-copy p {
  max-width: 330px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.42;
}

.purchase-outcome-product {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(4, 12, 16, 0.28);
}

.purchase-outcome-quantity {
  min-width: 38px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 218, 126, 0.18);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.09);
  color: #ffdc82;
  font-size: 12px;
  font-weight: 1000;
  text-align: center;
}

.purchase-outcome-product.premium-product {
  grid-template-columns: 44px minmax(0, 1fr);
}

.purchase-outcome-product > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(79, 217, 154, 0.11);
  font-size: 21px;
}

.purchase-outcome-product.premium-product {
  border-color: rgba(255, 220, 132, 0.17);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.1), rgba(165, 112, 255, 0.05)),
    rgba(4, 8, 15, 0.3);
}

.purchase-outcome-product.premium-product > span {
  background: linear-gradient(145deg, rgba(255, 215, 112, 0.2), rgba(165, 112, 255, 0.1));
  color: #ffdc7b;
}

.purchase-outcome-product div {
  min-width: 0;
}

.purchase-outcome-product strong,
.purchase-outcome-product small {
  display: block;
}

.purchase-outcome-product strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.purchase-outcome-product small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.32;
}

.purchase-outcome-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.purchase-outcome-metrics > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.purchase-outcome-metrics small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.purchase-outcome-metrics strong {
  color: var(--text);
  font-size: 15px;
}

.purchase-outcome-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.purchase-outcome-actions.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-outcome-actions .premium-outcome-action {
  border: 1px solid rgba(255, 231, 164, 0.43);
  background: linear-gradient(135deg, #ffe18b, #f2b745);
  color: #241805;
  box-shadow:
    0 12px 28px rgba(238, 177, 54, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.task-reward-backdrop {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 209, 102, 0.22), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(79, 217, 154, 0.12), transparent 30%),
    rgba(1, 7, 11, 0.78);
}

.task-reward-modal {
  position: relative;
  width: min(100%, 400px);
  max-height: calc(100vh - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 18px 18px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 209, 102, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(30, 44, 53, 0.98), rgba(12, 21, 27, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: chest-modal-enter 260ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.task-reward-modal.claimed {
  border-color: rgba(79, 217, 154, 0.3);
  background:
    radial-gradient(circle at 50% -8%, rgba(79, 217, 154, 0.2), transparent 38%),
    linear-gradient(160deg, rgba(26, 46, 47, 0.98), rgba(12, 21, 27, 0.98));
}

.achievement-popup-backdrop {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 211, 103, 0.3), transparent 34%),
    radial-gradient(circle at 20% 82%, rgba(151, 103, 255, 0.18), transparent 31%),
    rgba(2, 6, 12, 0.84);
}

.achievement-popup-modal {
  position: relative;
  width: min(100%, 390px);
  max-height: calc(100vh - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  gap: 15px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  padding: 28px 18px 18px;
  border: 1px solid rgba(255, 216, 112, 0.42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 218, 112, 0.24), transparent 40%),
    linear-gradient(155deg, rgba(40, 39, 48, 0.99), rgba(12, 20, 28, 0.99));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62),
    0 0 46px rgba(255, 203, 80, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  animation: achievement-popup-enter 440ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.achievement-popup-rays {
  position: absolute;
  top: -112px;
  left: 50%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: repeating-conic-gradient(from 4deg, rgba(255, 220, 119, 0.11) 0 10deg, transparent 10deg 24deg);
  transform: translateX(-50%);
  animation: achievement-rays 18s linear infinite;
  pointer-events: none;
}

.achievement-popup-trophy {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto -2px;
  border: 1px solid rgba(255, 226, 144, 0.42);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 222, 127, 0.25), rgba(170, 111, 255, 0.13));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3), 0 0 38px rgba(255, 204, 76, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.achievement-popup-trophy span {
  font-size: 46px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
  animation: achievement-trophy-breathe 1.9s ease-in-out infinite;
}

.achievement-popup-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  text-align: center;
}

.achievement-popup-copy small {
  color: #ffd76d;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.13em;
}

.achievement-popup-copy h2 {
  font-size: clamp(23px, 7vw, 29px);
  line-height: 1.05;
}

.achievement-popup-copy strong {
  margin: 3px 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 216, 112, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 216, 112, 0.13), rgba(151, 103, 255, 0.08));
  color: #ffe395;
  font-size: 16px;
  line-height: 1.28;
}

.achievement-popup-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.achievement-popup-action {
  position: relative;
  z-index: 2;
  width: 100%;
  border-color: rgba(255, 228, 145, 0.44);
  background: linear-gradient(135deg, #ffe18b, #f2b745);
  color: #261a05;
  box-shadow: 0 13px 30px rgba(238, 177, 54, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.achievement-popup-confetti i {
  position: absolute;
  z-index: 3;
  top: 23%;
  left: 50%;
  color: #ffd76d;
  font-size: 12px;
  font-style: normal;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 42deg));
  animation: achievement-confetti 1.8s cubic-bezier(0.22, 0.75, 0.32, 1) calc(var(--i) * 55ms) both;
  pointer-events: none;
}

@keyframes achievement-popup-enter {
  from { opacity: 0; transform: translateY(22px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes achievement-rays {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes achievement-trophy-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

@keyframes achievement-confetti {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--i) * 42deg)) translateY(0) scale(0.4); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--i) * 42deg)) translateY(-118px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .achievement-popup-modal,
  .achievement-popup-rays,
  .achievement-popup-trophy span,
  .achievement-popup-confetti i {
    animation: none;
  }
}

.insight-backdrop {
  background:
    radial-gradient(circle at 50% 16%, rgba(79, 217, 154, 0.22), transparent 33%),
    radial-gradient(circle at 15% 85%, rgba(98, 199, 255, 0.14), transparent 30%),
    rgba(1, 7, 11, 0.8);
}

.insight-modal {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100vh - 30px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 16px 16px;
  border: 1px solid rgba(79, 217, 154, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% -10%, rgba(79, 217, 154, 0.2), transparent 34%),
    linear-gradient(160deg, rgba(27, 46, 51, 0.99), rgba(11, 20, 27, 0.99));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: chest-modal-enter 280ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.insight-orbit {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto -2px;
  border: 1px solid rgba(79, 217, 154, 0.3);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(79, 217, 154, 0.2), rgba(98, 199, 255, 0.09));
  box-shadow: 0 0 36px rgba(79, 217, 154, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  font-size: 32px;
}

.insight-heading {
  display: grid;
  gap: 5px;
  text-align: center;
}

.insight-heading small {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.insight-heading h2 {
  padding-inline: 16px;
  font-size: clamp(21px, 6vw, 26px);
  line-height: 1.08;
}

.insight-heading p,
.insight-preliminary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.insight-score-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 217, 154, 0.18);
  border-radius: 17px;
  background: rgba(79, 217, 154, 0.075);
}

.insight-score-card > div:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.insight-score-card small,
.insight-topic-card small,
.insight-next-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.insight-score-card > div:last-child strong {
  font-size: 20px;
  font-weight: 1000;
}

.insight-score-ring {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(14, 27, 33, 1) 58%, transparent 60%),
    conic-gradient(var(--green) var(--insight-score), rgba(255, 255, 255, 0.08) 0);
  color: var(--green);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.insight-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.insight-topic-card,
.insight-next-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.insight-topic-card.positive {
  border-color: rgba(79, 217, 154, 0.17);
}

.insight-topic-card.focus {
  border-color: rgba(255, 209, 102, 0.18);
}

.insight-topic-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.insight-topic-card span {
  max-width: 100%;
  padding: 5px 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.insight-next-card p {
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.insight-preliminary {
  margin: 0;
  padding: 0 3px;
  text-align: center;
}

.insight-premium-note {
  padding: 10px 11px;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.075);
  color: var(--text);
  font-size: 11px;
  line-height: 1.42;
}

.insight-actions {
  display: grid;
  gap: 7px;
}

.insight-actions > button {
  width: 100%;
}

@media (max-width: 360px) {
  .insight-modal {
    gap: 10px;
    padding: 18px 12px 12px;
    border-radius: 22px;
  }

  .insight-topic-grid {
    grid-template-columns: 1fr;
  }
}

.task-reward-celebration {
  position: relative;
  width: 94px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto -2px;
}

.task-reward-glow {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.16);
  box-shadow: 0 0 36px rgba(255, 209, 102, 0.28);
  animation: task-reward-glow 1.8s ease-in-out infinite;
}

.task-reward-modal.claimed .task-reward-glow {
  background: rgba(79, 217, 154, 0.16);
  box-shadow: 0 0 36px rgba(79, 217, 154, 0.3);
}

.task-reward-icon {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 209, 102, 0.08));
  font-size: 34px;
  font-style: normal;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 14px 30px rgba(0, 0, 0, 0.24);
}

.task-reward-modal.claimed .task-reward-icon {
  color: var(--green);
  background: linear-gradient(145deg, rgba(79, 217, 154, 0.19), rgba(98, 199, 255, 0.08));
}

.task-confetti {
  position: absolute;
  z-index: 3;
  color: var(--yellow);
  font-size: 16px;
  font-style: normal;
  animation: task-confetti-float 1.9s ease-in-out infinite;
}

.confetti-one {
  top: 4px;
  left: 2px;
}

.confetti-two {
  top: 12px;
  right: 0;
  color: var(--green);
  animation-delay: -0.5s;
}

.confetti-three {
  right: 5px;
  bottom: 5px;
  color: var(--blue);
  animation-delay: -1s;
}

.task-reward-copy {
  display: grid;
  gap: 5px;
  text-align: center;
}

.task-reward-copy h2 {
  font-size: 25px;
  line-height: 1.1;
}

.task-reward-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.task-reward-task-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.task-reward-task-card > strong {
  padding-right: 26px;
  font-size: 14px;
  line-height: 1.35;
}

.task-reward-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.task-reward-prizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.task-reward-achievements {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 14px;
  background: rgba(167, 139, 250, 0.08);
  font-size: 12px;
}

.task-reward-achievements span {
  color: var(--muted);
}

.task-reward-primary,
.task-reward-later {
  width: 100%;
}

.task-reward-error {
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 12, 16, 0.58);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-close:disabled {
  cursor: wait;
  opacity: 0.45;
}

.chest-modal .chest-reveal {
  margin: 0;
}

.chest-done-button {
  min-height: 48px;
}

.chest-reveal {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 209, 102, 0.2), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(98, 199, 255, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(13, 22, 29, 0.82);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: chest-card-enter 260ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.chest-reveal.rare,
.chest-reveal.epic,
.chest-reveal.legendary {
  border-color: rgba(184, 134, 255, 0.24);
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 134, 255, 0.22), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(255, 209, 102, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(17, 20, 34, 0.84);
}

.chest-reveal::after {
  content: "";
  position: absolute;
  inset: -35% -12%;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  transform: translateX(-70%) rotate(10deg);
  pointer-events: none;
}

.chest-reveal.result::after {
  animation: chest-shine 900ms ease both;
}

.chest-stage {
  position: relative;
  min-height: 104px;
  display: grid;
  place-items: center;
}

.chest-glow {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.38), rgba(79, 217, 154, 0.12) 44%, transparent 72%);
  filter: blur(4px);
  transform: scale(0.86);
}

.chest-reveal.opening .chest-glow {
  animation: chest-glow-pulse 820ms ease-in-out infinite;
}

.chest-reveal.result .chest-glow {
  animation: chest-glow-burst 640ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.chest-box {
  position: relative;
  width: 72px;
  height: 62px;
  transform-origin: 50% 82%;
}

.chest-reveal.opening .chest-box {
  animation: chest-shake 640ms ease-in-out infinite;
}

.chest-lid {
  position: absolute;
  left: 7px;
  top: 5px;
  z-index: 2;
  width: 58px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px 14px 7px 7px;
  background:
    linear-gradient(180deg, rgba(255, 225, 134, 0.96), rgba(199, 130, 43, 0.95)),
    #d99131;
  box-shadow: inset 0 5px 8px rgba(255, 255, 255, 0.18);
  transform-origin: 50% 100%;
}

.chest-reveal.opening .chest-lid {
  animation: chest-lid-peek 820ms ease-in-out infinite;
}

.chest-reveal.result .chest-lid {
  animation: chest-lid-open 720ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.chest-body {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  display: grid;
  place-items: center;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px 10px 15px 15px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.95), rgba(153, 93, 37, 0.96)),
    #ad702c;
  box-shadow:
    inset 0 8px 16px rgba(255, 255, 255, 0.12),
    inset 0 -10px 14px rgba(62, 35, 16, 0.2);
  color: #261404;
  font-size: 13px;
  font-weight: 1000;
}

.chest-spark {
  position: absolute;
  z-index: 3;
  color: #ffe8a3;
  font-size: 16px;
  opacity: 0;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.9);
}

.spark-one {
  top: 12px;
  left: 18px;
}

.spark-two {
  top: 20px;
  right: 14px;
  font-size: 20px;
}

.spark-three {
  right: 30px;
  bottom: 20px;
  font-size: 13px;
}

.chest-reveal.result .chest-spark {
  animation: chest-spark-float 760ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.chest-reveal.result .spark-two {
  animation-delay: 80ms;
}

.chest-reveal.result .spark-three {
  animation-delay: 150ms;
}

.chest-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 7px;
}

.chest-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.12;
}

.chest-loader {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.chest-loader span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--yellow);
  animation: chest-loader-dot 720ms ease-in-out infinite;
}

.chest-loader span:nth-child(2) {
  animation-delay: 100ms;
}

.chest-loader span:nth-child(3) {
  animation-delay: 200ms;
}

.chest-prize {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  animation: chest-prize-pop 480ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.chest-prize-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(145deg, rgba(255, 209, 102, 0.34), rgba(79, 217, 154, 0.13));
  font-size: 22px;
}

.chest-prize strong {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.chest-rarity {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.chest-rarity strong {
  color: var(--yellow);
}

.chest-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.inventory-section {
  display: grid;
  gap: 10px;
}

.inventory-group {
  display: grid;
  gap: 8px;
}

.inventory-group-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.item-note {
  color: var(--yellow);
  font-size: 12px;
  line-height: 1.3;
}

.row-title {
  align-items: flex-start;
  font-weight: 850;
  line-height: 1.25;
}

.mode-list,
.option-list {
  display: grid;
  gap: 8px;
}

.mode-list {
  scroll-margin-top: 12px;
}

.mode-groups {
  display: grid;
  gap: 14px;
  scroll-margin-top: 12px;
}

.mode-group {
  display: grid;
  gap: 8px;
}

.mode-group-head {
  display: grid;
  gap: 2px;
  padding: 0 2px;
}

.mode-group-title {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mode-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.step-kicker {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-right: 5px;
  border: 1px solid rgba(79, 217, 154, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 42%),
    rgba(79, 217, 154, 0.13);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  vertical-align: middle;
}

.mode-card,
.option-row,
.topic-pill {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mode-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
}

.mode-card.active {
  border-color: rgba(50, 183, 232, 0.65);
  background:
    linear-gradient(135deg, rgba(50, 183, 232, 0.17), rgba(79, 217, 154, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 1px rgba(50, 183, 232, 0.06), var(--soft-shadow);
}

.mode-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.065);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  font-size: 19px;
}

.mode-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mode-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mode-copy strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-selected-badge,
.mode-status {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(79, 217, 154, 0.18);
  background: rgba(79, 217, 154, 0.11);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.mode-selected-badge {
  flex: 0 0 auto;
}

.mode-status {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(98, 199, 255, 0.18);
  background: rgba(98, 199, 255, 0.1);
}

.mode-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.topic-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.topic-pills::-webkit-scrollbar {
  display: none;
}

.topic-pill {
  flex: 0 0 auto;
  width: auto;
  max-width: 210px;
  padding: 9px 11px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-pill.active {
  border-color: rgba(79, 217, 154, 0.65);
  background: rgba(79, 217, 154, 0.14);
  color: var(--text);
}

.topic-picker {
  overflow: hidden;
}

.day-topic-spotlight {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 10px 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 177, 66, 0.34);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 116, 42, 0.22), transparent 44%),
    linear-gradient(145deg, rgba(255, 183, 77, 0.14), rgba(18, 29, 35, 0.94) 58%);
  box-shadow: 0 14px 34px rgba(4, 8, 12, 0.22), inset 0 1px rgba(255, 255, 255, 0.055);
}

.day-topic-spotlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 89, 0.95), transparent);
}

.day-topic-glow {
  position: absolute;
  z-index: -1;
  top: -20px;
  right: -8px;
  opacity: 0.1;
  filter: blur(1px);
  font-size: 112px;
  line-height: 1;
  transform: rotate(9deg);
}

.day-topic-copy {
  min-width: 0;
}

.day-topic-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: #ffc45c;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.day-topic-copy h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
}

.day-topic-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.day-topic-benefits {
  align-self: center;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.day-topic-benefits span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 196, 92, 0.2);
  border-radius: 999px;
  background: rgba(255, 177, 66, 0.1);
  color: #ffd47e;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.day-topic-benefits small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.day-topic-action {
  grid-column: 1 / -1;
  min-height: 43px;
  border: 1px solid rgba(255, 196, 92, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffb347, #ffcf67);
  color: #171109;
  cursor: pointer;
  font-weight: 1000;
  transition: transform 160ms ease, filter 160ms ease;
}

.day-topic-action:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.selected-topic-card {
  display: grid;
  gap: 4px;
  margin-bottom: 9px;
  padding: 11px;
  border: 1px solid rgba(98, 199, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 199, 255, 0.12), rgba(79, 217, 154, 0.06)),
    rgba(255, 255, 255, 0.045);
}

.selected-topic-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.selected-topic-card strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.2;
}

.topic-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.topic-select-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.topic-select-card.active {
  border-color: rgba(79, 217, 154, 0.72);
  background:
    linear-gradient(135deg, rgba(79, 217, 154, 0.18), rgba(98, 199, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(79, 217, 154, 0.08);
}

.topic-select-card.topic-of-day {
  border-color: rgba(255, 183, 77, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 177, 66, 0.12), rgba(255, 106, 48, 0.055)),
    rgba(255, 255, 255, 0.05);
}

.topic-select-card.topic-of-day.active {
  border-color: rgba(255, 196, 92, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 183, 77, 0.12), 0 8px 22px rgba(255, 116, 42, 0.08);
}

.topic-select-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.topic-day-badge {
  width: max-content;
  max-width: 100%;
  padding: 3px 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 177, 66, 0.14);
  color: #ffc45c;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-select-title {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.topic-select-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(79, 217, 154, 0.12);
  color: var(--green);
  font-weight: 1000;
}

.topic-select-check:empty {
  background: transparent;
}

@media (max-width: 370px) {
  .day-topic-spotlight {
    grid-template-columns: 1fr;
  }

  .day-topic-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .day-topic-benefits span {
    text-align: center;
  }

  .day-topic-benefits small {
    grid-column: 1 / -1;
    text-align: center;
  }
}

.training-hud {
  position: relative;
  scroll-margin-top: 10px;
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(50, 183, 232, 0.14), rgba(79, 217, 154, 0.07)),
    rgba(12, 19, 24, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.training-task-tracker {
  position: relative;
  scroll-margin-top: 10px;
  overflow: hidden;
  display: grid;
  gap: 9px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(79, 217, 154, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(98, 199, 255, 0.11), transparent 38%),
    linear-gradient(145deg, rgba(79, 217, 154, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: var(--soft-shadow);
}

.training-task-tracker-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.training-task-tracker-head > strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-task-tracker-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(79, 217, 154, 0.11);
}

.training-task-tracker-list {
  display: grid;
  gap: 7px;
}

.training-task-progress {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(7, 15, 20, 0.34);
}

.training-task-progress.ready {
  border-color: rgba(255, 209, 102, 0.24);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.09), rgba(79, 217, 154, 0.055));
}

.training-task-progress.premium {
  border-color: rgba(255, 209, 102, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.12), transparent 42%),
    rgba(7, 15, 20, 0.38);
}

.training-task-progress.premium .training-task-progress-main > strong {
  color: var(--yellow);
}

.training-task-progress-main,
.training-task-progress-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.training-task-progress-main > span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-task-progress-main > strong {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}

.training-task-progress-meta small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-claim-compact {
  flex: 0 0 auto;
  width: auto;
  min-height: 30px;
  padding: 5px 9px;
  border-color: rgba(255, 209, 102, 0.22);
  font-size: 10px;
  white-space: nowrap;
}

.training-hud-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.training-hud-main strong,
.training-hud-main span {
  display: block;
  min-width: 0;
}

.training-hud-main strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-hud-main span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.training-hud-grid,
.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mini-stat,
.reward-chip {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 7px 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.045);
}

.mini-stat-icon,
.reward-icon {
  font-size: 17px;
  line-height: 1;
}

.mini-stat-value,
.reward-chip strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-stat-label,
.reward-chip small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-shell {
  display: grid;
  gap: 10px;
}

.training-mode-strip {
  display: grid;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(98, 199, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 199, 255, 0.12), rgba(79, 217, 154, 0.06)),
    rgba(255, 255, 255, 0.038);
}

.training-mode-strip.success {
  border-color: rgba(79, 217, 154, 0.42);
  background:
    linear-gradient(135deg, rgba(79, 217, 154, 0.16), rgba(98, 199, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.training-mode-strip.danger {
  border-color: rgba(255, 97, 119, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 97, 119, 0.14), rgba(255, 209, 102, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.training-mode-strip-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.training-mode-strip-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.07);
  font-size: 16px;
}

.training-mode-strip-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.training-mode-strip-copy strong,
.training-mode-strip-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-mode-strip-copy strong {
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.training-mode-strip-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.training-mode-strip-value {
  min-width: 44px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
}

.training-mode-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.training-mode-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 260ms ease;
}

.question-card {
  display: grid;
  gap: 12px;
  scroll-margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.question-card h2 {
  font-size: 18px;
  line-height: 1.22;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.question-meta .points-tag {
  border-color: rgba(255, 209, 102, 0.24);
  background: rgba(255, 209, 102, 0.1);
  color: var(--yellow);
}

.question-media {
  width: 100%;
  min-height: 176px;
  max-height: 48vh;
  scroll-margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101820;
  object-fit: contain;
  box-shadow: var(--soft-shadow);
}

.media-empty {
  min-height: 152px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  background:
    linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.06), transparent),
    #101820;
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.option-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 11px;
  text-align: left;
  line-height: 1.25;
}

.option-row.selected {
  border-color: rgba(98, 199, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(98, 199, 255, 0.16), rgba(167, 139, 250, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(98, 199, 255, 0.05);
}

.option-row.correct {
  border-color: rgba(79, 217, 154, 0.78);
  background: rgba(79, 217, 154, 0.15);
}

.option-row.wrong {
  border-color: rgba(255, 107, 107, 0.78);
  background: rgba(255, 107, 107, 0.15);
}

.option-box {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 1000;
}

.option-row.selected .option-box {
  border-color: rgba(98, 199, 255, 0.55);
  background: rgba(98, 199, 255, 0.18);
  color: var(--blue);
}

.option-row.correct .option-box {
  border-color: rgba(79, 217, 154, 0.7);
  background: rgba(79, 217, 154, 0.18);
  color: var(--green);
}

.option-row.wrong .option-box {
  border-color: rgba(255, 107, 107, 0.72);
  background: rgba(255, 107, 107, 0.18);
  color: var(--red);
}

.option-text {
  min-width: 0;
}

.selected-line {
  color: var(--muted);
  font-size: 13px;
}

.training-action-bar {
  position: sticky;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 8px);
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(12, 19, 24, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.result-card,
.review-block,
.error-note {
  scroll-margin-top: 12px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  font-size: 14px;
  line-height: 1.35;
}

.result-card.correct {
  border: 1px solid rgba(79, 217, 154, 0.55);
}

.result-card.wrong,
.error-note {
  border: 1px solid rgba(255, 107, 107, 0.55);
}

.review-block p,
.review-block ul {
  margin: 0;
  color: var(--muted);
}

.review-block ul {
  padding-left: 18px;
}

.review-block.subtle {
  border: 1px solid rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.08);
}

.exam-hero,
.exam-result-hero {
  overflow: hidden;
  border-color: rgba(98, 199, 255, 0.18);
}

.exam-category-picker {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(101, 210, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(78, 214, 168, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(27, 52, 64, 0.92), rgba(18, 34, 43, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 12px 28px rgba(3, 10, 14, 0.14);
}

.exam-category-picker::before {
  content: "";
  position: absolute;
  top: 0;
  right: 13px;
  left: 13px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 218, 255, 0.6), rgba(83, 224, 168, 0.46), transparent);
}

.exam-category-picker-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.exam-category-picker-head .section-title {
  margin: 0 0 4px;
  color: #effaff;
  font-size: 14px;
}

.exam-category-picker-head p {
  margin: 0;
  color: rgba(211, 228, 236, 0.64);
  font-size: 10px;
  line-height: 1.38;
}

.exam-category-current {
  min-width: 36px;
  display: grid;
  place-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(79, 217, 154, 0.32);
  border-radius: 999px;
  background: rgba(79, 217, 154, 0.11);
  color: #78efbd;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 0 18px rgba(79, 217, 154, 0.08);
}

.exam-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.exam-category-card {
  position: relative;
  min-width: 0;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(9, 23, 30, 0.58);
  color: rgba(237, 246, 250, 0.9);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: transform 150ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.exam-category-card:active {
  transform: scale(0.975);
}

.exam-category-card.active {
  border-color: rgba(79, 217, 154, 0.56);
  background:
    radial-gradient(circle at 12% 0%, rgba(90, 219, 255, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(36, 106, 102, 0.58), rgba(20, 60, 63, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 9px 23px rgba(21, 139, 126, 0.15),
    0 0 0 1px rgba(79, 217, 154, 0.05);
}

.exam-category-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 19px;
  align-items: center;
  gap: 7px;
}

.exam-category-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.065);
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.exam-category-code {
  min-width: 0;
  display: grid;
  line-height: 1;
}

.exam-category-code small {
  color: rgba(201, 218, 226, 0.5);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.exam-category-code strong {
  margin-top: 3px;
  color: #f4fbff;
  font-size: 16px;
  font-weight: 1000;
}

.exam-category-check {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: transparent;
  font-size: 11px;
  font-weight: 1000;
}

.exam-category-card.active .exam-category-check {
  border-color: rgba(113, 242, 191, 0.6);
  background: #54daa1;
  color: #092b24;
  box-shadow: 0 0 13px rgba(79, 217, 154, 0.25);
}

.exam-category-name {
  min-height: 27px;
  color: rgba(235, 244, 248, 0.84);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.22;
}

.exam-category-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: rgba(196, 216, 225, 0.53);
  font-size: 8px;
  font-weight: 780;
  line-height: 1.15;
}

.exam-category-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(100, 218, 255, 0.55);
}

.exam-category-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 96px;
}

.exam-result-hero.passed {
  border-color: rgba(79, 217, 154, 0.42);
  background:
    radial-gradient(circle at 16% 0%, rgba(79, 217, 154, 0.18), transparent 42%),
    var(--glass-strong);
}

.exam-result-hero.failed {
  border-color: rgba(255, 107, 107, 0.38);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 107, 107, 0.16), transparent 42%),
    var(--glass-strong);
}

.exam-points-score {
  min-width: 88px;
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.exam-points-score strong,
.exam-points-score small {
  display: block;
}

.exam-points-score small {
  font-size: 9px;
  font-weight: 850;
}

.exam-points-score.failed {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.13);
  color: var(--red);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.1);
}

.exam-rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.exam-rules-grid .mini-stat.premium-rule {
  border-color: rgba(255, 215, 112, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.11), rgba(164, 113, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
}

.exam-rules-grid .mini-stat.premium-rule .mini-stat-icon {
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.28));
}

.exam-hero .action-button.premium-exam-button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 132, 0.38);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 225, 143, 0.19), transparent 38%),
    linear-gradient(135deg, rgba(89, 67, 31, 0.93), rgba(47, 38, 56, 0.96));
  color: #ffe7a7;
  box-shadow:
    0 11px 28px rgba(9, 8, 14, 0.24),
    inset 0 1px 0 rgba(255, 245, 211, 0.13);
  text-shadow: 0 0 13px rgba(255, 209, 102, 0.15);
}

.exam-hero .action-button.premium-exam-button::after {
  content: "✦";
  position: absolute;
  top: 6px;
  right: 10px;
  color: rgba(255, 231, 167, 0.48);
  font-size: 9px;
}

.exam-hud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.exam-hud {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(98, 199, 255, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(98, 199, 255, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(50, 183, 232, 0.1), rgba(79, 217, 154, 0.04)),
    rgba(12, 19, 24, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.exam-hud-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.exam-hud-main span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.exam-hud-main strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.exam-timer {
  min-width: 70px;
  align-self: center;
  padding: 8px 10px;
  border: 1px solid rgba(79, 217, 154, 0.28);
  border-radius: 999px;
  background: rgba(79, 217, 154, 0.12);
  color: var(--green);
  font-weight: 1000;
  text-align: center;
}

.exam-timer.danger {
  border-color: rgba(255, 107, 107, 0.42);
  background: rgba(255, 107, 107, 0.12);
  color: var(--red);
}

.exam-question-shell {
  scroll-margin-top: 8px;
}

.exam-media,
.exam-card,
.exam-answer-card,
.exam-result-hero {
  animation: panel-enter 220ms ease both;
}

.exam-action-bar {
  border-color: rgba(98, 199, 255, 0.14);
}

.exam-analysis-card {
  display: grid;
  gap: 10px;
  border-color: rgba(167, 139, 250, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(167, 139, 250, 0.13), transparent 38%),
    var(--glass);
}

.exam-analysis-card.locked {
  border-color: rgba(255, 209, 102, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 209, 102, 0.12), transparent 38%),
    var(--glass);
}

.exam-topic-list {
  display: grid;
  gap: 8px;
}

.compact-row {
  padding: 10px;
}

.danger-tool {
  color: var(--red);
}

.reward-panel {
  border: 1px solid rgba(255, 209, 102, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.1), rgba(79, 217, 154, 0.06)),
    rgba(255, 255, 255, 0.045);
}

.practice-panel {
  animation: panel-enter 180ms ease both;
}

.reward-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reward-chip {
  animation: reward-pop 240ms ease both;
}

.reward-chip.xp {
  border-color: rgba(167, 139, 250, 0.25);
}

.reward-chip.coins {
  border-color: rgba(255, 209, 102, 0.28);
}

.reward-chip.streak {
  border-color: rgba(255, 107, 107, 0.22);
}

.reward-chip.tasks,
.reward-chip.achievements {
  grid-column: span 1;
}

.reward-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reward-list span {
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.question-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.question-tool {
  min-height: 38px;
  font-size: 13px;
}

.report-toggle {
  min-width: 132px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.report-panel {
  border: 1px solid rgba(255, 209, 102, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.065), rgba(98, 199, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  animation: panel-enter 180ms ease both;
}

.report-reasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.report-reason-button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.report-reason-button:active {
  transform: scale(0.985);
}

.report-reason-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.report-status {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 850;
}

.report-status.success {
  color: var(--green);
}

.report-status.error {
  color: var(--red);
}

.tag.easy {
  color: var(--green);
  background: rgba(79, 217, 154, 0.11);
}

.tag.medium {
  color: var(--yellow);
  background: rgba(255, 209, 102, 0.11);
}

.tag.hard,
.risk-pill.highRisk {
  color: var(--red);
  background: rgba(255, 107, 107, 0.12);
}

.risk-pill.mediumRisk {
  color: var(--yellow);
  background: rgba(255, 209, 102, 0.11);
}

.risk-pill.lowRisk {
  color: var(--green);
  background: rgba(79, 217, 154, 0.11);
}

.progress-line {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-fill {
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 320ms cubic-bezier(0.16, 1, 0.22, 1);
}

.progress-line.task-ready .progress-fill {
  background: linear-gradient(90deg, var(--yellow), var(--green));
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.3);
}

.progress-line.highRisk .progress-fill {
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.progress-line.mediumRisk .progress-fill {
  background: linear-gradient(90deg, var(--yellow), var(--blue));
}

.metric-row {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row strong {
  color: var(--text);
  text-align: right;
}

.lock-card {
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.11), rgba(98, 199, 255, 0.06)),
    rgba(23, 33, 41, 0.88);
}

.premium-coach-prompt {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  border-color: rgba(255, 211, 112, 0.42);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 112, 0.22), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(160, 108, 255, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(47, 42, 31, 0.97), rgba(20, 27, 34, 0.98) 58%, rgba(25, 22, 35, 0.98));
  box-shadow:
    0 18px 42px rgba(3, 8, 12, 0.26),
    0 0 0 1px rgba(255, 231, 166, 0.035) inset,
    0 1px rgba(255, 255, 255, 0.08) inset;
}

.premium-coach-prompt::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 16px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 218, 126, 0.98), rgba(198, 153, 255, 0.72), transparent);
}

.premium-coach-prompt.compact {
  margin-top: 10px;
}

.premium-prompt-aura {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.premium-prompt-aura span {
  position: absolute;
  color: rgba(255, 226, 151, 0.2);
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.24);
}

.premium-prompt-aura span:nth-child(1) {
  top: 13px;
  right: 26px;
  font-size: 24px;
}

.premium-prompt-aura span:nth-child(2) {
  top: 52px;
  right: 76px;
  font-size: 14px;
}

.premium-prompt-aura span:nth-child(3) {
  right: 17px;
  bottom: 62px;
  font-size: 11px;
}

.premium-prompt-head {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.premium-prompt-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 222, 139, 0.38);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 231, 164, 0.24), rgba(157, 105, 247, 0.14)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

.premium-prompt-star {
  color: #ffd66e;
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 0 17px rgba(255, 209, 102, 0.55);
}

.premium-prompt-shine {
  position: absolute;
  top: 4px;
  right: 5px;
  color: #fff0bd;
  font-size: 10px;
}

.premium-prompt-title {
  min-width: 0;
}

.premium-prompt-eyebrow {
  margin-bottom: 3px;
  color: #ffd778;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.095em;
  line-height: 1.1;
  text-transform: uppercase;
}

.premium-prompt-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.16;
}

.premium-prompt-badge {
  align-self: start;
  max-width: 112px;
  padding: 6px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 219, 127, 0.3);
  border-radius: 999px;
  background: rgba(255, 211, 102, 0.12);
  color: #ffdc83;
  font-size: 9px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-prompt-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(220, 230, 236, 0.72);
  font-size: 12px;
  line-height: 1.42;
}

.premium-prompt-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.premium-prompt-features span {
  min-width: 0;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 7px 5px;
  border: 1px solid rgba(255, 224, 146, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 224, 146, 0.075), rgba(167, 118, 255, 0.045)),
    rgba(255, 255, 255, 0.028);
  color: rgba(241, 244, 247, 0.88);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  text-align: center;
}

.lock-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.lock-actions .action-button {
  min-height: 44px;
}

.premium-coach-prompt .lock-actions {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.premium-coach-prompt .lock-actions .action-button.primary {
  border: 1px solid rgba(255, 236, 184, 0.26);
  background: linear-gradient(135deg, #ffd66f, #f0b94b);
  color: #211707;
  box-shadow: 0 8px 20px rgba(226, 166, 55, 0.15), inset 0 1px rgba(255, 255, 255, 0.28);
}

.premium-coach-prompt .lock-actions .action-button.secondary {
  border-color: rgba(224, 203, 255, 0.15);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(245, 239, 255, 0.92);
}

@media (max-width: 370px) {
  .premium-prompt-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .premium-prompt-mark {
    width: 44px;
    height: 44px;
  }

  .premium-prompt-badge {
    grid-column: 1 / -1;
    width: max-content;
    max-width: 100%;
  }

  .premium-prompt-features {
    gap: 5px;
  }

  .premium-prompt-features span {
    min-height: 50px;
    padding-inline: 3px;
    font-size: 9px;
  }
}

.avatar {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent), #36d69d);
  color: #061015;
  font-size: 30px;
  font-weight: 1000;
}

.compact-profile {
  grid-template-columns: auto 1fr;
  justify-items: stretch;
  text-align: left;
}

.compact-profile .avatar {
  align-self: center;
}

.compact-profile .stats-grid {
  grid-column: 1 / -1;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.more-section {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.more-premium-entry {
  margin-top: 10px;
}

.more-premium-card {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  border-color: rgba(255, 218, 126, 0.36);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 222, 135, 0.24), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(164, 113, 255, 0.12), transparent 44%),
    linear-gradient(145deg, rgba(63, 51, 31, 0.94), rgba(30, 29, 40, 0.96));
  box-shadow:
    0 16px 34px rgba(6, 8, 12, 0.23),
    inset 0 1px 0 rgba(255, 246, 215, 0.12);
}

.more-premium-card::before {
  content: "✦";
  position: absolute;
  top: 8px;
  right: 44px;
  color: rgba(255, 231, 167, 0.33);
  font-size: 11px;
}

.more-premium-card .action-card-icon {
  border-color: rgba(255, 224, 145, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 219, 125, 0.22), rgba(164, 113, 255, 0.1));
  color: #ffdc7b;
  box-shadow: 0 8px 22px rgba(255, 209, 102, 0.11);
}

.more-premium-card .action-card-copy strong {
  color: #fff2c8;
}

.more-premium-card .feature-badge {
  border-color: rgba(255, 225, 148, 0.24);
  background: rgba(255, 209, 102, 0.11);
  color: #ffdc7b;
}

.more-premium-card .action-card-arrow {
  color: rgba(255, 226, 151, 0.66);
}

.channel-spotlight-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 13px;
  overflow: hidden;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(104, 190, 255, 0.34);
  border-radius: calc(var(--radius) + 5px);
  background:
    radial-gradient(circle at 88% 4%, rgba(95, 187, 255, 0.27), transparent 34%),
    radial-gradient(circle at 5% 100%, rgba(91, 225, 183, 0.13), transparent 43%),
    linear-gradient(145deg, rgba(18, 49, 69, 0.97), rgba(22, 31, 47, 0.97));
  box-shadow:
    0 18px 38px rgba(5, 12, 22, 0.28),
    inset 0 1px 0 rgba(220, 243, 255, 0.1);
}

.channel-spotlight-glow {
  position: absolute;
  z-index: -1;
  top: -52px;
  right: -34px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: rgba(80, 179, 255, 0.16);
  filter: blur(4px);
  pointer-events: none;
}

.channel-spotlight-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.channel-spotlight-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(164, 220, 255, 0.27);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(90, 190, 255, 0.24), rgba(72, 137, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 21px;
}

.channel-spotlight-eyebrow {
  margin-bottom: 3px;
  color: #78c9ff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.075em;
  line-height: 1.1;
  text-transform: uppercase;
}

.channel-spotlight-head h2 {
  margin: 0;
  color: #f1f9ff;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.12;
}

.channel-spotlight-badge {
  align-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(99, 222, 173, 0.28);
  border-radius: 999px;
  background: rgba(71, 208, 151, 0.11);
  color: #6ce0af;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.channel-spotlight-card > p {
  margin: 0;
  color: rgba(218, 235, 245, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.channel-spotlight-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-spotlight-features span {
  padding: 6px 8px;
  border: 1px solid rgba(177, 224, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(233, 245, 252, 0.82);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.channel-spotlight-button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(188, 231, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #4fc3ff, #4f92ff);
  box-shadow:
    0 12px 25px rgba(53, 142, 231, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #071622;
  font: inherit;
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
}

.channel-spotlight-button:active {
  transform: scale(0.985);
}

@media (max-width: 380px) {
  .channel-spotlight-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .channel-spotlight-icon {
    width: 42px;
    height: 42px;
  }

  .channel-spotlight-badge {
    grid-column: 2;
    justify-self: start;
  }
}

.leaderboard-preview-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(169, 137, 255, 0.3);
  border-radius: calc(var(--radius) + 5px);
  background:
    radial-gradient(circle at 100% 0%, rgba(168, 119, 255, 0.2), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(83, 216, 181, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(39, 34, 61, 0.97), rgba(24, 29, 43, 0.97));
  box-shadow:
    0 18px 38px rgba(5, 8, 17, 0.27),
    inset 0 1px 0 rgba(238, 228, 255, 0.09);
}

.leaderboard-preview-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.leaderboard-preview-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(219, 197, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(178, 132, 255, 0.23), rgba(255, 210, 105, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 20px;
}

.leaderboard-preview-eyebrow {
  margin-bottom: 3px;
  color: #c4a5ff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.leaderboard-preview-head h2 {
  margin: 0;
  color: #f5efff;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.12;
}

.leaderboard-preview-scope {
  align-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(199, 170, 255, 0.2);
  border-radius: 999px;
  background: rgba(167, 119, 255, 0.1);
  color: #d3bbff;
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.leaderboard-preview-card > p {
  margin: 0;
  color: rgba(226, 222, 239, 0.7);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.leaderboard-preview-place {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.leaderboard-preview-place > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(226, 214, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.leaderboard-preview-place small {
  overflow: hidden;
  color: rgba(220, 214, 236, 0.58);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-preview-place strong {
  color: #f6f2ff;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.1;
}

.leaderboard-preview-place em {
  color: rgba(222, 214, 239, 0.55);
  font-size: 11px;
  font-style: normal;
}

.leaderboard-preview-list {
  display: grid;
  gap: 5px;
}

.leaderboard-preview-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 27px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 8px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-preview-row.current {
  border-color: rgba(86, 224, 174, 0.22);
  background: rgba(67, 209, 157, 0.07);
}

.leaderboard-preview-medal {
  text-align: center;
  font-size: 15px;
  font-weight: 1000;
}

.leaderboard-preview-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(177, 132, 255, 0.24), rgba(83, 192, 255, 0.12));
  color: #f6efff;
  font-size: 12px;
  font-weight: 1000;
}

.leaderboard-preview-row > strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 242, 255, 0.91);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-preview-row > span:last-child {
  color: #d8c7ff;
  font-size: 11px;
  font-weight: 1000;
  white-space: nowrap;
}

.leaderboard-preview-loading {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(226, 222, 239, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.leaderboard-preview-loading .spinner {
  width: 24px;
  height: 24px;
}

.leaderboard-preview-empty {
  padding: 11px;
  border: 1px dashed rgba(199, 170, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.leaderboard-preview-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(205, 181, 255, 0.24);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(171, 126, 255, 0.94), rgba(102, 139, 255, 0.94));
  box-shadow: 0 10px 24px rgba(99, 86, 210, 0.2);
  color: #0f1020;
  font: inherit;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
}

.leaderboard-preview-button:active {
  transform: scale(0.985);
}

.daily-reward-entry.ready {
  background:
    linear-gradient(135deg, rgba(74, 218, 158, 0.1), rgba(255, 196, 83, 0.055)),
    rgba(255, 255, 255, 0.035);
}

.daily-reward-entry.ready .feature-badge {
  border-color: rgba(76, 223, 161, 0.25);
  background: rgba(67, 209, 157, 0.11);
  color: #61daa8;
}

@media (max-width: 380px) {
  .leaderboard-preview-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .leaderboard-preview-scope {
    grid-column: 2;
    justify-self: start;
  }
}

.more-section .section-head {
  margin: 0;
  padding: 0 3px;
}

.more-section .section-title {
  color: rgba(229, 239, 245, 0.86);
  font-size: 15px;
}

.profile-tools-section {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.profile-tools-section .section-head {
  margin: 0;
  padding: 0 3px;
}

.action-card-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--soft-shadow);
}

.action-card-list .action-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
}

.action-card-list .action-card:last-child {
  border-bottom: 0;
}

.action-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.action-card.primary {
  border-color: rgba(98, 199, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(98, 199, 255, 0.14), rgba(79, 217, 154, 0.07)),
    rgba(255, 255, 255, 0.045);
}

.action-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 18px;
}

.action-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.action-card-copy strong,
.action-card-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-card-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.15;
  white-space: nowrap;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(98, 199, 255, 0.18);
  border-radius: 999px;
  background: rgba(98, 199, 255, 0.1);
  color: var(--blue);
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.action-card-copy small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.action-card-arrow {
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
}

.support-hero {
  overflow: hidden;
  border-color: rgba(98, 199, 255, 0.2);
  background:
    radial-gradient(circle at 92% 8%, rgba(98, 199, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(79, 217, 154, 0.08), rgba(255, 255, 255, 0.04)),
    var(--glass);
}

.support-hero-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98, 199, 255, 0.18);
  border-radius: 15px;
  background: rgba(98, 199, 255, 0.09);
  font-size: 22px;
}

.support-form-section {
  margin-top: 10px;
}

.support-form,
.support-field {
  display: grid;
  gap: 10px;
}

.support-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.support-topic-button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.support-topic-button span {
  font-size: 18px;
  text-align: center;
}

.support-topic-button strong {
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.support-topic-button.active {
  border-color: rgba(79, 217, 154, 0.66);
  background:
    linear-gradient(135deg, rgba(79, 217, 154, 0.16), rgba(98, 199, 255, 0.07)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 1px rgba(79, 217, 154, 0.07);
}

.support-topic-button:active {
  transform: scale(0.985);
}

.support-field-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.support-message-input {
  width: 100%;
  min-height: 146px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: rgba(3, 10, 15, 0.36);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.support-message-input::placeholder {
  color: rgba(164, 180, 190, 0.72);
}

.support-message-input:focus {
  border-color: rgba(98, 199, 255, 0.56);
  background: rgba(3, 10, 15, 0.48);
  box-shadow: 0 0 0 3px rgba(98, 199, 255, 0.09);
}

.support-message-input:disabled {
  cursor: wait;
  opacity: 0.65;
}

.support-field-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.support-field-footer span:first-child {
  max-width: 72%;
}

.support-field-footer span:last-child {
  flex: none;
  white-space: nowrap;
}

.support-success-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 24px;
  text-align: center;
}

.support-success-card > div:not(.support-success-icon) {
  display: grid;
  gap: 8px;
}

.support-success-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 217, 154, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(79, 217, 154, 0.14);
  color: var(--green);
  font-size: 34px;
  font-weight: 1000;
  box-shadow: 0 14px 34px rgba(79, 217, 154, 0.1);
}

.support-success-card .action-button {
  max-width: 280px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(9px + env(safe-area-inset-bottom));
  z-index: 20;
  width: min(calc(100% - 18px), 540px);
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 7px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% -26%, rgba(255, 255, 255, 0.34), transparent 37%),
    radial-gradient(circle at 85% 132%, rgba(98, 199, 255, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.135), rgba(255, 255, 255, 0.035)),
    rgba(7, 14, 19, 0.43);
  backdrop-filter: blur(22px) saturate(1.58) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.58) brightness(1.06);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.42),
    0 7px 18px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07);
  transform: translate3d(-50%, 0, 0);
}

.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(108deg, rgba(255, 255, 255, 0.09), transparent 28%, transparent 68%, rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 48% -34%, rgba(255, 255, 255, 0.16), transparent 48%);
  pointer-events: none;
}

.bottom-nav::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 33px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.19), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.055)),
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.14), transparent 43%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 24px rgba(1, 7, 10, 0.09);
  pointer-events: none;
}

.nav-liquid-field {
  position: absolute;
  inset: 7px;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.nav-liquid-lens,
.nav-liquid-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / 5);
  height: 100%;
  transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0);
  transform-origin: var(--blob-origin, center);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.nav-liquid-lens {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 25px;
  background:
    radial-gradient(circle at 28% 10%, rgba(255, 255, 255, 0.38), transparent 30%),
    radial-gradient(circle at 78% 92%, rgba(98, 199, 255, 0.17), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.045)),
    rgba(79, 217, 154, 0.075);
  box-shadow:
    0 10px 22px rgba(1, 8, 12, 0.2),
    0 4px 14px rgba(79, 217, 154, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -9px 20px rgba(2, 9, 13, 0.18);
}

.nav-liquid-lens::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 16%;
  width: 58%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  opacity: 0.78;
}

.nav-liquid-lens::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 -6px 12px rgba(98, 199, 255, 0.06);
}

.nav-liquid-caustic {
  position: absolute;
  inset: -24% -34%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 38%, rgba(255, 255, 255, 0.24), transparent 17%),
    radial-gradient(circle at 62% 62%, rgba(79, 217, 154, 0.15), transparent 24%);
  opacity: 0.48;
  transform: rotate(-6deg) translate3d(-2%, 0, 0);
}

.nav-liquid-trail {
  display: grid;
  place-items: center;
  opacity: 0;
}

.nav-liquid-trail::before {
  content: "";
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.38), transparent 30%),
    rgba(79, 217, 154, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 7px 18px rgba(0, 0, 0, 0.16);
}

.bottom-nav.nav-flow .nav-liquid-lens {
  animation: nav-liquid-flow-right 520ms cubic-bezier(0.22, 0.72, 0.16, 1) both;
}

.bottom-nav.nav-flow-left .nav-liquid-lens {
  animation-name: nav-liquid-flow-left;
}

.bottom-nav.nav-flow .nav-liquid-trail {
  animation: nav-liquid-trail-right 500ms cubic-bezier(0.22, 0.72, 0.16, 1) both;
}

.bottom-nav.nav-flow-left .nav-liquid-trail {
  animation-name: nav-liquid-trail-left;
}

.tab-button {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 7px 3px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.78;
  transition:
    transform 300ms cubic-bezier(0.16, 1, 0.22, 1),
    color 260ms ease,
    opacity 260ms ease;
}

.tab-button.active {
  color: var(--text);
  opacity: 1;
  transform: translateY(-1px);
  text-shadow: 0 3px 14px rgba(79, 217, 154, 0.16);
}

.tab-button:active {
  transform: translateY(1px) scale(0.965);
}

.tab-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.22, 1), color 240ms ease;
}

.tab-icon svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-icon svg .filled {
  fill: currentColor;
  stroke: none;
}

.tab-button.active .tab-icon {
  color: var(--green);
  transform: translateY(-1px) scale(1.11);
}

.bottom-nav.nav-flow .tab-button.active .tab-icon {
  animation: nav-icon-settle 520ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.tab-label {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 260ms ease, transform 300ms cubic-bezier(0.16, 1, 0.22, 1);
}

.tab-button.active .tab-label {
  transform: translateY(-1px);
}

@keyframes nav-liquid-flow-right {
  0% {
    transform: translate3d(calc(var(--from-index, var(--active-index, 0)) * 100%), 0, 0) scaleX(0.9) scaleY(1.03);
  }

  32% {
    transform: translate3d(calc(var(--mid-index, var(--active-index, 0)) * 100%), 0, 0) scaleX(var(--blob-stretch, 1.16)) scaleY(0.92);
  }

  68% {
    transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0) scaleX(1.07) scaleY(0.97);
  }

  86% {
    transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0) scaleX(0.975) scaleY(1.025);
  }

  100% {
    transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0) scaleX(1) scaleY(1);
  }
}

@keyframes nav-liquid-flow-left {
  0% {
    transform: translate3d(calc(var(--from-index, var(--active-index, 0)) * 100%), 0, 0) scaleX(0.9) scaleY(1.03);
  }

  32% {
    transform: translate3d(calc(var(--mid-index, var(--active-index, 0)) * 100%), 0, 0) scaleX(var(--blob-stretch, 1.16)) scaleY(0.92);
  }

  68% {
    transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0) scaleX(1.07) scaleY(0.97);
  }

  86% {
    transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0) scaleX(0.975) scaleY(1.025);
  }

  100% {
    transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0) scaleX(1) scaleY(1);
  }
}

@keyframes nav-liquid-trail-right {
  0% {
    opacity: 0;
    transform: translate3d(calc(var(--from-index, var(--active-index, 0)) * 100%), 0, 0) scale(0.25);
  }

  24% {
    opacity: 0.72;
    transform: translate3d(calc(var(--from-index, var(--active-index, 0)) * 100%), 0, 0) scale(0.76);
  }

  66% {
    opacity: 0.35;
    transform: translate3d(calc(var(--mid-index, var(--active-index, 0)) * 100%), 0, 0) scale(0.5);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0) scale(0.18);
  }
}

@keyframes nav-liquid-trail-left {
  0% {
    opacity: 0;
    transform: translate3d(calc(var(--from-index, var(--active-index, 0)) * 100%), 0, 0) scale(0.25);
  }

  24% {
    opacity: 0.72;
    transform: translate3d(calc(var(--from-index, var(--active-index, 0)) * 100%), 0, 0) scale(0.76);
  }

  66% {
    opacity: 0.35;
    transform: translate3d(calc(var(--mid-index, var(--active-index, 0)) * 100%), 0, 0) scale(0.5);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0) scale(0.18);
  }
}

@keyframes nav-icon-settle {
  0% {
    transform: translateY(1px) scale(0.9);
  }

  58% {
    transform: translateY(-2px) scale(1.16);
  }

  100% {
    transform: translateY(-1px) scale(1.11);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reward-pop {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-backdrop-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes chest-modal-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes purchase-outcome-enter {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
  }

  58% {
    opacity: 1;
    transform: translateY(-3px) scale(1.012);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes purchase-icon-pop {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-16deg);
  }

  62% {
    opacity: 1;
    transform: scale(1.12) rotate(4deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes purchase-halo-pulse {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes purchase-spark-twinkle {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.84) rotate(-8deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.15) rotate(8deg);
  }
}

@keyframes purchase-confetti-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.4);
  }

  14% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate3d(var(--confetti-x), var(--confetti-y), 0)
      rotate(var(--confetti-rotate))
      scale(1);
  }
}

@keyframes task-reward-glow {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Premium exam rhythm */
.premium-deadline-rhythm {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 14px 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 203, 92, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 199, 79, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(45, 50, 43, 0.94), rgba(21, 34, 35, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.premium-deadline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.premium-deadline-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.premium-deadline-head small {
  color: #ffd36f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.premium-deadline-head strong {
  color: #f6f8f7;
  font-size: 14px;
  line-height: 1.3;
}

.premium-deadline-head > span {
  flex: 0 0 auto;
  max-width: 100px;
  padding: 5px 7px;
  border: 1px solid rgba(105, 225, 179, 0.22);
  border-radius: 999px;
  color: #77e8bc;
  background: rgba(39, 172, 126, 0.1);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.premium-deadline-rhythm > p {
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.premium-deadline-goals {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.premium-deadline-goals article {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(7, 20, 24, 0.48);
}

.premium-deadline-goals article.complete {
  border-color: rgba(71, 221, 160, 0.27);
  background: rgba(32, 119, 87, 0.13);
}

.premium-deadline-goals article.exam-complete {
  border-color: rgba(83, 231, 172, 0.4);
  background:
    radial-gradient(circle at 100% 0%, rgba(77, 229, 169, 0.14), transparent 48%),
    linear-gradient(145deg, rgba(25, 96, 73, 0.3), rgba(8, 31, 30, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(2, 18, 15, 0.14);
}

.premium-deadline-goals article.complete .premium-deadline-goal-head b {
  color: #72e7b8;
}

.premium-deadline-goals article.due {
  border-color: rgba(255, 195, 78, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 64, 0.09), transparent 46%),
    rgba(7, 20, 24, 0.48);
}

.progress-line.exam-awaiting {
  border: 1px solid rgba(255, 201, 91, 0.12);
  background: rgba(255, 206, 103, 0.09);
}

.premium-deadline-goal-head,
.premium-deadline-goal-foot {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.premium-deadline-goal-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.premium-deadline-goal-head strong {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.premium-deadline-goal-head b {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 48%;
  color: #f4d98f;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: right;
}

.premium-deadline-goal-foot small {
  color: var(--muted);
  font-size: 10px;
}

.premium-deadline-recommendation {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.premium-deadline-recommendation small {
  color: rgba(232, 239, 241, 0.82);
  font-weight: 850;
  line-height: 1.25;
}

.premium-deadline-progress-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(112, 220, 184, 0.13);
  border-radius: 10px;
  background: rgba(35, 88, 76, 0.16);
}

.premium-deadline-progress-summary > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 4px;
}

.premium-deadline-progress-summary small {
  color: rgba(185, 207, 207, 0.72);
  font-size: 8px;
  font-weight: 760;
  line-height: 1;
}

.premium-deadline-progress-summary strong {
  color: #dffff2;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.premium-deadline-progress-summary > i {
  width: 1px;
  height: 16px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
}

.premium-deadline-progress-summary .remaining strong {
  color: #ffd77c;
}

.premium-deadline-progress-summary.exam-pending-summary {
  border-color: rgba(255, 204, 98, 0.17);
  background: rgba(113, 77, 18, 0.13);
}

.premium-deadline-progress-summary.exam-pending-summary strong {
  color: #fff1c8;
}

.premium-deadline-progress-summary.exam-pending-summary .remaining strong {
  color: #ffd36b;
}

.premium-deadline-goal-foot button {
  flex: 0 0 auto;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(104, 231, 181, 0.24);
  border-radius: 10px;
  color: #071a16;
  background: linear-gradient(135deg, #52dfa3, #31ca98);
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 400px) {
  .premium-deadline-rhythm {
    padding: 12px;
  }

  .premium-deadline-goals article {
    padding: 10px;
  }

  .premium-deadline-goal-head {
    gap: 7px;
  }

  .premium-deadline-goal-head b {
    max-width: 46%;
    font-size: 10px;
  }

  .premium-deadline-goal-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 7px;
  }

  .premium-deadline-progress-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    width: 100%;
    gap: 7px;
  }

  .premium-deadline-progress-summary > span {
    display: grid;
    align-content: center;
    align-items: initial;
    gap: 3px;
  }

  .premium-deadline-progress-summary > i {
    width: 1px;
    height: 26px;
  }

  .premium-deadline-progress-summary small,
  .premium-deadline-progress-summary strong {
    overflow-wrap: anywhere;
  }

  .premium-deadline-goal-foot button {
    width: 100%;
    min-height: 34px;
  }
}

.premium-deadline-complete-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(86, 225, 171, 0.2);
  border-radius: 12px;
  background: rgba(37, 153, 111, 0.11);
}

.premium-deadline-complete-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(106, 236, 184, 0.28);
  border-radius: 50%;
  color: #78ecc0;
  background: rgba(77, 221, 164, 0.13);
  font-size: 17px;
  font-weight: 950;
}

.premium-deadline-complete-row > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.premium-deadline-complete-row strong {
  color: #eafff7;
  font-size: 11px;
  line-height: 1.2;
}

.premium-deadline-complete-row small {
  color: rgba(190, 220, 209, 0.78);
  font-size: 9px;
  line-height: 1.35;
}

/* Favorites library */
.favorite-mode-cluster {
  display: grid;
  overflow: hidden;
  border-radius: 18px;
}

.favorite-mode-cluster .mode-card {
  border-radius: 18px 18px 10px 10px;
}

.favorite-library-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 206, 94, 0.2);
  border-radius: 10px 10px 16px 16px;
  color: #f5f0df;
  background: linear-gradient(135deg, rgba(94, 76, 35, 0.3), rgba(29, 42, 43, 0.9));
  font-size: 11px;
  text-align: left;
}

.favorite-library-entry > span:last-child {
  color: #ffd873;
  font-size: 20px;
}

.favorites-library {
  display: grid;
  gap: 13px;
}

.favorites-library-back {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(30, 47, 53, 0.94);
  font-size: 11px;
  font-weight: 800;
}

.favorites-library-hero {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 211, 105, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 205, 89, 0.15), transparent 45%),
    linear-gradient(145deg, rgba(43, 49, 44, 0.96), rgba(20, 32, 35, 0.98));
}

.favorites-library-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 217, 111, 0.32);
  border-radius: 16px;
  background: rgba(255, 201, 72, 0.12);
  font-size: 24px;
}

.favorites-library-hero h2 {
  margin: 2px 0 5px;
  color: var(--text);
  font-size: 20px;
}

.favorites-library-hero p,
.favorites-library-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.favorites-library-list {
  display: grid;
  gap: 9px;
}

.favorite-question-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(27, 42, 46, 0.94);
}

.favorite-question-card[open] {
  border-color: rgba(255, 210, 95, 0.28);
}

.favorite-question-card summary {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 13px;
  cursor: pointer;
  list-style: none;
}

.favorite-question-card summary::-webkit-details-marker {
  display: none;
}

.favorite-question-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #ffe093;
  background: rgba(255, 204, 75, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.favorite-question-card summary > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.favorite-question-card summary small {
  color: #d7b967;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.favorite-question-card summary strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.favorite-question-card summary i {
  color: var(--muted);
  font-style: normal;
}

.favorite-question-body {
  display: grid;
  gap: 10px;
  padding: 0 13px 13px;
}

.favorite-question-media {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(5, 14, 17, 0.5);
}

.favorite-question-media img,
.favorite-question-media video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.favorite-question-media > button {
  width: 100%;
  padding: 13px;
  border: 1px dashed rgba(255, 211, 103, 0.26);
  border-radius: 12px;
  color: #ffe199;
  background: rgba(255, 207, 75, 0.07);
  font-size: 10px;
  font-weight: 900;
}

.favorite-answer-list {
  display: grid;
  gap: 6px;
}

.favorite-answer-list > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.favorite-answer-list > div.correct {
  color: #dfffee;
  background: rgba(46, 205, 143, 0.13);
}

.favorite-answer-list span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 900;
}

.favorite-answer-list p,
.favorite-explanation {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
}

.favorite-correct-label {
  color: #61e5aa;
  font-size: 10px;
  font-weight: 900;
}

.favorite-explanation {
  padding: 10px;
  border-left: 2px solid rgba(255, 211, 101, 0.5);
  color: var(--muted);
  background: rgba(255, 215, 112, 0.05);
}

.favorite-remove-action {
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid rgba(255, 111, 111, 0.2);
  border-radius: 10px;
  color: #ffb4b4;
  background: rgba(169, 51, 51, 0.1);
  font-size: 10px;
  font-weight: 800;
}

.favorites-library-empty,
.favorites-library-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}

.favorites-library-empty span {
  color: #ffd773;
  font-size: 34px;
}

/* In-question hint purchase and favorites practice notice */
.hint-purchase-modal,
.favorites-practice-modal {
  position: relative;
  width: min(100% - 28px, 390px);
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(93, 226, 176, 0.28);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 0, rgba(71, 222, 163, 0.18), transparent 42%),
    linear-gradient(155deg, #1f3438, #101c20 72%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  text-align: center;
}

.hint-purchase-modal.success {
  border-color: rgba(255, 209, 96, 0.38);
}

.hint-purchase-icon,
.favorites-practice-orb {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 3px auto 14px;
  place-items: center;
  border: 1px solid rgba(91, 230, 177, 0.35);
  border-radius: 24px;
  color: #68e9b4;
  background: rgba(52, 190, 137, 0.13);
  font-size: 34px;
}

.favorites-practice-orb {
  border-color: rgba(255, 210, 90, 0.35);
  color: #ffd369;
  background: rgba(255, 201, 70, 0.1);
}

.hint-purchase-modal h2,
.favorites-practice-modal h2 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: 21px;
}

.hint-purchase-modal > p,
.favorites-practice-modal > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hint-purchase-wallet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 15px;
}

.hint-purchase-wallet > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 65px;
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.hint-purchase-wallet > div.total {
  border-color: rgba(79, 217, 154, 0.23);
  background: rgba(47, 181, 131, 0.09);
}

.hint-purchase-wallet span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.15;
}

.hint-purchase-wallet strong {
  color: #ffe092;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.hint-purchase-wallet strong small {
  font-size: 10px;
}

.hint-purchase-wallet .total strong {
  color: #78eabd;
}

.hint-purchase-insufficient {
  margin: -6px 0 13px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 107, 107, 0.18);
  border-radius: 11px;
  background: rgba(167, 51, 51, 0.1);
  color: #ffb2b2;
  font-size: 11px;
  font-weight: 850;
}

.hint-purchase-actions,
.task-reward-chest-actions {
  display: grid;
  gap: 8px;
}

.favorites-practice-zero-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 16px;
}

.favorites-practice-zero-impact span {
  padding: 9px 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 800;
}

.question-tool.buy-hint-tool {
  border-color: rgba(255, 209, 93, 0.3);
  color: #ffe09a;
  background: rgba(255, 201, 68, 0.08);
}

.task-reward-prizes .reward-chip.item {
  grid-column: 1 / -1;
  border-color: rgba(255, 208, 91, 0.26);
  background: rgba(255, 198, 57, 0.08);
}

@media (max-width: 370px) {
  .premium-deadline-head {
    display: grid;
  }

  .premium-deadline-head > span {
    max-width: none;
    justify-self: start;
  }

  .premium-deadline-goal-head {
    align-items: flex-start;
  }

  .premium-deadline-goal-foot {
    align-items: flex-end;
  }

}

@keyframes task-confetti-float {
  0%,
  100% {
    transform: translateY(2px) rotate(-8deg);
  }

  50% {
    transform: translateY(-5px) rotate(9deg);
  }
}

@keyframes chest-card-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chest-shake {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(-2.5deg) translateY(-1px);
  }

  50% {
    transform: rotate(2deg) translateY(1px);
  }

  75% {
    transform: rotate(-1.4deg) translateY(0);
  }
}

@keyframes chest-lid-peek {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-3px) rotateX(14deg);
  }
}

@keyframes chest-lid-open {
  0% {
    transform: translateY(0) rotateX(0deg) rotate(-1deg);
  }

  44% {
    transform: translateY(-8px) rotateX(38deg) rotate(-4deg);
  }

  100% {
    transform: translateY(-19px) rotateX(66deg) rotate(-8deg);
  }
}

@keyframes chest-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.86);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.05);
  }
}

@keyframes chest-glow-burst {
  0% {
    opacity: 0.45;
    transform: scale(0.72);
  }

  58% {
    opacity: 1;
    transform: scale(1.38);
  }

  100% {
    opacity: 0.74;
    transform: scale(1.02);
  }
}

@keyframes chest-spark-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.64);
  }

  42% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -30px, 0) scale(1.24) rotate(20deg);
  }
}

@keyframes chest-prize-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }

  72% {
    opacity: 1;
    transform: translateY(-1px) scale(1.015);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chest-loader-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.88);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

@keyframes chest-shine {
  0% {
    transform: translateX(-70%) rotate(10deg);
  }

  100% {
    transform: translateX(70%) rotate(10deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 520px) {
  .app-layout {
    padding-left: 8px;
    padding-right: 8px;
  }

  .top-bar h1 {
    font-size: 21px;
  }

  .top-bar {
    column-gap: 8px;
    padding-left: 0;
    padding-right: 0;
  }

  .top-bar-title {
    gap: 8px;
  }

  .top-bar > .status-pill {
    padding: 5px 7px;
    font-size: 11px;
  }

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

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .more-grid {
    grid-template-columns: 1fr;
  }

  .topic-select-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .hero,
  .coach-card {
    padding: 12px;
  }

  .task-card-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .task-action,
  .task-done-pill {
    width: 100%;
  }

  .today-focus-footer,
  .today-focus-footer .action-button {
    width: 100%;
  }

  .training-hud-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-category-picker {
    padding: 10px;
  }

  .exam-category-card {
    min-height: 104px;
    padding: 9px;
  }

  .exam-hud-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-hud-grid .mini-stat:nth-child(3) {
    grid-column: 1 / -1;
  }

  .premium-plan-card {
    grid-template-columns: 1fr;
  }

  .premium-plan-price {
    min-width: 0;
    align-content: stretch;
    align-items: stretch;
    justify-items: stretch;
  }

  .premium-plan-price .premium-plan-stars,
  .premium-plan-rate {
    text-align: left;
  }

  .premium-date-box,
  .premium-date-meta {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .premium-date-box > * {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .premium-date-meta {
    display: grid;
  }
}

@media (max-width: 350px) {
  .today-focus-head {
    display: grid;
    justify-content: stretch;
  }

  .today-focus-count {
    justify-self: start;
  }

  .task-group-meta span {
    display: none;
  }

  .tab-label {
    display: none;
  }

  .tab-button {
    min-height: 44px;
  }

  .stats-grid,
  .stats-grid.compact {
    grid-template-columns: 1fr;
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }

  .premium-feature-grid {
    grid-template-columns: 1fr;
  }

  .premium-preview-metrics {
    grid-template-columns: 1fr;
  }

  .lock-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .premium-trial-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .premium-trial-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .purchase-outcome-modal {
    padding-right: 14px;
    padding-left: 14px;
  }

  .purchase-outcome-actions.split {
    grid-template-columns: 1fr;
  }
}

.recording-onboarding-progress {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0 0 12px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(79, 217, 154, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(82, 167, 255, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(29, 68, 70, 0.96), rgba(18, 33, 40, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.recording-onboarding-progress::after {
  content: "25";
  position: absolute;
  top: -22px;
  right: 8px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 92px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.recording-onboarding-copy,
.recording-onboarding-meter {
  position: relative;
  z-index: 1;
}

.recording-onboarding-copy small {
  display: block;
  margin-bottom: 4px;
  color: #75ecc0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recording-onboarding-copy h2 {
  margin: 0;
  color: #f5fbff;
  font-size: clamp(19px, 5.3vw, 24px);
  line-height: 1.08;
}

.recording-onboarding-copy p {
  max-width: 31rem;
  margin: 8px 0 0;
  color: rgba(217, 231, 238, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.recording-onboarding-meter {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(3, 13, 18, 0.28);
}

.recording-onboarding-meter > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recording-onboarding-meter span {
  color: rgba(217, 231, 238, 0.76);
  font-size: 11px;
  font-weight: 750;
}

.recording-onboarding-meter strong {
  color: #75ecc0;
  font-size: 13px;
  font-weight: 950;
}

.progress-line.recording-onboarding .progress-fill {
  background: linear-gradient(90deg, #53dca0, #55b8ff);
  box-shadow: 0 0 14px rgba(83, 220, 160, 0.3);
}

.leaderboard-preview-prize {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 215, 109, 0.26);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 50%, rgba(255, 214, 105, 0.17), transparent 42%),
    rgba(255, 202, 81, 0.055);
  box-shadow: inset 0 1px rgba(255, 244, 207, 0.08);
}

.leaderboard-preview-prize > span {
  font-size: 23px;
  filter: drop-shadow(0 5px 10px rgba(255, 201, 72, 0.2));
}

.leaderboard-preview-prize strong {
  color: #ffe3a0;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.3;
}

.leaderboard-preview-minimum {
  color: rgba(220, 214, 236, 0.58) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-align: center;
}

.daily-reward-entry .action-card-copy strong {
  flex-wrap: wrap;
  white-space: normal;
}

.daily-reward-entry .feature-badge {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.premium-coach-prompt.progress-placement {
  border-color: rgba(106, 187, 255, 0.27);
  background:
    radial-gradient(circle at 100% 0%, rgba(95, 178, 255, 0.19), transparent 37%),
    radial-gradient(circle at 0% 100%, rgba(168, 119, 255, 0.12), transparent 45%),
    linear-gradient(155deg, rgba(28, 43, 61, 0.98), rgba(27, 28, 43, 0.98));
}

.premium-recovery-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 11px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 214, 112, 0.31);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 213, 104, 0.2), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(167, 114, 255, 0.14), transparent 44%),
    linear-gradient(145deg, rgba(53, 45, 31, 0.98), rgba(29, 28, 42, 0.98));
  box-shadow:
    0 16px 32px rgba(3, 6, 12, 0.25),
    inset 0 1px rgba(255, 247, 218, 0.1);
}

.premium-recovery-card::after {
  content: "✦";
  position: absolute;
  z-index: -1;
  top: 10px;
  right: 15px;
  color: rgba(255, 230, 165, 0.24);
  font-size: 30px;
}

.premium-recovery-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.premium-recovery-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 151, 0.25);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 214, 105, 0.2), rgba(169, 115, 255, 0.1));
  font-size: 19px;
}

.premium-recovery-head > div {
  min-width: 0;
}

.premium-recovery-head small {
  display: block;
  margin-bottom: 3px;
  color: #ffd56f;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-recovery-head h3 {
  margin: 0;
  color: #fff3cc;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.18;
}

.premium-recovery-badge {
  align-self: start;
  padding: 5px 7px;
  border: 1px solid rgba(255, 222, 137, 0.22);
  border-radius: 999px;
  background: rgba(255, 208, 89, 0.1);
  color: #ffdc7e;
  font-size: 9px;
  font-weight: 1000;
}

.premium-recovery-card > p {
  margin: 0;
  color: rgba(240, 232, 210, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.42;
}

.premium-recovery-action {
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 236, 185, 0.25);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd76e, #efb84b);
  box-shadow: 0 11px 24px rgba(226, 166, 55, 0.18), inset 0 1px rgba(255, 255, 255, 0.28);
  color: #211706;
  font: inherit;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
}

.premium-recovery-action:active {
  transform: scale(0.985);
}

.premium-recovery-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 218, 119, 0.24);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255, 208, 88, 0.09), rgba(164, 111, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  color: #ffe2a0;
}

.premium-recovery-progress strong {
  min-width: 0;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1.25;
}

.premium-recovery-progress .progress-line {
  grid-column: 1 / -1;
  margin: 0;
}

.progress-line.premium-series .progress-fill {
  background: linear-gradient(90deg, #ffd86f, #bf82ff);
}

[data-next-similar] {
  border-color: rgba(255, 235, 181, 0.25) !important;
  background: linear-gradient(135deg, #ffd76e, #efb84b) !important;
  color: #211706 !important;
}

.monthly-reward-backdrop {
  z-index: 75;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 206, 88, 0.29), transparent 32%),
    radial-gradient(circle at 15% 82%, rgba(153, 103, 255, 0.2), transparent 34%),
    rgba(3, 5, 12, 0.86);
}

.monthly-reward-modal {
  position: relative;
  isolation: isolate;
  width: min(100%, 410px);
  max-height: calc(100vh - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  gap: 14px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  padding: 27px 18px 18px;
  border: 1px solid rgba(255, 218, 119, 0.35);
  border-radius: 29px;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 211, 91, 0.25), transparent 39%),
    radial-gradient(circle at 0% 100%, rgba(160, 110, 255, 0.14), transparent 44%),
    linear-gradient(160deg, rgba(55, 46, 30, 0.99), rgba(20, 21, 34, 0.99));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.62),
    0 0 54px rgba(255, 196, 64, 0.09),
    inset 0 1px rgba(255, 249, 224, 0.13);
  animation: monthly-reward-enter 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.monthly-reward-modal.claimed {
  border-color: rgba(91, 228, 173, 0.34);
  background:
    radial-gradient(circle at 50% -10%, rgba(74, 221, 162, 0.22), transparent 39%),
    radial-gradient(circle at 100% 100%, rgba(93, 172, 255, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(27, 55, 50, 0.99), rgba(14, 24, 32, 0.99));
}

.monthly-reward-modal.place-2:not(.claimed) {
  border-color: rgba(211, 228, 244, 0.35);
  background:
    radial-gradient(circle at 50% -12%, rgba(205, 227, 245, 0.24), transparent 39%),
    radial-gradient(circle at 0% 100%, rgba(108, 166, 222, 0.13), transparent 44%),
    linear-gradient(160deg, rgba(46, 55, 64, 0.99), rgba(19, 25, 35, 0.99));
}

.monthly-reward-modal.place-2:not(.claimed) .monthly-reward-medal {
  border-color: rgba(222, 237, 249, 0.35);
  background: linear-gradient(145deg, rgba(218, 234, 247, 0.23), rgba(116, 168, 211, 0.09));
  box-shadow: 0 18px 42px rgba(159, 202, 237, 0.16), inset 0 1px rgba(255, 255, 255, 0.18);
}

.monthly-reward-modal.place-3:not(.claimed) {
  border-color: rgba(226, 158, 101, 0.35);
  background:
    radial-gradient(circle at 50% -12%, rgba(219, 144, 85, 0.23), transparent 39%),
    radial-gradient(circle at 100% 100%, rgba(255, 190, 110, 0.1), transparent 43%),
    linear-gradient(160deg, rgba(59, 42, 32, 0.99), rgba(27, 23, 28, 0.99));
}

.monthly-reward-modal.place-3:not(.claimed) .monthly-reward-medal {
  border-color: rgba(234, 174, 123, 0.36);
  background: linear-gradient(145deg, rgba(215, 139, 82, 0.23), rgba(255, 198, 123, 0.08));
  box-shadow: 0 18px 42px rgba(207, 124, 66, 0.17), inset 0 1px rgba(255, 255, 255, 0.16);
}

.monthly-reward-modal.place-4:not(.claimed),
.monthly-reward-modal.place-5:not(.claimed) {
  border-color: rgba(185, 143, 255, 0.34);
  background:
    radial-gradient(circle at 50% -12%, rgba(172, 119, 255, 0.23), transparent 39%),
    radial-gradient(circle at 0% 100%, rgba(86, 186, 255, 0.1), transparent 44%),
    linear-gradient(160deg, rgba(47, 36, 64, 0.99), rgba(19, 23, 35, 0.99));
}

.monthly-reward-modal.place-4:not(.claimed) .monthly-reward-medal,
.monthly-reward-modal.place-5:not(.claimed) .monthly-reward-medal {
  border-color: rgba(204, 172, 255, 0.35);
  background: linear-gradient(145deg, rgba(174, 124, 255, 0.23), rgba(92, 173, 255, 0.08));
  box-shadow: 0 18px 42px rgba(150, 94, 232, 0.17), inset 0 1px rgba(255, 255, 255, 0.16);
}

.monthly-reward-confetti {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.monthly-reward-confetti span {
  position: absolute;
  top: 78px;
  left: 50%;
  color: hsl(calc(38 + var(--i) * 22), 90%, 67%);
  font-size: calc(8px + (var(--i) % 3) * 3px);
  opacity: 0;
  animation: monthly-confetti 900ms calc(var(--i) * 42ms) ease-out both;
}

.monthly-reward-medal {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 227, 149, 0.35);
  border-radius: 30px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.22), transparent 31%),
    linear-gradient(145deg, rgba(255, 211, 92, 0.25), rgba(255, 169, 53, 0.08));
  box-shadow: 0 18px 42px rgba(255, 191, 54, 0.18), inset 0 1px rgba(255, 255, 255, 0.18);
  font-size: 44px;
  animation: monthly-medal-pop 700ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.monthly-reward-modal.claimed .monthly-reward-medal {
  border-color: rgba(89, 230, 173, 0.4);
  background: rgba(75, 218, 160, 0.14);
  color: #5be0ad;
  font-size: 39px;
  font-weight: 1000;
}

.monthly-reward-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.monthly-reward-copy small {
  color: #ffd77b;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.monthly-reward-copy h2 {
  margin: 0;
  color: #fff7df;
  font-size: 25px;
  font-weight: 1000;
  line-height: 1.1;
}

.monthly-reward-copy p {
  margin: 0;
  color: rgba(236, 232, 222, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

.monthly-reward-season {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 237, 224, 0.68);
  font-size: 11px;
  font-weight: 850;
}

.monthly-reward-season strong {
  color: #fff0bc;
  text-align: right;
}

.monthly-reward-prize {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(255, 220, 126, 0.27);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 213, 101, 0.15), transparent 49%),
    rgba(255, 205, 86, 0.055);
}

.monthly-reward-demo-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.monthly-reward-demo-stats > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 11px 9px;
  border: 1px solid rgba(255, 231, 165, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.monthly-reward-demo-stats strong {
  color: #fff3c6;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.1;
}

.monthly-reward-demo-stats small {
  color: rgba(238, 233, 219, 0.61);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.25;
}

.monthly-reward-prize small {
  color: rgba(255, 226, 150, 0.68);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.monthly-reward-prize strong {
  color: #ffe09a;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.25;
}

.monthly-reward-actions {
  display: grid;
  gap: 8px;
}

.monthly-reward-actions .action-button.primary {
  border-color: rgba(255, 238, 194, 0.28);
  background: linear-gradient(135deg, #ffd76e, #efb84b);
  color: #211706;
  box-shadow: 0 14px 30px rgba(225, 164, 51, 0.2), inset 0 1px rgba(255, 255, 255, 0.28);
}

.monthly-reward-modal.claimed .monthly-reward-actions .action-button.primary {
  border-color: rgba(112, 239, 191, 0.28);
  background: linear-gradient(135deg, #50dfa9, #36c98e);
  color: #06150f;
  box-shadow: 0 14px 30px rgba(50, 198, 139, 0.2), inset 0 1px rgba(255, 255, 255, 0.25);
}

@keyframes monthly-reward-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes monthly-medal-pop {
  0% { opacity: 0; transform: scale(0.45) rotate(-12deg); }
  60% { opacity: 1; transform: scale(1.1) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes monthly-confetti {
  0% { opacity: 0; transform: translate(-50%, 0) rotate(0); }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), var(--y)) rotate(var(--rot));
  }
}

@media (max-width: 370px) {
  .premium-recovery-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .premium-recovery-badge {
    grid-column: 2;
    justify-self: start;
  }

  .monthly-reward-modal {
    gap: 11px;
    padding-inline: 14px;
  }

  .monthly-reward-medal {
    width: 76px;
    height: 76px;
    font-size: 38px;
  }

  .monthly-reward-copy h2 {
    font-size: 22px;
  }

  .monthly-reward-season {
    align-items: flex-start;
    flex-direction: column;
  }

  .monthly-reward-season strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monthly-reward-modal,
  .monthly-reward-medal,
  .monthly-reward-confetti span {
    animation: none;
  }
}

@media (max-width: 420px) {
  .bottom-nav {
    gap: 0;
    padding-left: 6px;
    padding-right: 6px;
  }

  .chest-reveal {
    grid-template-columns: 86px 1fr;
    gap: 8px;
    padding: 12px;
  }

  .chest-stage {
    min-height: 90px;
  }

  .chest-box {
    transform: scale(0.9);
  }

  .tab-button {
    min-height: 54px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .tab-label {
    font-size: 10px;
  }

  .mode-card {
    grid-template-columns: auto 1fr;
  }

  .mode-card .tag {
    grid-column: 2;
    width: max-content;
  }

  .question-tools,
  .report-reasons {
    grid-template-columns: 1fr;
  }

  .report-toggle {
    min-width: 0;
  }
}

.daily-bonus-section {
  display: grid;
  gap: 12px;
  border-color: rgba(255, 190, 92, 0.2);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 190, 92, 0.13), transparent 34%),
    rgba(4, 13, 18, 0.24);
}

.daily-bonus-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.daily-bonus-head .section-note {
  margin-top: 4px;
}

.daily-streak {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(255, 190, 92, 0.2);
  border-radius: 999px;
  background: rgba(255, 190, 92, 0.1);
  color: #ffd48f;
  font-size: 11px;
  font-weight: 800;
}

.daily-reward-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: none;
}

.daily-reward-track::-webkit-scrollbar {
  display: none;
}

.daily-reward-day {
  min-width: 38px;
  min-height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 6px 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.daily-reward-day small {
  font-size: 8px;
  white-space: nowrap;
}

.daily-reward-day strong {
  font-size: 18px;
  line-height: 1;
}

.daily-reward-day span {
  min-height: 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.daily-reward-day.claimed {
  border-color: rgba(79, 217, 154, 0.22);
  background: rgba(79, 217, 154, 0.09);
  color: rgba(217, 231, 238, 0.82);
}

.daily-reward-day.available {
  border-color: rgba(255, 190, 92, 0.48);
  background: rgba(255, 190, 92, 0.14);
  box-shadow: 0 0 0 2px rgba(255, 190, 92, 0.06);
  color: #fff1d6;
}

.daily-bonus-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.daily-next-reward {
  color: rgba(217, 231, 238, 0.86);
  font-size: 12px;
  line-height: 1.35;
}

.daily-bonus-section > .success-note,
.daily-bonus-section > .error-note {
  margin: 0;
  white-space: pre-line;
}

@media (max-width: 390px) {
  .daily-bonus-head,
  .daily-bonus-footer {
    grid-template-columns: 1fr;
  }

  .daily-bonus-head {
    display: grid;
  }

  .daily-streak {
    width: max-content;
  }

  .daily-bonus-footer .action-button {
    width: 100%;
  }
}

.premium-home-hub {
  position: relative;
  display: grid;
  gap: 13px;
  overflow: hidden;
  border-color: rgba(255, 209, 102, 0.28);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 209, 102, 0.18), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(79, 217, 154, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(31, 42, 43, 0.96), rgba(11, 22, 28, 0.96));
}

.premium-home-hub::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  content: "";
  pointer-events: none;
}

.premium-home-head,
.premium-progress-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.premium-home-title {
  min-width: 0;
}

.premium-home-title > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.premium-home-title h2 {
  margin: 0;
  color: #fff4cf;
  font-size: 19px;
  font-weight: 1000;
  line-height: 1.12;
}

.premium-home-title .eyebrow {
  color: rgba(255, 229, 155, 0.68);
  font-size: 10px;
  font-weight: 850;
}

.premium-home-title p,
.premium-home-advice p {
  color: rgba(217, 231, 238, 0.78);
  font-size: 11px;
  line-height: 1.4;
}

.premium-home-until {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  margin-top: 2px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.08);
  color: #ffe59b;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.premium-home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.premium-home-metrics .mini-stat {
  min-height: 78px;
  border-color: rgba(255, 209, 102, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.premium-home-metrics .mini-stat-label {
  min-height: 2.2em;
  overflow: visible;
  color: rgba(217, 231, 238, 0.72);
  line-height: 1.1;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.premium-home-hub .today-focus-card {
  margin-top: 0;
  border-color: rgba(255, 209, 102, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(255, 209, 102, 0.11), rgba(167, 139, 250, 0.05)),
    rgba(6, 13, 18, 0.66);
}

.premium-home-advice,
.premium-progress-advice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(79, 217, 154, 0.15);
  border-radius: 14px;
  background: rgba(79, 217, 154, 0.055);
}

.premium-home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.premium-home-action {
  min-height: 44px;
  white-space: normal;
  line-height: 1.15;
}

.premium-home-action.primary {
  border-color: rgba(79, 217, 154, 0.35);
  background: linear-gradient(135deg, rgba(79, 217, 154, 0.92), rgba(55, 202, 163, 0.9));
  color: #06130e;
}

.premium-home-action.report {
  grid-column: 1 / -1;
  border-color: rgba(98, 199, 255, 0.22);
  background: linear-gradient(135deg, rgba(98, 199, 255, 0.13), rgba(255, 255, 255, 0.05));
  color: var(--text);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}

.premium-progress-hero {
  display: grid;
  gap: 12px;
  border-color: rgba(255, 209, 102, 0.22);
  background:
    radial-gradient(circle at 94% 4%, rgba(255, 209, 102, 0.13), transparent 34%),
    var(--glass);
}

.premium-progress-heading > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.premium-progress-readiness {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(2, 10, 14, 0.25);
}

.premium-progress-advice {
  margin: 0;
  color: rgba(217, 231, 238, 0.82);
  font-size: 11px;
  line-height: 1.4;
}

.daily-bonus-backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 190, 92, 0.24), transparent 35%),
    rgba(1, 7, 11, 0.8);
}

.daily-bonus-modal {
  position: relative;
  width: min(100%, 400px);
  max-height: calc(100vh - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  justify-items: stretch;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 18px 18px;
  border: 1px solid rgba(255, 190, 92, 0.28);
  border-radius: 27px;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 190, 92, 0.21), transparent 38%),
    linear-gradient(160deg, rgba(34, 43, 45, 0.99), rgba(11, 20, 27, 0.99));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: chest-modal-enter 270ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.daily-bonus-modal.claimed {
  border-color: rgba(79, 217, 154, 0.3);
  background:
    radial-gradient(circle at 50% -8%, rgba(79, 217, 154, 0.2), transparent 38%),
    linear-gradient(160deg, rgba(26, 46, 47, 0.99), rgba(11, 20, 27, 0.99));
}

.daily-bonus-popup-orb {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 190, 92, 0.3);
  border-radius: 26px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 32%),
    rgba(255, 190, 92, 0.13);
  box-shadow: 0 16px 38px rgba(255, 190, 92, 0.12);
  font-size: 34px;
}

.daily-bonus-modal.claimed .daily-bonus-popup-orb {
  border-color: rgba(79, 217, 154, 0.36);
  background: rgba(79, 217, 154, 0.14);
  color: var(--green);
  font-weight: 1000;
}

.daily-bonus-popup-copy {
  display: grid;
  gap: 5px;
  text-align: center;
}

.daily-bonus-popup-copy small {
  color: #ffd48f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-bonus-popup-copy h3 {
  color: var(--text);
  font-size: 22px;
  font-weight: 1000;
  line-height: 1.15;
}

.daily-bonus-popup-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.daily-bonus-popup-reward {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 190, 92, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 92, 0.11), transparent 48%),
    rgba(255, 255, 255, 0.045);
}

.daily-bonus-popup-reward small {
  color: #ffd48f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.daily-bonus-popup-reward strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
}

.daily-bonus-popup-details {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 8px;
}

.daily-bonus-popup-detail {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.daily-bonus-popup-detail > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 190, 92, 0.1);
  font-size: 16px;
}

.daily-bonus-popup-detail > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.daily-bonus-popup-detail small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-bonus-popup-detail strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.daily-bonus-popup-detail.tomorrow strong {
  color: #ffd48f;
}

.daily-bonus-popup-achievements {
  display: grid;
  gap: 6px;
}

.daily-bonus-popup-achievements span {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(98, 199, 255, 0.08);
  color: #cdeaff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.daily-bonus-popup-actions {
  display: grid;
  gap: 8px;
}

@media (max-width: 370px) {
  .premium-home-head,
  .premium-progress-heading {
    display: grid;
  }

  .premium-home-until {
    width: max-content;
  }

  .premium-home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-home-metrics .mini-stat:last-child {
    grid-column: 1 / -1;
  }

  .daily-bonus-popup-details {
    grid-template-columns: 1fr;
  }
}

.premium-notification-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.premium-setting-copy {
  display: grid;
  gap: 5px;
}

.premium-switch {
  min-width: 108px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 10px;
}

.premium-switch > span {
  width: 30px;
  height: 18px;
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.premium-switch > span::after {
  width: 12px;
  height: 12px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: rgba(217, 231, 238, 0.76);
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.premium-switch.active {
  border-color: rgba(79, 217, 154, 0.25);
  background: rgba(79, 217, 154, 0.08);
  color: var(--green);
}

.premium-switch.active > span {
  background: rgba(79, 217, 154, 0.3);
}

.premium-switch.active > span::after {
  transform: translateX(12px);
  background: var(--green);
}

.premium-report-section {
  display: grid;
  gap: 11px;
}

.premium-report-section .section-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.premium-report-section .section-head > div {
  display: grid;
  gap: 4px;
}

.premium-report-loading {
  min-height: 110px;
  display: grid;
  place-items: center;
}

.premium-report-period {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(82, 167, 255, 0.08);
  color: #b9d9ff;
  font-size: 10px;
  font-weight: 800;
}

.premium-report-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.premium-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.premium-report-block {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.premium-report-block.trend {
  border-color: rgba(79, 217, 154, 0.14);
  background: rgba(79, 217, 154, 0.045);
}

.premium-report-block p,
.premium-report-block small {
  color: rgba(217, 231, 238, 0.8);
  font-size: 11px;
  line-height: 1.4;
}

.premium-report-block small {
  color: var(--muted);
}

.premium-report-plan {
  gap: 10px;
  padding: 12px;
  border-color: rgba(255, 209, 102, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.premium-report-plan-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.premium-report-plan-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.premium-report-plan-head p {
  margin: 0;
}

.premium-report-plan-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 11px;
  background: rgba(255, 209, 102, 0.08);
  font-size: 15px;
}

.premium-report-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.premium-report-plan-stat {
  min-width: 0;
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.premium-report-plan-stat > span {
  font-size: 17px;
}

.premium-report-plan-stat > small {
  min-height: 25px;
  color: rgba(217, 231, 238, 0.62);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.premium-report-plan-stat > strong {
  color: #f5fbff;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.12;
}

.premium-report-plan-stat > em {
  margin-top: auto;
  color: rgba(217, 231, 238, 0.5);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
}

.premium-report-plan-stat.deadline {
  border-color: rgba(82, 167, 255, 0.16);
  background: rgba(82, 167, 255, 0.055);
}

.premium-report-plan-stat.daily {
  border-color: rgba(79, 217, 154, 0.17);
  background: rgba(79, 217, 154, 0.055);
}

.premium-report-plan-stat.exam {
  border-color: rgba(255, 209, 102, 0.18);
  background: rgba(255, 209, 102, 0.055);
}

.premium-report-focus-topics {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.premium-report-focus-label {
  color: rgba(255, 229, 155, 0.86);
  font-size: 10px;
  font-weight: 900;
}

.premium-report-focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.premium-report-focus-chips span {
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 209, 102, 0.14);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.06);
  color: rgba(246, 250, 252, 0.86);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.premium-report-date-setup {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(82, 167, 255, 0.15);
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 167, 255, 0.09), transparent 48%),
    rgba(82, 167, 255, 0.04);
}

.premium-report-date-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.premium-report-date-copy > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(82, 167, 255, 0.09);
  font-size: 14px;
}

.premium-report-date-copy > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.premium-report-date-copy strong {
  color: #e8f5ff;
  font-size: 11px;
  font-weight: 950;
}

.premium-report-date-copy p {
  margin: 0;
  color: rgba(217, 231, 238, 0.65);
  font-size: 9px;
  line-height: 1.35;
}

.premium-report-date-form {
  margin-top: 0;
}

.premium-report-date-feedback {
  padding: 9px 10px;
  border: 1px solid rgba(79, 217, 154, 0.16);
  border-radius: 11px;
  background: rgba(79, 217, 154, 0.055);
  color: #a9f1d0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.premium-report-date-feedback.error {
  border-color: rgba(255, 103, 112, 0.18);
  background: rgba(255, 103, 112, 0.06);
  color: #ffb5ba;
}

@media (max-width: 430px) {
  .premium-notification-section,
  .premium-report-grid {
    grid-template-columns: 1fr;
  }

  .premium-switch {
    width: 100%;
  }
}

.duel-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.duel-hero,
.duel-create-section,
.duel-join-section,
.duel-history-section,
.duel-pending-hero,
.duel-invite-hero,
.duel-active-hero,
.duel-waiting-hero,
.duel-final-hero,
.duel-question-section {
  display: grid;
  gap: 11px;
}

.duel-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.duel-topic-grid .topic-chip {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(235, 243, 248, 0.88);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.duel-topic-grid .topic-chip:active {
  transform: scale(0.97);
}

.duel-topic-grid .topic-chip.active {
  border-color: rgba(79, 217, 154, 0.42);
  background: linear-gradient(135deg, rgba(50, 183, 232, 0.2), rgba(79, 217, 154, 0.18));
  color: #eafff6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(23, 147, 135, 0.12);
}

.duel-premium-lock {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 190, 92, 0.18);
  border-radius: 14px;
  background: rgba(255, 190, 92, 0.07);
}

.duel-premium-lock > span {
  font-size: 26px;
}

.duel-premium-lock p {
  color: rgba(217, 231, 238, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.duel-premium-lock .action-button {
  grid-column: 1 / -1;
}

.duel-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.duel-code-form input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.duel-crossed-swords,
.duel-final-icon {
  font-size: 52px;
  line-height: 1;
  text-align: center;
}

.duel-pending-hero,
.duel-invite-hero,
.duel-waiting-hero,
.duel-final-hero {
  justify-items: center;
  text-align: center;
}

.duel-code-badge {
  padding: 10px 16px;
  border: 1px dashed rgba(82, 167, 255, 0.45);
  border-radius: 13px;
  background: rgba(82, 167, 255, 0.08);
  color: #c9e2ff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.duel-pending-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.duel-cancel-button {
  color: #ffaaaa;
}

.duel-scoreboard {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.duel-player {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.duel-player.self {
  border-color: rgba(79, 217, 154, 0.2);
  background: rgba(79, 217, 154, 0.07);
}

.duel-player small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-player strong {
  font-size: 25px;
}

.duel-player span,
.duel-versus {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.duel-question-section h3 {
  font-size: 17px;
  line-height: 1.4;
}

.duel-media {
  width: 100%;
  max-height: 360px;
  border-radius: 14px;
  object-fit: contain;
}

.duel-answer-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 11px;
  border-radius: 13px;
}

.duel-answer-result.success {
  background: rgba(79, 217, 154, 0.1);
  color: var(--green);
}

.duel-answer-result.error {
  background: rgba(255, 107, 107, 0.09);
  color: #ffaaaa;
}

.duel-answer-result p {
  grid-column: 1 / -1;
  color: rgba(217, 231, 238, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.duel-final-score {
  font-size: 28px;
}

.duel-final-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.duel-final-times span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 10px;
}

.duel-reward {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 190, 92, 0.1);
  color: #ffd48f;
  font-size: 12px;
  font-weight: 900;
}

.duel-history-list {
  display: grid;
  gap: 8px;
}

.duel-history-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.duel-history-row > span {
  font-size: 20px;
}

.duel-history-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.duel-history-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-history-score {
  justify-items: end;
}

.duel-history-row.win {
  border-color: rgba(79, 217, 154, 0.16);
}

@media (max-width: 390px) {
  .duel-code-form,
  .duel-pending-actions {
    grid-template-columns: 1fr;
  }
}

.achievement-hero,
.language-hero {
  display: grid;
  gap: 10px;
}

.achievement-hero h2,
.language-hero h2 {
  margin-top: 4px;
}

.achievements-section,
.achievement-list {
  display: grid;
  gap: 10px;
}

.achievement-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.achievement-card.completed {
  border-color: rgba(79, 217, 154, 0.2);
  background:
    linear-gradient(120deg, rgba(79, 217, 154, 0.08), transparent 56%),
    rgba(255, 255, 255, 0.035);
}

.achievement-card-head,
.achievement-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.achievement-card-head strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}

.achievement-card p,
.achievement-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.achievement-progress {
  color: rgba(217, 231, 238, 0.82);
  font-size: 11px;
}

.achievement-progress strong {
  color: var(--text);
}

.language-section,
.language-list {
  display: grid;
  gap: 9px;
}

.language-option {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.language-option > small {
  min-width: 22px;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.language-option.active {
  border-color: rgba(79, 217, 154, 0.3);
  background: rgba(79, 217, 154, 0.09);
}

.language-option:disabled {
  cursor: default;
  opacity: 0.72;
}

.license-category-section {
  display: grid;
  gap: 12px;
}

.license-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.license-category-intro {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.license-category-intro > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 217, 154, 0.24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(79, 217, 154, 0.16), rgba(98, 199, 255, 0.08));
  font-size: 26px;
}

.license-category-intro h2,
.license-category-intro p,
.license-category-note p,
.license-category-explanation {
  margin: 0;
}

.license-category-intro p,
.license-category-note p,
.license-category-explanation {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.license-category-option {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.license-category-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 19px;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.license-category-option > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.license-category-option strong {
  font-size: 12px;
  line-height: 1.25;
}

.license-category-option small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.license-category-option em {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.license-category-option:disabled {
  cursor: default;
  opacity: 0.68;
}

.license-category-option.active {
  border-color: rgba(79, 217, 154, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(98, 199, 255, 0.14), transparent 45%),
    linear-gradient(145deg, rgba(79, 217, 154, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 9px 22px rgba(0, 0, 0, 0.1);
}

.license-category-option.active .license-category-symbol {
  background: linear-gradient(145deg, #4fd99a, #62c7ff);
  color: #07130f;
  box-shadow: 0 8px 20px rgba(79, 217, 154, 0.16);
}

.license-category-option.active em {
  background: rgba(79, 217, 154, 0.16);
  color: var(--green);
}

.license-category-note,
.license-category-explanation {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.032);
}

.license-category-note {
  display: grid;
  gap: 5px;
}

.training-license-picker {
  display: grid;
  gap: 11px;
  border-color: rgba(98, 199, 255, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(98, 199, 255, 0.1), transparent 40%),
    var(--surface);
}

.training-license-head {
  display: grid;
  gap: 8px;
}

.training-license-head > div {
  display: grid;
  gap: 4px;
}

.training-license-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.training-license-common {
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(79, 217, 154, 0.18);
  border-radius: 999px;
  background: rgba(79, 217, 154, 0.08);
  color: #9be9c6;
  font-size: 9px;
  font-weight: 900;
}

@media (max-width: 340px) {
  .license-category-grid {
    grid-template-columns: 1fr;
  }
}

.correct-answer-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(79, 217, 154, 0.24);
  border-radius: 14px;
  background: rgba(79, 217, 154, 0.075);
}

.correct-answer-list small {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.correct-answer-list ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.correct-answer-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.42;
}

.correct-answer-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 1000;
}

.league-loading,
.league-error {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.league-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.league-tier-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 190, 92, 0.24);
  border-radius: 18px;
  background: rgba(255, 190, 92, 0.1);
  font-size: 30px;
}

.league-summary-grid,
.league-zones {
  grid-column: 1 / -1;
}

.league-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.league-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.league-zones span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 10px;
}

.league-zones .promotion {
  background: rgba(79, 217, 154, 0.1);
  color: var(--green);
}

.league-zones .relegation {
  background: rgba(255, 107, 107, 0.09);
  color: #ffaaaa;
}

.league-last-result,
.league-list-section,
.league-list {
  display: grid;
  gap: 9px;
}

.league-last-result p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.league-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.league-row.current {
  border-color: rgba(79, 217, 154, 0.25);
  background: rgba(79, 217, 154, 0.08);
}

.ranking-profile-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.ranking-profile-button:active {
  transform: scale(0.985);
  border-color: rgba(98, 199, 255, 0.28);
  background: rgba(98, 199, 255, 0.07);
}

.ranking-profile-button > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-position {
  font-weight: 900;
  text-align: center;
}

.league-row small {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(79, 217, 154, 0.12);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.league-row > span:last-child {
  color: rgba(217, 231, 238, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.global-ranking-hero {
  display: grid;
  gap: 13px;
  border-color: rgba(50, 183, 232, 0.28);
  background:
    radial-gradient(circle at 8% 0%, rgba(50, 183, 232, 0.18), transparent 42%),
    var(--glass-strong);
}

.global-ranking-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.global-ranking-title > span {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(50, 183, 232, 0.25);
  border-radius: 16px;
  background: rgba(50, 183, 232, 0.1);
  font-size: 25px;
}

.global-ranking-title h2 {
  margin: 0 0 3px;
}

.leaderboard-scope-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(2, 11, 16, 0.34);
}

.leaderboard-scope-tab {
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.leaderboard-scope-tab.active {
  border-color: rgba(98, 199, 255, 0.26);
  background: linear-gradient(135deg, rgba(50, 183, 232, 0.2), rgba(79, 217, 154, 0.13));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.leaderboard-scope-tab:active {
  transform: scale(0.98);
}

.monthly-period-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 209, 102, 0.12);
  border-radius: 14px;
  background: rgba(2, 11, 16, 0.32);
}

.monthly-period-tab {
  min-width: 0;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.monthly-period-tab.active {
  border-color: rgba(255, 209, 102, 0.26);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(255, 153, 80, 0.08));
  color: var(--yellow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.monthly-period-tab:active {
  transform: scale(0.98);
}

.global-ranking-stats {
  padding: 12px;
}

.global-leaders-section {
  border-color: rgba(50, 183, 232, 0.16);
}

.correct-ranking-row > span:last-child {
  color: var(--green);
  white-space: nowrap;
}

.monthly-season-section {
  display: grid;
  gap: 12px;
  overflow: hidden;
  border-color: rgba(255, 209, 102, 0.24);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 209, 102, 0.14), transparent 38%),
    var(--glass);
}

.monthly-season-section.archived {
  border-color: rgba(255, 209, 102, 0.3);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 209, 102, 0.18), transparent 34%),
    radial-gradient(circle at 0% 70%, rgba(50, 183, 232, 0.08), transparent 42%),
    linear-gradient(155deg, rgba(38, 40, 30, 0.9), rgba(16, 29, 34, 0.96));
}

.monthly-season-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.monthly-rank-pill {
  min-width: 42px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 13px;
  background: rgba(255, 209, 102, 0.11);
  color: var(--yellow);
  font-size: 15px;
  font-weight: 950;
}

.monthly-user-progress {
  margin: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.monthly-user-progress.archived {
  border: 1px solid rgba(255, 209, 102, 0.16);
  background: rgba(255, 209, 102, 0.07);
}

.archive-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.archive-section-heading > span {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.archived-leaders-list {
  position: relative;
}

.archived-ranking-row {
  min-height: 61px;
  border-color: rgba(255, 209, 102, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.archived-ranking-row:first-child {
  border-color: rgba(255, 209, 102, 0.3);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.13), rgba(255, 153, 80, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.archived-leader-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: left;
}

.archived-leader-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-row .archived-leader-copy small {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--yellow);
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-row .archive-you {
  background: rgba(79, 217, 154, 0.14);
  color: var(--green);
}

.archive-finished-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(79, 217, 154, 0.16);
  border-radius: 13px;
  background: rgba(79, 217, 154, 0.07);
}

.archive-finished-note > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(79, 217, 154, 0.14);
  color: var(--green);
  font-weight: 950;
}

.archive-finished-note p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.monthly-leaders-list {
  display: grid;
  gap: 8px;
}

.monthly-rewards-card {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 15px;
  background: rgba(255, 209, 102, 0.065);
}

.monthly-prize-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.monthly-prize-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
}

.monthly-prize-row:first-child {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 209, 102, 0.2);
  background: rgba(255, 209, 102, 0.1);
}

.monthly-prize-row strong {
  min-width: 0;
  line-height: 1.25;
}

.monthly-rewards-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.leader-profile-backdrop {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px 10px calc(18px + env(safe-area-inset-bottom));
  background: rgba(2, 11, 16, 0.72);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  animation: leaderProfileFade 180ms ease-out;
  overscroll-behavior: none;
}

.leader-profile-modal {
  position: relative;
  width: min(100%, 430px);
  max-height: min(82vh, 680px);
  overflow: auto;
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(98, 199, 255, 0.25);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(50, 183, 232, 0.2), transparent 38%),
    radial-gradient(circle at 92% 12%, rgba(79, 217, 154, 0.13), transparent 35%),
    #14232a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: leaderProfileRise 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.leader-profile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.leader-profile-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-right: 32px;
}

.leader-profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98, 199, 255, 0.34);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(98, 199, 255, 0.25), rgba(79, 217, 154, 0.18));
  color: #e8fbff;
  font-size: 27px;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.leader-profile-heading > div:last-child {
  min-width: 0;
}

.leader-profile-heading span,
.leader-profile-heading small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.leader-profile-heading h2 {
  overflow: hidden;
  margin: 3px 0;
  font-size: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-profile-highlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 16px;
  background: rgba(255, 209, 102, 0.075);
}

.leader-profile-highlight > span {
  font-size: 25px;
}

.leader-profile-highlight small,
.leader-profile-highlight strong {
  display: block;
}

.leader-profile-highlight small {
  color: var(--muted);
  font-size: 10px;
}

.leader-profile-highlight > b {
  color: var(--yellow);
  font-size: 17px;
}

.leader-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@keyframes leaderProfileFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes leaderProfileRise {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 350px) {
  .correct-ranking-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .correct-ranking-row small {
    display: none;
  }

  .correct-ranking-row .archived-leader-copy small {
    display: block;
  }

  .monthly-prize-list {
    grid-template-columns: 1fr;
  }

  .monthly-prize-row:first-child {
    grid-column: auto;
  }
}

.rewards-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.rewards-center-hero,
.bonus-code-section,
.referral-section {
  display: grid;
  gap: 11px;
}

.bonus-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.bonus-code-form input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bonus-code-form input:focus {
  border-color: rgba(82, 167, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(82, 167, 255, 0.08);
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.referral-rules {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.referral-rules p {
  color: rgba(217, 231, 238, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.referral-link-box {
  overflow: hidden;
  padding: 10px;
  border-radius: 12px;
  background: rgba(82, 167, 255, 0.08);
  color: #b9d9ff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 390px) {
  .bonus-code-form,
  .referral-actions {
    grid-template-columns: 1fr;
  }
}

/* Compact training flow: start first, secondary controls on demand. */
.training-launch-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  margin: 10px 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(79, 217, 154, 0.28);
  border-radius: calc(var(--radius) + 5px);
  background:
    radial-gradient(circle at 100% 0%, rgba(98, 199, 255, 0.2), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(79, 217, 154, 0.12), transparent 46%),
    linear-gradient(145deg, rgba(27, 50, 57, 0.98), rgba(12, 22, 28, 0.98));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.07);
}

.training-launch-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(79, 217, 154, 0.98), rgba(98, 199, 255, 0.9), transparent);
}

.training-launch-head,
.training-settings-head,
.training-hud-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.training-launch-eyebrow {
  min-width: 0;
  overflow: hidden;
  color: #8fe7bf;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.training-ready-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(79, 217, 154, 0.2);
  border-radius: 999px;
  background: rgba(79, 217, 154, 0.1);
  color: var(--green);
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.training-launch-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.training-launch-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(79, 217, 154, 0.2), rgba(98, 199, 255, 0.12));
  font-size: 23px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.training-launch-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.training-launch-copy strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-launch-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.training-launch-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.training-launch-summary > span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.training-launch-summary small,
.training-launch-summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-launch-summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.training-launch-summary strong {
  color: rgba(246, 251, 253, 0.94);
  font-size: 11px;
  font-weight: 950;
}

.training-launch-actions {
  display: grid;
  gap: 7px;
}

.training-launch-start {
  min-height: 48px;
  font-size: 14px;
}

.training-setup-toggle,
.training-inline-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(230, 241, 246, 0.86);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.training-setup-toggle {
  width: 100%;
  min-height: 40px;
}

.training-inline-toggle {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 9px;
}

.training-setup-toggle i,
.training-inline-toggle i {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.training-setup-toggle[aria-expanded="true"] i,
.training-inline-toggle[aria-expanded="true"] i {
  transform: rotate(225deg);
}

.training-settings-shell {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 10px;
  scroll-margin-top: 10px;
  border: 1px solid rgba(98, 199, 255, 0.17);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 100% 0%, rgba(98, 199, 255, 0.09), transparent 36%),
    rgba(8, 17, 22, 0.72);
  box-shadow: var(--soft-shadow);
}

.training-settings-head {
  padding: 2px 2px 0;
}

.training-settings-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.training-settings-head strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-settings-content {
  display: grid;
  gap: 9px;
}

.training-settings-content > .section,
.training-settings-content > .hero {
  margin: 0;
  border-radius: 14px;
  box-shadow: none;
}

.training-settings-content .training-start-section {
  padding: 0;
  border: 0;
  background: transparent;
}

.training-settings-content .training-start-section .action-button {
  min-height: 48px;
}

.day-topic-spotlight.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  padding: 11px 12px;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 9px 22px rgba(4, 8, 12, 0.15), inset 0 1px rgba(255, 255, 255, 0.045);
}

.day-topic-spotlight.compact .day-topic-glow {
  top: -8px;
  right: 4px;
  font-size: 74px;
}

.day-topic-spotlight.compact .day-topic-eyebrow {
  margin-bottom: 3px;
  font-size: 9px;
}

.day-topic-spotlight.compact .day-topic-copy h2 {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-topic-spotlight.compact .day-topic-copy p,
.day-topic-spotlight.compact .day-topic-benefits small {
  display: none;
}

.day-topic-spotlight.compact .day-topic-benefits {
  gap: 4px;
}

.day-topic-spotlight.compact .day-topic-benefits span {
  padding: 4px 6px;
  font-size: 9px;
}

.day-topic-spotlight.compact .day-topic-action {
  min-height: 38px;
  font-size: 11px;
}

/* During a question, keep the useful context visible without pushing the task down. */
.training-session-hud {
  gap: 7px;
  padding: 9px 10px;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.training-hud-focus {
  min-width: 0;
}

.training-session-hud .training-hud-main {
  align-items: center;
}

.training-session-hud .training-hud-main .eyebrow {
  font-size: 8px;
}

.training-session-hud .training-hud-main strong {
  font-size: 13px;
}

.training-session-hud .training-hud-main span {
  font-size: 10px;
}

.training-hud-actions .status-pill {
  padding: 6px 8px;
  font-size: 10px;
}

.training-inline-toggle.icon-only {
  width: 30px;
  padding: 5px;
}

.training-inline-toggle.icon-only span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.training-hud-glance {
  display: flex;
  align-items: center;
  gap: 5px;
}

.training-hud-glance > span {
  min-width: 0;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 9px;
}

.training-hud-glance strong {
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-session-hud.expanded .training-hud-glance {
  display: none;
}

.training-session-hud.expanded .training-hud-grid {
  animation: training-details-in 180ms ease both;
}

.training-task-tracker.compact {
  gap: 6px;
  padding: 8px 9px;
}

.training-task-tracker-heading {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.training-task-tracker-heading strong,
.training-task-tracker-heading small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-task-tracker-heading strong {
  font-size: 12px;
  font-weight: 950;
}

.training-task-tracker-heading small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.training-task-tracker.compact .training-task-progress {
  gap: 5px;
  padding: 7px 8px;
}

.training-task-tracker.compact .training-task-progress-main > span {
  font-size: 11px;
}

.training-task-tracker.compact .progress-line {
  height: 5px;
}

.compact-hidden {
  display: none !important;
}

@keyframes training-details-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 370px) {
  .training-launch-card {
    gap: 10px;
    padding: 12px;
  }

  .training-ready-badge {
    padding-inline: 6px;
    font-size: 8px;
  }

  .training-launch-main {
    grid-template-columns: 41px minmax(0, 1fr);
    gap: 9px;
  }

  .training-launch-icon {
    width: 41px;
    height: 41px;
    border-radius: 13px;
    font-size: 20px;
  }

  .training-launch-copy strong {
    font-size: 16px;
  }

  .training-launch-copy small {
    font-size: 10px;
  }

  .training-launch-summary {
    gap: 5px;
  }

  .training-launch-summary > span {
    padding-inline: 7px;
  }

  .day-topic-spotlight.compact {
    grid-template-columns: 1fr;
  }

  .day-topic-spotlight.compact .day-topic-benefits {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .training-task-tracker.compact .training-inline-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .training-task-tracker.compact .training-inline-toggle {
    width: 29px;
    padding: 5px;
  }
}
