/* ---------- каркас приложения ---------- */
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }
@media (min-width: 560px) {
  #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: 0 0 120px rgba(0,0,0,.35); }
}
.screen { padding: calc(14px + env(safe-area-inset-top)) 20px calc(var(--tabbar-h) + 36px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px; }
.screen.no-tabs { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.topbar h3 { flex: 1; text-align: center; }
.topbar .spacer { width: 44px; }
.section { display: flex; flex-direction: column; gap: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.section-head a { font-size: 14px; font-weight: 700; color: var(--coral); text-decoration: none; }

/* ---------- таббар ---------- */
.tabbar { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; width: min(calc(100% - 28px), 452px);
  height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 26px; view-transition-name: tabbar;
  background: color-mix(in srgb, var(--surface-solid) 95%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--text-3); font-size: 11px; font-weight: 700; transition: color .3s; }
.tabbar a.on { color: var(--text); }
.tabbar a svg { transition: transform .5s var(--spring); }
.tabbar a.on svg { transform: translateY(-2px) scale(1.12); }
.tabbar .blob { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 20px; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(255,94,126,.25); transition: transform .6s var(--spring); }

/* ---------- горизонтальная прокрутка ---------- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 10px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

/* ---------- главная ---------- */
.city-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.hello h1 { font-size: 30px; }
.search { position: relative; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { padding-left: 50px; border-radius: 20px; }
.banner { width: 86%; min-height: 150px; border-radius: var(--r-lg); padding: 22px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); text-decoration: none; }
.banner h3 { font-size: 20px; max-width: 70%; position: relative; z-index: 1; }
.banner p { opacity: .85; font-size: 14px; font-weight: 600; }
.banner .big { position: absolute; right: -16px; top: -18px; font-size: 78px; opacity: .85; transform: rotate(12deg); filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); animation: bob 5s ease-in-out infinite; }
.occasion { width: 104px; height: 120px; border-radius: 24px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.2; transition: transform .5s var(--spring), background .3s; }
.occasion .e { font-size: 38px; transition: transform .6s var(--spring); }
.occasion:hover .e, .occasion:active .e { transform: scale(1.2) rotate(-10deg); }
.occasion:active { transform: scale(.94); }
.occasion.hot { background: var(--grad-soft); border-color: rgba(255, 94, 126, .4); }

.pcard { width: 168px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.pcard .img { aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center; font-size: 64px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--pc) 70%, white 10%), color-mix(in srgb, var(--pc) 35%, var(--bg)) 75%); transition: transform .5s var(--spring); }
.pcard .img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%); background-size: 250% 100%; background-position: 130% 0; transition: background-position .9s var(--ease-out); }
.pcard:hover .img::after { background-position: -30% 0; }
.pcard:active .img { transform: scale(.95); }
.pcard .img span { filter: drop-shadow(0 10px 16px rgba(0,0,0,.3)); transition: transform .6s var(--spring); }
.pcard:hover .img span { transform: scale(1.12) rotate(-6deg); }
.pcard .name { font-weight: 700; line-height: 1.25; }
.pcard .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); }
.pcard .price { font-weight: 800; color: var(--text); font-size: 15px; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
.pgrid .pcard { width: auto; }

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; transition: transform .5s var(--spring); }
.cat:active { transform: scale(.95); }
.cat .e { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); }

.bday { width: 290px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- онбординг ---------- */
.onb { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom)); gap: 18px; }
.onb-stage { flex: 1; display: grid; place-items: center; position: relative; min-height: 320px; }
.onb-dots { display: flex; gap: 8px; justify-content: center; }
.onb-dots i { width: 8px; height: 8px; border-radius: 9px; background: var(--surface-2); transition: all .5s var(--spring); }
.onb-dots i.on { width: 28px; background: var(--grad); }
.onb h1 { font-size: 34px; }
.ill { position: relative; width: 280px; height: 280px; }
.ill .ring { position: absolute; inset: 10px; border-radius: 50%; border: 2px dashed var(--line); animation: spin 30s linear infinite; }
.ill .box { position: absolute; left: 50%; top: 52%; width: 140px; height: 120px; transform: translate(-50%, -50%); animation: bob 3s ease-in-out infinite; }
.ill .box .b { position: absolute; inset: 26px 0 0; border-radius: 18px; background: var(--grad); box-shadow: var(--glow); }
.ill .box .lid { position: absolute; left: -10px; right: -10px; top: 6px; height: 34px; border-radius: 12px; background: var(--grad); background-size: 200%; animation: lid 3s ease-in-out infinite; transform-origin: 20% 100%; }
.ill .box .rib { position: absolute; left: 50%; top: 6px; bottom: 0; width: 18px; transform: translateX(-50%); background: rgba(255,255,255,.9); border-radius: 3px; }
.ill .timer { position: absolute; right: 14px; top: 26px; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font: 900 20px var(--font-display); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); animation: bob 4s ease-in-out infinite reverse; }
.ill .orb { position: absolute; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); animation: orbit 8s ease-in-out infinite; }
.ill .bubble { position: absolute; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; animation: bubbleIn 3.6s var(--spring) infinite; }
.ill .phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); width: 150px; height: 250px; border-radius: 30px; background: var(--surface-solid); border: 2px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.ill .qr { width: 96px; height: 96px; border-radius: 12px; background: #fff; padding: 8px; position: relative; overflow: hidden; }
.ill .qr::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: var(--coral); box-shadow: 0 0 16px var(--coral); animation: scanline 2s ease-in-out infinite; }

/* ---------- логин ---------- */
.phone-row { display: flex; gap: 10px; }
.phone-row select { width: 112px; flex: none; }
.dev-hint { padding: 12px 16px; border-radius: 14px; background: rgba(91, 227, 176, .1); color: var(--mint); font-weight: 700; font-size: 14px; text-align: center; }

/* ---------- карта ---------- */
.mapbox { height: 46dvh; margin: 0 -20px; border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; position: relative; background: var(--surface); }
.mapbox .leaflet-container { width: 100%; height: 100%; background: var(--bg-2); font: inherit; }
.pin { width: 46px; height: 46px; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); display: grid; place-items: center; background: var(--grad); box-shadow: 0 8px 20px rgba(255,94,126,.5); border: 2px solid #fff; animation: pinDrop .7s var(--spring) both; }
.pin span { transform: rotate(45deg); font-size: 21px; }
.cluster { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 16px var(--font-display); color: #fff; background: var(--grad); box-shadow: 0 0 0 6px rgba(255,94,126,.25); }
.map-top { position: absolute; z-index: 500; top: calc(12px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; gap: 8px; }
.map-top .chips { flex: 1; }
.map-top .chip { background: color-mix(in srgb, var(--surface-solid) 85%, transparent); backdrop-filter: blur(12px); }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(0,0,0,.4) !important; color: #aaa !important; }
.leaflet-control-attribution a { color: #ccc !important; }
.cafe-row { display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none; }
.cafe-row .logo-tile, .logo-tile { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; flex: none; background: color-mix(in srgb, var(--pc) 35%, var(--surface)); }

/* ---------- кафе ---------- */
.cover { margin: calc(-14px - env(safe-area-inset-top)) -20px 0; height: 260px; position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--pc) 85%, white 10%), color-mix(in srgb, var(--pc) 30%, var(--bg)) 80%); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.cover .e { font-size: 130px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); animation: bob 5s ease-in-out infinite; }
.cover .nav { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; }
.cover .nav .iconbtn { background: rgba(0,0,0,.28); color: #fff; backdrop-filter: blur(10px); }
.menu-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 22px; text-decoration: none; transition: background .2s, transform .5s var(--spring); }
.menu-item:hover { background: var(--surface); }
.menu-item:active { transform: scale(.97); }
.menu-item .logo-tile { width: 72px; height: 72px; font-size: 38px; border-radius: 20px; }
.menu-item .add { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; box-shadow: var(--glow); }
.menu-item.off { opacity: .45; pointer-events: none; }

/* ---------- оформление ---------- */
.progress { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 9px; background: var(--grad); transition: width .7s var(--spring); }
.line-item { display: flex; align-items: center; gap: 12px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface-2); }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-solid); display: grid; place-items: center; transition: transform .4s var(--spring); }
.stepper button:active { transform: scale(.85); }
.stepper b { min-width: 22px; text-align: center; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cards-grid button { padding: 0; border: 0; background: none; border-radius: 18px; transition: transform .5s var(--spring); outline-offset: 3px; }
.cards-grid button.on { outline: 3px solid var(--coral); transform: scale(.94); }
.preview-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.preview-wrap .giftcard { font-size: 9px; }
.sugs { display: flex; gap: 8px; flex-wrap: wrap; }
.sugs button { border: 1px dashed var(--line); background: transparent; padding: 8px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: all .2s; text-align: left; }
.sugs button:hover { color: var(--text); border-color: var(--coral); }
.counter { font-size: 12px; color: var(--text-3); text-align: right; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; height: 42px; border: 0; background: none; font-weight: 700; color: var(--text-2); border-radius: 12px; transition: color .3s; }
.seg button.on { color: var(--text); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: var(--surface-2); box-shadow: 0 2px 10px rgba(0,0,0,.15); transition: transform .5s var(--spring); }
.sum-row { display: flex; justify-content: space-between; font-weight: 600; color: var(--text-2); }
.sum-row.total { color: var(--text); font: 800 22px var(--font-display); padding-top: 10px; border-top: 1px dashed var(--line); }
.bottom-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 90; width: min(100%, 480px); padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 30%); display: flex; gap: 10px; align-items: center; }

/* ---------- оплата ---------- */
.methods { display: flex; flex-direction: column; gap: 10px; }
.method { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: all .3s var(--ease-out); }
.method input { accent-color: var(--coral); width: 20px; height: 20px; }
.method:has(input:checked) { border-color: var(--coral); background: var(--grad-soft); }
.method .mi { width: 44px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--surface-2); }
.method .mi.apple { background: #000; color: #fff; }
.method .mi.google { background: #fff; color: #333; }
.processing { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; background: rgba(5, 2, 10, .86); animation: fadeIn .3s; }
.processing .orb3d { width: 120px; height: 120px; border-radius: 50%; background: var(--grad); background-size: 200%; animation: morph 2.4s ease-in-out infinite; box-shadow: 0 0 80px rgba(255,94,126,.6); }

/* ---------- готово ---------- */
.ready-stage { display: grid; place-items: center; padding-top: 20px; perspective: 900px; }
.ready-stage .giftcard { width: 220px; animation: cardFly 1.2s var(--spring) both; font-size: 12px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-grid button, .share-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .5s var(--spring); }
.share-grid button:active, .share-grid a:active { transform: scale(.9); }
.share-grid .ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 22px; }

/* ---------- мои подарки ---------- */
.gift-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px; text-decoration: none; }
.gift-row .giftcard { width: 64px; font-size: 3.4px; border-radius: 16px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline .ev { display: grid; grid-template-columns: 26px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.timeline .ev::before { content: ''; position: absolute; left: 12px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline .ev:last-child::before { display: none; }
.timeline .ev i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.timeline .ev.done i { background: var(--grad); color: #fff; }
.timeline .ev:not(.done) { color: var(--text-3); }

/* ---------- профиль ---------- */
.balance-card { border-radius: var(--r-lg); padding: 22px; color: #fff; background: var(--grad); position: relative; overflow: hidden; box-shadow: var(--glow); }
.balance-card::after { content: ''; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.15); }
.balance-card .amount { font: 900 36px var(--font-display); letter-spacing: -.03em; }
.list { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.list > * { display: flex; align-items: center; gap: 14px; padding: 15px 16px; text-decoration: none; border: 0; background: none; text-align: left; width: 100%; font-weight: 600; transition: background .2s; }
.list > * + * { border-top: 1px solid var(--line); }
.list > a:hover, .list > button:hover { background: var(--surface); }
.list .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.list .val { margin-left: auto; color: var(--text-3); font-size: 14px; display: flex; align-items: center; gap: 6px; }
details.faq { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 0 16px; }
details.faq summary { padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details.faq summary::after { content: '+'; font-size: 22px; line-height: 1; transition: transform .4s var(--spring); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding-bottom: 16px; color: var(--text-2); }
.notif { display: flex; gap: 12px; padding: 14px; }
.notif.unread { background: var(--grad-soft); }

.empty { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty .e { font-size: 64px; animation: bob 3s ease-in-out infinite; }

@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes lid { 0%, 60%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg) translateY(-10px); } }
@keyframes orbit { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(8px, -14px) rotate(6deg); } }
@keyframes bubbleIn { 0% { opacity: 0; transform: scale(.6) translateY(10px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes scanline { 0%, 100% { top: 6%; } 50% { top: 92%; } }
@keyframes pinDrop { from { opacity: 0; transform: rotate(-45deg) translate(30px, -30px); } }
@keyframes morph { 0%, 100% { border-radius: 50%; transform: scale(1) rotate(0); } 33% { border-radius: 40% 60% 55% 45%; transform: scale(1.1) rotate(60deg); } 66% { border-radius: 60% 40% 45% 55%; transform: scale(.92) rotate(120deg); } }
@keyframes cardFly { from { opacity: 0; transform: translateY(120px) rotateX(50deg) rotateZ(-10deg) scale(.6); } }
.tiles-dark { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.88) saturate(.7); }

/* ==========================================================================
   Персонализация, желания, «вау»-функции
   ========================================================================== */
.install-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: var(--r-lg); border: 0; color: #fff; text-align: left; font: inherit;
  background: linear-gradient(120deg, var(--coral), var(--violet)); box-shadow: 0 16px 40px -16px rgba(178,107,255,.8); }
.install-row img { border-radius: 12px; flex: none; }
.install-row .tiny { display: block; opacity: .9; }
.pick-cta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); text-decoration: none; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #6A3CFF, var(--violet) 40%, var(--coral)); box-shadow: 0 18px 50px -18px rgba(178,107,255,.8); }
.pick-cta .small { opacity: .85; }
.pick-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.35), transparent 40%); pointer-events: none; }
.orb-ai { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex: none; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); animation: aiPulse 2.4s ease-in-out infinite; }
.orb-ai.big { width: 64px; height: 64px; font-size: 30px; background: var(--grad); color: #fff; }
@keyframes aiPulse { 50% { transform: scale(1.08); } }
.why { font-size: 12px; color: var(--mint); font-weight: 700; line-height: 1.3; margin: 2px 0; }

.wish-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; z-index: 2;
  background: rgba(0,0,0,.32); color: #fff; backdrop-filter: blur(8px); transition: transform .35s var(--spring), background .2s, color .2s; }
.wish-btn.on { background: #fff; color: var(--coral); }
.wish-btn.on svg, .wish-cat.on svg { fill: var(--coral); }
.wish-btn:active { transform: scale(.8); }
.wish-btn.inline { position: static; background: var(--surface-2); color: var(--text-2); flex: none; }
.wish-btn.inline.on { background: rgba(255,94,126,.18); color: var(--coral); }
.wish-cat.on { border-color: var(--coral); color: var(--coral); }
.pcard .tagm { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 18px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 2px 6px; }

.wow-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wow { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-lg); text-decoration: none; color: #fff; min-height: 130px;
  background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 16px 40px -18px var(--c2); transition: transform .4s var(--spring); }
.wow:active { transform: scale(.96); }
.wow span { font-size: 34px; animation: bob 3.5s ease-in-out infinite; }
.wow small { opacity: .9; font-size: 12px; line-height: 1.3; }
.chain-card { background: linear-gradient(120deg, rgba(178,107,255,.25), rgba(255,94,126,.2)); border-color: rgba(178,107,255,.5); }

.sug-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; font: inherit; transition: transform .35s var(--spring), border-color .2s; }
.sug-card:hover { border-color: var(--coral); }
.sug-card:active { transform: scale(.98); }
.sug-card .logo-tile { width: 54px; height: 54px; font-size: 28px; }
.friend-card { background: var(--grad-soft); border-color: rgba(255,94,126,.3); }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips.wrap .chip { height: 34px; font-size: 13px; }
.ai-hero { display: flex; gap: 14px; align-items: center; }
.ai-thinking { display: flex; align-items: center; gap: 6px; padding: 18px; color: var(--text-2); font-weight: 700; }
.ai-thinking i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: think 1.2s infinite ease-in-out; }
.ai-thinking i:nth-child(2) { animation-delay: .15s; background: var(--coral); }
.ai-thinking i:nth-child(3) { animation-delay: .3s; background: var(--apricot); }
.ai-thinking span { margin-left: 8px; }
@keyframes think { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1.2); opacity: 1; } }

.known-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.known-row:last-child { border-bottom: 0; }
.iconbtn.sm { width: 32px; height: 32px; }
.input.sm { height: 40px; font-size: 14px; }

.wish-hero { --c1: #FF9A3C; --c2: #FF5E7E; display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(130deg, var(--c1), var(--c2)); }
.wish-hero > span { font-size: 44px; animation: bob 3s ease-in-out infinite; }
.wish-hero p { opacity: .9; }
.wish-row.unavailable { border-color: rgba(255,154,60,.5); }
.wish-row.gifted { opacity: .75; }

@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.ring-big { --p: 0; border-radius: 50%; background: conic-gradient(var(--mint) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; flex: none; }
.ring-big > div { width: 78%; height: 78%; border-radius: 50%; background: var(--bg); display: grid; place-items: center; align-content: center; text-align: center; }
.ring-big b { font: 900 18px var(--font-display); line-height: 1.1; }
.ring-big small { font-size: 10px; color: var(--text-2); }
.group-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0; }
.group-hero .ring-big { animation: pop .9s var(--spring) both, ringFill 1.4s var(--ease-out) both; }
.group-hero .ring-big b { font-size: 30px; }
.group-hero .ring-big small { font-size: 12px; }
@keyframes ringFill { from { --p: 0; } }
.group-cta { width: 100%; border: 1px dashed rgba(91,227,176,.6) !important; background: rgba(91,227,176,.08); color: inherit; font: inherit; }
.choice-card .chips { flex-wrap: wrap; }

.media-prev { display: flex; flex-direction: column; gap: 10px; }
.media-prev video { width: 100%; max-height: 260px; border-radius: 18px; background: #000; }
.media-prev audio { width: 100%; }
.rec-stage { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface); position: relative; }
.rec-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.mic-orb { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 54px; background: var(--grad); transition: transform .3s; }
.mic-orb.on { animation: micPulse 1s ease-in-out infinite; }
@keyframes micPulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 24px rgba(255,94,126,.15), 0 0 0 48px rgba(255,94,126,.08); } }
.rec-btn { width: 78px; height: 78px; border-radius: 50%; border: 4px solid var(--text); background: none; display: grid; place-items: center; }
.rec-btn i { width: 56px; height: 56px; border-radius: 50%; background: var(--danger); transition: all .3s var(--spring); }
.rec-btn.on i { width: 28px; height: 28px; border-radius: 8px; }

.kb-hero { display: flex; gap: 16px; align-items: center; }
.kb-mock { width: 150px; flex: none; border-radius: 22px; padding: 10px; background: var(--surface-solid); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.kb-bubble { align-self: flex-end; font-size: 10px; background: var(--grad); color: #fff; border-radius: 12px 12px 4px 12px; padding: 6px 8px; animation: rise .8s var(--spring) both; }
.kb-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.kb-keys i { font-style: normal; font-size: 9px; text-align: center; padding: 4px 0; border-radius: 4px; background: var(--surface-2); }
.kb-keys i.gift { grid-column: span 2; background: var(--grad); animation: aiPulse 2s infinite; }
.kb-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.kb-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.kb-steps li span { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font-display); background: var(--grad); color: #fff; }
