/* Night portal pages: rules, about, donate, and a polish layer for help, news, status and world pages. */
.pg-page { padding-bottom: 72px; }
.pg-hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 40px; overflow: hidden; }
.pg-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 10%, #6f3fc433, transparent 60%), radial-gradient(40% 70% at 5% 90%, #1d944733, transparent 60%); pointer-events: none; }
.pg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, #5fd14b33 0 16px, #4cb83b22 16px 32px); }
.pg-hero .wrap { position: relative; }
.pg-hero h1 { margin: 14px 0 12px; font: 900 clamp(36px, 5vw, 64px) / 1.02 var(--font-display); color: #fff; letter-spacing: -0.03em; text-shadow: 0 4px 0 #0009; }
.pg-hero h1 span { background: linear-gradient(90deg, var(--mc-emerald-hi), var(--mc-diamond)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-hero p { max-width: 62ch; margin: 0; font-size: 17px; line-height: 1.6; color: #c3cde6; }
.pg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pg-meta span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; color: #c9d2ea; background: #0b1228cc; clip-path: var(--notch-clip); --notch: 3px; }
.pg-note { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: #93a0bf; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pg-hero-row > div:first-child { flex: 1 1 520px; }
.pg-side { flex: none; }
.pg-page > .feature-page { padding-top: 28px; }

/* Help: live support card in the hero */
.help-live { display: flex; align-items: center; gap: 14px; flex: none; width: min(100%, 440px); padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #15353a, #121a3c); box-shadow: inset 0 0 0 1px #3ad37a40, 0 20px 40px -30px #3ad37a; }
.help-live > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.help-live > div > b { font: 700 16px var(--font-display); color: #fff; white-space: nowrap; }
.help-live small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #a6f0c2; white-space: nowrap; }
.help-live-cube { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: linear-gradient(180deg, #8f6bff, #6a46e0); clip-path: var(--notch-clip); --notch: 4px; animation: help-bob 3s ease-in-out infinite; }
.help-live-cube b { position: relative; width: 20px; height: 8px; }
.help-live-cube b::before, .help-live-cube b::after { content: ""; position: absolute; top: -6px; width: 5px; height: 6px; background: #1b0f40; }
.help-live-cube b::before { left: 1px; }
.help-live-cube b::after { right: 1px; }
.help-live-cube b { border-bottom: 3px solid #1b0f40; border-radius: 0 0 8px 8px; }
.help-live-cube s { position: absolute; left: 7px; right: 7px; top: 25px; height: 4px; background: linear-gradient(90deg, #ff9ec2 0 6px, transparent 6px calc(100% - 6px), #ff9ec2 0); opacity: 0.8; text-decoration: none; }
@keyframes help-bob { 50% { transform: translateY(-3px); } }

/* Rules */
.vr-golden { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 28px 0 32px; }
.vr-golden article { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #17204a, #111936); box-shadow: inset 0 0 0 1px #ffffff12, inset 0 3px 0 var(--mc-gold); animation: pg-rise 0.5s var(--ease-out-quint) both; animation-delay: calc(var(--i) * 60ms); }
.vr-golden b { font: 700 15px var(--font-display); color: #fff; }
.vr-golden small { font-size: 13px; color: #a9b6d8; }
@keyframes pg-rise { from { opacity: 0; transform: translateY(10px); } }
.vr-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.vr-toc { position: sticky; top: 90px; display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: #111936; box-shadow: inset 0 0 0 1px #ffffff12; }
.vr-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; min-height: 40px; background: #0b1228; border-radius: 10px; box-shadow: inset 0 0 0 1px #2d3d70; }
.vr-search:focus-within { box-shadow: inset 0 0 0 2px var(--mc-emerald); }
.vr-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; color: #fff; outline: none !important; font-size: 13px; padding: 0; }
.vr-toc nav { display: grid; gap: 2px; }
.vr-toc nav a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; color: #c9d2ea; text-decoration: none; border-radius: 8px; }
.vr-toc nav a:hover { color: #fff; background: #ffffff0c; }
.vr-body { display: grid; gap: 14px; }
.vr-section { scroll-margin-top: 90px; padding: 20px; border-radius: 18px; background: linear-gradient(180deg, #16203f, #111931); box-shadow: inset 0 0 0 1px #ffffff12, inset 0 3px 0 var(--mc-emerald); }
.vr-section header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vr-num { display: grid; place-items: center; width: 34px; height: 34px; flex: none; font: 400 16px var(--font-digits); color: #04260f; background: var(--mc-emerald); clip-path: var(--notch-clip); --notch: 3px; }
.vr-section h2 { margin: 0; font: 800 20px var(--font-display); color: #fff; }
.vr-section header p { margin: 2px 0 0; font-size: 13px; color: #93a0bf; }
.vr-section ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vr-section li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 12px; background: #0b1228; border-radius: 10px; color: #dbe2fb; line-height: 1.5; }
.vr-section li > b { font: 400 13px var(--font-digits); color: var(--mc-emerald-hi); }
.vr-punish { padding: 2px 8px; font: 600 11px var(--font-body); font-style: normal; white-space: nowrap; color: #ffe28a; background: #ffcb451a; border-radius: 6px; }
.vr-punish.mute { color: #c9b2ff; background: #b685ff1f; }
.vr-punish.ban { color: #ffb3bd; background: #ff546824; }
.vr-punish.hard { color: #fff; background: var(--mc-redstone-lo); }
.vr-empty { padding: 20px; text-align: center; color: #93a0bf; }
.vr-scale { box-shadow: inset 0 0 0 1px #ffffff12, inset 0 3px 0 var(--mc-redstone); }
.vr-scale .vr-num { background: var(--mc-redstone); color: #fff; }
.vr-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vr-steps li { display: grid; grid-template-columns: 1fr; gap: 4px; }
.vr-steps li > b { font-size: 20px; }
.vr-steps strong { color: #fff; }
.vr-steps small { color: #a9b6d8; font-size: 13px; }

/* About */
.about-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.about-parts article, .donate-rank { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 18px; background: linear-gradient(180deg, #17204a, #111936); box-shadow: inset 0 0 0 1px #ffffff12, inset 0 3px 0 var(--mc-emerald); transition: transform 0.2s var(--ease-spring); }
.about-parts article:hover, .donate-rank:hover { transform: translateY(-4px); }
.about-parts h2, .donate-rank h2 { margin: 0; font: 800 19px var(--font-display); color: #fff; }
.about-parts p { margin: 0; font-size: 14px; line-height: 1.55; color: #c3cde6; }
.about-principles { margin-top: 40px; }
.about-principles > h2, .about-cta h2 { margin: 0 0 14px; font: 800 clamp(22px, 2.6vw, 32px) var(--font-display); color: #fff; }
.about-principles > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.about-principles article { display: grid; gap: 6px; padding: 16px; background: #111936; border-radius: 14px; box-shadow: inset 0 0 0 1px #ffffff10; }
.about-principles b { font: 700 15px var(--font-display); color: #fff; }
.about-principles small { font-size: 13px; color: #a9b6d8; line-height: 1.5; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 40px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: radial-gradient(60% 120% at 100% 0%, #1d944744, transparent 60%), #111936; box-shadow: inset 0 0 0 1px #ffffff14, inset 0 4px 0 var(--mc-emerald); }
.about-cta h2 { margin-bottom: 6px; }
.about-cta p { margin: 0; color: #c3cde6; }

/* Donate */
.donate-ranks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.donate-rank { --w: var(--mc-emerald); justify-items: start; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--w) 40%, transparent), inset 0 3px 0 var(--w), 0 24px 50px -36px var(--w); animation: pg-rise 0.5s var(--ease-out-quint) both; animation-delay: calc(var(--i) * 70ms); }
.donate-rank[data-tone="diamond"] { --w: var(--mc-diamond); }
.donate-rank[data-tone="amethyst"] { --w: var(--mc-amethyst); }
.donate-rank[data-tone="gold"] { --w: var(--mc-gold); }
.donate-rank h2 { color: var(--w); }
.donate-rank ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #c9d2ea; }
.donate-rank li::before { content: "◆ "; color: var(--w); }
.donate-soon { margin-top: 6px; padding: 5px 12px; font: 400 11px var(--font-pixel); color: #0b1228; background: var(--w); clip-path: var(--notch-clip); --notch: 3px; }
.donate-note { text-align: center; }

/* Shared pack page */
.pack-card { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 28px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: radial-gradient(70% 120% at 100% 0%, #6f3fc430, transparent 60%), #111936; box-shadow: inset 0 0 0 1px #ffffff14, inset 0 4px 0 var(--mc-emerald), 0 30px 60px -40px #000; animation: pg-rise .5s var(--ease-out-quint) both; }
.pack-logo { width: 132px; height: 132px; flex: none; border-radius: 20px; object-fit: cover; background: #0b1228; box-shadow: 0 0 0 1px #ffffff1a, 0 16px 30px -18px #000; }
.pack-body { display: grid; gap: 10px; flex: 1 1 380px; min-width: 0; }
.pack-body h2 { margin: 0; font: 900 clamp(26px, 3vw, 38px) / 1.05 var(--font-display); color: #fff; letter-spacing: -0.02em; }
.pack-body > p { margin: 0; color: #c3cde6; line-height: 1.6; max-width: 70ch; }
.pack-body .pg-meta { margin-top: 2px; }
.pack-source { justify-self: start; padding: 3px 10px; font: 700 11px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #ffb37a; background: #f1642d22; border-radius: 6px; }
.pack-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.pack-steps li { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: #111936; box-shadow: inset 0 0 0 1px #ffffff10; animation: pg-rise .5s var(--ease-out-quint) both; animation-delay: calc(120ms + var(--i) * 70ms); }
.pack-steps b { font: 700 15px var(--font-display); color: #fff; }
.pack-steps small { color: #a9b6d8; font-size: 13px; }
@media (max-width: 760px) { .pack-steps { grid-template-columns: 1fr; } .pack-logo { width: 96px; height: 96px; } }

/* Diary of worlds */
.diary-shell { margin-top: 28px; }
.diary-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.diary-servers { position: sticky; top: 90px; display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: #111936; box-shadow: inset 0 0 0 1px #ffffff12; }
.diary-servers button { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px; text-align: left; color: #dbe2fb; background: transparent; cursor: pointer; }
.diary-servers button[aria-pressed="true"] { color: #fff; background: #1d5a4533; box-shadow: inset 3px 0 0 var(--mc-emerald); }
.diary-servers small { color: #93a0bf; font-size: 12px; }
.diary-feed { display: grid; gap: 8px; }
.diary-day { margin: 12px 0 2px; font: 800 14px var(--font-display); color: #a9b6d8; text-transform: uppercase; letter-spacing: .06em; }
.diary-ev { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #111936; box-shadow: inset 3px 0 0 #5b6b94; animation: pg-rise .4s var(--ease-out-quint) both; animation-delay: calc(var(--i) * 30ms); }
.diary-ev.death { box-shadow: inset 3px 0 0 var(--mc-redstone); }
.diary-ev.boss { box-shadow: inset 3px 0 0 var(--mc-amethyst); background: linear-gradient(90deg, #b685ff1a, #111936); }
.diary-ev.advancement { box-shadow: inset 3px 0 0 var(--mc-emerald); }
.diary-ev div { display: grid; gap: 2px; }
.diary-ev b { color: #fff; font-weight: 600; }
.diary-ev small { color: #93a0bf; font-size: 12px; }
.diary-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; border-radius: 20px; background: #111936; box-shadow: inset 0 0 0 1px #ffffff12; }
.diary-empty h2 { margin: 0; font: 800 22px var(--font-display); color: #fff; }
.diary-empty p { margin: 0; color: #a9b6d8; max-width: 52ch; }
/* Rewind page */
.replay-drop { margin-top: 28px; }
.replay-pick { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; border-radius: 20px; border: 2px dashed #3a4d80; background: #0f1630; color: #fff; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.replay-drop.over .replay-pick, .replay-pick:hover { border-color: var(--mc-diamond); background: #13204a; }
.replay-pick small { color: #93a0bf; max-width: 60ch; }
.replay-stage.site { height: min(640px, 75vh); margin-top: 18px; }
@media (max-width: 860px) { .diary-layout { grid-template-columns: 1fr; } .diary-servers { position: static; } }

/* News cards: text keeps inside the card */
:root[data-theme=night] .update-tile > div { padding: 16px 20px 20px; }
:root[data-theme=night] .update-tile > a { border-radius: 0; }
:root[data-theme=night] .update-tile h3 { overflow-wrap: anywhere; }

/* Polish for the help, news, status and world pages. */
.feature-page { padding-top: clamp(36px, 5vw, 64px); }
.feature-heading h1 { font-family: var(--font-display) !important; font-weight: 900 !important; letter-spacing: -0.03em; text-shadow: 0 4px 0 #0008; }
.feature-heading { position: relative; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #ffffff10; }
.feature-heading::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 3px; background: linear-gradient(90deg, var(--mc-emerald), var(--mc-diamond)); }
.feature-filters button, .help-categories button { border-radius: 10px !important; }
.help-answer, .update-tile, .world-specs, .server-monitor { border-radius: 16px !important; }

@media (max-width: 1000px) {
  .vr-golden, .about-parts, .donate-ranks, .about-principles > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vr-layout { grid-template-columns: 1fr; }
  .vr-toc { position: static; }
  .vr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vr-golden, .about-parts, .donate-ranks, .about-principles > div, .vr-steps { grid-template-columns: 1fr; }
  .vr-section li { grid-template-columns: 36px minmax(0, 1fr); }
  /* Punishment steps: number and title on one line, the text below at full width (not a 36px column). */
  .vr-steps li { grid-template-columns: 30px minmax(0, 1fr); align-items: center; }
  .vr-steps li small { grid-column: 1 / -1; }
  .vr-punish { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .vr-golden article, .donate-rank, .help-live-cube { animation: none; } }

/* ---------- «Тарифы»: products, exact prices, buy buttons ---------- */
.tf-page .pg-hero-row { align-items: center; }
.tf-wallet { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; min-width: min(320px, 100%); padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #17264f, #111936 65%); box-shadow: inset 0 0 0 1px #5ee2ff33, 0 30px 60px -40px #5ee2ff; animation: pg-rise .5s var(--ease-out-quint) both; }
.tf-wallet small { display: block; font-size: 12.5px; color: #9aa6c6; }
.tf-wallet b { font: 800 30px/1.1 var(--font-display); color: #fff; letter-spacing: -.02em; }
.tf-wallet b i { font: 600 14px var(--font-body); font-style: normal; color: #9aa6c6; }
.tf-plus-on { color: #d9c4ff !important; }
.tf-topup { grid-column: 1 / -1; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 6px; border: 0; border-radius: 12px; font: 700 15.5px var(--font-body); color: var(--mc-emerald-ink); background: linear-gradient(180deg, #5ef08c, var(--mc-emerald)); box-shadow: 0 12px 30px -14px var(--mc-emerald), inset 0 -3px 0 var(--mc-emerald-lo); cursor: pointer; overflow: hidden; transition: transform .2s var(--ease-spring), filter .2s; }
.tf-topup span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 15px; background: #04260f1f; transition: transform .3s var(--ease-spring); }
.tf-topup::before, .tf-buy.primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, #ffffff66 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.tf-topup:hover { transform: translateY(-2px); filter: brightness(1.05); }
.tf-topup:hover span { transform: rotate(90deg); }
.tf-topup:hover::before, .tf-buy.primary:hover::before { transform: translateX(120%); }
.tf-topup:active, .tf-buy:active { transform: translateY(1px) scale(.99); }
.tf-section { margin-top: 44px; }
.tf-head { max-width: 720px; margin-bottom: 18px; }
.tf-head h2, .tf-pay h2 { margin: 4px 0 8px; font: 800 clamp(24px, 4vw, 32px) var(--font-display); color: #fff; }
.tf-head p { margin: 0; color: #b8c4e3; line-height: 1.6; }
.tf-kicker { font: 700 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mc-diamond); }
.tf-grid { display: grid; gap: 14px; }
.tf-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 981px) { .tf-grid.tf-vord-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tf-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 20px; background: linear-gradient(180deg, #17204a, #111936); box-shadow: inset 0 0 0 1px #ffffff12; animation: pg-rise .5s var(--ease-out-quint) both; animation-delay: calc(var(--i) * 70ms); transition: transform .25s var(--ease-spring), box-shadow .25s; }
.tf-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px #5ee2ff55, 0 30px 60px -40px var(--mc-diamond); }
.tf-card.hit { box-shadow: inset 0 0 0 2px var(--mc-emerald), 0 30px 70px -40px var(--mc-emerald); }
.tf-card h3 { margin: 0; font: 800 20px var(--font-display); color: #fff; }
.tf-card.small { padding: 18px; }
.tf-card.small h3 { font-size: 17px; }
.tf-fits { margin: -4px 0 0; font-size: 13.5px; color: #9aa6c6; }
.tf-tag { position: absolute; top: -10px; right: 16px; padding: 4px 10px; border-radius: 999px; font: 700 11.5px var(--font-body); color: var(--mc-emerald-ink); background: var(--mc-emerald); }
.tf-tag.gold { background: var(--mc-gold); color: #3a2a00; }
.tf-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tf-price b { font: 800 34px/1 var(--font-display); color: #fff; letter-spacing: -.02em; white-space: nowrap; }
.tf-card.small .tf-price b { font-size: 26px; }
.tf-price span { font-size: 13.5px; color: #9aa6c6; }
.tf-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #dbe2ff; }
.tf-list li { display: flex; gap: 9px; align-items: flex-start; }
.tf-list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 5px; background: var(--mc-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.3' stroke='%2304260f' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.tf-buy { position: relative; justify-content: center; width: 100%; min-height: 48px; margin-top: 6px; overflow: hidden; }
.tf-plus { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 24px; align-items: center; padding: clamp(22px, 4vw, 34px); border-radius: 24px; background: radial-gradient(120% 140% at 0 0, #3a2470 0, #17204a 45%, #111936 100%); box-shadow: inset 0 0 0 1px #b685ff55, 0 40px 80px -50px var(--mc-amethyst); animation: pg-rise .5s var(--ease-out-quint) both; }
.tf-plus h2 { display: flex; align-items: center; gap: 4px; margin: 6px 0 8px; font: 800 44px/1 var(--font-display); color: #e9ddff; }
.tf-plus h2 span { margin-left: -4px; }
.tf-plus .tf-kicker { color: #d9c4ff; }
.tf-plus p { margin: 0 0 14px; color: #c9c0e6; }
.tf-plus-buy { display: grid; gap: 10px; padding: 20px; border-radius: 18px; background: #0b122899; box-shadow: inset 0 0 0 1px #ffffff14; }
.tf-plus-buy small { font-size: 12.5px; line-height: 1.5; color: #9aa6c6; }
.tf-custom { margin: 16px 0 0; color: #9aa6c6; font-size: 14px; }
.tf-pay { display: grid; gap: 14px; margin: 44px 0 20px; padding: clamp(20px, 4vw, 30px); border-radius: 22px; background: #0f1730; box-shadow: inset 0 0 0 1px #ffffff12; }
.tf-pay ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.tf-pay li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; color: #dbe2ff; background: #ffffff08; }
.tf-pay li b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; font: 700 14px var(--font-digits); color: var(--mc-emerald-ink); background: var(--mc-emerald); }
@media (max-width: 980px) { .tf-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tf-grid.three, .tf-plus, .tf-pay ol { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tf-grid.four { grid-template-columns: 1fr 1fr; gap: 10px; } .tf-card.small { padding: 14px; } .tf-card.small .tf-price b { font-size: 22px; } .tf-wallet { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .tf-card, .tf-plus, .tf-wallet { animation: none; } .tf-card, .tf-topup, .tf-topup span, .tf-topup::before, .tf-buy.primary::before { transition: none; } }

/* «VORDA+» written out: gradient wordmark with a glowing plus. */
.tf-plus h2.tf-plus-word { display: flex; width: fit-content; align-items: flex-start; gap: 2px; margin: 8px 0 10px; font: 900 clamp(38px, 6vw, 54px)/1 var(--font-display); letter-spacing: .02em; background: linear-gradient(100deg, #f3ecff 0%, #d9c4ff 35%, #b685ff 65%, #ff8fcf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px #b685ff55); }
.tf-plus h2.tf-plus-word span { margin: -.08em 0 0 .04em; font-size: .72em; background: linear-gradient(180deg, #ffe08a, #ffcb45 60%, #ff9b4a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px #ffcb4599); animation: tf-plus-glow 3.2s ease-in-out infinite; }
@keyframes tf-plus-glow { 50% { filter: drop-shadow(0 0 20px #ffcb45cc); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .tf-plus h2.tf-plus-word span { animation: none; } }

/* Balance in the header: the V mark, the vords, a plus — opens the «Баланс» window. */
.portal-balance { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-right: 8px; padding: 0 6px 0 10px; border: 0; border-radius: 12px; font: 800 14px var(--font-display); color: #fff; background: linear-gradient(135deg, #14244a, #101a34); box-shadow: inset 0 0 0 1px #5ee2ff40; cursor: pointer; overflow: hidden; transition: transform .2s var(--ease-spring), box-shadow .2s; }
.portal-balance::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, #ffffff1f 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.portal-balance:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--mc-emerald), 0 10px 30px -16px var(--mc-emerald); }
.portal-balance:hover::after { transform: translateX(120%); }
.portal-balance:focus-visible { outline: 3px solid #abecff; outline-offset: 2px; }
.portal-balance b { font-variant-numeric: tabular-nums; }
.portal-balance-plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font: 800 16px var(--font-body); color: var(--mc-emerald-ink); background: linear-gradient(180deg, #5ef08c, var(--mc-emerald)); transition: transform .3s var(--ease-spring); }
.portal-balance:hover .portal-balance-plus { transform: rotate(90deg); }
@media (max-width: 720px) { .portal-balance { height: 34px; margin-right: 4px; padding: 0 4px 0 8px; font-size: 13px; } .portal-balance img { width: 18px; height: 18px; } }
@media (prefers-reduced-motion: reduce) { .portal-balance, .portal-balance::after, .portal-balance-plus { transition: none; } }
.tf-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tf-term { display: grid; gap: 1px; padding: 10px 12px; border: 0; border-radius: 12px; text-align: left; color: #fff; background: #b685ff1a; box-shadow: inset 0 0 0 1px #b685ff44; cursor: pointer; font: inherit; transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.tf-term:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px #b685ff, 0 12px 26px -16px #b685ff; }
.tf-term b { font: 800 14px var(--font-display); } .tf-term span { font: 700 14px var(--font-body); } .tf-term small { font-size: 11.5px; color: #d9c8ff; }

/* VORDA+ next to the nickname */
.vnick { text-shadow: 0 0 12px currentColor; }
.vplus { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; vertical-align: -2px; border-radius: 5px; background: linear-gradient(135deg, #6a3fc0, #b685ff); box-shadow: 0 0 10px -2px #b685ff; }
.vplus img { width: 10px; height: 10px; filter: brightness(10); }

