
:root {
  --bg: #0b0b10; --bg-2: #13131a; --card: #17171f; --card-2: #1e1e28; --border: rgba(255,255,255,.08);
  --text: #f2f2f5; --muted: #9a9aa6; --accent: #8b7bff; --accent-2: #6d5dfc; --pink: #ff5fa8;
  --ok: #3ddc84; --warn: #ffb347; --danger: #ff5b6b; --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, 'Segoe UI', system-ui, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: #b7abff; }
img { max-width: 100%; display: block; }
code { font-family: Consolas, ui-monospace, monospace; font-size: .92em; background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; }
mark { background: rgba(255,179,71,.18); color: var(--warn); padding: 0 4px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* nav */
.topnav { position: sticky; top: 0; z-index: 20; background: rgba(11,11,16,.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topnav .wrap { display: flex; align-items: center; height: 62px; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.topnav .links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.topnav .links a { color: var(--muted); text-decoration: none; }
.topnav .links a:hover { color: var(--text); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; background: rgba(255,255,255,.07); color: var(--text); transition: transform .12s, background .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.12); }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), #a35cff 60%, var(--pink)); color: #fff; box-shadow: 0 8px 28px rgba(124,92,255,.35); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(124,92,255,.5); }
.btn.tg { background: #2aabee; color: #fff; }
.btn.tg:hover { background: #229ed9; }
.btn.danger { color: var(--danger); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn.xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; }
input, select, textarea { font: inherit; color: inherit; }
.input { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-2); outline: none; }
.input:focus { border-color: rgba(139,123,255,.6); }
textarea.input { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #cfcfd8; cursor: pointer; text-align: left; }
label.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge.ok { background: rgba(61,220,132,.14); color: var(--ok); }
.badge.warn { background: rgba(255,179,71,.14); color: var(--warn); }
.badge.bad { background: rgba(255,91,107,.14); color: var(--danger); }
.alert { padding: 14px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; }
.alert.warn { background: rgba(255,179,71,.09); border: 1px solid rgba(255,179,71,.3); color: #f0d4a8; }
.alert.bad { background: rgba(255,91,107,.09); border: 1px solid rgba(255,91,107,.32); color: #ffc2c8; }
.alert.ok { background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.3); color: #b9f1d1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #22222c; border: 1px solid var(--border); padding: 12px 18px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 100; font-size: 14.5px; max-width: calc(100vw - 32px); }
.toast.error { border-color: rgba(255,91,107,.5); }

/* landing */
.hero { position: relative; padding: 72px 0 48px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -20% auto; height: 760px; background: radial-gradient(closest-side, rgba(139,123,255,.26), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(255,95,168,.14), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(139,123,255,.12); border: 1px solid rgba(139,123,255,.3); font-size: 13px; font-weight: 600; color: #cbc3ff; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0; font-weight: 800; }
h1 .grad { background: linear-gradient(90deg, #b7abff, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: #c4c4cf; max-width: 540px; margin: 0 0 28px; }
.meta { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.shot { justify-self: center; position: relative; }
.shot img { width: 360px; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px var(--border); }
section { padding: 80px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 12px; }
.sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.grid .card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media { display: flex; justify-content: center; }
.split .media img { width: 360px; border-radius: 20px; box-shadow: 0 26px 70px rgba(0,0,0,.55), 0 0 0 1px var(--border); }
ul.check { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
ul.check li { display: flex; gap: 12px; color: #d6d6de; }
ul.check li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: rgba(61,220,132,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan .price s { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.plan .btn { margin-top: auto; }
.plan.best { border-color: rgba(139,123,255,.55); box-shadow: 0 0 0 1px rgba(139,123,255,.25), 0 18px 50px rgba(124,92,255,.15); }
.plan .tag { position: absolute; top: -11px; right: 16px; background: linear-gradient(135deg, var(--accent-2), var(--pink)); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--pink)); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.steps .card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* account */
.page { padding: 40px 0 70px; }
.acc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.key-box { display: flex; gap: 8px; align-items: center; background: var(--card-2); border: 1px dashed rgba(139,123,255,.5); border-radius: 12px; padding: 12px 14px; font-family: Consolas, ui-monospace, monospace; font-size: 19px; letter-spacing: .04em; user-select: all; overflow-wrap: anywhere; }
.key-box span { flex: 1; }
.login-box { max-width: 460px; margin: 40px auto; text-align: center; }
.login-box .checks { display: grid; gap: 10px; margin: 20px 0; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }

/* legal */
.legal { max-width: 820px; padding-top: 36px; padding-bottom: 60px; }
.legal h1 { font-size: 34px; margin-bottom: 4px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: #d2d2da; font-size: 15.5px; }
.legal ul.req { list-style: none; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }

/* footer & cookie */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 44px; color: var(--muted); font-size: 13.5px; }
.site-footer .f-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .f-note { margin-top: 8px; font-size: 12.5px; opacity: .8; }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 720px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; background: #1c1c25; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5); font-size: 14px; z-index: 50; }

@media (max-width: 900px) {
  .hero .wrap, .split, .acc-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .topnav .links { display: none; }
  .topnav .btn { margin-left: auto; }
  section { padding: 60px 0; }
  .shot img, .split .media img { width: min(360px, 100%); }
  .key-box { font-size: 16px; }
}

/* ---------- scrollbars: thin, no arrow buttons ---------- */
/* Chrome 121+ ignores ::-webkit-scrollbar when the standard properties are set (and Windows then draws arrow buttons),
   so the standard ones are only for Firefox */
@supports not selector(::-webkit-scrollbar) {
  html, * { scrollbar-color: #3a3a4a transparent; scrollbar-width: thin; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #34343f; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #4a4a5a; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- checkbox ---------- */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #4a4a5a; background: var(--card-2); display: inline-grid; place-items: center; cursor: pointer; transition: background .12s, border-color .12s; margin: 2px 0 0; flex: none; }
input[type=checkbox]:hover { border-color: var(--accent); }
input[type=checkbox]:checked { background: var(--accent-2); border-color: var(--accent-2); }
input[type=checkbox]:checked::after { content: ''; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: translateY(-1px) rotate(-45deg); }
input[type=checkbox]:focus-visible { outline: 2px solid rgba(139,123,255,.6); outline-offset: 2px; }

/* number inputs without spinner arrows */
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- custom select & date ---------- */
.ui-native { display: none !important; }
.ui-select, .ui-date { position: relative; }
.ui-select-btn, .ui-date-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; color: var(--text); }
.ui-select-btn span, .ui-date-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-date-btn .ph { color: var(--muted); }
.ui-select-btn svg, .ui-date-btn svg { width: 17px; height: 17px; color: var(--muted); flex: none; transition: transform .15s; }
.ui-select.open .ui-select-btn, .ui-date.open .ui-date-btn { border-color: rgba(139,123,255,.6); }
.ui-select.open .ui-select-btn svg { transform: rotate(180deg); }
.ui-pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; background: #1c1c26; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 44px rgba(0,0,0,.55); transform-origin: top center; animation: uiPop .18s cubic-bezier(.2,.8,.2,1); }
@keyframes uiPop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.ui-pop.up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; animation-name: uiPopUp; }
@keyframes uiPopUp { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.ui-pop.out { animation: uiOut .13s ease-in forwards; pointer-events: none; }
@keyframes uiOut { to { opacity: 0; transform: translateY(-4px) scale(.98); } }
.ui-pop.up.out { animation-name: uiOutUp; }
@keyframes uiOutUp { to { opacity: 0; transform: translateY(4px) scale(.98); } }
.ui-cal-grid, .ui-cal-big { animation: calIn .2s ease; }
@keyframes calIn { from { opacity: 0; transform: translateY(3px); } }
.ui-menu { right: 0; padding: 5px; max-height: 260px; overflow-y: auto; }
.ui-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.ui-opt:hover, .ui-opt.hl { background: rgba(255,255,255,.07); }
.ui-opt.on { color: #c9bfff; }
.ui-opt i { font-style: normal; color: var(--accent); font-weight: 800; }
.ui-cal { width: 286px; padding: 12px; }
.ui-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ui-cal-head b { font-size: 14.5px; }
.ui-cal-title { border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; font-size: 14.5px; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.ui-cal-title:hover { background: rgba(255,255,255,.08); }
.ui-cal-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ui-cal-big .ui-day { height: 46px; }
.ui-nav { width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(255,255,255,.06); color: var(--text); font-size: 18px; cursor: pointer; line-height: 1; }
.ui-nav:hover { background: rgba(255,255,255,.12); }
.ui-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.ui-cal-grid > span { font-size: 11.5px; color: var(--muted); padding: 4px 0 6px; font-weight: 600; }
.ui-day { height: 34px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.ui-day:hover { background: rgba(255,255,255,.08); }
.ui-day.out { color: #5d5d6b; }
.ui-day.today { box-shadow: inset 0 0 0 1.5px rgba(139,123,255,.6); }
.ui-day.on { background: var(--accent-2); color: #fff; font-weight: 700; }
.ui-cal-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ---------- radio plan cards ---------- */
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.plan-opt { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: var(--card-2); border: 1.5px solid transparent; cursor: pointer; transition: border-color .12s, background .12s; }
.plan-opt:hover { border-color: rgba(139,123,255,.35); }
.plan-opt.on { border-color: var(--accent); background: rgba(139,123,255,.08); }
.plan-opt b { font-size: 15px; }
.plan-opt .pr { font-size: 26px; font-weight: 800; margin-top: 4px; }
.plan-opt .pr s { font-size: 15px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.plan-opt .pm { color: var(--muted); font-size: 13px; }
.plan-opt .tag { position: absolute; top: -10px; right: 12px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); margin-top: 18px; flex-wrap: wrap; }
.summary .tot { font-size: 24px; font-weight: 800; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3.5px solid rgba(139,123,255,.25); border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.narrow { max-width: 760px; margin: 0 auto; }
.big-key { font-size: 24px; letter-spacing: .05em; justify-content: center; }
/* [hidden] must win over display:flex above (otherwise «Понятно» does nothing visible) */
.cookie-note[hidden], .toast[hidden] { display: none !important; }

.f-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(139,123,255,.14); color: #b7abff; margin-right: 10px; vertical-align: middle; }
.f-ic svg { width: 19px; height: 19px; }
.grid .card h3 { display: flex; align-items: center; }

.res-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.res-ic svg { width: 32px; height: 32px; }
.res-ic.ok { background: rgba(61,220,132,.14); color: var(--ok); }
.res-ic.bad { background: rgba(255,91,107,.14); color: var(--danger); }
.ui-opt i svg { display: block; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 32px; color: var(--muted); font-size: 13px; background: #0d0d12; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.f-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.f-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 800; font-size: 15px; line-height: 1.02; letter-spacing: -.01em; }
.f-logo img { width: 34px; height: 34px; border-radius: 9px; }
.f-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.f-nav a { display: inline-flex; align-items: center; gap: 5px; color: #c9c9d3; font-size: 13px; }
.f-nav a svg { opacity: .7; }
.f-up { justify-self: end; display: inline-flex; align-items: center; gap: 7px; color: var(--text) !important; font-weight: 600; }
.f-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-top: 22px; font-size: 12px; line-height: 1.7; }
.f-req { color: #7d7d89; }
.f-small { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.f-small a { color: #6e6e7a; font-size: 12px; }
.f-tag { letter-spacing: .14em; font-size: 11px; color: #7a8f45; white-space: nowrap; }
.site-footer .f-note { margin-top: 14px; font-size: 11.5px; color: #5f5f6a; }
@media (max-width: 760px) {
  .f-top { grid-template-columns: 1fr auto; }
  .f-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
}
/* cards come forward a little on hover */
.grid .card, .steps .card, .plans .plan, .plan-opt { transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease; will-change: transform; }
.grid .card:hover, .steps .card:hover, .plans .plan:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 18px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(139,123,255,.18); border-color: rgba(139,123,255,.28); }
.plan-opt:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .grid .card, .steps .card, .plans .plan, .plan-opt { transition: none; } .grid .card:hover, .steps .card:hover, .plans .plan:hover, .plan-opt:hover { transform: none; } }
/* gift card */
.gift-card { padding: 34px 28px; border-radius: 26px; background: radial-gradient(circle at 20% 0%, rgba(139,123,255,.28), transparent 55%), radial-gradient(circle at 90% 100%, rgba(255,95,168,.22), transparent 55%), var(--card, #15151c); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gift-ic { width: 92px; height: 92px; margin: 0 auto; border-radius: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8b7bff, #ff5fa8); box-shadow: 0 14px 40px rgba(139,123,255,.45); }
.gift-k { margin-top: 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b9aefc; }
.gift-msg { margin: 0 auto; max-width: 460px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.05); font-style: italic; color: #e6e6ee; white-space: pre-line; }
/* what's new */
.rel { padding: 20px 22px; }
.rel h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.rel .notes { white-space: pre-line; color: #d6d6e0; line-height: 1.6; margin-top: 8px; }

/* custom file picker */
.ui-file { display: block; position: relative; cursor: pointer; border: 1.5px dashed rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.03); transition: border-color .15s, background .15s; }
.ui-file:hover, .ui-file.drag { border-color: rgba(139,123,255,.7); background: rgba(139,123,255,.08); }
.ui-file.has { border-style: solid; border-color: rgba(139,123,255,.45); }
.ui-file input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ui-file-body { display: flex; align-items: center; gap: 14px; padding: 16px 18px; pointer-events: none; }
.ui-file-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8b7bff, #ff5fa8); box-shadow: 0 8px 22px rgba(139,123,255,.35); }
.ui-file-t { display: grid; gap: 3px; min-width: 0; }
.ui-file-t b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-file-t small { color: var(--muted); font-size: 13px; }

/* ---------- motion ---------- */
main { animation: pageIn .42s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
/* blocks appear as you scroll (class added by common.js, removed once shown) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .65s cubic-bezier(.2,.8,.2,1) !important; }
.reveal.in { opacity: 1; transform: none; }
#gift-box:not([hidden]), #renew-box:not([hidden]) { animation: pageIn .3s cubic-bezier(.2,.8,.2,1) backwards; }
.btn { transition: background .18s, border-color .18s, transform .12s, box-shadow .18s, opacity .18s; }
.btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  main, #gift-box, #renew-box { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none !important; }
}

/* An open dropdown / calendar must stay above the following cards (each card may be its own layer) */
.card:has(.ui-pop), .section > *:has(.ui-pop), #view > *:has(.ui-pop), .modal:has(.ui-pop), form:has(.ui-pop), .field:has(.ui-pop) { position: relative; z-index: 40; }
.ui-select.open, .ui-date.open { z-index: 41; }
.ui-pop.right { left: auto; right: 0; }
