/* Bilitchi — public site extras (complements app.css; same tokens, one accent) */

/* ---------- hero ---------- */
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: var(--on-ink-muted); font-size: .82rem; font-weight: 700; margin-bottom: 18px; }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 178, 36, .18); animation: live 2s infinite; margin-inline-start: 6px; }
@keyframes live { 50% { box-shadow: 0 0 0 8px rgba(255, 178, 36, 0); } }
.hero .search-bar .btn { flex: none; }
.hero-lights { position: absolute; inset: auto 0 0 0; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 178, 36, .55) 0 6px, transparent 6px 22px); opacity: .5; }
.feature-ticket { position: relative; }
.feature-ticket .k { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.feature-ticket .price { color: var(--accent); font-weight: 800; font-size: .88rem; }
.feature-tickets .ft-head { color: var(--on-ink-muted); font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
@media (max-width: 899px) { .feature-tickets { display: none; } }

/* ---------- stats strip under hero ---------- */
.trust-band { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-band .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; }
.trust-band .item { display: flex; gap: 12px; align-items: center; padding: 16px 4px; }
.trust-band .item + .item { border-top: 1px solid var(--border); }
@media (min-width: 700px) { .trust-band .item + .item { border-top: 0; border-inline-start: 1px solid var(--border); padding-inline-start: 20px; } }
.trust-band svg { width: 26px; height: 26px; color: #8a5a00; flex: none; }
.trust-band b { display: block; font-size: .95rem; }
.trust-band small { color: var(--text-muted); }

/* ---------- event card tweaks ---------- */
.event-card .poster::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(transparent, rgba(21, 18, 31, .35)); pointer-events: none; }
.event-card .date-chip { z-index: 1; }
.event-card .poster .badge { z-index: 1; box-shadow: var(--sh-1); }
.event-card .cat { font-size: .75rem; font-weight: 800; color: var(--text-faint); }
.event-card .meta { display: flex; align-items: center; gap: 6px; }
.event-card .meta svg { width: 15px; height: 15px; flex: none; }
.event-card.is-off .poster img { filter: grayscale(.7); }

/* ---------- section heads ---------- */
.kicker { font-size: .8rem; font-weight: 800; color: #8a5a00; letter-spacing: .02em; margin-bottom: 2px; }
.lead-muted { color: var(--text-muted); max-width: 60ch; }

/* ---------- how it works (anti-scalping) ---------- */
.how { background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 28px 20px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .how { padding: 44px; } }
.how::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 108, 255, .22), transparent); }
.how h2 { color: var(--on-ink); }
.how .lead-muted { color: var(--on-ink-muted); }
.how-steps { display: grid; gap: 14px; margin-top: 24px; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); position: relative; }
.how-step { padding: 18px; border-radius: var(--r-md); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .06); }
.how-step::before { counter-increment: s; content: counter(s, persian); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; margin-bottom: 10px; }
.how-step h3 { color: var(--on-ink); font-size: 1rem; margin-bottom: 4px; }
.how-step p { color: var(--on-ink-muted); font-size: .9rem; margin: 0; }

.cta-band { display: grid; gap: 18px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid #ffe0a3; }
@media (min-width: 768px) { .cta-band { grid-template-columns: 1fr auto; padding: 32px 36px; } }
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { margin: 0; color: #6b4a07; }

/* ---------- events index ---------- */
.list-head { background: var(--ink); color: var(--on-ink); }
.list-head .container { padding-block: 28px 24px; }
.list-head h1 { margin-bottom: 4px; }
.list-head p { color: var(--on-ink-muted); margin: 0; }
.filter-bar { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 720px) { .filter-bar { grid-template-columns: 1fr 180px 160px auto; } }
.filter-bar .input, .filter-bar .select { background: var(--ink-2); border-color: var(--ink-3); color: var(--on-ink); }
.filter-bar .input::placeholder { color: var(--on-ink-muted); }
.filter-bar .select option { color: var(--text); background: #fff; }
.result-meta { color: var(--text-muted); font-size: .9rem; }

.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.empty-state .ico-big { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: #8a5a00; }
.empty-state .ico-big svg { width: 30px; height: 30px; }
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { color: var(--text-muted); max-width: 44ch; margin-inline: auto; }

/* ---------- event page ---------- */
.event-hero h1 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); font-weight: 900; margin-bottom: 2px; }
.event-hero .artist { color: var(--accent); font-weight: 700; }
.event-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.event-hero .tags .badge { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); color: var(--on-ink); }
.event-hero .poster { width: 150px; }
@media (min-width: 600px) { .event-hero .poster { width: 200px; } }
@media (min-width: 900px) { .event-hero .poster { width: 280px; } }
.event-hero .hero-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.rules { display: grid; gap: 10px; }
.rule { display: flex; gap: 12px; align-items: flex-start; }
.rule .ri { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); }
.rule .ri svg { width: 18px; height: 18px; }
.rule b { display: block; font-size: .95rem; }
.rule span { color: var(--text-muted); font-size: .88rem; }
.zone-list .zp { margin-inline-start: auto; font-weight: 800; white-space: nowrap; }
.zone-list .zn { min-width: 0; }
.zone-list .zn small { display: block; color: var(--text-muted); }
.show-item .sm { font-size: .82rem; color: var(--text-muted); }
.show-item .st { font-weight: 800; }
.show-actions { grid-column: 1 / -1; display: grid; gap: 8px; }
.show-actions form { display: flex; gap: 8px; flex-wrap: wrap; }
.show-actions .input, .show-actions .select { min-height: 42px; flex: 1 1 120px; width: auto; }
.countdown { display: flex; gap: 6px; direction: ltr; justify-content: flex-end; }
.countdown span { display: grid; min-width: 46px; text-align: center; padding: 4px 6px; background: var(--ink); color: var(--on-ink); border-radius: 8px; font-weight: 900; line-height: 1.3; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .65rem; color: var(--on-ink-muted); font-weight: 600; }
.permit { font-size: .82rem; color: var(--on-ink-muted); }
.map-link { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- buy page ---------- */
.buy-head { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 18px; }
.buy-head h1 { font-size: 1.25rem; margin: 0; }
.buy-head .sub { color: var(--text-muted); font-size: .9rem; }
.seatmap-toolbar .zoom { display: flex; gap: 6px; }
.seatmap-toolbar .btn { min-height: 36px; padding: 4px 10px; }
.zone-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 12px 10px; }
.zone-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--on-ink); font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.zone-chip b { color: var(--on-ink-muted); font-weight: 600; }
.zone-chip.active { border-color: var(--accent); background: rgba(255, 178, 36, .12); }
.seatmap-viewport { background: radial-gradient(ellipse at 50% 0%, #2a2340 0%, var(--ink) 65%); }
.seatmap-viewport .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-ink-muted); }
.seatmap-viewport svg text { font-family: var(--font); }
.seat:focus { outline: none; }
.seat:focus-visible { stroke: #fff; stroke-width: 3; }
.sm-ga { cursor: pointer; }
.sm-ga:hover rect { fill-opacity: .42; }
.legend .lg-i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend .muted { color: var(--on-ink-muted); }
.seat-tip b { font-weight: 800; }
.seat-tip .tp { color: #8a5a00; font-weight: 800; }
.map-hint { padding: 0 12px 12px; color: var(--on-ink-muted); font-size: .78rem; }
.cart-empty { text-align: center; padding: 18px 8px; color: var(--text-muted); font-size: .9rem; }
.cart-empty svg { width: 34px; height: 34px; margin: 0 auto 6px; opacity: .35; }
.cart-line .ln { min-width: 0; }
.cart-line .ln small { display: block; color: var(--text-muted); }
.cart-line .rm { border: 0; background: transparent; color: var(--text-faint); cursor: pointer; padding: 2px; border-radius: 6px; }
.cart-line .rm:hover { color: var(--danger); }
.cart-line .rm svg { width: 16px; height: 16px; }
.cart-line .zdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-inline-end: 6px; }
.limit-note { font-size: .8rem; color: var(--text-muted); }
.cart-bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -12px rgba(21, 18, 31, .3); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.cart-bar .cb-t { flex: 1; min-width: 0; line-height: 1.4; }
.cart-bar .cb-t small { display: block; color: var(--text-muted); font-size: .78rem; }
.cart-bar .cb-t b { font-size: 1.05rem; }
@media (min-width: 1000px) { .cart-bar { display: none; } }
@media (max-width: 999px) { body.has-cart-bar { padding-bottom: 76px; } .seatmap-viewport { height: min(62vh, 560px); } }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; gap: 20px; }
@media (min-width: 1000px) { .checkout-layout { grid-template-columns: 1fr 380px; align-items: start; } .checkout-layout .side { position: sticky; top: 84px; } }
.summary-head { display: flex; gap: 14px; align-items: center; }
.summary-head img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; }
.summary-head .t { font-weight: 800; line-height: 1.5; }
.summary-head .m { color: var(--text-muted); font-size: .86rem; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .95rem; }
.sum-row.discount { color: var(--success); }
.sum-total { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 6px; border-top: 2px dashed var(--border); font-weight: 900; font-size: 1.2rem; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { min-height: 44px; }
.timer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-md); background: var(--ink); color: var(--on-ink-muted); font-size: .88rem; }
.timer-wrap .timer { background: var(--ink-2); font-size: 1.05rem; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--text-muted); justify-content: center; }
.secure-note svg { width: 16px; height: 16px; }
.identity-box { border: 1px solid #f5dcae; background: var(--warning-soft); border-radius: var(--r-md); padding: 16px; }

/* ---------- order result ---------- */
.result-hero { text-align: center; padding: 36px 16px 8px; }
.result-mark { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; }
.result-mark svg { width: 42px; height: 42px; }
.result-mark.ok { background: var(--success-soft); color: var(--success); box-shadow: 0 0 0 10px rgba(24, 147, 106, .07); }
.result-mark.ok svg { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .15s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.result-mark.bad { background: var(--danger-soft); color: var(--danger); }
.result-mark.warn { background: var(--warning-soft); color: var(--warning); }
.narrow { max-width: 760px; margin-inline: auto; }

/* ---------- tickets list ---------- */
.ticket { transition: transform .2s, box-shadow .2s; }
a.ticket:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.ticket .main .ev { font-weight: 800; line-height: 1.5; }
.ticket .main .when { color: var(--text-muted); font-size: .88rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ticket .stub .code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; font-size: .85rem; color: var(--on-ink-muted); }
.ticket .stub svg { width: 34px; height: 34px; color: var(--accent); }
.ticket .stub small { font-size: .75rem; color: var(--on-ink-muted); }
.ticket .main .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 639px) { .ticket .stub { flex-direction: row; justify-content: space-between; padding: 12px 16px; border-top: 2px dashed rgba(255, 255, 255, .15); } }

/* ---------- full ticket ---------- */
.ticket-page { padding-block: 20px 40px; }
.ticket-full .head .ev { font-size: 1.2rem; font-weight: 900; line-height: 1.5; }
.ticket-full .head .m { color: var(--on-ink-muted); font-size: .88rem; display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 6px; }
.ticket-full .head .m span { display: inline-flex; gap: 6px; align-items: center; }
.ticket-full .head .m svg { width: 15px; height: 15px; color: var(--accent); }
.ticket-full .perf { height: 0; border-top: 2px dashed var(--border-strong); position: relative; margin: 0; }
.ticket-full .perf::before, .ticket-full .perf::after { content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); }
.ticket-full .perf::before { inset-inline-start: -12px; } .ticket-full .perf::after { inset-inline-end: -12px; }
.ticket-full .body { border-top: 0; }
.ticket-full .seat-big { text-align: center; font-weight: 900; font-size: 1.15rem; }
.ticket-full .zone-tag { display: flex; justify-content: center; gap: 8px; align-items: center; color: var(--text-muted); font-size: .88rem; }
.qr-stage { position: relative; }
.qr-box { min-height: 240px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.qr-box .qr-wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.qr-box .qr-wm span { transform: rotate(-24deg); font-weight: 900; font-size: 1.05rem; color: rgba(255, 178, 36, .3); white-space: nowrap; animation: drift 6s ease-in-out infinite alternate; }
@keyframes drift { from { transform: rotate(-24deg) translateX(-14px); } to { transform: rotate(-24deg) translateX(14px); } }
.qr-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.live-clock { font-weight: 800; color: var(--text); }
.ticket-state { text-align: center; padding: 32px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.ticket-state svg { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--text-faint); }
.ticket-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.ticket-actions .btn { width: 100%; }
.ticket-code { text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--text-muted); font-size: .9rem; }
.receive { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: var(--r-sm); background: var(--success-soft); color: #0f6b4c; font-weight: 800; }

/* ---------- account ---------- */
.account-page { padding-block: 24px 40px; }
.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; flex: none; }
.account-head .n { font-weight: 800; }
.account-head .s { color: var(--text-muted); font-size: .85rem; }
.side-menu { padding-bottom: 2px; }
@media (max-width: 959px) { .side-menu { margin-inline: -16px; padding-inline: 16px; } .side-menu a { background: var(--surface); border: 1px solid var(--border); } .side-menu a.active { border-color: var(--ink); } }
.wallet-card { background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; }
.wallet-card::after { content: ""; position: absolute; inset: -50% -20% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 178, 36, .25), transparent); }
.wallet-card .k { color: var(--on-ink-muted); font-size: .85rem; font-weight: 700; }
.wallet-card .v { font-size: 2rem; font-weight: 900; color: var(--accent); }
.amount-pos { color: var(--success); font-weight: 800; }
.amount-neg { color: var(--danger); font-weight: 800; }
.id-verified { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--success-soft); border: 1px solid #bfe6d6; color: #0f6b4c; }
.id-verified svg { width: 26px; height: 26px; flex: none; }
.list-card { display: grid; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.list-card:last-child { border-bottom: 0; }

/* ---------- resale ---------- */
.listing { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.listing:last-child { border-bottom: 0; }
.listing .lb { font-weight: 800; }
.listing .face { color: var(--text-muted); font-size: .82rem; }
.listing .pr { font-weight: 900; font-size: 1.05rem; text-align: end; }
.listing form { grid-column: 1 / -1; }
@media (min-width: 640px) { .listing { grid-template-columns: 1fr auto auto; } .listing form { grid-column: auto; } }
.safe-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.safe-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.safe-list svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 3px; }

/* ---------- static pages ---------- */
.page-hero { background: var(--ink); color: var(--on-ink); }
.page-hero .container { padding-block: 40px; }
.page-hero p { color: var(--on-ink-muted); max-width: 60ch; margin: 0; }
.doc { max-width: 820px; }
.doc h2 { margin-top: 1.6em; }
.doc ul { padding-inline-start: 20px; line-height: 2; }
.pillar { display: grid; gap: 14px; grid-template-columns: 52px 1fr; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.pillar .pi { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.pillar .pi svg { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--text-muted); }

/* queue */
.queue-card .card-body { padding: 32px 24px; }
.queue-num small { display: block; font-size: .9rem; font-weight: 700; color: var(--text-muted); }
.queue-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.queue-facts div { padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.queue-facts b { display: block; font-size: 1.2rem; }
.queue-facts small { color: var(--text-muted); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); display: inline-block; animation: pulse 1.6s infinite; }

[data-busy] { position: relative; color: transparent !important; }
[data-busy]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--b-fg, #333) transparent var(--b-fg, #333) transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
.org-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.org-card .ico { width: 20px; height: 20px; flex: none; color: var(--text-faint); }
.org-card small { display: block; color: var(--text-muted); }
