/* LeviVPN: общий стиль сайта, страницы заказа и мини-приложения. */
:root {
  --bg: #07060E;
  --panel: #110F1F;
  --panel-2: #1B1636;
  --line: #262140;
  --line-2: #36305C;
  --text: #F5F3FF;
  --soft: #C9C3EC;
  --muted: #9A93C4;
  --dim: #857EAF;
  --violet: #8B6BFF;
  --cyan: #3FE0FF;
  --green: #7CE8A6;
  --red: #FF8E99;
  --amber: #F2C55C;
  --head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #A6F1FF; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: default; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 5%; display: flex; flex-direction: column; gap: 3.5rem; }
.narrow { max-width: 30rem; margin: 0 auto; padding: 1rem 1rem 2rem; display: flex; flex-direction: column; gap: 1rem; }

/* Шапка */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; padding-top: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand:hover { color: var(--text); }
.logo { width: 2.2rem; height: 2.2rem; border-radius: 0.7rem; background: linear-gradient(140deg, var(--violet), var(--cyan)); display: flex; align-items: center; justify-content: center; flex: none; }
.brand b { font-family: var(--head); font-size: 1.05rem; font-weight: 600; }
.nav { flex: 999 1 20rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.9rem; font-weight: 600; }
.nav a { color: var(--soft); }

/* Кнопки */
.btn { display: inline-block; padding: 1rem 1.5rem; border-radius: 1rem; border: 1px solid transparent; font-size: 1rem; font-weight: 700; text-align: center; color: var(--text); background: var(--panel); }
.btn:hover { color: var(--text); }
.btn-main { background: linear-gradient(97deg, var(--violet) 0%, var(--cyan) 100%); color: #07060E; }
.btn-main:hover { color: #07060E; filter: brightness(1.06); }
.btn-light { background: var(--text); color: #07060E; }
.btn-light:hover { color: #07060E; }
.btn-line { border-color: var(--line-2); }
.btn-small { padding: 0.7rem 1.1rem; border-radius: 0.9rem; font-size: 0.88rem; border-color: var(--line); }
.btn-block { display: block; width: 100%; }

/* Первый экран */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; }
.hero-text { flex: 999 1 26rem; min-width: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.04em; }
.hero p { margin: 0; max-width: 34rem; font-size: 1.05rem; color: var(--soft); }
.badge { align-self: flex-start; display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem; border-radius: 999px; background: #10231A; border: 1px solid #1F5236; font-size: 0.8rem; font-weight: 700; color: var(--green); }
.badge i { width: 0.4rem; height: 0.4rem; border-radius: 99px; background: var(--green); }
.row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.85rem; color: var(--muted); }

/* Карточка подписки */
.pass { flex: 1 1 21rem; min-width: 0; max-width: 26rem; position: relative; padding: 1.4rem; border-radius: 1.8rem; background: linear-gradient(155deg, #2B1F66 0%, #171233 48%, #0E2230 100%); border: 1px solid #40387A; box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); display: flex; flex-direction: column; gap: 1.1rem; overflow: hidden; }
.pass-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pass-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; color: #B2A9E6; text-transform: uppercase; }
.chip { padding: 0.45rem 0.7rem; border-radius: 999px; background: rgba(7,6,14,0.45); border: 1px solid rgba(255,255,255,0.10); font-size: 0.78rem; font-weight: 600; color: #E4E0FA; }
.pass-days { display: flex; align-items: baseline; gap: 0.5rem; }
.pass-days b { font-family: var(--head); font-size: 3.4rem; font-weight: 600; line-height: 0.9; letter-spacing: -0.04em; }
.pass-days span { font-size: 1rem; font-weight: 600; color: #D5CFF5; }
.ticks { height: 0.75rem; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.13) 0 7.5px, transparent 7.5px 10.6px); }
.ticks i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 100%); -webkit-mask: repeating-linear-gradient(90deg, #000 0 7.5px, transparent 7.5px 10.6px); mask: repeating-linear-gradient(90deg, #000 0 7.5px, transparent 7.5px 10.6px); }

/* Разделы */
.section { display: flex; flex-direction: column; gap: 1.2rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.8rem; }
.grid-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0.8rem; }
.card { padding: 1.25rem; border-radius: 1.4rem; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.card-big { padding: 1.5rem; border-radius: 1.6rem; }
.card h3 { font-family: var(--head); font-size: 1.2rem; }
.card p { margin: 0; font-size: 0.92rem; color: #B7B0DE; }
.label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }

/* Переключатель срока */
.terms { padding: 0.25rem; border-radius: 1rem; background: var(--panel); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.2rem; }
.terms button { padding: 0.55rem 0.9rem; border-radius: 0.75rem; border: none; background: transparent; color: #B7B0DE; font-size: 0.82rem; font-weight: 600; }
.terms button.on { background: var(--text); color: #07060E; font-weight: 700; }

/* Тарифы */
.tariff-name { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; font-weight: 700; }
.tag { padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--violet); font-size: 0.66rem; font-weight: 700; color: #07060E; }
.tag-cyan { background: var(--cyan); color: #06242B; }
.price { display: flex; flex-direction: column; gap: 0.15rem; }
.price b { font-family: var(--head); font-size: 1.5rem; font-weight: 600; }
.price span { font-size: 0.8rem; color: var(--dim); }
.features { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.86rem; color: var(--soft); }
.card.hit { background: linear-gradient(155deg, #2B1F66 0%, #171233 70%); border: 1.5px solid var(--violet); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); }
.card.max { background: #0D1B22; border-color: #1F5564; }
.card .btn { margin-top: auto; padding: 0.85rem; border-radius: 0.9rem; font-size: 0.9rem; }
.card .pick { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.card.hit .pick { background: var(--text); border-color: var(--text); color: #07060E; }
.card.max .pick { border-color: #1F5564; }

/* Поля */
.field { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.input { flex: 999 1 12rem; min-width: 0; padding: 0.9rem 1rem; border-radius: 0.9rem; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-size: 0.95rem; outline: none; }
.input:focus { border-color: var(--violet); }
.note { padding: 0.85rem 0.95rem; border-radius: 1.1rem; display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.82rem; line-height: 1.45; }
.note-info { background: #0F1A22; border: 1px solid #1B3A46; color: #A9CCD6; }
.note-warn { background: #1F1A0E; border: 1px solid #5C4A1B; color: #F0DDAA; }
.note-bad { background: #24101A; border: 1px solid rgba(255,107,122,0.4); color: #FFC2C8; }
.note-good { background: #10231A; border: 1px solid #1F5236; color: #BFF3D3; }
.error { color: var(--red); font-size: 0.86rem; font-weight: 600; }

/* Список найденных подписок и сроки */
.found { display: flex; flex-direction: column; gap: 0.5rem; }
.found button { text-align: left; padding: 0.9rem 1rem; border-radius: 1rem; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); display: flex; flex-direction: column; gap: 0.2rem; }
.found button.on { border: 1.5px solid var(--violet); background: var(--panel-2); }
.found small { font-size: 0.8rem; color: var(--muted); }
.found small.bad { color: #FFC2C8; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.options button { padding: 0.8rem 0.9rem; border-radius: 1.1rem; background: var(--panel); border: 1px solid var(--line); text-align: left; color: var(--text); display: flex; flex-direction: column; gap: 0.25rem; }
.options button.on { background: var(--panel-2); border: 1.5px solid var(--violet); }
.options span { font-size: 0.78rem; color: #B7B0DE; font-weight: 600; display: flex; justify-content: space-between; gap: 0.4rem; }
.options b { font-family: var(--head); font-size: 1rem; font-weight: 600; }
.save { color: var(--green); font-weight: 700; }

/* Окно оплаты */
.sheet-back { position: fixed; inset: 0; background: rgba(3,2,8,0.72); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { width: 100%; max-width: 30rem; max-height: 92vh; overflow: auto; padding: 1.25rem; border-radius: 1.6rem 1.6rem 0 0; background: #0B0A16; border: 1px solid var(--line); border-bottom: none; display: flex; flex-direction: column; gap: 0.9rem; }
@media (min-width: 40rem) { .sheet-back { align-items: center; } .sheet { border-radius: 1.6rem; border-bottom: 1px solid var(--line); } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sheet-head h3 { font-size: 1.15rem; }
.close { width: 2.2rem; height: 2.2rem; border-radius: 0.7rem; border: 1px solid var(--line); background: var(--panel); color: var(--soft); display: flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.close svg.i { width: 1rem; height: 1rem; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.total span { font-size: 0.82rem; color: #B7B0DE; font-weight: 600; }
.total b { font-family: var(--head); font-size: 1.35rem; font-weight: 600; }
.methods { display: flex; flex-direction: column; gap: 0.5rem; }
.methods button { padding: 0.75rem 0.9rem; border-radius: 1rem; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-align: left; display: flex; align-items: center; gap: 0.75rem; }
.methods button.on { border: 1.5px solid var(--violet); background: var(--panel-2); }
.methods b { font-size: 0.92rem; }
.methods small { font-size: 0.78rem; color: var(--muted); }

/* Шаги */
.step-n { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.card b.t { font-size: 1rem; }
.steps { border-radius: 1.25rem; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.steps div { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; font-size: 0.84rem; border-bottom: 1px solid #1D1934; }
.steps div:last-child { border-bottom: none; }
.steps i { width: 1.65rem; height: 1.65rem; border-radius: 99px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-style: normal; font-size: 0.7rem; font-weight: 600; color: #C7BCFF; flex: none; }

/* Ключ */
.keybox { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.3rem 0.3rem 0.8rem; border-radius: 0.9rem; background: rgba(7,6,14,0.55); border: 1px solid rgba(255,255,255,0.10); }
.keybox span { flex: 1; min-width: 0; font-size: 0.78rem; color: #D5CFF5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keybox button { padding: 0.6rem 0.8rem; border-radius: 0.65rem; border: none; background: var(--panel-2); color: #D5CFF5; font-size: 0.78rem; font-weight: 700; flex: none; }
.state { display: flex; align-items: center; gap: 0.75rem; }
.state-icon { width: 2.75rem; height: 2.75rem; border-radius: 99px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 1.2rem; }
.state-ok { background: #10231A; border: 1px solid #1F5236; color: var(--green); }
.state-wait { background: var(--panel-2); border: 1px solid var(--line-2); color: #C7BCFF; }
.state-bad { background: #24101A; border: 1px solid rgba(255,107,122,0.4); color: var(--red); }
.state h1 { font-size: 1.15rem; letter-spacing: -0.02em; }
.state small { font-size: 0.8rem; color: var(--muted); }
.spin { width: 1.2rem; height: 1.2rem; border-radius: 99px; border: 2px solid var(--line-2); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

.foot { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid #1D1934; font-size: 0.84rem; color: var(--dim); }
.foot span { flex: 999 1 16rem; }
.foot a { color: #B7B0DE; }

/* Мини-приложение */
.app { max-width: 30rem; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 1rem 1rem 0; }
.app-body { flex: 1; display: flex; flex-direction: column; gap: 0.85rem; padding-bottom: 1rem; }
.who { display: flex; align-items: center; gap: 0.7rem; }
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 0.9rem; background: var(--panel-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 0.95rem; font-weight: 600; color: #C7BCFF; flex: none; }
.who-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.who-text b { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.who-text small.ok { color: var(--green); }
.bonus { display: flex; flex-direction: column; align-items: flex-end; padding: 0.4rem 0.75rem; border-radius: 0.9rem; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.bonus small { font-size: 0.62rem; color: var(--dim); font-weight: 600; }
.bonus b { font-size: 0.85rem; }
.app .pass { max-width: none; flex: none; padding: 1.1rem; border-radius: 1.75rem; gap: 0.95rem; }
.app .pass-days b { font-size: 3.1rem; }
.until { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; font-size: 0.72rem; color: #A9A1D8; }
.until b { font-size: 0.88rem; color: var(--text); }
.pass-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.app .btn { padding: 0.85rem; border-radius: 1rem; font-size: 0.88rem; }
.block { padding: 0.9rem 1rem; border-radius: 1.25rem; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6rem; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.86rem; font-weight: 700; }
.block-head small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.meter { height: 0.5rem; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.big { font-family: var(--head); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.big small { font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: #D5CFF5; letter-spacing: 0; }
.seg { display: grid; gap: 0.25rem; padding: 0.25rem; border-radius: 1.1rem; background: var(--panel); border: 1px solid var(--line); }
.seg button { min-width: 0; padding: 0.5rem 0.2rem; border: none; border-radius: 0.85rem; background: transparent; color: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.seg b { font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.seg small { font-size: 0.68rem; font-weight: 700; color: var(--green); }
.seg button.on { background: var(--text); color: #07060E; }
.seg button.on small { color: #0B7A3E; }
.pills { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.1rem; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills button { flex: none; padding: 0.5rem 0.8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--soft); font-size: 0.8rem; font-weight: 600; }
.pills button.on { background: var(--text); border-color: var(--text); color: #07060E; }
.tabs { position: sticky; bottom: 0; margin: 0 -1rem; padding: 0.5rem 0.6rem calc(0.6rem + env(safe-area-inset-bottom)); background: #0B0A16; border-top: 1px solid #1D1934; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.2rem; }
.tabs button { padding: 0.5rem 0.2rem; border: none; border-radius: 0.8rem; background: transparent; color: var(--dim); font-size: 0.72rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.tabs button span { display: flex; }
.tabs button svg.i { width: 1.6rem; height: 1.6rem; }
.tabs button:not(.on) svg { filter: grayscale(1); opacity: 0.7; }
.tabs button.on { color: var(--text); background: var(--panel-2); }
.tariff-row { padding: 0.9rem 1rem; border-radius: 1.2rem; background: var(--panel); border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; gap: 0.75rem; text-align: left; width: 100%; }
.tariff-row.on { border: 1.5px solid var(--violet); background: var(--panel-2); }
.tariff-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.tariff-row .grow b { font-size: 0.95rem; }
.tariff-row .grow small { font-size: 0.76rem; color: var(--muted); }
.tariff-row .cost { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.tariff-row .cost b { font-family: var(--head); font-size: 0.98rem; font-weight: 600; }
.tariff-row .cost small { font-size: 0.7rem; color: var(--dim); }
/* Иконки (icons.js): размер задаёт место, где иконка стоит. Плитка .ico — цветная, с объёмом */
svg.i { width: 1.25em; height: 1.25em; display: block; flex: none; }
.state-icon svg { width: 1.35rem; height: 1.35rem; }
.ico { width: 2.75rem; height: 2.75rem; border-radius: 0.95rem; display: flex; align-items: center; justify-content: center; flex: none; color: #D4C8FF; background: linear-gradient(150deg, rgba(139,107,255,0.34), rgba(139,107,255,0.08)); border: 1px solid rgba(167,139,255,0.38); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 22px -12px rgba(139,107,255,0.95); }
.ico svg { width: 1.45rem; height: 1.45rem; }
.ico-sm { width: 2.2rem; height: 2.2rem; border-radius: 0.75rem; }
.ico-sm svg { width: 1.15rem; height: 1.15rem; }
.ico-lg { width: 3.25rem; height: 3.25rem; border-radius: 1.1rem; }
.ico-lg svg { width: 1.8rem; height: 1.8rem; }
.ico-start, .ico-bolt { color: #8CEBFF; background: linear-gradient(150deg, rgba(63,224,255,0.30), rgba(63,224,255,0.06)); border-color: rgba(63,224,255,0.40); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 22px -12px rgba(63,224,255,0.9); }
.ico-family { color: #9BF0BD; background: linear-gradient(150deg, rgba(124,232,166,0.28), rgba(124,232,166,0.06)); border-color: rgba(124,232,166,0.38); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 22px -12px rgba(124,232,166,0.85); }
.ico-premium { color: #F7D27A; background: linear-gradient(150deg, rgba(242,197,92,0.30), rgba(242,197,92,0.06)); border-color: rgba(242,197,92,0.42); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 22px -12px rgba(242,197,92,0.85); }
.with-ico { display: inline-flex; align-items: center; gap: 0.45rem; }
.with-ico svg { width: 1.2rem; height: 1.2rem; color: var(--cyan); }
.btn.btn-ico { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-ico svg { width: 1.3rem; height: 1.3rem; }
.card-head { display: flex; align-items: center; gap: 0.8rem; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.tariff-title { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.features span, .facts span { display: flex; align-items: flex-start; gap: 0.5rem; }
.features svg { width: 1.05rem; height: 1.05rem; margin-top: 0.12rem; color: #A99BEA; }
.facts span { align-items: center; }
/* Отметка тарифа — наклейкой на верхней границе карточки: рядом с названием ей тесно */
.card.hit, .card.max { position: relative; }
.tariff-name .tag { position: absolute; top: -0.6rem; right: 1rem; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(0,0,0,0.8); }
.facts svg { width: 1rem; height: 1rem; color: var(--dim); }
.methods button .method-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.options button.opt-ico { flex-direction: row; align-items: center; gap: 0.65rem; }
.opt-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.opt-text span { justify-content: flex-start; }
.options .ico { justify-content: center; }

/* Подарок */
.gift { background: linear-gradient(155deg, #2B1F66 0%, #171233 55%, #10231A 100%); border-color: #40387A; gap: 1.25rem; }
.gift-head { display: flex; align-items: flex-start; gap: 1rem; }
.gift-head div { display: flex; flex-direction: column; gap: 0.4rem; }
.gift-head p { color: #D5CFF5; max-width: 40rem; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.gift-col { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.gift .options button { background: rgba(7,6,14,0.45); border-color: rgba(255,255,255,0.10); }
.gift .options button.on { background: var(--panel-2); border-color: var(--violet); }
.gift .label { color: #B2A9E6; }
.gift .btn { margin-top: 0.3rem; }
.input.wide { flex: none; width: 100%; }
textarea.input { resize: vertical; min-height: 5.5rem; line-height: 1.45; }
.postcard { padding: 1rem 1.1rem; border-radius: 1.1rem; background: rgba(7,6,14,0.45); border: 1px solid rgba(255,255,255,0.10); font-size: 0.95rem; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.postcard small { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: #B2A9E6; }
.linklike { align-self: flex-start; padding: 0; border: none; background: none; color: var(--cyan); font-size: 0.86rem; font-weight: 600; }
.total s { margin-right: 0.5rem; font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: var(--dim); }
.muted.save, .muted.error { font-weight: 600; }
.muted.save { color: var(--green); }
.muted.error { color: var(--red); }

/* QR-код подписки */
.qr-row { display: flex; align-items: center; gap: 0.9rem; font-size: 0.8rem; line-height: 1.45; color: #D5CFF5; }
.qr { width: 8.25rem; height: 8.25rem; border-radius: 0.8rem; background: #F5F3FF; flex: none; }

/* Мини-приложение: устройства, график обхода, подарки */
.rows { display: flex; flex-direction: column; }
.rows > div { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-top: 1px solid #1D1934; }
.rows > div:first-child { border-top: none; padding-top: 0; }
.rows > div:last-child { padding-bottom: 0; }
.rows .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.rows .grow b { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .grow small { font-size: 0.74rem; color: var(--muted); }
.mini { padding: 0.5rem 0.75rem; border-radius: 0.7rem; border: 1px solid var(--line-2); background: transparent; color: var(--soft); font-size: 0.76rem; font-weight: 700; flex: none; }
.minis { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chart { display: flex; align-items: flex-end; gap: 0.4rem; height: 6rem; }
.chart div { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.3rem; }
.chart i { width: 100%; min-height: 2px; border-radius: 0.35rem 0.35rem 0.15rem 0.15rem; background: linear-gradient(180deg, var(--cyan), var(--violet)); }
.chart i.zero { background: var(--panel-2); }
.chart small { font-size: 0.66rem; font-weight: 600; color: var(--dim); }
.chart div.today small { color: var(--text); }
.app .input { font-size: 0.9rem; }

.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.84rem; }
