@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 900; font-display: swap; src: url(../fonts/montserrat-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-weight: 900; font-display: swap; src: url(../fonts/montserrat-latin-ext-900-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #151a2e; --navy: #121a3a; --panel: rgba(18, 24, 52, 0.86); --panel2: rgba(30, 38, 76, 0.92);
  --line: rgba(255, 255, 255, 0.12); --text: #f4f1ff; --mute: #b9bddb; --gold: #f2b51d; --gold2: #ffd25a;
  --teal: #3ff0ff; --pink: #ff5c8a; --ok: #39d98a; --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; background: #121a3a; color: var(--text); font-family: Montserrat, system-ui, -apple-system, Segoe UI, sans-serif; font-weight: 600; }
button, input { font: inherit; color: inherit; }
input, textarea, .msg, .special { -webkit-user-select: text; user-select: text; }
button { cursor: pointer; border: 0; background: none; }
#city, #labels { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
#labels { pointer-events: none; }
[hidden] { display: none !important; }

.loader { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(ellipse at 50% 70%, #f49b86 0%, #59478a 40%, #1a2050 80%); z-index: 50; font-weight: 800; letter-spacing: .04em; transition: opacity .6s; }
.loader.out { opacity: 0; pointer-events: none; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: var(--gold); animation: sp 0.9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ── yuqori panel ── */
.top { position: fixed; left: 0; right: 0; top: 0; padding: calc(12px + var(--safe-t)) 14px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; z-index: 5; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 900; font-size: 13px; letter-spacing: .05em; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.star { width: 14px; height: 14px; background: var(--teal); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 6px var(--teal)); }
.pop { padding: 7px 14px 8px; border-radius: 14px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center; min-width: 84px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pop small { display: block; font-size: 10px; letter-spacing: .12em; color: var(--gold); font-weight: 900; }
.pop b { font-size: 24px; font-weight: 900; line-height: 1.05; }
.here { margin: 4px auto 0; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--panel); backdrop-filter: blur(10px); font-weight: 800; font-size: 12px; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.here i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px currentColor; }
.sample { position: fixed; top: calc(58px + var(--safe-t)); left: 14px; padding: 4px 10px; border-radius: 6px; background: rgba(242,181,29,.92); color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .06em; z-index: 4; pointer-events: none; }

/* ── boshqaruv tugmalari ── */
.ctl { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.ctl button { width: 46px; height: 46px; border-radius: 14px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 22px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s, background .2s; }
.ctl button:active { transform: scale(.93); }
.ctl button.on { background: var(--gold); color: var(--ink); }
.ctl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl .build { height: auto; padding: 8px 0 7px; background: linear-gradient(160deg, #ffd25a, #f2a91d); color: var(--ink); gap: 2px; }
.ctl .build span { font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.ctl #vote b { font-weight: 900; }

/* ── qidiruv ── */
.search { position: fixed; left: 50%; bottom: calc(16px + var(--safe-b) + var(--kb, 0px)); transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); display: flex; gap: 6px; padding: 6px; border-radius: 18px; background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 6; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: rgba(255,255,255,.08); border-radius: 13px; padding: 12px 14px; font-weight: 700; font-size: 16px; }
.search > button { padding: 0 20px; border-radius: 13px; background: var(--gold); color: var(--ink); font-weight: 900; }
.sugg { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--panel2); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.35); max-height: 46vh; overflow: auto; }
.sugg li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 800; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sugg li:hover, .sugg li.act { background: rgba(255,255,255,.08); }
.sugg small { color: var(--mute); font-weight: 600; font-size: 12px; text-align: right; }
body.card-open .search, body.shopping .search { display: none; }

/* ── xush kelibsiz ── */
.welcome { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: end center; padding: 16px 12px calc(16px + var(--safe-b)); background: linear-gradient(180deg, rgba(18,26,58,0) 30%, rgba(18,26,58,.55) 70%, rgba(18,26,58,.8)); z-index: 8; transition: opacity .45s, transform .45s; }
.welcome.out { opacity: 0; transform: translateY(30px); pointer-events: none; }
.wcard { width: min(500px, 100%); padding: 22px 20px 16px; border-radius: 26px; background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.45); border: 1px solid var(--line); }
.kicker { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.wcard h1 { margin: 10px 0 6px; font-weight: 900; font-size: clamp(26px, 6.4vw, 34px); line-height: 1.05; letter-spacing: -.01em; }
.wcard p { margin: 0 0 14px; color: var(--mute); font-size: 14px; line-height: 1.45; }
#wform { display: flex; gap: 8px; }
#wform input, .mcard input:not([type=radio]) { flex: 1; min-width: 0; border: 1px solid var(--line); outline: 0; background: rgba(255,255,255,.08); border-radius: 14px; padding: 13px 14px; font-weight: 700; font-size: 16px; }
#wform input:focus, .mcard input:focus { border-color: var(--gold); }
.primary { padding: 13px 18px; border-radius: 14px; background: linear-gradient(160deg, #ffd25a, #f2a91d); color: var(--ink); font-weight: 900; box-shadow: 0 6px 18px rgba(242,181,29,.35); white-space: nowrap; }
.primary:active { transform: scale(.97); }
.primary.big { width: 100%; padding: 15px; font-size: 16px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.1); font-weight: 800; text-decoration: none; color: var(--text); text-align: center; }
.wjoin, .bigcta { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(63,240,255,.18), rgba(138,108,255,.22)); border: 1px solid rgba(63,240,255,.35); text-align: left; }
.wjoin .ic, .bigcta .ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); color: var(--ink); font-weight: 900; font-size: 22px; }
.wjoin .tx, .bigcta .tx { flex: 1; display: flex; flex-direction: column; }
.wjoin b, .bigcta b { font-weight: 900; font-size: 15px; }
.wjoin small, .bigcta small { color: var(--mute); font-size: 12px; }
.wjoin .go, .bigcta .go { font-size: 26px; font-weight: 900; opacity: .8; }
.bigcta { background: linear-gradient(135deg, rgba(242,181,29,.22), rgba(255,92,138,.2)); border-color: rgba(242,181,29,.45); }
.bigcta .ic { background: var(--gold); }
.bigcta .ic::before { content: ''; width: 20px; height: 20px; background: var(--ink); clip-path: polygon(35% 100%, 35% 30%, 50% 0, 65% 30%, 65% 100%, 100% 100%, 100% 100%, 0 100%); }
.wbuild { margin-top: 8px; width: 100%; padding: 10px; border-radius: 14px; color: var(--gold2); font-weight: 800; font-size: 13px; background: rgba(242,181,29,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips button { padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; border: 1px solid var(--line); }
.chips button:hover { background: rgba(255,255,255,.14); }
.link { display: block; margin: 12px auto 0; color: var(--mute); text-decoration: underline; font-weight: 700; font-size: 13px; }
.wpop { margin-top: 8px; text-align: center; color: var(--mute); font-size: 12px; }
.wpop b { color: var(--gold2); }

/* ── kartochka / list ── */
.sheet { position: fixed; left: 50%; bottom: var(--kb, 0px); transform: translateX(-50%); width: min(560px, 100vw); max-height: 62vh; max-height: 62dvh; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transition: transform .28s cubic-bezier(.2,.8,.2,1), max-height .28s ease; padding: 18px 18px calc(18px + var(--safe-b)); border-radius: 24px 24px 0 0; background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 -10px 40px rgba(0,0,0,.4); border: 1px solid var(--line); border-bottom: 0; z-index: 7; animation: up .3s ease; }
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } }
/* yon panel rejimi (kompyuter yoki yotiq telefon) — body.side ni JS qo'yadi */
body.side .sheet { left: auto; right: 72px; top: 84px; bottom: auto; transform: none !important; width: 400px; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); border-radius: 24px; border-bottom: 1px solid var(--line); animation: side .3s ease; }
body.side .sheet.shop { right: auto; left: 16px; width: 420px; }
body.side .grab { display: none; }
@keyframes side { from { transform: translateX(20px); opacity: 0; } }
/* pastki list: tutqich, yig'ilgan va to'liq holatlar */
.grab { position: sticky; top: -18px; z-index: 2; height: 26px; margin: -18px -18px -8px; touch-action: none; cursor: grab; }
.grab::before { content: ''; position: absolute; left: 50%; top: 8px; width: 42px; height: 5px; margin-left: -21px; border-radius: 99px; background: rgba(255,255,255,.28); }
body:not(.side) .sheet.peek { transform: translate(-50%, calc(100% - 118px)); overflow: hidden; touch-action: none; }
body:not(.side) .sheet.full { max-height: calc(100dvh - 72px - var(--safe-t) - var(--kb, 0px)); }
.x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 22px; line-height: 1; }
.nick { font-weight: 900; font-size: 22px; display: flex; align-items: center; gap: 8px; padding-right: 40px; word-break: break-all; }
.nick .dot { flex: none; width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.star-badge { padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 900; }
.vtag { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; color: var(--ink); }
.addr { margin-top: 8px; color: var(--gold2); font-weight: 800; }
.meta { margin-top: 4px; color: var(--mute); font-size: 13px; }
.special { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(63,240,255,.1); border: 1px solid rgba(63,240,255,.25); font-size: 13px; line-height: 1.45; }
.special.paid { background: rgba(242,181,29,.12); border-color: rgba(242,181,29,.35); }
.warn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,92,138,.12); border: 1px solid rgba(255,92,138,.3); font-size: 13px; line-height: 1.45; }
.nb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.nb button { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb button small { color: var(--mute); font-size: 11px; }
.nb button span { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb button:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 8px; margin-top: 12px; }
.row > * { flex: 1; }
.lvl { margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); }
.lvl h3 { margin: 0 0 8px; font-size: 14px; font-weight: 900; }
.lvl p { margin: 8px 0; color: var(--mute); font-size: 12px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 33%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--pink)); transition: width .6s; }
.ghost h2, .mcard h2 { margin: 0 0 8px; font-weight: 900; font-size: 22px; padding-right: 40px; }
.ghost p { color: var(--mute); line-height: 1.45; font-size: 14px; margin: 0 0 8px; }
.ghost .grow .btn { flex-direction: column; gap: 2px; }
.ghost .grow small { font-weight: 600; font-size: 11px; color: var(--mute); }

/* ── modallar ── */
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8,10,30,.55); backdrop-filter: blur(4px); z-index: 20; }
.mcard { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 20px; border-radius: 24px; background: var(--panel2); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: pop .25s ease; }
.mcard.wide { width: min(720px, 100%); }
@keyframes pop { from { transform: scale(.95); opacity: 0; } }
.mcard p { color: var(--mute); line-height: 1.45; font-size: 14px; }
.mcard .lbl { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--gold2); }
.mcard #jnick { width: 100%; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.vgrid button { display: flex; align-items: center; gap: 6px; padding: 8px 7px; border-radius: 11px; background: rgba(255,255,255,.06); border: 2px solid transparent; font-weight: 800; font-size: 12px; text-align: left; min-width: 0; }
.vgrid button i { flex: none; width: 12px; height: 12px; border-radius: 4px; }
.vgrid button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vgrid button.on { border-color: var(--gold); background: rgba(242,181,29,.16); }
.mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.mlist button { position: relative; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); text-align: left; overflow: hidden; border: 1px solid var(--line); }
.mlist button::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.mlist b { display: block; font-weight: 900; font-size: 14px; }
.mlist small { color: var(--mute); font-size: 12px; }
.mlist .lm { position: absolute; right: 10px; top: 10px; font-size: 18px; opacity: .8; }
.mlist .mine { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 900; }
#vform { display: grid; gap: 8px; }
#vform label { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-weight: 800; overflow: hidden; }
#vform label i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); width: 0; transition: width .6s; }
#vform label i::after { content: attr(data-n); position: absolute; right: -2px; bottom: 6px; transform: translateX(100%); font-style: normal; font-size: 11px; color: var(--mute); }
#vform #vother { flex: 1; padding: 6px 10px !important; font-size: 14px !important; }
.msg { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(57,217,138,.14); border: 1px solid rgba(57,217,138,.35); font-size: 14px; line-height: 1.45; }
.msg.err { background: rgba(255,92,138,.14); border-color: rgba(255,92,138,.35); }
.story img { display: block; width: 100%; max-height: 64vh; object-fit: contain; border-radius: 14px; background: #000; }
.payres .conf { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pcard { text-align: center; }
.pcard .big-ic { font-size: 54px; line-height: 1; margin: 4px 0 10px; }
.toast { position: fixed; left: 50%; top: calc(80px + var(--safe-t)); transform: translateX(-50%); padding: 11px 16px; border-radius: 14px; background: var(--panel2); font-weight: 800; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center; animation: pop .2s ease; }

/* ── do'kon ── */
.shop h2 { margin: 0 0 4px; font-weight: 900; font-size: 22px; padding-right: 40px; }
.shop .sub { color: var(--mute); font-size: 13px; margin: 0 0 12px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kinds button { padding: 10px 4px 8px; border-radius: 14px; background: rgba(255,255,255,.06); border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: 11px; }
.kinds button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kinds button em { font-style: normal; color: var(--gold2); font-size: 10px; }
.kinds button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.opt { margin-top: 14px; }
.opt h4 { margin: 0 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--gold2); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 8px 11px; border-radius: 10px; background: rgba(255,255,255,.07); font-weight: 800; font-size: 12px; border: 2px solid transparent; }
.seg button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.sw { display: flex; flex-wrap: wrap; gap: 8px; }
.sw button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); }
.sw button.on { border-color: #fff; box-shadow: 0 0 0 3px var(--gold); }
.floors { display: flex; align-items: center; gap: 12px; }
.floors input[type=range] { flex: 1; accent-color: var(--gold); height: 28px; }
.floors b { min-width: 76px; text-align: right; font-weight: 900; font-size: 18px; }
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.models button { padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.06); text-align: left; font-size: 12px; font-weight: 800; border: 2px solid transparent; }
.models button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.shop input.txt { width: 100%; border: 1px solid var(--line); outline: 0; background: rgba(255,255,255,.08); border-radius: 12px; padding: 11px 12px; font-weight: 700; font-size: 16px; }
.shop input.txt:focus { border-color: var(--gold); }
.where { display: grid; gap: 6px; }
.where button { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 2px solid transparent; text-align: left; font-size: 13px; font-weight: 800; }
.where button small { display: block; color: var(--mute); font-weight: 600; font-size: 11px; }
.where button em { font-style: normal; color: var(--gold2); white-space: nowrap; }
.where button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.where select { width: 100%; margin-top: 6px; padding: 10px; border-radius: 10px; background: #1e264c; color: var(--text); border: 1px solid var(--line); font: inherit; font-weight: 700; }
.total { position: sticky; bottom: calc(-18px - var(--safe-b)); margin: 16px -18px calc(-18px - var(--safe-b)); padding: 14px 18px calc(14px + var(--safe-b)); background: linear-gradient(180deg, rgba(18,24,52,.7), rgba(18,24,52,.98)); display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.total .sum { flex: 1; }
.total .sum small { display: block; color: var(--mute); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.total .sum b { font-size: 22px; font-weight: 900; }
.note { color: var(--mute); font-size: 11px; line-height: 1.4; margin-top: 10px; }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.tiers span { padding: 5px 2px; border-radius: 8px; background: rgba(255,255,255,.05); text-align: center; font-size: 10px; color: var(--mute); }
.tiers span b { display: block; color: var(--text); font-size: 11px; }
.tiers span.on { background: rgba(242,181,29,.18); color: var(--gold2); }

body.intro .ctl, body.intro .top .here, body.intro .here { opacity: 0; pointer-events: none; }
.ctl, .top .here { transition: opacity .4s; }

/* ───────── telefonlar ───────── */
@media (pointer: coarse) {
  #zin, #zout { display: none; }
  .seg button, .models button, .where button { min-height: 40px; }
  .sw button { width: 38px; height: 38px; }
  .chips button { padding: 9px 12px; }
  .nb button { min-height: 52px; }
  .x { width: 40px; height: 40px; }
  .floors input[type=range] { height: 36px; }
}
body:not(.side) .sheet { padding-top: 18px; }
body:not(.side).card-open .here, body:not(.side).shopping .here { display: none; }
body:not(.side).card-open .ctl button:not(#build), body:not(.side).shopping .ctl button:not(#build) { display: none; }
body:not(.side).card-open .ctl, body:not(.side).shopping .ctl { top: calc(84px + var(--safe-t)); transform: none; }
body:not(.side) .modal:not(.payres) { place-items: end center; padding: 0 0 var(--kb, 0px); }
body:not(.side) .modal:not(.payres) .mcard { width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; max-height: calc(100dvh - 40px - var(--safe-t) - var(--kb, 0px)); padding: 22px 16px calc(20px + var(--safe-b)); animation: up2 .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up2 { from { transform: translateY(50px); opacity: 0; } }
@media (max-width: 899px) {
  .welcome { padding: 10px 10px calc(10px + var(--safe-b) + var(--kb, 0px)); }
  .wcard { padding: 18px 16px 12px; border-radius: 22px; max-height: calc(100dvh - 76px - var(--safe-t) - var(--kb, 0px)); overflow: auto; overscroll-behavior: contain; }
  .wcard h1 { font-size: clamp(23px, 7vw, 30px); }
  .wcard p { font-size: 13px; margin-bottom: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
  .top { padding: calc(10px + var(--safe-t)) 10px 0; }
  .ctl { right: max(8px, env(safe-area-inset-right)); gap: 6px; }
  .search { width: calc(100vw - 20px); }
  .sugg { max-height: 40dvh; }
  .total { padding-bottom: calc(14px + var(--safe-b)); }
}
body.kb .wcard p, body.kb .chips, body.kb .wbuild, body.kb .link, body.kb .wpop, body.kb .kicker { display: none; }
body.kb .wcard h1 { font-size: 21px; margin-top: 0; }
@media (max-width: 520px) {
  .here { position: fixed; top: calc(56px + var(--safe-t)); left: 10px; margin: 0; max-width: 62vw; padding: 6px 11px; font-size: 11px; display: flex; }
  .sample { top: calc(64px + var(--safe-t)); left: auto; right: 10px; max-width: 40vw; font-size: 9px; text-align: right; }
  .brand { padding: 8px 12px; font-size: 12px; }
  .pop { padding: 6px 11px 7px; min-width: 72px; }
  .pop b { font-size: 20px; }
  .ctl button { width: 42px; height: 42px; border-radius: 13px; }
  .kinds button { font-size: 10px; padding: 9px 2px 7px; }
  .models { grid-template-columns: 1fr 1fr; }
  .nick { font-size: 20px; }
  .total .sum b { font-size: 19px; }
}
@media (max-width: 360px) {
  #wform { flex-direction: column; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 640px) and (orientation: portrait) {
  .ctl button { width: 38px; height: 38px; font-size: 19px; }
  .ctl svg { width: 19px; height: 19px; }
  .wcard p { display: none; }
}
/* yotiq telefon */
@media (max-height: 520px) and (orientation: landscape) {
  .top { padding: calc(6px + var(--safe-t)) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); }
  .pop b { font-size: 18px; }
  body.side .sheet { top: 56px; right: calc(56px + env(safe-area-inset-right)); width: 340px; max-height: calc(100dvh - 64px - var(--kb, 0px)); padding: 14px 14px 14px; }
  body.side .sheet.shop { left: max(8px, env(safe-area-inset-left)); top: 8px; max-height: calc(100dvh - 16px); }
  .ctl { gap: 4px; right: max(8px, env(safe-area-inset-right)); }
  .ctl button { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
  .ctl svg { width: 18px; height: 18px; }
  .ctl .build span { display: none; }
  .welcome { place-items: center; padding: 8px; }
  .wcard { width: min(620px, 100%); max-height: calc(100dvh - 16px - var(--kb, 0px)); overflow: auto; padding: 16px 18px 10px; }
  .wcard h1 { font-size: 22px; }
  .wcard h1 br { display: none; }
  .search { width: min(420px, calc(100vw - 120px)); bottom: calc(8px + var(--kb, 0px)); }
  .mcard { max-height: calc(100dvh - 16px); }
  .modal { padding: 8px; }
  .story img { max-height: 58dvh; }
  .total { margin: 12px -14px -14px; padding: 10px 14px; bottom: -14px; }
}
body:not(.side).card-open .sample, body:not(.side).shopping .sample { display: none; }
.total .sum b { white-space: nowrap; }
@media (max-width: 360px) { .total .sum b { font-size: 17px; } .total .primary { padding: 12px 14px; } }
.paybtns { display: grid; gap: 10px; margin: 16px 0 6px; }
.paybtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border-radius: 16px; text-decoration: none; color: #fff; font-size: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.paybtn b { font-weight: 900; letter-spacing: .02em; }
.paybtn small { font-weight: 700; opacity: .9; font-size: 13px; }
.paybtn.payme { background: linear-gradient(135deg, #00baba, #1ec8c8); }
.paybtn.click { background: linear-gradient(135deg, #0b63f6, #2f8bff); }
.paybtn:active { transform: scale(.98); }
.lbar { width: 180px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.lbar i { display: block; height: 100%; width: 3%; background: var(--gold); border-radius: 99px; transition: width .25s; }
.loader .lsub { max-width: 320px; text-align: center; font-weight: 600; font-size: 13px; line-height: 1.5; opacity: .9; padding: 0 16px; }
.qlist { display: grid; gap: 6px; margin-top: 10px; }
.qlist button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 2px solid transparent; text-align: left; }
.qlist button b { font-weight: 900; }
.qlist button small { color: var(--mute); font-size: 12px; }
.qlist button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.bank { display: grid; gap: 4px; justify-items: center; margin: 12px 0; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px dashed rgba(242,181,29,.5); }
.bank small { color: var(--mute); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bank b { font-size: 22px; font-weight: 900; letter-spacing: .06em; -webkit-user-select: all; user-select: all; }
.bank span { color: var(--mute); font-size: 13px; }
.bank .btn { margin-top: 6px; padding: 8px 14px; }
.paysteps { text-align: left; margin: 10px 0 14px; padding-left: 20px; color: var(--mute); font-size: 13px; line-height: 1.6; }
.upl { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.upl input { display: none; }
.vtop { margin: 8px 0 4px; padding: 12px 14px; border-radius: 16px; background: #fff; color: #151a2e; position: relative; }
.vtop small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #c0392b; margin-bottom: 4px; }
.vtop div { font-size: 14px; line-height: 1.4; padding-right: 54px; }
.vtop span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 900; color: #e0245e; }
.updbar { position: fixed; left: 50%; top: calc(66px + var(--safe-t)); transform: translateX(-50%); z-index: 9; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
body.nf { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(ellipse at 50% 80%, #f49b86 0%, #59478a 40%, #1a2050 85%); overflow: auto; }
.nfbox { max-width: 440px; margin: 16px; padding: 28px 24px; border-radius: 24px; background: var(--panel); text-align: center; }
.nfbox h1 { font-weight: 900; font-size: 28px; margin: 12px 0 8px; }
.nfbox p { color: var(--mute); line-height: 1.5; }
.nfbox .primary { display: inline-block; margin-top: 8px; text-decoration: none; }
.pop b { white-space: nowrap; }
@media (max-width: 380px) {
  .brand { font-size: 10.5px; letter-spacing: .02em; padding: 8px 10px; gap: 6px; }
  .brand span:last-child { white-space: nowrap; }
  .pop { min-width: 0; padding: 6px 9px 7px; }
  .pop b { font-size: 17px; }
}

/* ── chat ── */
.chatbtn { position: relative; }
.cbadge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ff3b5c; color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--navy); }
.chatcard { display: flex; flex-direction: column; height: min(640px, calc(100dvh - 40px)); padding-bottom: 14px; }
.chatlist { flex: 1; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px 10px; margin: 0 -4px; -webkit-user-select: text; user-select: text; }
.cm { max-width: 82%; display: flex; flex-direction: column; gap: 3px; }
.cm.me { align-self: flex-end; align-items: flex-end; }
.cm.adm { align-self: flex-start; }
.cb { padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.cm.me .cb { background: linear-gradient(160deg, #ffd25a, #f2a91d); color: var(--ink); border-bottom-right-radius: 5px; }
.cm.adm .cb { background: rgba(255,255,255,.1); border-bottom-left-radius: 5px; }
.cm small { color: var(--mute); font-size: 10.5px; padding: 0 4px; }
.cempty { margin: auto; text-align: center; color: var(--mute); font-size: 14px; line-height: 1.5; padding: 20px; }
.chatform { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.chatform input, .chatform textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); outline: 0; background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; font: inherit; font-weight: 600; font-size: 16px; color: var(--text); resize: none; }
.chatform input:focus, .chatform textarea:focus { border-color: var(--gold); }
.crow { display: flex; gap: 6px; align-items: flex-end; }
.crow .primary { padding: 12px 16px; font-size: 18px; }
body:not(.side) .chatm .mcard.chatcard { height: calc(100dvh - 60px - var(--safe-t) - var(--kb, 0px)); }
.paychat { margin-top: 10px; width: 100%; }
