/* ===========================================================
   خليّة — نظام الخطوط
   Cairo (SIL OFL 1.1) — مرخّص للاستخدام التجاري، مضمّن محلياً.
   =========================================================== */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/Cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/Cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC;
}

/* ===========================================================
   شبكة الحروف — نيون ليلي (iPhone أولاً)
   خطوط النظام فقط.
   =========================================================== */
:root {
  --font: 'Cairo', -apple-system, BlinkMacSystemFont, "SF Arabic",
          "Noto Sans Arabic", Tahoma, system-ui, sans-serif;

  --bg:      #06070f;
  --bg-2:    #0a0d1c;
  --panel:   #11142a;
  --panel-2: #191d3a;
  --edge:    #262c52;

  --ink:   #f0f2ff;
  --ink-2: #9aa3d0;
  --ink-3: #626c9e;

  --t1:      #16e0ff;   /* الفريق الأول — سيان كهربائي */
  --t1-deep: #0092b8;
  --t2:      #ff3d90;   /* الفريق الثاني — وردي نيون */
  --t2-deep: #b8104f;
  --gold:    #ffc93c;
  --ok:      #2ce08a;
  --no:      #ff4d4d;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none;
}
button { border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
input { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

.screen {
  width: min(430px, 100%); margin: 0 auto; height: 100dvh; position: relative;
  background:
    radial-gradient(120% 50% at 15% -5%, rgba(22, 224, 255, .16), transparent 60%),
    radial-gradient(120% 50% at 85% 105%, rgba(255, 61, 144, .16), transparent 60%),
    var(--bg);
}
@media (min-width: 520px) {
  body { display: grid; place-items: center; background: #03040a; }
  .screen {
    height: min(920px, 100dvh); border-radius: 40px; overflow: hidden;
    box-shadow: 0 50px 110px rgba(0, 0, 0, .8), 0 0 0 1px var(--edge);
  }
}
body[data-screen="setup"] .board-screen { display: none; }
body[data-screen="board"] .setup-screen { display: none; }
.board-screen[data-many="1"] .score-rail { --chip-min: 96px; --chip-name: 12px; --chip-num: 18px; }

/* ---------- عناصر عامة ---------- */
.cta {
  min-height: 54px; padding: 0 26px; border-radius: 18px;
  background: linear-gradient(100deg, var(--t1), var(--t2));
  color: #05070f; font-size: 17px; font-weight: 800;
  box-shadow: 0 10px 30px rgba(255, 61, 144, .28);
  transition: transform .12s;
}
.cta:active { transform: scale(.975); }
.cta:disabled { opacity: .35; box-shadow: none; }

.pill {
  min-height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--panel); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--edge);
}
.ibtn {
  width: 38px; height: 38px; flex: none; border-radius: 13px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--edge);
  display: grid; place-items: center; font-size: 14px; color: var(--ink-2);
}
.eyebrow { font-size: 11px; letter-spacing: 1.4px; color: var(--ink-3); }

/* ===========================================================
   شاشة الإعداد
   =========================================================== */
.setup-screen { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.setup-scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-t) + 14px) 18px 18px;
  display: grid; gap: 14px; align-content: start;
}

.hero { display: grid; justify-items: center; gap: 4px; }
.brand-logo { width: 118px; height: 118px; filter: drop-shadow(0 14px 32px rgba(255, 201, 60, .28)); }
.hero-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.trial-badge {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(22, 224, 255, .12); color: var(--t1);
  box-shadow: inset 0 0 0 1px rgba(22, 224, 255, .45);
  font-size: 12.5px; font-weight: 700;
}
.trial-badge.out { background: rgba(255, 61, 144, .12); color: var(--t2); box-shadow: inset 0 0 0 1px rgba(255, 61, 144, .5); }
.trial-badge.pro { background: rgba(255, 201, 60, .14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .5); }
.tagline { margin: 8px 0 12px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

.hero h1 { margin: 10px 0 0; font-size: 40px; font-weight: 900; letter-spacing: -.5px; line-height: 1.08; text-align: center; }
.hero h1 span {
  display: block;
  background: linear-gradient(100deg, var(--t1), var(--t2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { margin: 9px 0 12px; font-size: 14px; color: var(--ink-3); text-align: center; }

.block { background: var(--panel); border-radius: 28px; padding: 16px; box-shadow: inset 0 0 0 1px var(--edge); }
.bh { margin-bottom: 12px; }
.bh h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .4px; color: var(--ink-3); }

.names-list { display: grid; gap: 8px; }
.name-field {
  display: flex; align-items: center; gap: 11px;
  background: var(--panel-2); border-radius: 16px; padding: 0 14px;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s;
}
.name-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--t1); }
.name-dot { width: 9px; height: 26px; border-radius: 5px; flex: none; }
.name-field input {
  flex: 1; min-height: 50px; border: 0; background: none; outline: none;
  font-size: 15.5px; font-weight: 700;
}
.name-field input::placeholder { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.hint { margin: -4px 0 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.goal-note { margin: 13px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; text-align: center; }
.c1 { color: var(--t1); } .c2 { color: var(--t2); }

.mode-list { display: grid; gap: 8px; }
.mode-card {
  display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 12px;
  padding: 15px 16px; border-radius: 20px; text-align: start;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .16s, background .16s, transform .12s;
}
.mode-card::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--edge); transition: box-shadow .16s;
}
.mode-card.selected { background: rgba(22, 224, 255, .1); box-shadow: inset 0 0 0 1.5px var(--t1); }
.mode-card.selected::before { box-shadow: inset 0 0 0 6px var(--t1); }
.mode-card:active { transform: scale(.985); }
.m-text { display: grid; gap: 3px; }
.m-text strong { font-size: 16px; }
.m-text span { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

.stepper { display: flex; align-items: center; gap: 4px; background: var(--panel-2); border-radius: 999px; padding: 3px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; font-weight: 700; color: var(--ink-2); background: var(--panel); }
.stepper button:disabled { opacity: .3; }
.stepper strong { min-width: 26px; text-align: center; font-size: 16px; font-weight: 800; }

.bh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 34px; }

.seg { display: flex; gap: 7px; }
.seg button {
  flex: 1; min-height: 46px; border-radius: 14px;
  background: var(--panel-2); color: var(--ink-2);
  font-size: 14px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px transparent; transition: all .15s;
}
.seg button.on { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--t1); background: rgba(22, 224, 255, .12); }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 10px 15px; border-radius: 999px; background: var(--panel-2);
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px transparent; transition: all .15s;
}
.chip.on { color: var(--t1); background: rgba(22, 224, 255, .12); box-shadow: inset 0 0 0 1.5px var(--t1); }

.opt-list { display: grid; gap: 8px; }
.opt {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 17px; background: var(--panel-2); text-align: start;
}
.opt .o-text { display: grid; gap: 2px; }
.opt strong { font-size: 14.5px; }
.opt span { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.switch { width: 46px; height: 27px; border-radius: 999px; background: var(--edge); position: relative; transition: background .2s; flex: none; }
.switch::after {
  content: ""; position: absolute; top: 3px; inset-inline-end: 3px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--ink-3);
  transition: transform .2s, background .2s;
}
.opt.on .switch { background: rgba(255, 201, 60, .3); }
.opt.on .switch::after { transform: translateX(-19px); background: var(--gold); }

.dock {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px calc(14px + var(--safe-b));
  background: linear-gradient(0deg, var(--bg) 55%, transparent);
}
.pool { flex: 1; font-size: 11.5px; color: var(--ink-3); }

/* ===========================================================
   شاشة اللوحة
   =========================================================== */
.board-screen { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.board-screen > .topbar     { grid-row: 1; }
.board-screen > .streak     { grid-row: 2; }
.board-screen > .board-wrap { grid-row: 3; }
.board-screen > .foot      { grid-row: 4; }

.topbar { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 14px 8px; }
.mode-label { flex: 1; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); }

.score-rail {
  display: flex; gap: 7px; padding: 2px 14px 10px;
  overflow-x: auto; scroll-snap-type: x proximity;
}
.score-chip {
  flex: none; min-width: var(--chip-min, 118px);
  display: grid; gap: 5px;
  padding: 10px 12px; border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--edge);
  scroll-snap-align: center;
  transition: background .25s, box-shadow .25s, transform .25s;
}
.score-chip.active {
  background: color-mix(in srgb, var(--pc) 14%, var(--panel));
  box-shadow: inset 0 0 0 1.5px var(--pc), 0 0 24px color-mix(in srgb, var(--pc) 30%, transparent);
  transform: translateY(-2px);
}
.sc-top { display: flex; align-items: center; gap: 7px; }
.sc-bar { width: 4px; height: 15px; border-radius: 2px; background: var(--pc); flex: none; }
.sc-name { font-size: var(--chip-name, 13.5px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-line { display: flex; align-items: baseline; gap: 6px; }
.sc-line b { font-size: var(--chip-num, 22px); font-weight: 800; color: var(--pc); font-variant-numeric: tabular-nums; }
.sc-line small { font-size: 10.5px; color: var(--ink-3); }

.streak {
  margin: 0 14px 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 201, 60, .14); color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .5);
  font-size: 12px; font-weight: 800; text-align: center;
  animation: flamePulse 1s ease-in-out infinite;
}
@keyframes flamePulse { 50% { box-shadow: inset 0 0 0 1px var(--gold), 0 0 22px rgba(255,201,60,.35); } }

/* ---------- اللوحة ---------- */
.board-wrap { display: grid; place-items: center; padding: 4px; min-height: 0; }
.board-frame { position: relative; padding: 10px 8px; }
.board { display: flex; align-items: flex-start; }
.hex-col { display: flex; flex-direction: column; gap: var(--gap-v, 4px); }
.hex-col + .hex-col { margin-inline-start: calc(var(--hex-w, 80px) * -0.22); }

.hex {
  position: relative;
  width: var(--hex-w, 80px); height: calc(var(--hex-w, 80px) / 1.155);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--rim, #2c3357);
  display: grid; place-items: center;
  font-size: calc(var(--hex-w, 80px) * .38); font-weight: 800;
  color: var(--ink-2);
  transition: color .3s, transform .18s;
}
.hex::before {
  content: ""; position: absolute; inset: 3px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--fill, var(--panel-2));
  transition: background .3s;
}
.hex > span { position: relative; z-index: 1; }
.hex:active { transform: scale(.93); }

.hex.e1 { --rim: var(--t1); }
.hex.e2 { --rim: var(--t2); }
.hex.e1.e2 { --rim: linear-gradient(140deg, var(--t1), var(--t2)); }

.hex.blocked { --rim: #333a63; --fill: #20264a; color: #4d5580; }
.hex.gold { --rim: var(--gold); --fill: linear-gradient(160deg, #ffdd7a, #e8a400); color: #2a1c00; animation: goldPulse 1.7s ease-in-out infinite; }
@keyframes goldPulse { 50% { transform: scale(1.06); } }
.hex.taken { pointer-events: none; }
.hex.flash { animation: hexPop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hexPop { 0% { transform: scale(.55) rotate(-10deg); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.hex.win { animation: winGlow .9s ease-in-out infinite; }
@keyframes winGlow { 50% { filter: brightness(1.55); } }

/* توهّج خلايا الحافة — يوضّح ضلع كل فريق */
.hex.e1, .hex.e2 { z-index: 1; }

.foot { display: grid; gap: 8px; padding: 8px 16px calc(12px + var(--safe-b)); }
.turn-strip {
  display: grid; gap: 2px; justify-items: center;
  padding: 12px 16px; border-radius: 20px;
  background: var(--turn-soft, rgba(22, 224, 255, .12));
  box-shadow: inset 0 0 0 1.5px var(--turn-c, var(--t1)), 0 0 26px var(--turn-glow, rgba(22, 224, 255, .18));
  transition: background .3s, box-shadow .3s;
}
.turn-strip span { font-size: 19px; font-weight: 800; color: var(--turn-c, var(--t1)); }
.turn-strip small { font-size: 12.5px; color: var(--ink-3); }
.board-log { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; line-height: 1.55; }

/* ===========================================================
   نافذة السؤال
   =========================================================== */
.quiz-layer {
  position: fixed; inset: 0; z-index: 40;
  display: grid; align-items: end; justify-items: center;
  background: rgba(3, 4, 12, .78); backdrop-filter: blur(12px);
}
.quiz-card {
  width: min(430px, 100%);
  display: grid; gap: 11px;
  padding: 14px 16px calc(16px + var(--safe-b));
  border-radius: 32px 32px 0 0;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  max-height: 86dvh; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 -20px 60px rgba(0, 0, 0, .7);
  animation: rise .3s cubic-bezier(.2, .85, .3, 1);
}
@keyframes rise { from { transform: translateY(100%); } }
.quiz-card.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }

.quiz-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.quiz-letter {
  width: 52px; height: 58px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid; place-items: center;
  font-size: 25px; font-weight: 800; color: #05070f;
  background: var(--turn, var(--t1));
}
.quiz-meta { display: grid; gap: 2px; min-width: 0; }
.quiz-team { font-size: 11.5px; color: var(--ink-3); }
.quiz-meta strong { font-size: 15px; }
.quiz-timer {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  background: conic-gradient(var(--turn, var(--t1)) var(--p, 100%), var(--edge) 0);
  position: relative; font-variant-numeric: tabular-nums;
}
.quiz-timer::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel); }
.quiz-timer span { position: relative; z-index: 1; }
.quiz-timer.warn { background: conic-gradient(var(--no) var(--p, 100%), var(--edge) 0); color: var(--no); animation: tick .8s ease-in-out infinite; }
@keyframes tick { 50% { transform: scale(1.1); } }

.quiz-body { padding: 2px 0; min-height: 0; overflow-y: auto; display: grid; align-content: center; }
.quiz-body p { margin: 0; font-size: clamp(21px, 6.2vw, 28px); font-weight: 800; line-height: 1.55; text-align: center; text-wrap: balance; }

.quiz-answer {
  display: grid; gap: 9px; justify-items: center;
  padding: 11px; border-radius: 20px;
  background: rgba(3, 4, 12, .5); box-shadow: inset 0 0 0 1px var(--edge);
}
.reveal {
  padding: 7px 16px; border-radius: 999px;
  background: var(--panel-2); color: var(--gold);
  font-size: 12.5px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .4);
}
.ans { margin: 0; font-size: 21px; font-weight: 800; color: var(--gold); }
.ans.hidden-ans { color: var(--ink-3); font-weight: 500; font-size: 14px; filter: blur(6px); }

.quiz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.qa { min-height: 58px; border-radius: 19px; font-size: 19px; font-weight: 800; transition: transform .1s; }
.qa:active { transform: scale(.97); }
.qa.ok { background: linear-gradient(180deg, #3df0a0, var(--ok)); color: #04231a; box-shadow: 0 8px 24px rgba(44, 224, 138, .25); }
.qa.no { background: linear-gradient(180deg, #ff6d6d, var(--no)); color: #2a0505; box-shadow: 0 8px 24px rgba(255, 77, 77, .22); }
.ans-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.qa-ghost {
  padding: 7px 14px; border-radius: 999px; background: var(--panel-2);
  color: var(--ink-3); font-size: 12.5px; font-weight: 600;
}

/* ---------- العدّ التنازلي ---------- */
.countdown {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: rgba(3, 4, 12, .82); backdrop-filter: blur(14px);
}
.countdown span {
  font-size: 130px; font-weight: 800; line-height: 1;
  background: linear-gradient(100deg, var(--t1), var(--t2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: cdPop .55s cubic-bezier(.3, 1.5, .5, 1);
}
@keyframes cdPop { 0% { transform: scale(2.2); opacity: 0; } 60% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- نقاط طائرة ---------- */
.float-pt {
  position: fixed; z-index: 70; pointer-events: none;
  font-size: 26px; font-weight: 800;
  animation: floatUp 1s ease-out forwards;
}
@keyframes floatUp { to { transform: translateY(-70px); opacity: 0; } }

/* ---------- الأوراق ---------- */
.sheet { border: 0; padding: 0; background: transparent; position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(430px, 100%); max-width: 100%; max-height: 100%; }
.sheet::backdrop { background: rgba(2, 3, 8, .78); backdrop-filter: blur(10px); }
.sheet-card {
  display: grid; gap: 13px;
  padding: 10px 20px calc(24px + var(--safe-b));
  border-radius: 34px 34px 0 0; background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 -20px 60px rgba(0, 0, 0, .7);
  max-height: 88dvh; overflow-y: auto;
  animation: rise .3s cubic-bezier(.2, .85, .3, 1);
}
.sheet-card.center { text-align: center; justify-items: center; }
.grip { width: 40px; height: 4px; border-radius: 999px; background: var(--edge); justify-self: center; margin-bottom: 6px; }
.sheet-card h2 { margin: 0; font-size: 24px; font-weight: 900; }
.sheet-text { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.rules { margin: 0; padding-inline-start: 18px; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.rules b { color: var(--ink); }
.win-stats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.win-stat { padding: 10px 16px; border-radius: 16px; background: var(--panel-2); text-align: center; }
.win-stat b { display: block; font-size: 22px; margin-bottom: 2px; }
.win-stat span { font-size: 12px; color: var(--ink-2); }

/* ---------- شاشات قصيرة ---------- */
@media (max-height: 720px) {
  .hero-hex { transform: scale(.85); margin-bottom: 0; }
  .hero h1 { font-size: 29px; }
  .quiz-body p { font-size: 20px; }
  .qa { min-height: 52px; }
  .countdown span { font-size: 100px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===========================================================
   ورقة الاشتراك
   =========================================================== */
.sheet-card.pay { gap: 11px; }
.pay-logo { filter: drop-shadow(0 10px 24px rgba(255, 201, 60, .3)); }
.pay-perks {
  list-style: none; margin: 4px 0 6px; padding: 0;
  display: grid; gap: 8px; width: 100%;
}
.pay-perks li {
  position: relative; padding-inline-start: 26px;
  font-size: 13.5px; color: var(--ink-2); text-align: start; line-height: 1.6;
}
.pay-perks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(44, 224, 138, .16); color: var(--ok);
  font-size: 11px; font-weight: 800;
}

.plan-list { display: grid; gap: 8px; width: 100%; margin-top: 2px; }
.plan {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 15px; border-radius: 18px;
  background: var(--panel-2); text-align: start;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .16s, background .16s;
}
.plan-l { display: grid; gap: 2px; }
.plan-l strong { font-size: 15.5px; }
.plan-l span { font-size: 11.5px; color: var(--ink-3); }
.plan-price { font-size: 16px; font-weight: 900; color: var(--ink); white-space: nowrap; }
.plan.on { background: rgba(22, 224, 255, .1); box-shadow: inset 0 0 0 1.5px var(--t1); }
.plan.on .plan-price { color: var(--t1); }
.plan-tag {
  position: absolute; top: -9px; inset-inline-end: 14px;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(100deg, var(--t1), var(--t2));
  color: #05070f; font-size: 10.5px; font-weight: 900;
}
.plan.best { box-shadow: inset 0 0 0 1.5px rgba(255, 201, 60, .45); }
.plan.best.on { box-shadow: inset 0 0 0 1.5px var(--t1); }

.pay-foot { display: flex; gap: 16px; justify-content: center; margin-top: 2px; }
.link-btn { color: var(--ink-3); font-size: 13px; font-weight: 600; text-decoration: underline; padding: 6px 2px; }
.pay-note { margin: 0; font-size: 11px; color: var(--ink-3); line-height: 1.6; }
