/* Цветошка VPN · mini app v4 — нативная тема Telegram (светлая/тёмная берутся из themeParams) */
:root {
  color-scheme: light;
  --bg: var(--tg-theme-secondary-bg-color, #eef1f5);
  --section: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #ffffff));
  --text: var(--tg-theme-text-color, #0f1419);
  --hint: var(--tg-theme-hint-color, #7b8794);
  --link: var(--tg-theme-link-color, #2a7fd4);
  --btn: var(--tg-theme-button-color, #2a7fd4);
  --btn-text: var(--tg-theme-button-text-color, #ffffff);
  --section-header: var(--tg-theme-section-header-text-color, #6b7784);
  --danger: var(--tg-theme-destructive-text-color, #e5484d);
  --separator: var(--tg-theme-section-separator-color, rgba(123, 135, 148, .22));
  --soft: rgba(42, 127, 212, .12);
  --success: #25a861;
  --success-soft: rgba(37, 168, 97, .14);
  --warning: #d98b0b;
  --warning-soft: rgba(217, 139, 11, .15);
  --danger-soft: rgba(229, 72, 77, .12);
  --brand-a: #5f8cff;
  --brand-b: #46c7f5;
  --shadow: 0 10px 28px rgba(15, 20, 25, .10);
  --radius: 14px;
  --radius-lg: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--tg-theme-secondary-bg-color, #0e1621);
    --section: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #17212b));
    --text: var(--tg-theme-text-color, #f3f6f9);
    --hint: var(--tg-theme-hint-color, #7f91a4);
    --link: var(--tg-theme-link-color, #6ab3f3);
    --btn: var(--tg-theme-button-color, #5288c1);
    --section-header: var(--tg-theme-section-header-text-color, #6ab3f3);
    --danger: var(--tg-theme-destructive-text-color, #ef5b5f);
    --separator: var(--tg-theme-section-separator-color, rgba(127, 145, 164, .18));
    --soft: rgba(106, 179, 243, .14);
    --success: #3ccf7e;
    --success-soft: rgba(60, 207, 126, .15);
    --warning: #f2b441;
    --warning-soft: rgba(242, 180, 65, .15);
    --danger-soft: rgba(239, 91, 95, .15);
    --shadow: 0 10px 28px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--tg-theme-secondary-bg-color, #0e1621);
  --section: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #17212b));
  --text: var(--tg-theme-text-color, #f3f6f9);
  --hint: var(--tg-theme-hint-color, #7f91a4);
  --link: var(--tg-theme-link-color, #6ab3f3);
  --btn: var(--tg-theme-button-color, #5288c1);
  --section-header: var(--tg-theme-section-header-text-color, #6ab3f3);
  --danger: var(--tg-theme-destructive-text-color, #ef5b5f);
  --separator: var(--tg-theme-section-separator-color, rgba(127, 145, 164, .18));
  --soft: rgba(106, 179, 243, .14);
  --success: #3ccf7e;
  --success-soft: rgba(60, 207, 126, .15);
  --warning: #f2b441;
  --warning-soft: rgba(242, 180, 65, .15);
  --danger-soft: rgba(239, 91, 95, .15);
  --shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root { --soft: color-mix(in srgb, var(--btn) 13%, transparent); }
}

* { box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, a, input { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; }

.app-shell { width: min(100%, 480px); margin: 0 auto; min-height: 100dvh; }
.page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(100px + env(safe-area-inset-bottom, 0px));
}
.group { display: flex; flex-direction: column; gap: 8px; }
.group.tight { gap: 7px; }
.status-card.as-button { width: 100%; border: 0; text-align: left; }
.skel-a { height: 210px; }
.skel-b { height: 96px; }
.skel-c { height: 208px; }
.group-title {
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--section-header);
}
.group-note { padding: 0 16px; font-size: 13px; color: var(--hint); }

/* Шапка */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 6px 16px rgba(70, 140, 255, .28);
}
.avatar {
  width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; padding: 0;
  border: 0; border-radius: 50%; background: var(--soft); color: var(--link); font-weight: 700; font-size: 15px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.screen-head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.screen-head h1 { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.back {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none; padding: 0;
  border: 0; border-radius: 50%; background: var(--section); color: var(--link);
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--btn); color: var(--btn-text);
  font-size: 16px; font-weight: 600; text-decoration: none; text-align: center;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: var(--soft); color: var(--link); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn.full { width: 100%; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row .btn { padding: 0 10px; }
.link-btn { padding: 6px 0; border: 0; background: none; color: var(--link); font-size: 15px; font-weight: 500; text-decoration: none; }

/* Пилюли */
.pill {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--soft); color: var(--link);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--success-soft); color: var(--success); }
.pill.warn { background: var(--warning-soft); color: var(--warning); }
.pill.off { background: var(--separator); color: var(--hint); }
.chip { padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--success-soft); color: var(--success); white-space: nowrap; }

/* Главная карточка статуса */
.status-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: var(--radius-lg); background: var(--section);
}
.status-card::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -30% auto auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(95, 140, 255, .22), rgba(70, 199, 245, .10) 55%, transparent);
  pointer-events: none;
}
.status-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.status-text { color: var(--hint); font-size: 15px; }
.days { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.days strong { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.days span { color: var(--hint); font-size: 15px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--link); }

/* Трафик */
.meter { display: flex; flex-direction: column; gap: 7px; }
.meter-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.meter-top strong { font-weight: 600; }
.meter-top span { color: var(--hint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--separator); }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); }
.bar.warn i { background: var(--warning); }
.bar.full i { background: var(--danger); }
.meter-sub { font-size: 13px; color: var(--hint); font-variant-numeric: tabular-nums; }

/* Списки в стиле Telegram */
.list { overflow: hidden; border-radius: var(--radius); background: var(--section); }
.row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px;
  padding: 10px 16px; border: 0; background: none; text-align: left; text-decoration: none;
}
button.row:active, a.row:active { background: var(--soft); }
.row + .row::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--separator); }
.row.plain + .row.plain::before, .row.plain + .row::before { left: 16px; }
.row-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 8px; color: #fff; background: var(--btn); }
.row-icon.c-blue { background: #3d8af7; }
.row-icon.c-orange { background: #f29d38; }
.row-icon.c-sky { background: #2aabee; }
.row-icon.c-green { background: #34c759; }
.row-icon.c-grey { background: #8e8e93; }
.row-icon.c-violet { background: #8a6cf2; }
.row-icon.c-red { background: #ff5a5f; }
.row-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.row-title { font-size: 16px; overflow-wrap: anywhere; }
.row-sub { font-size: 13px; color: var(--hint); }
.row-end { display: flex; align-items: center; gap: 6px; color: var(--hint); font-size: 15px; font-variant-numeric: tabular-nums; }
.row.danger .row-title { color: var(--danger); }
.row-block { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.row-block + .row-block, .row + .row-block, .row-block + .row { border-top: 1px solid var(--separator); }
.row-block + .row::before { display: none; }

/* Тарифы: превью на главной */
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-mini {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px;
  border: 0; border-radius: var(--radius); background: var(--section); text-align: left;
}
.plan-mini .row-icon { width: 34px; height: 34px; border-radius: 10px; }
.plan-mini strong { font-size: 15px; line-height: 1.25; }
.plan-mini .price { font-size: 13px; color: var(--hint); }
.plan-mini .price b { color: var(--text); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Экран покупки */
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 3px; border-radius: 12px; background: var(--section); }
.seg { min-height: 38px; padding: 6px 8px; border: 0; border-radius: 9px; background: none; color: var(--hint); font-size: 14px; font-weight: 600; }
.seg.is-selected { background: var(--btn); color: var(--btn-text); }
.plan-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--radius-lg); background: var(--section); }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-head .row-icon { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.eyebrow { font-size: 13px; color: var(--hint); }
.plan-head h2 { font-size: 19px; line-height: 1.2; font-weight: 700; text-wrap: balance; }
.features { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.features svg { margin-top: 1px; color: var(--success); }
.radio { width: 22px; height: 22px; flex: none; border: 2px solid var(--separator); border-radius: 50%; }
.is-selected > .radio { border: 7px solid var(--btn); }
.row .price-main { color: var(--text); font-weight: 600; font-size: 16px; }

.buy-bar {
  position: sticky; z-index: 5; bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: var(--radius-lg); background: var(--section); box-shadow: var(--shadow);
}
.buy-bar .total { display: flex; flex-direction: column; min-width: 0; }
.buy-bar .total span { font-size: 13px; color: var(--hint); }
.buy-bar .total strong { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Нижняя панель */
.tabbar {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(100%, 480px); margin: 0 auto;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--separator); background: var(--section);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) and (color: color-mix(in srgb, red, blue)) {
  .tabbar { background: color-mix(in srgb, var(--section) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 3px; border: 0; background: none; color: var(--hint); font-size: 11px; font-weight: 500; }
.tab.is-active { color: var(--btn); }

/* Нижние шторки */
.sheet-backdrop { position: fixed; z-index: 40; inset: 0; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .42); animation: fade .18s ease; }
.sheet {
  display: flex; flex-direction: column; gap: 16px;
  width: min(100%, 480px); max-height: 92dvh; margin: 0 auto; overflow-y: auto;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0; background: var(--bg);
  animation: rise .24s cubic-bezier(.2, .8, .2, 1);
}
.grabber { width: 38px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--separator); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-size: 20px; font-weight: 700; text-wrap: balance; }
.captcha { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--section); }
.captcha img { width: 100%; max-width: 100%; height: 72px; object-fit: contain; border-radius: 10px; background: #fff; }
.captcha label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--hint); }
.field {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--separator); border-radius: 12px;
  background: var(--bg); color: var(--text); font-size: 16px; letter-spacing: .08em;
}
.field:focus { outline: none; border-color: var(--btn); }

/* Прочее */
.notice { padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.notice-wrap { display: grid; gap: 8px; }
.manual-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.manual-copy input { min-width: 0; padding: 10px 12px; border: 1px solid var(--separator); border-radius: 8px; background: var(--section); color: var(--text); font-size: 13px; user-select: all; -webkit-user-select: all; }
.manual-copy button { padding: 10px 12px; border: 0; border-radius: 8px; background: var(--soft); color: var(--text); font-weight: 700; }
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px;
  background: rgba(24, 28, 34, .94); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  animation: rise .2s ease;
}
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; border-radius: var(--radius-lg); background: var(--section); text-align: center; }
.empty .empty-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--link); }
.empty h2 { font-size: 19px; font-weight: 700; }
.empty p { max-width: 34ch; color: var(--hint); }
.empty .btn { margin-top: 6px; }
.identity { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-lg); background: var(--section); }
.identity h2 { font-size: 20px; font-weight: 700; }
.identity p { color: var(--hint); }
.balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.balance strong { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ref-box { padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--hint); font-size: 14px; overflow-wrap: anywhere; }
.steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 12px 58px; counter-increment: step; }
.steps li + li { border-top: 1px solid var(--separator); }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--soft); color: var(--link); font-weight: 700; font-size: 14px;
}
.steps strong { font-size: 16px; font-weight: 600; }
.steps span { color: var(--hint); font-size: 14px; }
.intro { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius-lg); background: var(--section); }
.intro .brand-mark { width: 48px; height: 48px; border-radius: 14px; }
.intro h2 { font-size: 17px; font-weight: 700; }
.intro p { color: var(--hint); font-size: 14px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; padding: 0; border: 0; border-radius: 16px; background: var(--separator); transition: background .2s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.switch.is-on { background: var(--success); }
.switch.is-on::after { transform: translateX(20px); }
.actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 12px 6px;
  border: 0; border-radius: var(--radius); background: var(--soft); color: var(--link); font-size: 13px; font-weight: 600; text-decoration: none;
}
.action.primary { background: var(--btn); color: var(--btn-text); }
.access-list { display: flex; flex-direction: column; gap: 8px; }
.access-choice { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--soft); }
.access-choice-head { display: flex; flex-direction: column; gap: 2px; }
.access-choice-head strong { font-size: 15px; }
.access-choice-head span { color: var(--hint); font-size: 13px; }
.access-choice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.renew-action { width: 100%; margin-top: 8px; }
.lottery-summary {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border-radius: var(--radius); background: var(--section);
}
.lottery-summary > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lottery-summary > div:first-child span, .lottery-summary small { color: var(--hint); font-size: 13px; }
.lottery-summary > div:first-child strong { font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.lottery-summary p { color: var(--hint); font-size: 14px; }
.lottery-summary .lottery-friends { color: var(--text); padding-top: 4px; }
.lottery-eligibility-note { font-size: 12px !important; }
.lottery-progress { height: 7px; overflow: hidden; border-radius: 4px; background: var(--separator); }
.lottery-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3988d5, #32a775); }
.lottery-play { display: flex; flex-direction: column; align-items: center; gap: 14px; overflow-x: clip; }
.lottery-wheel-frame { position: relative; width: min(100%, 344px); aspect-ratio: 1; padding: 10px; }
.lottery-wheel {
  width: 100%; height: 100%; overflow: hidden; border: 5px solid var(--section); border-radius: 50%;
  box-shadow: 0 7px 22px rgba(15, 20, 25, .2); transform-origin: center; will-change: transform;
}
.lottery-wheel svg { display: block; width: 100%; height: 100%; }
.lottery-wheel svg path { stroke: var(--section); }
.lottery-wheel svg text { fill: #fff; font-size: 16px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .24); stroke-width: 2px; }
.lottery-wheel .lottery-hub { fill: var(--section); stroke: rgba(0, 0, 0, .12); stroke-width: 2; }
.lottery-wheel .lottery-hub-label { fill: var(--text); stroke: none; font-size: 12px; }
.lottery-wheel.is-spinning { animation: lottery-loop .9s linear infinite; }
.lottery-pointer {
  position: absolute; z-index: 2; top: 0; left: 50%; width: 0; height: 0;
  transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-top: 27px solid #ef655c; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
.lottery-spin-button { max-width: 344px; }
.lottery-result { display: flex; flex-direction: column; gap: 5px; padding: 15px 16px; border-radius: var(--radius); background: var(--success-soft); color: var(--success); }
.lottery-result.is-miss { background: var(--soft); color: var(--text); }
.lottery-result-label { font-size: 12px; color: var(--hint); }
.lottery-result strong { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.lottery-result > span:last-child:not(.lottery-result-label) { color: var(--hint); font-size: 13px; }
.lottery-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin: 0; padding: 0; list-style: none; overflow: hidden; border-radius: var(--radius); background: var(--section); }
.lottery-legend li { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 7px 12px; font-size: 13px; overflow-wrap: anywhere; }
.lottery-number { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--sector-color); color: #fff; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.skel { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--section); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--soft), transparent); animation: shimmer 1.2s infinite; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes lottery-loop { to { transform: rotate(calc(var(--wheel-rotation) + 1turn)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 360px) {
  .plans-grid, .btn-row { grid-template-columns: 1fr; }
  .days strong { font-size: 38px; }
}
