:root {
  --bg: #0b0a1f;
  --bg2: #15123a;
  --card: rgba(255, 255, 255, 0.06);
  --card-b: rgba(255, 255, 255, 0.10);
  --text: #f3eefc;
  --muted: #a49cc7;
  --gold: #f2c96d;
  --gold2: #ffe3a3;
  --pink: #ff8fc7;
  --violet: #9b7bff;
  --green: #7fe0b3;
  --radius: 20px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(120% 70% at 50% 0%, #2a1f66 0%, var(--bg2) 35%, var(--bg) 75%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--sans);
  overflow-x: hidden;
}
.stars {
  position: fixed; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 10%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 70%, #ffe9b8 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 55%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 85%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 40%, #d8ccff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 5%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 88%, #fff 50%, transparent 51%);
  background-size: 300px 300px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45 } to { opacity: .85 } }

main { position: relative; max-width: 520px; margin: 0 auto; padding: 16px 16px 110px; }
.hidden { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .2px; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 23px; margin-bottom: 10px; }
h3 { font-size: 19px; margin-bottom: 6px; color: var(--gold2); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }

.card {
  background: var(--card); border: 1px solid var(--card-b); border-radius: var(--radius);
  padding: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid var(--card-b); font-size: 13px; color: var(--muted);
}

.btn {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 16px; padding: 14px 18px; font: 600 15px var(--sans); cursor: pointer;
  color: #2a1a00; background: linear-gradient(135deg, var(--gold2), var(--gold) 55%, #e2a94a);
  box-shadow: 0 6px 24px rgba(242, 201, 109, .28); transition: transform .12s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(255,255,255,.08); color: var(--text); box-shadow: none; border: 1px solid var(--card-b); }
.btn.small { padding: 10px 14px; font-size: 14px; border-radius: 12px; width: auto; }
.btn[disabled] { opacity: .5; }

/* --- splash / loader --- */
.splash { min-height: 70vh; display: grid; place-content: center; text-align: center; color: var(--muted); gap: 18px; }
.orb {
  width: 84px; height: 84px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6dc, var(--gold) 40%, #8a5cff 100%);
  box-shadow: 0 0 60px rgba(155,123,255,.6); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 90px rgba(242,201,109,.6); } }
.loader { display: grid; place-items: center; gap: 12px; padding: 30px 0; color: var(--muted); text-align: center; }
.loader .orb { width: 48px; height: 48px; }

/* --- tabs --- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(11, 10, 31, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--card-b);
}
.tabs button {
  background: none; border: 0; color: var(--muted); font: 500 12px var(--sans);
  display: grid; justify-items: center; gap: 2px; padding: 6px 0; cursor: pointer;
}
.tabs button span { font-size: 20px; line-height: 1; }
.tabs button.active { color: var(--gold2); }

/* --- today --- */
.greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.streak .flame { font-size: 28px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.week div { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.week i {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  border: 1px dashed rgba(255,255,255,.2); font-size: 14px;
}
.week .done i { background: linear-gradient(135deg, var(--gold2), #e2a94a); border: 0; color: #2a1a00; }
.week .today i { box-shadow: 0 0 0 2px var(--violet); }
.progress { height: 6px; background: rgba(255,255,255,.08); border-radius: 9px; overflow: hidden; margin-top: 10px; }
.progress b { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); border-radius: 9px; }

.tarot-wrap { perspective: 1200px; display: grid; place-items: center; padding: 8px 0 4px; }
.tarot {
  width: 190px; height: 300px; position: relative; transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.7,.2,1); cursor: pointer;
}
.tarot.flipped { transform: rotateY(180deg); }
.tarot .face {
  position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; place-items: center; text-align: center; padding: 18px; overflow: hidden;
}
.tarot .back {
  background:
    radial-gradient(circle at 50% 50%, rgba(242,201,109,.22), transparent 55%),
    linear-gradient(160deg, #3b2a8a, #1b1450);
  box-shadow: 0 10px 40px rgba(155,123,255,.45), inset 0 0 0 1px rgba(242,201,109,.5);
  padding: 0;
}
.tarot .back .back-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tarot .back span { position: relative; font-family: var(--serif); font-size: 15px; color: var(--gold2); align-self: end; margin-bottom: 18%; }
.tarot .front {
  transform: rotateY(180deg);
  background:
    radial-gradient(120% 70% at 50% 35%, rgba(155,123,255,.35), transparent 70%),
    linear-gradient(170deg, #2a1d63, #140f3a 80%);
  color: var(--gold2);
  box-shadow: 0 10px 50px rgba(242,201,109,.35), inset 0 0 0 1px rgba(242,201,109,.75), inset 0 0 0 5px #1c1548, inset 0 0 0 6px rgba(242,201,109,.35);
  grid-template-rows: auto 1fr auto auto; padding: 12px 10px 12px; gap: 2px;
}
.tarot .front .num { font-family: var(--serif); font-size: 15px; letter-spacing: 1px; color: var(--gold); min-height: 18px; }
.tarot .front .pic { position: relative; align-self: stretch; justify-self: stretch; min-height: 0; margin: 4px 0; }
.tarot .front .pic svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.tarot .front .nm { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.05; color: #fff1cf; }
.tarot .front .rev { font-size: 11px; color: var(--muted); min-height: 14px; }
.tarot.reversed .front .pic svg { transform: rotate(180deg); }

/* рисунки колоды */
.art, .back-art { width: 100%; height: 100%; overflow: visible; }
.art .ink, .back-art .ink { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art .fill, .back-art .fill { fill: var(--gold); stroke: none; }
.art .soft, .back-art .soft { opacity: .35; }
.art .thin, .back-art .thin { stroke-width: .8; opacity: .7; }
.art .thick { stroke-width: 2.4; }
.art .dash { stroke-dasharray: 2 3; opacity: .8; }
.art { filter: drop-shadow(0 0 4px rgba(242,201,109,.45)); }
.art.fire .ink { stroke: #ffb36b; } .art.fire .fill { fill: #ffb36b; }
.art.water .ink { stroke: #8fd3ff; } .art.water .fill { fill: #8fd3ff; }
.art.air .ink { stroke: #d6ceff; } .art.air .fill { fill: #d6ceff; }
.art.earth .ink { stroke: #e9cf7a; } .art.earth .fill { fill: #e9cf7a; }
.art.fire { filter: drop-shadow(0 0 4px rgba(255,150,80,.5)); }
.art.water { filter: drop-shadow(0 0 4px rgba(120,200,255,.5)); }
.art.air { filter: drop-shadow(0 0 4px rgba(200,190,255,.5)); }

/* вспышка при открытии карты */
.tarot .burst { position: absolute; inset: -30%; pointer-events: none; opacity: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,227,163,.75), rgba(242,201,109,.25) 35%, transparent 65%); }
.tarot.revealing .burst { animation: burst 1.1s ease-out .35s both; }
@keyframes burst { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
.tarot.revealing .front { animation: glow 1.4s ease-out .3s both; }
@keyframes glow { 0% { box-shadow: 0 0 0 rgba(242,201,109,0), inset 0 0 0 1px rgba(242,201,109,.75); }
  40% { box-shadow: 0 0 70px rgba(255,227,163,.9), inset 0 0 0 1px rgba(242,201,109,1); } }
.hint { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }

.energy .bar { margin-top: 10px; }
.energy .bar .row { font-size: 14px; }
.energy .bar .progress { height: 8px; }
.bar.love .progress b { background: linear-gradient(90deg, #ff6fae, #ffb3d6); }
.bar.work .progress b { background: linear-gradient(90deg, #6fa8ff, #9be7ff); }
.bar.mood .progress b { background: linear-gradient(90deg, #a07bff, #f2c96d); }
.transits { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.transits li::before { content: "✦ "; color: var(--gold); }
.tomorrow { background: linear-gradient(135deg, rgba(155,123,255,.25), rgba(255,143,199,.18)); }

/* --- ask --- */
.modes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.modes::-webkit-scrollbar { display: none; }
.modes button {
  flex: none; border: 1px solid var(--card-b); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 9px 14px; font: 500 13px var(--sans); cursor: pointer;
}
.modes button.active { background: linear-gradient(135deg, var(--violet), #6a4ee0); border-color: transparent; }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 40vh; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #6a4ee0, var(--violet)); border-bottom-right-radius: 6px; }
.bubble.astra { align-self: flex-start; background: var(--card); border: 1px solid var(--card-b); border-bottom-left-radius: 6px; }
.bubble .who { font-family: var(--serif); color: var(--gold2); font-size: 15px; margin-bottom: 4px; display: block; }
.typing span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--gold); animation: dot 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s } .typing span:nth-child(3) { animation-delay: .4s }
@keyframes dot { 0%, 80%, 100% { opacity: .2 } 40% { opacity: 1 } }
.mini-cards { display: flex; gap: 8px; margin: 2px 0 8px; flex-wrap: wrap; }
.mini {
  width: 88px; border-radius: 10px; padding: 8px 6px; text-align: center; font-size: 11px; line-height: 1.25;
  background: linear-gradient(170deg, #fff8e6, #f3dfae); color: #2b1d4f; animation: deal .5s both;
}
.mini b { display: block; font-size: 22px; margin-bottom: 2px; }
.mini em { display: block; font-style: normal; color: #7a5b9c; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; }
.mini:nth-child(2) { animation-delay: .15s } .mini:nth-child(3) { animation-delay: .3s } .mini:nth-child(4) { animation-delay: .45s }
@keyframes deal { from { opacity: 0; transform: translateY(14px) rotate(-6deg); } }
.composer {
  position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 15;
  padding: 10px 16px; background: linear-gradient(transparent, rgba(11,10,31,.95) 30%);
}
.composer .inner { max-width: 520px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea {
  flex: 1; resize: none; border-radius: 16px; border: 1px solid var(--card-b); background: rgba(255,255,255,.08);
  color: var(--text); padding: 12px 14px; font: 15px var(--sans); max-height: 120px; outline: none;
}
.composer .send { width: 48px; height: 48px; padding: 0; border-radius: 50%; flex: none; font-size: 20px; }
.ask-space { height: 80px; }

/* --- pairs --- */
.ring {
  --p: 50; width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--pink) calc(var(--p) * 1%), rgba(255,255,255,.1) 0);
  font-weight: 600; font-size: 14px; position: relative;
}
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg2); }
.ring span { position: relative; }
.ring.big { width: 128px; height: 128px; font-size: 30px; font-family: var(--serif); }
.ring.big::before { inset: 9px; }

/* --- reports & paywall --- */
.section + .section { margin-top: 16px; }
.section p { white-space: pre-wrap; }
.locked { position: relative; margin-top: 16px; }
.locked .tease { margin-bottom: 0; }
.locked .blur { filter: blur(6px); user-select: none; color: var(--muted); }
.lock-cta {
  margin-top: 18px; text-align: center; padding: 20px 16px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(242,201,109,.18), rgba(155,123,255,.22));
  border: 1px solid rgba(242,201,109,.4);
}
.lock-cta .lock { font-size: 34px; }
.lock-list { list-style: none; padding: 0; margin: 10px 0 14px; text-align: left; }
.lock-list li { padding: 4px 0; }
.lock-list li::before { content: "🔒 "; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 15; padding: 10px 16px;
  background: linear-gradient(transparent, rgba(11,10,31,.95) 35%);
}
.sticky-cta .inner { max-width: 520px; margin: 0 auto; }

/* --- me --- */
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.big3 div { background: var(--card); border: 1px solid var(--card-b); border-radius: 16px; padding: 12px 6px; }
.big3 b { display: block; font-family: var(--serif); font-size: 19px; color: var(--gold2); }
.big3 small { color: var(--muted); font-size: 12px; }
.planets { width: 100%; border-collapse: collapse; font-size: 14px; }
.planets td { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.planets td:last-child { text-align: right; color: var(--muted); }
.premium { background: linear-gradient(150deg, rgba(242,201,109,.22), rgba(155,123,255,.18)); border-color: rgba(242,201,109,.4); }
.premium ul { padding-left: 18px; margin: 8px 0 14px; }

/* --- forms --- */
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=date], input[type=time] {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--card-b);
  background: rgba(255,255,255,.08); color: var(--text); font: 15px var(--sans); outline: none; color-scheme: dark;
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button {
  padding: 12px; border-radius: 14px; border: 1px solid var(--card-b); background: rgba(255,255,255,.06);
  color: var(--text); font: 500 14px var(--sans); cursor: pointer;
}
.seg button.active { background: linear-gradient(135deg, var(--violet), #6a4ee0); border-color: transparent; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.err { color: #ff9a9a; font-size: 14px; min-height: 20px; margin-top: 10px; }
.disclaimer { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }

.back-link { background: none; border: 0; color: var(--muted); font: 14px var(--sans); padding: 0; cursor: pointer; }

.toast {
  position: fixed; left: 50%; top: 16px; transform: translate(-50%, -80px); z-index: 50;
  background: rgba(30, 24, 70, .95); border: 1px solid var(--card-b); padding: 10px 16px; border-radius: 14px;
  transition: transform .3s; max-width: calc(100% - 32px); font-size: 14px;
}
.toast.show { transform: translate(-50%, 0); }

.fade-in { animation: fade .35s both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* --- v2: расклады --- */
.tabs { grid-template-columns: repeat(5, 1fr); }
.spread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; perspective: 1000px; margin: 6px 0 4px; }
.spread .tarot { width: 100%; height: auto; aspect-ratio: 5 / 8; }
.spread .tarot .face { padding: 8px; border-radius: 12px; }
.spread .tarot .front { padding: 8px 5px 7px; }
.spread .tarot .front .num { font-size: 12px; min-height: 14px; }
.spread .tarot .front .nm { font-size: 13.5px; }
.spread .tarot .front .rev { font-size: 9px; min-height: 11px; }
.spread .tarot .back span { font-size: 12px; }
.spread .pos { text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; min-height: 30px; }
.spread .slot { animation: deal .5s both; }
.spread .slot:nth-child(2) { animation-delay: .12s } .spread .slot:nth-child(3) { animation-delay: .24s }
.qhead { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
textarea.q {
  width: 100%; min-height: 96px; resize: vertical; border-radius: 16px; border: 1px solid var(--card-b);
  background: rgba(255,255,255,.08); color: var(--text); padding: 14px; font: 15px var(--sans); outline: none;
}
.cut-blur { filter: blur(6px); user-select: none; color: var(--muted); margin-top: 4px; }
.seg3 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 14px; }
.seg3 button { border: 0; background: none; color: var(--muted); padding: 10px 4px; border-radius: 10px; font: 500 13px var(--sans); cursor: pointer; }
.seg3 button.active { background: linear-gradient(135deg, var(--violet), #6a4ee0); color: #fff; }
.hist { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.hist .ico { font-size: 22px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); flex: none; }
.hist .t { flex: 1; min-width: 0; }
.hist .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.money-hero { background: linear-gradient(150deg, rgba(242,201,109,.28), rgba(127,224,179,.12) 60%, rgba(155,123,255,.18)); border-color: rgba(242,201,109,.45); text-align: center; }
.money-hero .big { font-size: 46px; }
.money-hero ul { text-align: left; padding-left: 18px; margin: 10px 0 14px; }
.price-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.danger { color: #ff9a9a; background: none; border: 1px solid rgba(255,154,154,.35); }
.limit { text-align: center; }

/* пакеты раскладов */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--text); border-radius: 14px;
  padding: 12px 6px; text-align: center; cursor: pointer; font: 500 13px var(--sans); position: relative; }
.pack b { display: block; font: 600 22px var(--serif); }
.pack .per { color: var(--muted); font-size: 11px; }
.pack.best { border-color: rgba(242,201,109,.6); background: rgba(242,201,109,.1); }
.pack.best::before { content: "выгодно"; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: #f2c96d; color: #1a1430; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 6px; }

/* анкета «Деньги» */
.life textarea.q { min-height: 70px; }
.life .opt { color: var(--muted); font-weight: 400; }
.life .step { font-size: 12px; color: var(--muted); margin: 0 0 4px; }

/* натальная карта на главной */
.natal-hook { background: linear-gradient(160deg, rgba(155,123,255,.22), rgba(242,201,109,.10)); }
.natal-hook .big3 div { background: rgba(255,255,255,.06); }

/* награды за серию */
.ladder { display: grid; gap: 6px; margin-top: 12px; }
.ladder div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.ladder b { min-width: 34px; height: 26px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--card-b); font-size: 12px; color: var(--text); }
.ladder .done { color: var(--text); }
.ladder .done b { background: linear-gradient(135deg, var(--gold2), #e2a94a); color: #2a1a00; border: 0; }

/* закрытый прогноз дня */
.day-locked .section p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.spheres { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spheres li { display: grid; align-content: start; gap: 3px; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.spheres b { font-size: 12px; color: var(--gold2); font-weight: 600; }
.spheres b::after { content: " 🔒"; font-size: 10px; }
.spheres span { font-size: 12.5px; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spheres em { font-style: normal; font-size: 12px; line-height: 1.35; color: var(--muted); filter: blur(4px); user-select: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* тасование колоды перед раскладом */
.shuffle { position: relative; height: 200px; display: grid; place-items: center; }
.shuffle .sc { position: absolute; width: 112px; height: 180px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #3b2a8a, #1b1450); box-shadow: 0 8px 30px rgba(155,123,255,.35), inset 0 0 0 1px rgba(242,201,109,.5);
  animation: riffle 1.5s cubic-bezier(.4,.1,.3,1) both; animation-delay: calc(var(--i) * 40ms); }
.shuffle .sc svg { width: 100%; height: 100%; }
@keyframes riffle {
  0% { transform: translateY(20px) rotate(0); opacity: 0; }
  15% { opacity: 1; transform: translateY(0) rotate(calc((var(--i) - 2) * 3deg)); }
  35% { transform: translateX(calc((var(--i) - 2) * 26px)) rotate(calc((var(--i) - 2) * 9deg)); }
  55% { transform: translateX(calc((2 - var(--i)) * 22px)) rotate(calc((2 - var(--i)) * 7deg)); }
  75% { transform: translateX(0) rotate(calc((var(--i) - 2) * 2deg)); }
  100% { transform: translateY(-6px) rotate(0) scale(.96); opacity: 1; }
}
.shuffle-note { margin-top: 4px; }

/* круг натальной карты */
.wheel-wrap { display: grid; place-items: center; }
.wheel { width: 100%; max-width: 320px; height: auto; overflow: visible; }
.wheel .w-line { fill: none; stroke: rgba(242,201,109,.55); stroke-width: 1; }
.wheel circle.w-line:first-of-type { stroke-width: 1.4; }
.wheel .faint { stroke: rgba(242,201,109,.25); }
.wheel .w-sign { font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.wheel .w-planet { font-size: 13px; fill: #fff1cf; text-anchor: middle; dominant-baseline: central; }
.wheel .w-dot { fill: #1c1548; stroke: rgba(242,201,109,.7); stroke-width: 1; }
.wheel .w-tick { stroke: var(--gold); stroke-width: 1.4; }
.wheel .w-asp { stroke-width: 1; opacity: .7; }
.wheel .w-asp.soft { stroke: #7fe0b3; }
.wheel .w-asp.hard { stroke: #ff8fc7; }
.wheel .w-asc { stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 3 3; }
.wheel .w-label { font-size: 9px; fill: var(--gold2); letter-spacing: 1px; }
.wheel .w-center { fill: var(--gold); }
.wheel-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--muted); }
.wheel-legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 5px; }

/* отчёты */
.report .section h3 { display: flex; align-items: center; gap: 10px; }
.report .section h3 .ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px;
  font-family: var(--sans); font-size: 14px; color: var(--gold); background: rgba(242,201,109,.12); border: 1px solid rgba(242,201,109,.3); }
.report .section + .section { margin-top: 0; padding-top: 18px; border-top: 0; position: relative; }
.report .section + .section::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,201,109,.45), transparent); }
.report .section p { white-space: normal; margin: 0 0 8px; line-height: 1.6; }
.report .section p:last-child { margin-bottom: 0; }
.report .lead { font-family: var(--serif); font-size: 19px; line-height: 1.35; color: #fff1cf; display: block; margin-bottom: 4px; }

/* согласие и документ */
.check.accept { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; line-height: 1.45; }
.check.accept input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet); }
.check.accept a { color: var(--gold2); }
.overlay { position: fixed; inset: 0; z-index: 50; overflow-y: auto; padding: 16px 16px 40px;
  background: radial-gradient(120% 70% at 50% 0%, #2a1f66 0%, var(--bg2) 35%, var(--bg) 75%); }
.terms { max-width: 520px; margin: 10px auto 0; }
.terms h1 { font-size: 22px; } .terms h2 { font-size: 18px; margin: 20px 0 6px; color: var(--gold2); }
.terms p { color: var(--text); line-height: 1.55; } .terms .muted { color: var(--muted); font-size: 13px; }

.pending { display: grid; justify-items: center; gap: 10px; padding: 22px 16px; }
.small-orb { width: 38px; height: 38px; }

.promo input { flex: 1; text-transform: uppercase; }
.promo .btn { width: auto; flex: none; }
.planets-more summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 10px; }
.disclaimer a { color: var(--muted); }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 12px; font-size: 13px; }
.doc-links a, .check.accept a { color: var(--gold2); }
.terms nav { display: none; }
.terms table { width: 100%; border-collapse: collapse; } .terms td { padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.terms td.p { text-align: right; white-space: nowrap; color: var(--gold2); }
.terms footer { margin-top: 20px; font-size: 12px; color: var(--muted); }

/* админка */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.admin-tabs button { flex: none; border: 1px solid var(--card-b); background: var(--card); color: var(--text);
  border-radius: 12px; padding: 8px 12px; font: 500 13px var(--sans); cursor: pointer; }
.admin-tabs button.active { background: linear-gradient(135deg, var(--violet), #6a4ee0); border-color: transparent; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpis div { background: var(--card); border: 1px solid var(--card-b); border-radius: 16px; padding: 12px; }
.kpis b { display: block; font-family: var(--serif); font-size: 26px; color: var(--gold2); }
.kpis span { font-size: 12px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv input { width: 90px; padding: 8px 10px; text-align: right; }
.kv-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin select, .admin input[type=number] { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--card-b);
  background: rgba(255,255,255,.08); color: var(--text); font: 15px var(--sans); color-scheme: dark; }
.admin .kv input[type=number] { width: 90px; padding: 8px 10px; }
.landing-docs { margin: 0; padding-left: 18px; line-height: 2; }
.landing-docs a { color: var(--gold2); }
a.btn { text-decoration: none; }

/* оплата в рублях рядом с кнопкой Stars */
.pay-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.pay-row > .btn { margin: 0; }
.btn.rub { background: rgba(255,255,255,.08); color: var(--gold2); border: 1px solid rgba(242,201,109,.45); box-shadow: none; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.packs.rub-row .btn.rub { width: 100%; padding: 7px 4px; font-size: 13px; }
