@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url(fonts/oswald-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url(fonts/oswald-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url(fonts/oswald-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url(fonts/oswald-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(fonts/manrope-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(fonts/manrope-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/manrope-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/manrope-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --bg: #0c0c0e;
  --surface: #17171a;
  --surface-2: #232328;
  --line: #2f2f35;
  --ink: #f3f1ea;
  --ink-2: #9b988f;
  --neon: #ffc21a;
  --neon-soft: rgba(255, 194, 26, .45);
  --neon-ink: #141109;
  --red: #e3262e;
  --ok: #3ccf7a;
  --radius: 16px;
  --radius-sm: 12px;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --glow: 0 0 6px var(--neon-soft), 0 0 18px rgba(255, 194, 26, .25);
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; color: var(--ink); background: var(--bg); }
body {
  font: 500 15px/1.45 var(--font-body);
  min-height: 100vh;
  overscroll-behavior: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 194, 26, .07), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .022) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 2px, transparent 2px),
    linear-gradient(90deg, transparent 31px, rgba(255, 255, 255, .018) 31px, rgba(255, 255, 255, .018) 33px, transparent 33px);
  background-size: 100% 100%, 64px 28px, 64px 56px, 64px 56px;
  background-position: 0 0, 0 0, 0 0, 0 28px;
  background-attachment: fixed;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-top) + 4px) 16px calc(112px + var(--safe-bottom)); }

/* neon logo */
.neon-logo { width: 100%; height: auto; overflow: visible; }
.neon-mark path { fill: none; stroke: var(--neon); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px var(--neon)) drop-shadow(0 0 12px rgba(255, 194, 26, .6)); }
.neon-word { font-family: var(--font-display); font-weight: 500; fill: #f6f3ea; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .6)); }
.neon-ua { fill: var(--neon); }
.neon-brush { fill: var(--neon); opacity: .9; }
.neon-anim .neon-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6, .1, .3, 1) forwards, flicker 2.4s 1.1s linear; }
.neon-anim .neon-mark path:nth-child(2) { animation-delay: .7s, 1.8s; }
.neon-anim .neon-word { opacity: 0; animation: on .4s 1.2s forwards, flicker 1.8s 1.6s linear; }
.neon-anim .neon-brush { transform-origin: 60px 180px; transform: scaleX(0); animation: brush .5s 1.5s cubic-bezier(.2, .8, .2, 1) forwards; }
.neon-idle .neon-mark path { animation: hum 6s 3s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes on { to { opacity: 1; } }
@keyframes brush { to { transform: scaleX(1); } }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  8% { opacity: .35; } 10% { opacity: 1; } 14% { opacity: .5; } 16% { opacity: 1; }
  52% { opacity: 1; } 54% { opacity: .6; } 56% { opacity: 1; }
}
@keyframes hum { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .55; } 96% { opacity: 1; } 97% { opacity: .7; } }

/* splash */
.splash {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: opacity .45s ease, visibility .45s;
}
.splash .neon-logo { width: min(78vw, 360px); }
.splash.hide { opacity: 0; visibility: hidden; }
.splash-forge { position: absolute; bottom: calc(26px + var(--safe-bottom)); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }

/* header */
.top { position: sticky; top: 0; z-index: 10; margin: 0 -16px 8px; padding: 6px 16px 8px; background: linear-gradient(var(--bg) 70%, rgba(12, 12, 14, 0)); }
.top-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 60px; }
.top-logo { grid-column: 2; justify-self: center; height: 62px; border: 0; background: none; padding: 0; }
.top-logo .neon-logo { height: 100%; width: auto; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; position: relative; }
.icon-btn.back { grid-column: 1; }
.icon-btn.cart { grid-column: 3; justify-self: end; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--neon); color: var(--neon-ink); font: 800 11px/20px var(--font-body); text-align: center; box-shadow: var(--glow); }
.badge.pop { animation: pop .35s ease; }

/* typography */
h1 { font: 700 30px/1.02 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin: 6px 0 6px; }
h1 em { font-style: normal; color: var(--neon); text-shadow: var(--glow); }
h2 { font: 700 17px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em; margin: 22px 0 10px; }
.lead { color: var(--ink-2); margin: 0 0 14px; }
.hint { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.screen.enter > * { animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* hero */
.hero { display: flex; gap: 10px; margin: 2px 0 14px; }
.hero-pill { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 10px; font-size: 12px; line-height: 1.25; color: var(--ink-2); background: rgba(23, 23, 26, .7); }
.hero-pill b { display: block; color: var(--neon); font: 700 16px/1.1 var(--font-display); text-transform: uppercase; }

/* categories */
.cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 4px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px;
  font-weight: 700; font-size: 13px; white-space: nowrap; transition: all .15s;
}
.chip.sel { border-color: var(--neon); color: var(--neon); box-shadow: var(--glow); }
.chip small { font-weight: 600; opacity: .7; margin-left: 4px; }

/* catalog */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 0; overflow: hidden; text-align: left; transition: transform .15s, border-color .15s; }
.tile:active { transform: scale(.97); }
.tile-img { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #222226, #131315); display: grid; place-items: center; padding: 14px; position: relative; }
.tile-img svg { width: 100%; height: 100%; }
.tile-tag { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--neon-ink); background: var(--neon); border-radius: 6px; padding: 3px 6px; }
.tile-body { padding: 10px 12px 12px; }
.tile-name { font: 700 15px/1.15 var(--font-display); text-transform: uppercase; }
.tile-price { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.tile-price b { color: var(--neon); }
.tile.custom .tile-img { background: repeating-linear-gradient(-45deg, #17171a 0 12px, #1c1c20 12px 24px); }
.custom-plus { width: 64px; height: 64px; border-radius: 50%; border: 2px dashed var(--neon); color: var(--neon); display: grid; place-items: center; font: 700 34px/1 var(--font-display); }

/* mockup */
.mock { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 10px 8px; background: radial-gradient(circle at 50% 42%, #2a2a2f, #121214 70%); }
.mock-stage { display: grid; place-items: center; height: min(74vw, 330px); }
.mock-stage svg { height: 100%; width: auto; max-width: 100%; }
.mock.sticky { position: sticky; top: calc(var(--safe-top) + 72px); z-index: 5; box-shadow: 0 14px 24px -14px #000; }
.mock.sticky .mock-stage { height: min(52vw, 230px); }
.mock-meta { position: absolute; left: 14px; top: 12px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.views { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }

/* form bits */
.field-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); margin-bottom: 7px; }
.block { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.seg { display: flex; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 10px; padding: 10px 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); line-height: 1.2; }
.seg button small { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; }
.seg button.sel { background: var(--neon); color: var(--neon-ink); box-shadow: var(--glow); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; position: relative; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); }
.swatch.sel::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--neon); box-shadow: var(--glow); }
.swatch-name { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.input, .textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm);
  padding: 13px 14px; outline: none; transition: border-color .15s, box-shadow .15s; font-weight: 600;
}
.input:focus, .textarea:focus { border-color: var(--neon); box-shadow: var(--glow); }
.input.bad { border-color: var(--red); }
.input.big { font: 700 22px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.textarea { resize: vertical; min-height: 80px; }
.qty { display: inline-grid; grid-template-columns: 44px 54px 44px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.qty button { height: 44px; border: 0; background: none; font: 700 22px/1 var(--font-body); color: var(--neon); }
.qty span { text-align: center; font: 700 20px/1 var(--font-display); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form { display: grid; gap: 14px; }

/* upload */
.upload { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 12px; position: relative; background: var(--surface); }
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; overflow: hidden; font-size: 11px; font-weight: 800; color: var(--neon); }
.upload-icon img { width: 100%; height: 100%; object-fit: cover; }
.upload-text { font-size: 13px; line-height: 1.3; min-width: 0; color: var(--ink-2); }
.upload-text b { display: block; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload.has { border-style: solid; border-color: var(--neon); }
.upload-remove { margin-left: auto; position: relative; z-index: 2; border: 0; background: var(--surface-2); border-radius: 50%; width: 32px; height: 32px; flex: none; font-weight: 800; }

/* autocomplete */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); max-height: 260px; overflow-y: auto; box-shadow: 0 16px 30px -10px #000; }
.ac-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.ac-item:last-child { border-bottom: 0; }
.ac-item small { display: block; color: var(--ink-2); font-size: 12px; }
.ac-item:active, .ac-item.hl { background: rgba(255, 194, 26, .12); }
.ac-empty { padding: 12px 14px; color: var(--ink-2); font-size: 13px; }
.picked { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--neon); border-radius: var(--radius-sm); padding: 11px 14px; background: rgba(255, 194, 26, .06); }
.picked-text { flex: 1; font-size: 14px; line-height: 1.3; }
.picked-text small { display: block; color: var(--ink-2); }
.link { border: 0; background: none; color: var(--neon); font-weight: 800; font-size: 13px; padding: 4px; }

/* cart & review */
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-head h3 { font: 700 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 76px; height: 84px; border-radius: 12px; background: radial-gradient(circle at 50% 42%, #2a2a2f, #121214 70%); display: grid; place-items: center; }
.cart-thumb svg { height: 100%; width: auto; }
.cart-title { font: 700 16px/1.15 var(--font-display); text-transform: uppercase; }
.cart-sub { font-size: 13px; color: var(--ink-2); margin: 3px 0 8px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cart-row .qty { grid-template-columns: 34px 34px 34px; border-radius: 10px; }
.cart-row .qty button { height: 34px; font-size: 18px; }
.cart-row .qty span { font-size: 16px; }
.cart-price { font: 700 17px/1 var(--font-display); }
.cart-actions { display: flex; gap: 14px; margin-top: 6px; }
.cart-actions button { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.empty { text-align: center; padding: 40px 10px; color: var(--ink-2); }
.lines { display: grid; gap: 7px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.line span:first-child { color: var(--ink-2); }
.line span:last-child { font-weight: 700; text-align: right; }
.line.total { border-top: 1.5px solid var(--neon); margin-top: 6px; padding-top: 10px; }
.line.total span { color: var(--ink) !important; font: 700 22px/1.1 var(--font-display); }
.line.total span:last-child { color: var(--neon) !important; text-shadow: var(--glow); }

/* payment */
.pay-box { border: 1.5px solid var(--neon); border-radius: var(--radius); padding: 16px; background: rgba(255, 194, 26, .05); box-shadow: inset 0 0 24px rgba(255, 194, 26, .06); }
.pay-amount { font: 700 34px/1 var(--font-display); color: var(--neon); text-shadow: var(--glow); margin: 4px 0 2px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.copy-row:first-of-type { border-top: 0; }
.copy-row span { font-size: 12px; color: var(--ink-2); display: block; }
.copy-row b { font-size: 15px; word-break: break-all; }
.copy-btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 800; flex: none; }
.copy-btn.done { border-color: var(--ok); color: var(--ok); }
.order-tag { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--neon); color: var(--neon); border-radius: 10px; padding: 6px 10px; font: 700 15px/1 var(--font-display); letter-spacing: .04em; }
.check-row { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--surface); text-align: left; width: 100%; }
.check-row .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; margin-top: 1px; }
.check-row.on { border-color: var(--neon); }
.check-row.on .box { background: var(--neon); border-color: var(--neon); }
.check-row .box svg { opacity: 0; }
.check-row.on .box svg { opacity: 1; }
.check-row small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 2px; }

/* success */
.success { text-align: center; padding-top: 18px; }
.success-mark { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--neon); color: var(--neon); box-shadow: var(--glow), inset 0 0 14px rgba(255, 194, 26, .3); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; margin: 4px 0 6px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status.wait { color: var(--neon); background: rgba(255, 194, 26, .1); }
.status.ok { color: var(--ok); background: rgba(60, 207, 122, .1); }
.timeline { text-align: left; margin-top: 14px; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 28px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.tl::before { content: ''; position: absolute; left: 13px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font: 700 12px/1 var(--font-display); color: var(--ink-2); background: var(--bg); }
.tl.done .tl-dot { border-color: var(--ok); color: var(--ok); }
.tl.now .tl-dot { border-color: var(--neon); color: var(--neon); box-shadow: var(--glow); }
.tl b { display: block; font-size: 14px; }
.tl span { font-size: 13px; color: var(--ink-2); }

/* telegram preview */
.tg-chat { text-align: left; background: #0e1621; border: 1.5px solid #1f2b38; border-radius: var(--radius); padding: 0 10px 12px; margin-top: 18px; overflow: hidden; font: 400 14px/1.4 -apple-system, 'Segoe UI', Roboto, sans-serif; color: #e9eef3; }
.tg-head { display: flex; gap: 10px; align-items: center; background: #17212b; margin: 0 -10px 12px; padding: 10px 14px; font-size: 14px; line-height: 1.2; }
.tg-head small { color: #708499; }
.tg-ava { width: 38px; height: 38px; border-radius: 50%; background: #111; border: 1.5px solid var(--neon); color: var(--neon); display: grid; place-items: center; font: 700 14px/1 var(--font-display); flex: none; }
.tg-bubble { position: relative; background: #182533; border-radius: 14px 14px 14px 4px; padding: 8px 12px 20px; max-width: 94%; word-break: break-word; }
.tg-bubble + .tg-bubble, .tg-kb + .tg-bubble { margin-top: 6px; }
.tg-bubble code { font-family: ui-monospace, Consolas, monospace; background: #0f1a24; border-radius: 4px; padding: 0 3px; }
.tg-bubble a { color: #6ab3f3; text-decoration: none; }
.tg-bubble.out { margin-left: auto; background: #2b5278; border-radius: 14px 14px 4px 14px; }
.tg-time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #6d8094; }
.tg-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px; }
.tg-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 94%; margin-top: 4px; }
.tg-kb button { border: 0; border-radius: 10px; background: rgba(43, 82, 120, .55); color: #e9eef3; padding: 9px 6px; font-size: 13px; font-weight: 600; }
.tg-kb button.wide { grid-column: 1 / -1; }
.tg-kb.done button { background: rgba(60, 207, 122, .18); color: var(--ok); }
.tg-doc { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; }
.tg-doc-icon { width: 42px; height: 42px; border-radius: 50%; background: #3f9be0; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; }
.tg-label { font-size: 11px; color: #708499; text-align: center; margin: 10px 0 6px; }

/* forge logic */
.forge { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 26px auto 0; border: 0; background: none; color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 8px; }
.forge img { width: 20px; height: 20px; }
.forge b { color: var(--ink); font-weight: 800; }
.forge .cursor { animation: blink 1s steps(1) infinite; color: var(--neon); }
@keyframes blink { 50% { opacity: 0; } }

/* bottom bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(12, 12, 14, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bar-total { font: 700 24px/1 var(--font-display); letter-spacing: .01em; }
.bar-total.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.07); color: var(--neon); } }
.bar-note { font-size: 12px; color: var(--ink-2); margin-top: 4px; font-weight: 600; }
.btn { border: 0; border-radius: 14px; padding: 15px 20px; font: 700 16px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; transition: transform .12s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--neon); color: var(--neon-ink); min-width: 160px; box-shadow: var(--glow); }
.btn-main:disabled { opacity: .35; box-shadow: none; }
.btn-main.loading { pointer-events: none; opacity: .7; }
.btn-ghost { background: none; color: var(--neon); border: 1.5px solid var(--neon); box-shadow: inset 0 0 10px rgba(255, 194, 26, .12); }
.btn-wide { width: 100%; }

/* sheet + toast */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; animation: fadeIn .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); border-top: 1.5px solid var(--line); border-radius: 22px 22px 0 0; padding: 20px 20px calc(24px + var(--safe-bottom)); max-width: 560px; margin: 0 auto; animation: up .28s ease; }
.sheet-logo { width: 64px; height: 64px; margin: 4px auto 10px; display: block; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translate(-50%, 20px); z-index: 50; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); color: #fff; }

@media (min-width: 600px) { .bar { padding-inline: calc((100vw - 560px) / 2 + 16px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } .neon-anim .neon-mark path { stroke-dashoffset: 0; } .neon-anim .neon-word { opacity: 1; } .neon-anim .neon-brush { transform: none; } }
