/* SECRETS — в стиле Ангелины (@angelina.secretss):
   тёплая спальня (крем, нюд, тёмное дерево), заголовки — плотные белые капслоком, акцент — малина */
:root {
  /* постельная пастель: пудрово-розовый + тиффани */
  --bg: #fbf4f3;
  --surface: #ffffff;
  --surface-2: #f5e6ea;
  --nude: #f1d3db;
  --espresso: #3d3037;
  --espresso-2: #54444c;
  --line: rgba(61, 48, 55, 0.09);
  --text: #3d3037;
  --muted: #7d6b73;
  --accent: #d9657f;
  --accent-2: #f19bb0;
  --blush: #fde6ec;
  --tiffany: #81d8d0;
  --tiffany-2: #3fb3a9;
  --tiffany-soft: #e3f6f4;
  --green: #2f9e94;
  --red: #d9657f;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --r: 22px;
  --shadow: 0 10px 30px -18px rgba(150, 90, 110, 0.45);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); }
body { min-height: 100vh; overflow-x: hidden; }
.glow {
  position: fixed; inset: -25vh -35vw auto auto; width: 95vw; height: 70vh; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(241, 155, 176, 0.28), transparent 70%), radial-gradient(closest-side at 0% 100%, rgba(129, 216, 208, 0.25), transparent 70%);
}
main { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: calc(18px + var(--app-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; margin: 0; letter-spacing: 0.005em; line-height: 1.02; }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sub { color: var(--accent); font-weight: 700; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.logo { font-family: var(--head); font-size: 22px; letter-spacing: 0.22em; font-weight: 600; }
.logo i { font-style: normal; color: var(--accent); }
.pill { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.pill.premium { color: #fff; border-color: transparent; background: var(--accent); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.hero {
  position: relative; overflow: hidden; padding: 22px 20px 18px; border-radius: 26px; cursor: pointer; color: var(--text);
  background: radial-gradient(80% 90% at 100% 100%, rgba(129, 216, 208, 0.75), transparent 60%), linear-gradient(155deg, #fcd5df, #f6b3c4);
  box-shadow: 0 18px 36px -22px rgba(217, 101, 127, 0.8);
}
.hero h2 { font-size: 36px; max-width: 85%; }
.hero .sub { color: #b8475f; font-size: 14px; margin-top: 6px; }
.hero p { margin-top: 6px; color: #5a4650; max-width: 88%; font-size: 14px; }
.hero .bubbles { position: absolute; right: -8px; top: 22px; display: grid; gap: 6px; transform: rotate(-8deg); }
.hero .bubbles span { display: block; height: 14px; border-radius: 8px; background: rgba(255,255,255,0.7); }
.hero .bubbles span:nth-child(1) { width: 70px; }
.hero .bubbles span:nth-child(2) { width: 46px; margin-left: 24px; background: var(--tiffany); }
.hero .bubbles span:nth-child(3) { width: 58px; }
.hero .cta { margin-top: 14px; }
.hero .btn { background: var(--tiffany-2); box-shadow: 0 10px 22px -12px rgba(47, 160, 150, 0.9); }

/* фишка дня — баннер на главной */
.daily { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 22px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.daily .mini { flex: none; width: 44px; height: 62px; margin-left: 4px; border-radius: 8px; position: relative; transform: rotate(-6deg); background: linear-gradient(160deg, var(--tiffany), var(--tiffany-2)); box-shadow: 7px 3px 0 -1px var(--accent-2), var(--shadow); }
.daily .mini::before { content: ""; position: absolute; inset: 4px; border-radius: 5px; border: 1px solid rgba(255,255,255,.55); }
.daily .mini::after { content: "S"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 600 21px var(--head); }
.daily .go { margin-left: auto; color: var(--tiffany-2); font-weight: 800; font-size: 18px; }
.daily b { font-family: var(--head); text-transform: uppercase; font-size: 19px; font-weight: 600; display: block; }
.daily span { font-size: 13px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 14px; cursor: pointer; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .15s; box-shadow: var(--shadow); }
.tile:active { transform: scale(0.97); }
.tile .ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--blush); color: var(--accent); }
.tile:nth-child(even) .ico { background: var(--tiffany-soft); color: var(--tiffany-2); }
.tile b { display: block; font: 600 17px/1.1 var(--head); text-transform: uppercase; margin-top: 12px; }
.tile span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.tile.wide { grid-column: span 2; min-height: 0; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }
.tile.wide b { margin: 0; }

/* buttons */
.btn { appearance: none; border: 0; border-radius: 16px; padding: 15px 18px; width: 100%; font: 700 15px var(--sans); color: #fff; background: var(--accent); cursor: pointer; box-shadow: 0 10px 22px -12px rgba(217, 101, 127, 0.9); }
.btn:disabled { opacity: 0.45; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.dark { background: var(--espresso); box-shadow: none; }
.btn.sm { width: auto; padding: 10px 14px; font-size: 13.5px; border-radius: 12px; display: inline-block; }
.back { background: none; border: 0; color: var(--muted); font: 600 14px var(--sans); padding: 0; cursor: pointer; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 99px; font: 600 13.5px var(--sans); cursor: pointer; }
.chip.on { background: var(--tiffany-soft); border-color: var(--tiffany-2); color: #1f6e67; }
.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; }
.seg button { flex: 1; border: 0; background: none; color: var(--muted); font: 700 13px var(--sans); padding: 10px 4px; border-radius: 10px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px -4px rgba(42,29,25,.4); }

/* inputs */
textarea, input[type=text], input[type=email] { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--text); font: 15px/1.45 var(--sans); padding: 14px; resize: none; outline: none; }
textarea:focus, input:focus { border-color: var(--accent-2); }
textarea::placeholder { color: #b3a49c; }
label.field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }

/* upload */
.drop { display: block; border: 1.5px dashed rgba(63, 179, 169, 0.6); border-radius: 20px; padding: 26px 16px; text-align: center; cursor: pointer; background: var(--tiffany-soft); }
.drop b { display: block; margin-top: 8px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs .t { position: relative; flex: none; width: 74px; height: 120px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(42,29,25,.75); color: #fff; font-size: 13px; cursor: pointer; }

/* loading */
.loading { text-align: center; padding: 60px 10px; }
.pulse { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(0.8); opacity: .6; box-shadow: 0 0 0 0 rgba(200,23,58,.4); } 50% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 22px rgba(200,23,58,0); } }

/* result */
.score { display: flex; gap: 16px; align-items: center; }
.ring { --v: 50; width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--surface-2) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font: 600 30px var(--head); }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--accent); }
.bar i + i { background: var(--nude); }
.legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.sig { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.sig:first-of-type { border-top: 0; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--nude); }
.dot.green { background: var(--green); } .dot.red { background: var(--red); }
.quote { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.mistake b { display: block; }
.mistake .fix { color: var(--green); font-size: 13.5px; margin-top: 4px; font-weight: 600; }
.mistake + .mistake { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
ol.steps { margin: 0; padding-left: 20px; } ol.steps li + li { margin-top: 6px; }
.reply { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 4px 18px; padding: 12px 14px; box-shadow: var(--shadow); }
.reply .tone { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 800; }
.reply p { margin: 4px 0 10px; }
.healthy { border-color: rgba(63, 179, 169, 0.4); background: linear-gradient(180deg, var(--tiffany-soft), transparent), var(--surface); }
.healthy .tone { color: var(--green); }
.alert { border-color: rgba(217,101,127,.55); background: var(--blush); }
.kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 50vh; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.typing { color: var(--muted); }
.composer { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.composer textarea { min-height: 48px; max-height: 140px; }
.composer .btn { width: 52px; padding: 0; flex: none; }

/* breathing */
.breath { width: 210px; height: 210px; margin: 10px auto; border-radius: 50%; display: grid; place-items: center; position: relative; }
.breath::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(226,58,92,.45), rgba(246,217,220,.25) 70%); transform: scale(var(--s, .55)); transition: transform var(--d, 1s) ease-in-out; }
.breath b { position: relative; font: 600 24px var(--head); text-transform: uppercase; }
.breath small { position: absolute; bottom: 52px; color: var(--muted); font-size: 13px; }

/* test & challenge */
.progress { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--tiffany)); transition: width .3s; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale button { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 20px var(--head); cursor: pointer; box-shadow: var(--shadow); }
.scale button:active { background: var(--accent); color: #fff; }
.day { display: flex; gap: 14px; align-items: flex-start; }
.day .n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 600 19px var(--head); background: var(--surface-2); }
.day.done .n { background: var(--accent); color: #fff; }
.day.locked { opacity: .5; }

/* ===== Фишка дня: колода карт ===== */
.deck { position: relative; height: 300px; margin: 6px 0 0; }
.pick { position: absolute; left: 50%; bottom: 10px; width: 116px; height: 172px; margin-left: -58px; border-radius: 14px; cursor: pointer; transform-origin: 50% 120%;
  transform: rotate(var(--rot)) translateY(var(--y, 0)); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.pick:hover, .pick:active { --y: -18px; }
.back-face { position: absolute; inset: 0; border-radius: 14px; background: radial-gradient(80% 60% at 50% 35%, rgba(255,255,255,.18), transparent 70%), linear-gradient(160deg, var(--tiffany), var(--tiffany-2)); box-shadow: 0 14px 26px -14px rgba(30,110,104,.7); display: grid; place-items: center; }
.back-face::before { content: ""; position: absolute; inset: 8px; border-radius: 9px; border: 1px solid rgba(255,255,255,.5); }
.back-face span { font: 600 40px var(--head); color: #fff; letter-spacing: .04em; }
.deck.chosen .pick { opacity: 0; transform: rotate(var(--rot)) translateY(60px); pointer-events: none; }
.deck.chosen .pick.sel { opacity: 1; transform: none; }

.flip { perspective: 1200px; }
.flip .inner { position: relative; transition: transform .8s cubic-bezier(.3,.7,.2,1); transform-style: preserve-3d; min-height: 420px; }
.flip.open .inner { transform: rotateY(180deg); }
.flip .side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; }
.flip .side.back-face { border-radius: 24px; }
.flip .side.back-face span { font-size: 80px; }
.flip .side.front { transform: rotateY(180deg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 22px 44px -22px rgba(42,29,25,.6); padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.flip .front::before { content: ""; position: absolute; inset: 8px; border-radius: 18px; border: 1px solid rgba(63,179,169,.3); pointer-events: none; }
.flip .front h2 { font-size: 34px; }
.flip .front .today { margin-top: auto; background: var(--blush); border-radius: 16px; padding: 14px; }
.flip .front .today b { display: block; font: 600 14px var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: 99px; background: var(--tiffany-soft); color: #1f6e67; }

/* sheet / toast */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(61,48,55,.35); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet .panel { width: 100%; max-width: 520px; background: var(--bg); border-radius: 26px 26px 0 0; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.plan { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.plan.on { border-color: var(--accent); }
.plan b { font-family: var(--head); font-size: 24px; font-weight: 600; }
.plan s { color: var(--muted); font-size: 13px; margin-left: 6px; }
.feat { list-style: none; padding: 0; margin: 0; } .feat li { padding-left: 22px; position: relative; } .feat li + li { margin-top: 6px; }
.feat li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 30; background: var(--espresso); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; }
.demo { font-size: 12px; color: #8a5a00; background: #fff4d9; border: 1px solid #f0d9a0; border-radius: 12px; padding: 8px 12px; }
.fade { animation: fade .3s ease-out; } @keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* загрузка: шаги */
.steps-live { list-style: none; padding: 0; margin: 18px auto 0; max-width: 260px; text-align: left; }
.steps-live li { color: var(--muted); padding: 4px 0 4px 24px; position: relative; transition: color .3s; }
.steps-live li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); }
.steps-live li.on { color: var(--text); font-weight: 600; }
.steps-live li.on::before { background: var(--accent); }
.jump { display: inline-block; margin-top: 4px; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; }
.alt-link { text-align: center; font-size: 14px; } .alt-link a { color: var(--accent); font-weight: 700; cursor: pointer; }
/* ===== Палитра v3 — пастель (Canva «Pastel»): тиффани #A0E7E5, мята #B4F8C8, ваниль #FBE7C6, розовый #FFAEBC ===== */
:root {
  --bg: #fff7f5;
  --surface: #ffffff;
  --surface-2: #ffeef1;
  --nude: #ffd9e0;
  --line: rgba(61, 48, 55, 0.08);
  --text: #3d3037;
  --muted: #7a6870;
  --pink: #ffaebc;
  --pink-soft: #ffe3e9;
  --pink-ink: #c9506e;
  --tiff: #a0e7e5;
  --tiff-soft: #e4f8f7;
  --tiff-ink: #24857f;
  --mint: #b4f8c8;
  --mint-soft: #e9fdef;
  --vanilla: #fbe7c6;
  --vanilla-soft: #fff5e3;
  --accent: #ff8fa6;      /* кольца, полосы, точки */
  --accent-2: #ffaebc;
  --blush: var(--pink-soft);
  --tiffany: var(--tiff);
  --tiffany-2: #9cc3e6;
  --tiffany-soft: var(--tiff-soft);
  --green: var(--tiff-ink);
  --red: var(--pink-ink);
  --shadow: 0 10px 28px -20px rgba(201, 80, 110, 0.45);
}
.glow { background: radial-gradient(closest-side, rgba(255, 174, 188, 0.35), transparent 70%), radial-gradient(closest-side at 0% 100%, rgba(198, 222, 242, 0.35), transparent 70%); }
.sub { color: var(--pink-ink); }

/* кнопки: пастель + тёмный текст */
.btn { background: var(--pink); color: var(--text); box-shadow: 0 10px 20px -14px rgba(201, 80, 110, 0.8); }
.btn.ghost { background: var(--surface); color: var(--text); }
.pill.premium { background: var(--pink); color: var(--text); }
.chip.on { background: var(--tiff); border-color: var(--tiff); color: var(--text); }
.msg.user { background: var(--pink); color: var(--text); }
.day.done .n { background: var(--mint); color: var(--text); }
.scale button:active { background: var(--pink); color: var(--text); }
.jump, .alt-link a { color: var(--tiff-ink); }
.reply .tone { color: var(--pink-ink); }
.healthy { border-color: rgba(70, 110, 160, 0.25); background: linear-gradient(180deg, var(--mint-soft), transparent), var(--surface); }
.healthy .tone { color: var(--tiff-ink); }
.mistake .fix { color: var(--tiff-ink); }
.dot.green { background: #9cc3e6; } .dot.red { background: var(--accent); }
.feat li::before { background: var(--pink); }
.progress i { background: linear-gradient(90deg, var(--pink), var(--tiff)); }
.demo { color: #7a5a1e; background: var(--vanilla-soft); border-color: var(--vanilla); }
.toast { background: var(--text); }

/* главный блок */
.hero { color: var(--text); background: radial-gradient(70% 80% at 100% 100%, var(--tiff), transparent 65%), radial-gradient(50% 60% at 0% 0%, var(--vanilla), transparent 70%), linear-gradient(155deg, #ffd3dc, var(--pink)); box-shadow: 0 18px 34px -24px rgba(201, 80, 110, 0.9); }
.hero p { color: #5a4650; }
.hero .bubbles span { background: rgba(255, 255, 255, 0.75); }
.hero .bubbles span:nth-child(2) { background: var(--mint); }
.hero .btn { background: #fff; color: var(--text); box-shadow: 0 8px 18px -12px rgba(61, 48, 55, 0.5); }

/* плитки: иконки по очереди розовые и тиффани */
.tile .ico { background: var(--pink-soft); color: var(--pink-ink); }
.tile:nth-child(even) .ico { background: var(--tiff-soft); color: var(--tiff-ink); }
.drop { border-color: var(--tiff); background: var(--tiff-soft); }

/* фишка дня */
.daily .mini { background: linear-gradient(160deg, var(--tiff), var(--mint)); box-shadow: 7px 3px 0 -1px var(--pink), var(--shadow); }
.daily .mini::after { color: #fff; text-shadow: 0 1px 6px rgba(70, 110, 160, 0.6); }
.daily .go { color: var(--tiff-ink); }
.back-face { background: radial-gradient(80% 60% at 50% 35%, rgba(255,255,255,.35), transparent 70%), linear-gradient(160deg, var(--tiff), var(--mint)); box-shadow: 0 14px 26px -16px rgba(70, 110, 160, 0.7); }
.back-face span { color: #fff; text-shadow: 0 2px 10px rgba(70, 110, 160, 0.55); }
.tag { background: var(--tiff-soft); color: var(--tiff-ink); }
.flip .front::before { border-color: rgba(198, 222, 242, 0.7); }
.flip .front .today { background: var(--pink-soft); }
.flip .front .today b { color: var(--pink-ink); }
.alert { background: var(--pink-soft); border-color: var(--pink); }
.breath::before { background: radial-gradient(circle, rgba(255, 174, 188, .7), rgba(198, 222, 242, .3) 70%); }
/* ===== Стекло (glassmorphism) ===== */
.glow { inset: 0; width: auto; height: auto; filter: none;
  background:
    radial-gradient(38% 30% at 88% 6%, rgba(255, 174, 188, 0.55), transparent 70%),
    radial-gradient(40% 32% at 6% 34%, rgba(198, 222, 242, 0.55), transparent 70%),
    radial-gradient(36% 28% at 92% 62%, rgba(214, 220, 245, 0.45), transparent 70%),
    radial-gradient(42% 30% at 12% 92%, rgba(251, 231, 198, 0.6), transparent 70%),
    radial-gradient(30% 24% at 60% 98%, rgba(255, 174, 188, 0.4), transparent 70%); }
:root { --glass: rgba(255, 255, 255, 0.55); --glass-strong: rgba(255, 255, 255, 0.72); --glass-line: rgba(255, 255, 255, 0.85); --blur: blur(18px) saturate(170%); }
.card, .tile, .daily, .reply, .msg.assistant, .plan, .chip, textarea, input[type=text], .scale button, .pill, .seg, .flip .side.front {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 30px -20px rgba(150, 80, 105, 0.45);
}
.healthy { background: linear-gradient(180deg, rgba(236, 243, 252, 0.75), rgba(255,255,255,.5)); }
.alert { background: rgba(255, 227, 233, 0.75); }
.chip.on { background: rgba(198, 222, 242, 0.75); border-color: var(--glass-line); }
.plan.on { border: 1.5px solid var(--pink); }
.seg button.on { background: var(--glass-strong); }
.btn.ghost { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); }
.sheet { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(61, 48, 55, 0.18); }
.sheet .panel { background: rgba(255, 247, 245, 0.78); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); border-top: 1px solid var(--glass-line); }
.composer { background: linear-gradient(transparent, rgba(255, 247, 245, 0.9) 35%); }

/* кабинет: запас и покупки */
.stock-row { display: flex; gap: 10px; }
.stock-row > div { flex: 1; display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.7); text-align: center; }
.stock-row b { font: 700 26px/1 var(--display, var(--sans)); }
.stock-row span { color: var(--muted); font-size: 13px; }
.buy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.buy-row:first-of-type { border-top: 0; }
.buy-row span { display: grid; gap: 2px; }
.buy-row small { color: var(--muted); font-size: 12px; }
/* «Как оплатить?» */
.pay-way { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 18px;
  border: 1.5px solid var(--glass-line); background: rgba(255, 255, 255, 0.6); color: var(--text); font: inherit; cursor: pointer; }
.pay-way.on { border-color: rgba(255, 140, 165, 0.9); background: rgba(255, 228, 234, 0.7); }
.pay-way .pw-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--sans); background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px var(--glass-line); }
.pay-way .pw-t { display: grid; gap: 2px; }
.pay-way small { color: var(--muted); font-size: 12px; }
.pay-way em { font-style: normal; font-weight: 800; white-space: nowrap; }
/* «Сохранённое» */
.save-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.save-btn.on { color: var(--text); }
.save-pill { display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer; font: inherit; }
.save-pill svg { width: 14px; height: 14px; }
.saved-item { position: relative; padding-right: 44px; cursor: pointer; }
.saved-item b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.saved-del { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); color: var(--muted); font: 700 18px/1 var(--sans); cursor: pointer; }
.saved-chat { max-height: none; overflow: visible; }
/* переключатель валюты ₽ / $ */
.cur-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.55); border: 1px solid var(--glass-line); }
.cur-toggle button { border: 0; background: none; border-radius: 12px; padding: 9px 6px; font: 700 14px var(--sans); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.cur-toggle button.on { color: var(--text); background: linear-gradient(160deg, rgba(255, 174, 188, 0.75), rgba(198, 222, 242, 0.65)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
/* нижнее стеклянное меню */
main.with-tabs { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; z-index: 15; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(94vw, 440px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px; border-radius: 26px;
  background: rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 18px 40px -18px rgba(150, 80, 105, 0.55); }
.tabbar[hidden] { display: none; }
.tabbar button { border: 0; background: none; border-radius: 20px; padding: 8px 2px 7px; display: grid; justify-items: center; gap: 2px; cursor: pointer;
  color: var(--muted); font: 700 11px var(--sans); transition: background .2s, color .2s; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.on { color: var(--text); background: linear-gradient(160deg, rgba(255, 174, 188, 0.75), rgba(198, 222, 242, 0.65)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.tabbar button:active { transform: scale(.95); }
/* ===== Палитра v4: вместо тиффани — бледно-голубой ===== */
:root {
  --tiff: #c6def2;        /* бледно-голубой */
  --tiff-soft: #edf5fc;
  --tiff-ink: #43709a;    /* для текста и ссылок */
  --mint: #d6dcf5;        /* дымчато-лавандовый вместо мяты */
  --mint-soft: #f1f3fc;
  --tiffany: var(--tiff);
  --tiffany-2: #a9cbe9;
  --tiffany-soft: var(--tiff-soft);
}
/* ===== Голосовые ===== */
.voice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 12px; border-radius: 16px; cursor: pointer;
  font: 700 14px var(--sans); color: var(--text); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px -18px rgba(150, 80, 105, 0.45); }
.vbtn svg { color: var(--tiff-ink); flex: none; }
.vbtn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 12px; margin-bottom: 6px; }
.vbtn.rec-on, .mic.rec-on { background: var(--pink); color: var(--text); }
.recdot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink-ink); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.vitem { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); }
.vitem p { flex: 1; font-size: 14px; }
.vitem .who { flex: none; border: 0; border-radius: 99px; padding: 4px 10px; font: 800 12px var(--sans); cursor: pointer; }
.vitem .who.he { background: var(--tiff); color: var(--text); }
.vitem .who.me { background: var(--pink); color: var(--text); }
.vitem .x { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(61,48,55,.08); color: var(--muted); cursor: pointer; }
.composer .mic { width: 52px; padding: 0; flex: none; display: grid; place-items: center; }
.composer .mic.rec-on { font-size: 0; }
.composer .mic.rec-on .recdot { width: 12px; height: 12px; }
.composer { align-items: flex-end; }
.composer .btn { height: 48px; }


/* ---------- подруги и сторис ---------- */
.tile.friend { background: linear-gradient(120deg, rgba(255, 227, 233, 0.85), rgba(237, 245, 252, 0.85)); }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ref-stats > div { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 18px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.ref-stats b { font-family: var(--head); font-size: 24px; font-weight: 600; }
.ref-stats span { font-size: 12px; color: var(--muted); line-height: 1.25; }
.ref-link { font-size: 14px; word-break: break-all; padding: 12px 14px; border-radius: 14px; background: var(--pink-soft); color: var(--pink-ink); font-weight: 600; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.balance-note { padding: 12px 14px; border-radius: 14px; background: var(--pink-soft); font-size: 14px; text-align: center; }
.sheet a { color: var(--pink-ink); text-decoration: underline; cursor: pointer; }
.story-sheet { max-height: 94vh; overflow-y: auto; }
.story-prev { display: flex; justify-content: center; align-items: center; min-height: 200px; }
.story-prev img { width: min(58vw, 240px); aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: 0 18px 40px -22px rgba(201, 80, 110, 0.6); }
.story-prev .pulse { width: 56px; height: 56px; }

/* дыхание: круг — это кнопка */
button.breath { border: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button.breath:active::before { filter: brightness(.95); }
.breath small { bottom: 50px; white-space: nowrap; }

/* ---------- привязанность ---------- */
.attach-row { display: flex; align-items: center; gap: 12px; }
.attach-val { font: 600 22px var(--head); text-transform: uppercase; }
.pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pair .chip { cursor: default; }
.pair .chip.him { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-ink); }
.pair .plus { color: var(--muted); font-weight: 700; }
details.sit summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; }
details.sit summary::-webkit-details-marker { display: none; }
details.sit summary span { font-size: 22px; color: var(--accent); transition: transform .2s; }
details.sit[open] summary span { transform: rotate(45deg); }
details.sit p { margin-top: 10px; line-height: 1.5; }
.strength { background: linear-gradient(120deg, rgba(255, 227, 233, 0.85), rgba(237, 245, 252, 0.85)); }
.tile.game-tile { background: linear-gradient(120deg, rgba(237, 245, 252, 0.9), rgba(255, 227, 233, 0.9)); }

/* ---------- игра «Ближе» ---------- */
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lvl { text-align: left; border: 1.5px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 16px; padding: 10px 12px; cursor: pointer; color: var(--text); font: inherit; display: flex; flex-direction: column; gap: 2px; }
.lvl b { font: 600 16px var(--head); text-transform: uppercase; }
.lvl span { font-size: 12px; color: var(--muted); }
.lvl.on { border-color: var(--pink); background: var(--pink-soft); }
.turn { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }
.who-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; font: 700 13px var(--sans); color: var(--muted); cursor: pointer; }
.who-btn.on { background: var(--text); color: #fff; border-color: var(--text); }
.dice-wrap { perspective: 700px; display: flex; justify-content: center; padding: 18px 0 8px; }
.dice { width: 96px; height: 96px; position: relative; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.2, .8, .25, 1); transform: rotateX(-20deg) rotateY(25deg); cursor: pointer; }
.dice .face { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(145deg, #fff, #ffe9ee); border: 1px solid rgba(255, 174, 188, .55); box-shadow: inset 0 0 18px rgba(255, 174, 188, .35); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 14px; backface-visibility: hidden; }
.dice .face i { width: 15px; height: 15px; border-radius: 50%; place-self: center; }
.dice .face i.on { background: radial-gradient(circle at 35% 35%, #ff9fb3, #c9506e); }
.dice .f1 { transform: translateZ(48px); }
.dice .f6 { transform: rotateY(180deg) translateZ(48px); }
.dice .f2 { transform: rotateY(90deg) translateZ(48px); }
.dice .f5 { transform: rotateY(-90deg) translateZ(48px); }
.dice .f3 { transform: rotateX(90deg) translateZ(48px); }
.dice .f4 { transform: rotateX(-90deg) translateZ(48px); }
.btn.tod { flex: 1; }
.btn.tod.dare { background: linear-gradient(120deg, #c6def2, #d6dcf5); color: #2f5577; }
.qcard { border-radius: 24px; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; animation: up .3s ease-out; border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.qcard.truth { background: linear-gradient(150deg, #fff, #ffe3e9); }
.qcard.dare { background: linear-gradient(150deg, #fff, #e3eefa); }
.qcard h2 { font-size: 24px; line-height: 1.2; }
.qwho { font-weight: 700; color: var(--pink-ink); }
.qcard.dare .qwho { color: var(--tiff-ink); }
.qcard .row .btn { flex: 1; }
.stack > .kicker, .stack-lg > .kicker, .stack-lg > .back { display: block; }
.attach-row .stack > b { display: block; margin-top: 4px; }
.lvl.adult { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 10px; background: linear-gradient(120deg, rgba(255, 174, 188, .35), rgba(214, 220, 245, .45)); }
.lvl.adult.on { border-color: var(--pink-ink); }

/* скрины в «Что ответить» и SOS */
.composer-wrap .thumbs { padding: 0 2px 8px; }
.composer-wrap .thumbs .t { width: 56px; height: 90px; }
.msg-shots { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.msg-shots img { width: 64px; height: 104px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .7); }
.composer #clip { flex: none; }
.composer-wrap { position: sticky; bottom: 0; background: linear-gradient(transparent, rgba(255, 247, 245, 0.92) 30%); z-index: 2; }
.composer-wrap .composer { position: static; background: none; }
.composer-wrap .composer .mic { width: 44px; }


/* ---------- удобство: запись голоса удержанием ---------- */
.hold { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mic.rec-on, .vbtn.rec-on { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(255, 174, 188, .35); transition: transform .15s, box-shadow .15s; }
.rec-hint { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 99px; background: rgba(61, 48, 55, .88); color: #fff; font-size: 13px; white-space: nowrap; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); animation: up .2s ease-out; pointer-events: none; }
.rec-hint b { font-variant-numeric: tabular-nums; }
.rec-hint span { opacity: .8; }
.rec-hint.cancel { background: rgba(201, 80, 110, .92); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- чат не «съезжает»: своя прокрутка и фиксированная высота ---------- */
body.chat-mode { overflow: hidden; }
body.chat-mode main { padding-bottom: 0; height: var(--tg-viewport-height, 100dvh); display: flex; flex-direction: column; }
body.chat-mode main > .fade { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-head { flex: none; padding-bottom: 8px; }
.chat-screen .chat { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 2px 12px; }
.chat-screen .composer-wrap { flex: none; position: static; }
.msg.typing { display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }

/* iOS не зумит поле при фокусе, если шрифт ≥ 16px */
textarea, input[type=text] { font-size: 16px; }
.rec-hint { left: 16px; right: 16px; transform: none; width: fit-content; max-width: calc(100% - 32px); margin: 0 auto; }
body.chat-mode main { box-sizing: border-box; }
body.chat-mode main > .fade { animation: none; transform: none; }


/* ---------- тест про него: ситуации ---------- */
.him-opts { gap: 10px; }
.opt { width: 100%; box-sizing: border-box; display: block; text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: 14px 16px; line-height: 1.35; border: 1px solid var(--line); }
.opt:active { background: var(--accent); color: #fff; }
.him-opts .btn.sm { align-self: center; margin-top: 4px; }


/* ---------- метафора дня ---------- */
.daily.meta .mini { background: linear-gradient(160deg, #c9b6e8, #9d86cf); box-shadow: 7px 3px 0 -1px #ffd9a8, var(--shadow); display: grid; place-items: center; color: #fff; }
.daily.meta .mini::after { content: none; }
.daily.meta .mini svg { position: relative; z-index: 1; }
.m-back { background: radial-gradient(80% 60% at 50% 30%, rgba(255,255,255,.22), transparent 70%), linear-gradient(160deg, #c9b6e8, #8e76c4) !important; box-shadow: 0 14px 26px -14px rgba(90,60,150,.7); }
.m-back span { color: #fff; display: grid; place-items: center; opacity: .95; }
.meta-flip .inner { min-height: 590px; }
.meta-flip .front { gap: 12px !important; padding: 18px 18px 20px !important; }
.meta-flip .front::before { border-color: rgba(142,118,196,.35) !important; }
.m-art { position: relative; height: 190px; margin: -2px -2px 2px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(70% 70% at 30% 20%, rgba(255,255,255,.45), transparent 60%), linear-gradient(160deg, #ffd9e2 0%, #c9b6e8 55%, #9fc8e8 100%); overflow: hidden; }
.m-art svg { filter: drop-shadow(0 6px 14px rgba(70,40,120,.35)); margin-top: -46px; }
.m-title { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 600 30px var(--head); text-transform: uppercase; letter-spacing: .03em; color: #fff; text-shadow: 0 2px 12px rgba(70,40,120,.35); }
.m-scene { font-family: var(--head); font-size: 19px; line-height: 1.25; text-align: center; margin: 2px 4px 0; }
.m-meaning { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0; text-align: center; }
.m-q { background: rgba(201,182,232,.28); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.m-q b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; color: var(--muted); }


/* ---------- знак дня ---------- */
.s-quote { position: relative; text-align: center; padding: 34px 6px 4px; border-radius: 18px;
  background: radial-gradient(70% 70% at 30% 20%, rgba(255,255,255,.55), transparent 60%), linear-gradient(160deg, #ffe3e9 0%, #fff5e3 55%, #dcebf8 100%); }
.s-mark { position: absolute; left: 0; right: 0; top: -14px; font: 600 110px/1 var(--head); color: rgba(255,143,166,.55); }
.s-quote p { position: relative; margin: 26px 10px 0; font: 600 27px/1.18 var(--head); color: var(--text); }
.s-heart { display: block; color: #ff8fa6; font-size: 26px; margin: 10px 0 8px; }
.meta-flip .front { justify-content: center; }
.meta-flip .inner { min-height: 470px; }
.meta-flip .front > .s-quote { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ===================== Кабинет, тарифы, лимиты ===================== */
.pill.acc { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; font-family: var(--sans); }
.pill.acc .ava { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--sans); color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--tiffany)); }
.pill.acc.premium .ava { background: rgba(255,255,255,.28); }

.me-card { position: relative; overflow: hidden; border-radius: 26px; padding: 20px; color: var(--text); display: grid; gap: 6px;
  background: linear-gradient(140deg, #fff 0%, var(--blush) 55%, var(--tiffany-soft) 100%); border: 1px solid #fff; box-shadow: var(--shadow); }
.me-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(241,155,176,.45), transparent 70%); }
.me-card.on { background: linear-gradient(140deg, #3d3037, #6b4f5c 60%, #c9708a); color: #fff; border-color: transparent; }
.me-card.on .kicker { color: #ffd3de; }
.me-card h2 { font-size: 34px; position: relative; z-index: 1; }
.me-card p { font-size: 13.5px; opacity: .85; position: relative; z-index: 1; margin: 0; }
.offer-mini { position: relative; z-index: 1; margin-top: 6px; justify-self: start; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.85); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.offer-mini b { font-variant-numeric: tabular-nums; color: var(--accent); }

.lim { display: grid; gap: 6px; }
.lim + .lim { margin-top: 4px; }
.lim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.lim-top b { font-weight: 700; }
.lim-top span { color: var(--muted); font-weight: 600; text-align: right; }
.lim-top em { font-style: normal; color: var(--tiffany-2); }
.lim-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.lim-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.lim-bar.inf i { background: linear-gradient(90deg, var(--tiffany-2), var(--tiffany), var(--tiffany-2)); background-size: 200% 100%; animation: shimmer 3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.lim small { color: var(--muted); font-size: 11.5px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big-btn { appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: 16px 14px; text-align: left; display: grid; gap: 4px; cursor: pointer; box-shadow: var(--shadow); color: var(--text); font-family: var(--sans); transition: transform .15s; }
.big-btn:active { transform: scale(.97); }
.big-btn .bi { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--blush); color: var(--accent); margin-bottom: 6px; }
.big-btn.t .bi { background: var(--tiffany-soft); color: var(--tiffany-2); }
.big-btn .bi svg { width: 22px; height: 22px; }
.big-btn b { font: 600 20px/1 var(--head); text-transform: uppercase; }
.big-btn span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: 700 15px var(--sans); letter-spacing: .06em; text-transform: uppercase; background: var(--bg); color: var(--text); }
.code-row input:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.code-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.code-box summary { cursor: pointer; list-style: none; text-align: center; font-weight: 700; font-size: 14px; color: var(--accent); padding: 6px 0; }
.code-box summary::-webkit-details-marker { display: none; }
.code-box[open] summary { margin-bottom: 8px; }
.btn.link { background: none; box-shadow: none; color: var(--muted); padding: 8px; }
.mail-row { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); padding: 0 4px; }
.mail-row svg { width: 18px; height: 18px; flex: none; color: var(--tiffany-2); }
.mail-row b { color: var(--text); }

.tier { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 24px; padding: 18px; display: grid; gap: 10px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .25s, transform .25s, box-shadow .25s; }
.tier:active { transform: scale(.985); }
.tier.on { border-color: var(--accent); box-shadow: 0 16px 34px -20px rgba(217,101,127,.8); }
.tier.hit { background: linear-gradient(160deg, #fff, var(--blush) 70%, #fff1f4); padding-top: 26px; margin-top: 6px; }
.tier .ribbon, .pack .ribbon { position: absolute; top: -11px; left: 18px; padding: 5px 11px; border-radius: 99px; font: 800 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--accent), #e98aa0); box-shadow: 0 6px 14px -8px rgba(217,101,127,.9); }
.tier-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tier-top h3 { font-size: 24px; }
.tier-top > b { font: 600 22px var(--head); white-space: nowrap; }
.radio { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); transition: .25s; }
.tier.on .radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.tier-price b { font: 600 34px/1 var(--head); }
.tier-price s, .q3 s { color: var(--muted); font-size: 15px; margin-left: 4px; }
.tier-feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.tier-feat li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; }
.tier-feat svg { flex: none; width: 17px; height: 17px; color: var(--tiffany-2); margin-top: 1px; }
.tier.mini { padding: 22px 16px 16px; }
.q3 { appearance: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; border: 1.5px dashed var(--accent-2); background: rgba(255,255,255,.7); border-radius: 14px; padding: 11px 13px; font: 600 13.5px var(--sans); color: var(--text); cursor: pointer; transition: .25s; }
.q3 b { font: 600 17px var(--head); }
.q3 em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--tiffany-2); white-space: nowrap; }
.q3.on { border-style: solid; border-color: var(--accent); background: #fff; }

.offer { border-radius: 22px; padding: 18px; display: grid; gap: 4px; text-align: center; color: #fff; background: linear-gradient(135deg, #d9657f, #e98aa0 55%, #81d8d0); box-shadow: 0 18px 34px -20px rgba(217,101,127,.9); }
.offer b { font: 600 22px/1.1 var(--head); text-transform: uppercase; }
.offer span { font-size: 13px; opacity: .92; }
.timer { margin-top: 6px; font: 600 34px/1 var(--head); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.free-note { display: grid; gap: 4px; background: var(--tiffany-soft); border-color: transparent; box-shadow: none; }
.free-note b { font-size: 14px; }
.free-note span { font-size: 13px; color: var(--muted); }
.buy-bar { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 5; padding-top: 6px; }
.buy-bar .btn { box-shadow: 0 16px 30px -12px rgba(217,101,127,.95); }

.grp { font: 600 19px var(--head); text-transform: uppercase; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 8px; }
.pack { appearance: none; position: relative; border: 1.5px solid var(--line); background: var(--surface); border-radius: 18px; padding: 16px 6px 12px; display: grid; gap: 2px; justify-items: center; cursor: pointer; font-family: var(--sans); color: var(--text); box-shadow: var(--shadow); transition: .2s; }
.pack:active { transform: scale(.96); }
.pack b { font: 600 30px/1 var(--head); }
.pack span { font-size: 11.5px; color: var(--muted); }
.pack em { font-style: normal; font-weight: 800; font-size: 14px; margin-top: 6px; }
.pack .ribbon { left: 50%; transform: translateX(-50%); top: -10px; font-size: 9.5px; padding: 4px 8px; white-space: nowrap; }
.pack.best { border-color: var(--accent-2); }
.pack.on { border-color: var(--accent); background: var(--blush); }

.ref-code { font: 600 30px/1 var(--head); letter-spacing: .08em; color: var(--accent); }

.person { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 10px; }
.person.on { border-color: var(--accent-2); background: linear-gradient(135deg, #fff, var(--blush)); }
.person .pin { appearance: none; border: 0; background: none; font-size: 20px; color: var(--accent); width: 32px; height: 32px; cursor: pointer; }
.x-del { appearance: none; border: 0; background: none; color: var(--muted); width: 28px; height: 32px; cursor: pointer; font-size: 13px; }
.add-person { display: flex; gap: 8px; padding: 10px; border-style: dashed; box-shadow: none; }
.add-person input { flex: 1; min-width: 0; border: 0; background: none; font: 600 15px var(--sans); color: var(--text); padding: 0 6px; }
.add-person input:focus { outline: none; }

.person > .stack { display: flex; flex-direction: column; min-width: 0; }
.person .attach-val { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .btn.sm { padding: 9px 12px; flex: none; }
.person .ico-btn { width: 38px; padding: 9px 0; font-size: 16px; }
/* «Подожди, идёт переход к оплате» */
.pay-wait { text-align: center; padding-top: 34px; padding-bottom: 34px; }
.pay-wait .pulse { margin-bottom: 4px; }
