/* БаҳодирБрат WebApp · Premium dark gold/neon kassa */
:root {
  --bg: #05070f;
  --card: rgba(14, 20, 38, 0.88);
  --text: #f3f6ff;
  --muted: #8b97b3;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #ffd700;
  --neon: #00ff9c;
  --blue: #4da3ff;
  --orange: #ff9f43;
  --pink: #ff5d8f;
  --danger: #ff6b81;
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --max: 460px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(92px + var(--safe-b));
  overflow-x: hidden;
}
button, input { font-family: inherit; }
a { color: var(--neon); }
.hidden { display: none !important; }
img { max-width: 100%; }

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}
.orb.a {
  width: 280px; height: 280px; top: -60px; left: -40px;
  background: radial-gradient(circle, rgba(255,215,0,0.4), transparent 70%);
}
.orb.b {
  width: 300px; height: 300px; right: -80px; top: 30%;
  background: radial-gradient(circle, rgba(0,255,156,0.22), transparent 70%);
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, 16px); }
}

.topbar {
  position: relative; z-index: 5;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 8px;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-logo {
  width: 36px; height: 36px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,215,0,0.45), 0 0 16px rgba(255,215,0,0.2);
}
.topbar-brand strong { display: block; font-size: 0.95rem; }
.topbar-brand small { color: var(--muted); font-size: 0.72rem; }

.pill {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
}
.pill.live { color: var(--neon); border-color: rgba(0,255,156,0.3); }
.pill.live i {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon); margin-right: 5px; vertical-align: middle;
  animation: ping 1.5s infinite;
}

.toast {
  position: sticky; top: 0; z-index: 40;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(8, 12, 22, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
}
.toast .dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--neon); animation: ping 1.6s infinite;
}

.app {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: 8px 12px 20px;
}

.hero { text-align: center; padding: 8px 4px 4px; }
.hero h1 {
  font-size: clamp(1.55rem, 6vw, 1.9rem);
  font-weight: 800; letter-spacing: -0.03em;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--gold), #fff3a0, var(--neon));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  color: var(--muted); font-size: 0.9rem; margin: 8px auto 12px; max-width: 34ch;
}

.video-wrap {
  position: relative; margin: 0 auto 12px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  background: #000;
}
.promo-video {
  display: block; width: 100%; max-height: 210px; object-fit: cover;
}
.video-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}

.prize-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px; margin-bottom: 4px;
}
.prize {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 4px;
  font-size: 0.72rem; color: var(--muted);
}
.prize b { display: block; color: var(--text); font-size: 0.76rem; margin-top: 2px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  margin-top: 11px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  animation: fadeUp 0.4s ease both;
}
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 12px;
}
.sec-title h2 { font-size: 1rem; font-weight: 800; }
.badge {
  font-size: 0.68rem; color: var(--gold);
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.25);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  text-decoration: none;
}

.stats-card {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center;
}
.stat span { display: block; font-size: 0.7rem; color: var(--muted); margin-bottom: 4px; }
.stat strong { font-size: 0.92rem; font-weight: 800; color: var(--gold); }
.stat.warn strong { color: var(--orange); }

.scarce-head {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 8px;
}
.progress {
  height: 10px; background: rgba(255,255,255,0.06);
  border-radius: 999px; overflow: hidden;
}
.progress-bar {
  height: 100%; width: 30%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--neon), var(--blue));
  background-size: 200% 100%;
  animation: shimmer 2.2s linear infinite;
  transition: width 0.5s ease;
}
.scarce-note { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }

.gifts-list { display: flex; flex-direction: column; gap: 8px; }
.gift-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(0,0,0,0.22); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px;
}
.gift-emoji { font-size: 1.7rem; line-height: 1; }
.gift-thumb {
  width: 52px; height: 52px; border-radius: 12px; object-fit: cover;
  border: 1px solid rgba(255,215,0,0.3); flex-shrink: 0;
}
.gift-cat {
  font-size: 0.78rem; font-weight: 800; color: var(--gold);
  margin: 10px 0 6px; letter-spacing: 0.04em;
}
.gift-body b { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.gift-desc { display: block; font-size: 0.82rem; color: var(--muted); }
.gift-meta { display: block; font-size: 0.72rem; color: var(--neon); margin-top: 4px; font-weight: 700; }
.muted-center { text-align: center; color: var(--muted); padding: 10px 0; font-size: 0.9rem; }

.qty-row {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px;
}
.btn-circle {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  font-size: 1.5rem; font-weight: 800; cursor: pointer; color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold), var(--neon));
  box-shadow: 0 6px 18px rgba(255,215,0,0.28);
}
.btn-circle:active { transform: scale(0.94); }
.qty-display { text-align: center; min-width: 100px; }
#qtyInput {
  width: 100%; text-align: center; font-size: 2rem; font-weight: 800;
  border: none; background: transparent; color: var(--text); outline: none;
}
.qty-display small { color: var(--muted); font-size: 0.75rem; }
#qtyRange { width: 100%; margin: 6px 0 12px; accent-color: var(--neon); }

.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.quick button {
  position: relative; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); color: var(--text);
  border-radius: 12px; padding: 10px 14px; font-weight: 700;
  font-size: 0.88rem; cursor: pointer; min-width: 68px;
}
.quick button .tag {
  position: absolute; top: -8px; right: -6px; font-size: 0.58rem;
  background: var(--pink); color: #fff; padding: 2px 5px; border-radius: 6px; font-weight: 800;
}
.quick button.best { border-color: rgba(255,215,0,0.4); }
.quick button.best .tag { background: var(--gold); color: #0a0a0a; }
.quick button.active {
  background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(0,255,156,0.12));
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255,215,0,0.25);
}

.total-box {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.25); border-radius: 14px; padding: 12px 14px;
  border: 1px solid var(--line);
}
.total-box span { display: block; font-size: 0.75rem; color: var(--muted); }
.total-box strong { font-size: 1.2rem; font-weight: 800; color: var(--gold); }
.save-tag {
  font-size: 0.72rem; font-weight: 800; color: var(--neon);
  background: rgba(0,255,156,0.08); border: 1px solid rgba(0,255,156,0.25);
  padding: 6px 10px; border-radius: 999px;
}

.methods { display: flex; flex-direction: column; gap: 8px; }
.method {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.2); cursor: pointer; transition: 0.15s;
}
.method:hover { border-color: rgba(255,215,0,0.35); }
.method.selected {
  border-color: var(--neon);
  background: rgba(0,255,156,0.08);
  box-shadow: 0 0 0 1px rgba(0,255,156,0.2);
}
.method input { accent-color: var(--neon); width: 18px; height: 18px; }
.bank-logo {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.method .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); font-size: 1.1rem; flex-shrink: 0;
}
.method .name { font-weight: 800; font-size: 0.95rem; }
.method .det { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.btn {
  border: none; border-radius: 14px; cursor: pointer;
  font-weight: 800; font-family: inherit; color: inherit;
}
.btn.mega {
  width: 100%; margin-top: 14px; padding: 15px 14px;
  background: linear-gradient(135deg, #ffe566, var(--gold) 40%, var(--neon));
  color: #0a0a0a;
  box-shadow: 0 10px 30px rgba(255,215,0,0.28);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 1.02rem;
}
.btn.mega:active { transform: scale(0.98); }
.btn.mega:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.mega small { font-weight: 600; opacity: 0.75; font-size: 0.72rem; }
.btn.mega.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.outline {
  width: 100%; margin-top: 10px; padding: 12px;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  border-radius: 12px;
}
.trust-row {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-size: 0.72rem; color: var(--muted); font-weight: 600;
}

/* Invoice */
.invoice-card {
  border-color: rgba(0,255,156,0.35);
  background: linear-gradient(180deg, rgba(0,255,156,0.08), rgba(14,20,38,0.95));
}
.inv-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.inv-logo {
  width: 52px; height: 52px; border-radius: 14px; object-fit: cover;
  background: #111; box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.inv-ok { font-weight: 800; }
.inv-id { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.inv-amount-box {
  text-align: center; background: rgba(0,0,0,0.28);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 12px; margin-bottom: 12px;
}
.inv-amount-box span { display: block; font-size: 0.78rem; color: var(--muted); }
.inv-amount-box strong {
  display: block; font-size: 1.75rem; font-weight: 800; color: var(--gold); margin-top: 4px;
}
.inv-amount-box em {
  display: block; font-style: normal; color: var(--muted); font-size: 0.85rem; margin-top: 4px;
}
.inv-card-box, .inv-link-box {
  border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.inv-card-box {
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(0,255,156,0.08));
  border: 1px solid rgba(255,215,0,0.3);
}
.inv-link-box {
  background: linear-gradient(135deg, rgba(77,163,255,0.12), rgba(0,255,156,0.08));
  border: 1px solid rgba(77,163,255,0.3); text-align: center;
}
.inv-label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em;
  color: var(--gold); margin-bottom: 8px;
}
.inv-card-row { display: flex; align-items: center; gap: 8px; }
.inv-card-row code {
  flex: 1; font-family: ui-monospace, Menlo, monospace;
  font-size: 1.05rem; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; background: rgba(0,0,0,0.35);
  padding: 12px 10px; border-radius: 12px; word-break: break-all;
}
.copy-btn {
  border: none; border-radius: 12px; padding: 12px 14px;
  font-weight: 800; font-size: 0.85rem; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--neon));
  color: #0a0a0a; white-space: nowrap;
}
.copy-btn.copied { background: #21A038; color: #fff; }
.inv-holder { margin-top: 10px; font-size: 0.9rem; font-weight: 700; }
.inv-warn {
  background: rgba(255,107,129,0.12); border: 1px solid rgba(255,107,129,0.35);
  color: #ffb3c0; border-radius: 14px; padding: 12px; font-size: 0.88rem; margin-bottom: 12px;
}
.inv-link-hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }
.pay-link-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 15px; border-radius: 14px;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  color: #0a0a0a !important;
  background: linear-gradient(135deg, var(--gold), var(--neon));
  box-shadow: 0 8px 24px rgba(255,215,0,0.28);
}
.inv-link-url {
  margin-top: 10px; font-size: 0.7rem; color: var(--muted);
  word-break: break-all; opacity: 0.75;
}
.inv-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.inv-steps div {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: #c9d4ea;
  background: rgba(0,0,0,0.18); border-radius: 12px; padding: 10px 12px;
}
.inv-steps span {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  background: var(--gold); color: #0a0a0a; flex-shrink: 0;
}
.inv-steps b { color: #fff; }

.tickets { color: var(--muted); font-size: 0.9rem; }
.ticket-item {
  background: rgba(0,0,0,0.22); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin-bottom: 8px;
}
.ticket-item strong { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.03em; }
.ticket-item .meta { font-size: 0.78rem; margin-top: 4px; }

.feed-card .online { font-size: 0.72rem; color: var(--neon); font-weight: 700; }
.feed { max-height: 260px; overflow: hidden; }
.feed-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  animation: fadeUp 0.4s ease both;
}
.feed-item:last-child { border-bottom: none; }
.feed-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.8rem;
  color: #fff; flex-shrink: 0;
}
.feed-body { flex: 1; min-width: 0; }
.feed-body b { font-size: 0.88rem; }
.feed-body span { display: block; font-size: 0.75rem; color: var(--muted); }
.feed-qty {
  font-size: 0.75rem; font-weight: 800; color: var(--gold);
  background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.25);
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}

.admin-card { border-color: rgba(255,215,0,0.3); }
.admin-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;
}
.admin-stats .as {
  background: rgba(0,0,0,0.25); border-radius: 12px; padding: 10px;
  border: 1px solid var(--line);
}
.admin-stats .as span { display: block; font-size: 0.7rem; color: var(--muted); }
.admin-stats .as b { color: var(--gold); font-size: 1.05rem; }
.admin-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem;
}
.admin-row:last-child { border-bottom: none; }
.admin-row .ar-btns { display: flex; gap: 6px; }
.admin-row button {
  border: none; border-radius: 10px; padding: 6px 10px; font-weight: 700; cursor: pointer;
}
.admin-row .ok { background: rgba(0,255,156,0.18); color: var(--neon); }
.admin-row .no { background: rgba(255,93,143,0.18); color: var(--pink); }

.footer {
  text-align: center; padding: 18px 8px 8px;
  color: var(--muted); font-size: 0.75rem;
}
.copy { margin-top: 4px; opacity: 0.7; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px calc(12px + var(--safe-b));
  background: rgba(5, 7, 15, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  max-width: var(--max); margin: 0 auto;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
}
.sticky-info { flex: 1; }
.sticky-info strong { display: block; font-size: 1.05rem; color: var(--gold); }
.sticky-info span { font-size: 0.75rem; color: var(--muted); }
.sticky-btn {
  background: linear-gradient(135deg, var(--gold), var(--neon));
  color: #0a0a0a; padding: 12px 18px; border-radius: 12px; font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(255,215,0,0.28); border: none; font-weight: 800;
}
.sticky-btn:disabled { opacity: 0.5; }

.msg {
  position: fixed; left: 50%; bottom: calc(90px + var(--safe-b));
  transform: translateX(-50%); z-index: 60;
  max-width: min(var(--max), calc(100% - 24px));
  background: rgba(12, 18, 32, 0.96);
  border: 1px solid rgba(255,215,0,0.35);
  color: var(--text); padding: 12px 16px; border-radius: 14px;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  animation: fadeUp 0.25s ease;
}
.msg.err { border-color: rgba(255,107,129,0.5); color: #ffb3c0; }
.msg.ok { border-color: rgba(0,255,156,0.4); }

/* Reviews (social proof) */
.comments { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow: auto; }
.cmt {
  display: flex; gap: 10px; padding: 12px; border-radius: 14px;
  background: rgba(0,0,0,0.28); border: 1px solid var(--line);
  animation: cmtIn 0.35s ease;
}
.cmt-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 0.85rem;
}
.cmt-body { min-width: 0; flex: 1; }
.cmt-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.cmt-top b { font-size: 0.9rem; }
.cmt-stars { color: var(--gold); font-size: 0.75rem; letter-spacing: 1px; }
.cmt-text { font-size: 0.86rem; line-height: 1.45; color: var(--text); }
.cmt-meta { font-size: 0.7rem; color: var(--muted); margin-top: 6px; }
.cmt-badge {
  font-size: 0.65rem; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: rgba(0, 255, 156, 0.12); color: #00ff9c; border: 1px solid rgba(0, 255, 156, 0.25);
}
.cmt-badge-soft {
  background: rgba(255, 255, 255, 0.06); color: #9aa6c0; border-color: rgba(255, 255, 255, 0.12);
}
@keyframes cmtIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.error-box {
  text-align: center; padding: 40px 16px; color: var(--danger); font-weight: 700;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0,255,156,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(0,255,156,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,156,0); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
