/* Skrepka mini app — yorqin mavzu. admin-kit.css ustiga yuklanadi (admin panel o'z ko'rinishida qoladi). */
:root {
  --brand: #e53935; --brand2: #ff7a45; --gold: #ffb300; --violet: #8e24aa;
  --accent: #e53935; --success: #22a35a;
  --grad: linear-gradient(135deg, var(--brand), var(--brand2));
  --grad-hot: linear-gradient(135deg, var(--gold), var(--brand), var(--violet));
  --radius: 16px;
  --shadow: 0 2px 12px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .05);
  --skel: rgba(0, 0, 0, .07); --skel-hi: rgba(0, 0, 0, .025);
  --pattern-opacity: .07;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%232b3440' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(18 14) rotate(-20 16 16)'%3E%3Cpath d='M12 6v17a5 5 0 0 0 10 0V8a3.5 3.5 0 0 0-7 0v14a1.8 1.8 0 0 0 3.6 0V9' stroke='%23e53935' stroke-width='2.4'/%3E%3C/g%3E%3Cg transform='translate(100 10) rotate(8 16 16)'%3E%3Cpath d='M4 15 16 5l12 10M7 13v14h18V13M13 27v-7h6v7'/%3E%3C/g%3E%3Cg transform='translate(62 82)'%3E%3Cpath d='M26 12A11 11 0 0 0 7 9.5M6 20a11 11 0 0 0 19 2.5'/%3E%3Cpath d='M6 4v6h6M26 28v-6h-6'/%3E%3C/g%3E%3Cg transform='translate(158 70) rotate(30 16 16) scale(.9)'%3E%3Ccircle cx='9' cy='9' r='5'/%3E%3Cpath d='M12.6 12.6 27 27M22 22l3-3M25.5 25.5l3-3'/%3E%3C/g%3E%3Cg transform='translate(122 128) rotate(25 16 16) scale(.9)'%3E%3Cpath d='M12 6v17a5 5 0 0 0 10 0V8a3.5 3.5 0 0 0-7 0v14a1.8 1.8 0 0 0 3.6 0V9' stroke='%23e53935' stroke-width='2.4'/%3E%3C/g%3E%3Cg transform='translate(14 138) rotate(-10 16 16) scale(.85)'%3E%3Cpath d='M16 4l3.6 7.6 8.4 1-6.2 5.7 1.7 8.2L16 22.4 8.5 26.5l1.7-8.2L4 12.6l8.4-1z'/%3E%3C/g%3E%3Cg transform='translate(158 150) rotate(-12 16 16) scale(.8)'%3E%3Cpath d='M4 15 16 5l12 10M7 13v14h18V13M13 27v-7h6v7'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%232b3440'%3E%3Ccircle cx='80' cy='50' r='1.3'/%3E%3Ccircle cx='150' cy='112' r='1.3'/%3E%3Ccircle cx='50' cy='186' r='1.3'/%3E%3Ccircle cx='186' cy='40' r='1.3'/%3E%3Ccircle cx='96' cy='170' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme=dark] {
  --accent: #ff5a52; --brand: #ef4b45;
  --shadow: 0 4px 18px rgba(0, 0, 0, .45);
  --skel: rgba(255, 255, 255, .07); --skel-hi: rgba(255, 255, 255, .14);
  --pattern-opacity: .06;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23e6edf3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(18 14) rotate(-20 16 16)'%3E%3Cpath d='M12 6v17a5 5 0 0 0 10 0V8a3.5 3.5 0 0 0-7 0v14a1.8 1.8 0 0 0 3.6 0V9' stroke='%23e53935' stroke-width='2.4'/%3E%3C/g%3E%3Cg transform='translate(100 10) rotate(8 16 16)'%3E%3Cpath d='M4 15 16 5l12 10M7 13v14h18V13M13 27v-7h6v7'/%3E%3C/g%3E%3Cg transform='translate(62 82)'%3E%3Cpath d='M26 12A11 11 0 0 0 7 9.5M6 20a11 11 0 0 0 19 2.5'/%3E%3Cpath d='M6 4v6h6M26 28v-6h-6'/%3E%3C/g%3E%3Cg transform='translate(158 70) rotate(30 16 16) scale(.9)'%3E%3Ccircle cx='9' cy='9' r='5'/%3E%3Cpath d='M12.6 12.6 27 27M22 22l3-3M25.5 25.5l3-3'/%3E%3C/g%3E%3Cg transform='translate(122 128) rotate(25 16 16) scale(.9)'%3E%3Cpath d='M12 6v17a5 5 0 0 0 10 0V8a3.5 3.5 0 0 0-7 0v14a1.8 1.8 0 0 0 3.6 0V9' stroke='%23e53935' stroke-width='2.4'/%3E%3C/g%3E%3Cg transform='translate(14 138) rotate(-10 16 16) scale(.85)'%3E%3Cpath d='M16 4l3.6 7.6 8.4 1-6.2 5.7 1.7 8.2L16 22.4 8.5 26.5l1.7-8.2L4 12.6l8.4-1z'/%3E%3C/g%3E%3Cg transform='translate(158 150) rotate(-12 16 16) scale(.8)'%3E%3Cpath d='M4 15 16 5l12 10M7 13v14h18V13M13 27v-7h6v7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body { background: var(--bg2); -webkit-font-smoothing: antialiased; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); overscroll-behavior-y: none; }
body.lock { overflow: hidden; }

/* ───────── Fon naqshi (Telegram chat uslubi, sekin siljiydi) ───────── */
#pattern {
  position: fixed; left: 0; right: 0; top: -220px; bottom: -220px; z-index: 0; pointer-events: none;
  background-image: var(--pattern); background-size: 200px 200px; opacity: var(--pattern-opacity); will-change: transform;
}
#app, #boot { position: relative; z-index: 1; }

/* ───────── Sarlavha + jonli lenta ───────── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 9px; padding: 10px 12px 6px; }
.logo-tile { width: 38px; height: 38px; border-radius: 12px; flex: none; box-shadow: 0 4px 12px rgba(229, 57, 53, .35); display: block; }
.brand { display: flex; flex-direction: column; line-height: 1.15; flex: 1; min-width: 0; }
.brand b { font-size: 17px; letter-spacing: -.2px; }
.brand small { color: var(--fg2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--brand); background: rgba(229, 57, 53, .1); padding: 4px 8px; border-radius: 20px; flex: none; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); } 70% { box-shadow: 0 0 0 7px rgba(229, 57, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); } }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg2); font-size: 15px; cursor: pointer; flex: none; }
.bal-chip { display: flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 20px; border: 0; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; flex: none; box-shadow: 0 3px 10px rgba(229, 57, 53, .3); }
.bal-chip:active { transform: scale(.96); }
.ticker { overflow: hidden; height: 30px; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: inline-flex; align-items: center; white-space: nowrap; gap: 14px; padding-left: 14px; animation: marquee var(--dur, 60s) linear infinite; font-size: 13px; color: var(--fg2); }
.ticker-track b { color: var(--fg); font-weight: 600; }
.ticker-track .dot { color: var(--brand); opacity: .6; }
.ticker-track .tk { cursor: default; }
.ticker-track .tk[data-act] { cursor: pointer; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Yangi haqiqiy voqea kelganda yuqoridan tushadigan xabar */
.live-pop {
  position: fixed; left: 12px; right: 12px; top: calc(86px + env(safe-area-inset-top, 0px)); z-index: 25;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--card); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-hot) border-box;
  transform: translateY(-140%); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; pointer-events: none; font-size: 13.5px;
}
.live-pop.show { transform: none; opacity: 1; pointer-events: auto; }
.live-pop .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-size: 17px; flex: none; }
.live-pop small { display: block; color: var(--fg2); font-size: 11.5px; }

/* ───────── Sahifalar ───────── */
.tab { padding: 12px; }
.tab.active { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#banner { padding: 12px 12px 0 !important; position: relative; z-index: 1; }

.search { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: var(--radius); padding: 0 12px; box-shadow: var(--shadow); margin-bottom: 8px; }
.search svg { width: 18px; height: 18px; color: var(--fg2); flex: none; }
.search input { flex: 1; border: 0; background: none; outline: 0; padding: 12px 0; min-width: 0; font: inherit; color: inherit; }
.sel { width: 100%; appearance: none; -webkit-appearance: none; background-color: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 30px 10px 12px; outline: 0; box-shadow: var(--shadow); font: inherit; color: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a919c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -12px; padding: 2px 12px; flex-wrap: nowrap; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; margin: 0 0 12px; padding: 0; overflow: visible; }
.chip { flex: none; border: 1px solid var(--border); background: var(--card); border-radius: 20px; padding: 7px 13px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; color: var(--fg); font-family: inherit; transition: transform .1s; }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(229, 57, 53, .3); }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 10px; font-size: 13px; font-weight: 700; }
.feed-head span:last-child { color: var(--fg2); font-weight: 500; font-size: 12.5px; }

/* ───────── Lenta kartochkalari ───────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-flow: dense; }
.tile { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; cursor: pointer; min-width: 0; transition: transform .15s ease; animation: pop .35s both; }
.tile:active { transform: scale(.97); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.tile-pic { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #f6d365, #fda085); overflow: hidden; }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-body { padding: 8px 10px 10px; }
.tile-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-price { color: var(--accent); font-weight: 800; font-size: 14.5px; margin-top: 1px; }
.tile-sub { color: var(--fg2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tile.mine { outline: none; }
.tag { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 20px; z-index: 1; }
.tag.hot { background: linear-gradient(135deg, var(--gold), var(--brand)); color: #fff; box-shadow: 0 3px 10px rgba(229, 57, 53, .35); }
.tag.own { background: #2481cc; color: #fff; left: auto; right: 8px; }
.chainbadge { position: absolute; bottom: 8px; left: 8px; z-index: 1; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* Qimmat yoki uzoq yo'l bosgan buyum — ikki ustunga cho'ziladi */
.tile.hi { grid-column: span 2; border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-hot) border-box; }
.tile.hi .tile-pic { aspect-ratio: 16 / 9; }
.tile.hi .tile-title { font-size: 16px; }
.tile.hi .tile-price { font-size: 17px; }

.skel { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sk { background: linear-gradient(90deg, var(--skel) 25%, var(--skel-hi) 37%, var(--skel) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px; }
.skel .sk.img { aspect-ratio: 1 / 1; border-radius: 0; }
.skel .ln { height: 11px; margin: 9px 10px 0; }
.skel .ln.s { width: 55%; margin-bottom: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty-icon { font-size: 46px; }

/* ───────── Umumiy bloklar ───────── */
.card { border: 0; box-shadow: var(--shadow); border-radius: var(--radius); }
.stat-card { border: 0; box-shadow: var(--shadow); border-radius: var(--radius); }
.btn { border-radius: 12px; transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.97); opacity: 1; }
.btn-primary { background: var(--grad); box-shadow: 0 6px 16px rgba(229, 57, 53, .32); }
.btn-secondary { background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn-success { background: linear-gradient(135deg, #22a35a, #43c77a); box-shadow: 0 6px 16px rgba(34, 163, 90, .3); }
.form-input { background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 12px; }
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(229, 57, 53, .16); }
.form-label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--fg); font-weight: 600; margin-left: 2px; }
.sec-title { font-size: 13px; }
.sub-tabs { background: var(--card); box-shadow: var(--shadow); border-radius: 14px; padding: 4px; }
.sub-tab { border-radius: 10px; font-size: 12.5px; transition: background .15s, color .15s; }
.sub-tab.active { background: var(--grad); color: #fff; box-shadow: 0 3px 10px rgba(229, 57, 53, .3); }
.alert { border-radius: 14px; }
.badge.active, .badge.confirmed { background: rgba(34, 163, 90, .14); color: var(--success); }
.badge.pending { background: rgba(255, 179, 0, .18); color: #a86b00; }
:root[data-theme=dark] .badge.pending { color: #ffca55; }

.thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: linear-gradient(135deg, #f6d365, #fda085); flex-shrink: 0; }
.swap { display: flex; align-items: center; gap: 8px; }
.swap-side { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; }
.swap-arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; box-shadow: 0 3px 8px rgba(229, 57, 53, .3); }
.swap-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap-p { font-size: 12px; color: var(--fg2); }
.swap-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--fg2); font-weight: 700; }

.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 88%; flex-shrink: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; scroll-snap-align: center; background: linear-gradient(135deg, #f6d365, #fda085); box-shadow: var(--shadow); }
.gallery img:only-child { width: 100%; }
.big-price { font-size: 24px; font-weight: 800; color: var(--accent); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--fg2); }
.kv b { text-align: right; }
.prose { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.muted { color: var(--fg2); font-size: 13px; }
.growth { display: inline-block; padding: 3px 10px; border-radius: 20px; background: rgba(34, 163, 90, .14); color: var(--success); font-weight: 800; font-size: 13px; }

/* Zanjir: rangli chiziqli vaqt o'qi */
.steps { position: relative; padding-left: 6px; }
.step { display: flex; gap: 12px; align-items: center; padding: 8px 0; position: relative; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; box-shadow: 0 0 0 3px var(--card); }
.step:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 40px; bottom: -14px; width: 2px; border-radius: 2px; background: linear-gradient(var(--brand), var(--brand2)); }
.step:last-child .step-n { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px rgba(229, 57, 53, .22); }

.photo-row { display: flex; gap: 8px; }
.photo-slot { width: 88px; height: 88px; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--fg2) 45%, transparent); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--fg2); position: relative; overflow: hidden; cursor: pointer; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; cursor: pointer; }
.pick { display: flex; gap: 10px; align-items: center; padding: 10px; border: 2px solid transparent; border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: var(--card); box-shadow: var(--shadow); transition: border-color .15s, transform .1s; }
.pick:active { transform: scale(.98); }
.pick.on { border-color: var(--brand); }
.stars { display: flex; gap: 6px; justify-content: center; font-size: 34px; margin: 6px 0 12px; }
.stars span { cursor: pointer; opacity: .3; transition: transform .1s; }
.stars span.on { opacity: 1; transform: scale(1.12); }
.pay-amount { font-size: 30px; font-weight: 800; text-align: center; letter-spacing: -.5px; color: var(--accent); }
.card-num { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
textarea.form-input { min-height: 84px; resize: vertical; }
.rules p { font-size: 14px; margin-bottom: 10px; }
.rules b { display: block; margin-bottom: 2px; }

/* ───────── Profil ───────── */
.p-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.ava { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: #fff; flex: none; background: linear-gradient(135deg, #5b8def, var(--violet)); box-shadow: var(--shadow); }
.p-name { font-size: 19px; font-weight: 800; }
.pills { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.pills span { font-size: 12px; background: var(--card); padding: 4px 9px; border-radius: 20px; box-shadow: var(--shadow); }
.wallet-card { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(229, 57, 53, .32); cursor: pointer; position: relative; overflow: hidden; }
.wallet-card::after { content: ''; position: absolute; right: -40px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.wallet-card .big-price, .wallet-card .card-sub { color: #fff; }
.wallet-card .card-sub { opacity: .9; }
.wallet-card .go { background: #fff; color: var(--brand); border-radius: 20px; padding: 8px 14px; font-weight: 800; font-size: 13px; position: relative; z-index: 1; }

.dream { position: relative; overflow: hidden; }
.dream::after { content: '🌟'; position: absolute; right: -8px; top: -14px; font-size: 70px; opacity: .12; transform: rotate(15deg); }
.dream-h { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 800; color: var(--fg2); text-transform: uppercase; letter-spacing: .4px; position: relative; z-index: 1; }
.dream-h button { border: 0; background: none; color: #2481cc; font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 0; }
.dream-title { font-size: 20px; font-weight: 800; margin-top: 6px; }
.progress { height: 16px; background: var(--skel); border-radius: 10px; overflow: hidden; margin: 12px 0 6px; position: relative; }
.progress > i { display: block; height: 100%; width: 0; border-radius: inherit; position: relative; overflow: hidden; background: linear-gradient(90deg, #e53935, #ff7a45, #ffc107); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.progress > i::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px); animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 22.6px 0; } }
.pct-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.pct-row b { font-size: 26px; color: var(--accent); }
.pct-row span { font-size: 12.5px; color: var(--fg2); text-align: right; }
.motive { margin: 8px 0 0; font-size: 13.5px; }

/* Do'st taklif qilish kartasi */
.invite { background: linear-gradient(135deg, var(--violet), var(--brand) 55%, var(--gold)); color: #fff; box-shadow: 0 8px 22px rgba(142, 36, 170, .28); position: relative; overflow: hidden; }
.invite::before { content: '🎁'; position: absolute; right: -6px; top: -18px; font-size: 84px; opacity: .18; transform: rotate(14deg); }
.invite .card-title, .invite .card-sub { color: #fff; position: relative; }
.invite .card-sub { opacity: .95; }
.invite .kv { border-color: rgba(255, 255, 255, .3); }
.invite .kv span:first-child, .invite .kv b { color: #fff; }
.invite .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.invite .btn-secondary { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; box-shadow: none; }

/* ───────── Pastki menyu ───────── */
/* Aniq o'lchamlar: panel 64px, har bir tugma 1/5 kenglik, ikonka 24×24, yozuv 11/14px, markaziy tugma 52×52 */
.bottom-nav {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch;
  height: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 0 4px env(safe-area-inset-bottom, 0px);
  background: var(--bg); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(16, 24, 40, .06);
}
.nav-btn {
  position: relative; overflow: visible; min-width: 0; height: 64px; padding: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: none; border: 0; color: var(--fg2); font-family: inherit; cursor: pointer; white-space: normal;
  transition: color .15s;
}
.nav-icon { position: relative; display: block; width: 24px; height: 24px; flex: none; font-size: 0; line-height: 0; transition: transform .15s; }
.nav-icon svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-lbl { display: block; flex: none; max-width: 100%; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-btn.active { color: var(--brand); }
.nav-btn.active .nav-icon svg { stroke-width: 2.2; }
.nav-btn.active .nav-lbl { font-weight: 700; }
.nav-btn:not(.nav-add):active .nav-icon { transform: scale(.9); }
/* Faol bo'lim ustidagi ingichka belgi */
.nav-btn.active::before { content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--grad); }
.nav-dot {
  position: absolute; top: -6px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; line-height: 14px; text-align: center;
  border: 2px solid var(--bg);
}
/* Markaziy «E'lon» tugmasi: 52×52, paneldan 18px yuqoriga chiqib turadi; yozuvi boshqalar bilan bir chiziqda */
.nav-add { justify-content: flex-end; padding-bottom: 11px; gap: 4px; }
.nav-add .nav-icon {
  width: 52px; height: 52px; margin: 0; border-radius: 17px; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(229, 57, 53, .4), 0 0 0 4px var(--bg);
}
.nav-add .nav-icon svg { width: 26px; height: 26px; stroke-width: 2.4; }
.nav-add:active .nav-icon { transform: scale(.92); }

/* ───────── Pastdan chiqadigan oyna ───────── */
.modal-backdrop { background: rgba(0, 0, 0, .45); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-sheet { background: var(--bg2); border-radius: 22px 22px 0 0; max-height: 92vh; animation: ak-slide-up .32s cubic-bezier(.2, .8, .2, 1); }
.modal-drag { width: 38px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--fg2) 50%, transparent); }
.modal-title { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }

.toast { border-radius: 12px; background: rgba(20, 24, 30, .92); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.confetti { position: fixed; bottom: 30vh; font-size: 24px; z-index: 300; pointer-events: none; animation: conf 1.2s ease-out forwards; }
@keyframes conf { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--x), -48vh) rotate(var(--r)) scale(1.15); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tab, #banner { max-width: 820px; margin: 0 auto; } }
