/* ZuzuChat — dizayn tizimi
   Bitta qat'iy rang (atirgul), Telegram mavzusi ranglari, Onest shrifti, Lora kursiv — faqat bayram lahzalari uchun. */
:root {
  --bg: var(--tg-theme-bg-color, #ffffff);
  --bg2: var(--tg-theme-secondary-bg-color, #f3f1f4);
  --card: var(--tg-theme-section-bg-color, var(--bg));
  --text: var(--tg-theme-text-color, #17131a);
  --hint: var(--tg-theme-hint-color, #85808b);
  --line: color-mix(in srgb, var(--hint) 20%, transparent);
  --accent: #e2336b;
  --accent-press: #c41f55;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, var(--bg));
  --accent-ink: color-mix(in srgb, var(--accent) 82%, var(--text));
  --gold: #c98a12;
  --gold-soft: color-mix(in srgb, #e3a325 14%, var(--bg));
  --ok: #1fa96b;
  --warn: #d98a0b;
  --danger: #e0394f;
  --r-lg: 16px;
  --r-md: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, serif;
  /* Eski nomlar (admin panel uchun) */
  --accent2: var(--accent);
  --grad: var(--accent);
  --radius: var(--r-lg);
}
@media (prefers-color-scheme: dark) {
  :root:not(.tg) { --bg: #141116; --bg2: #1e1a20; --card: #1e1a20; --text: #f4f0f5; --hint: #9a93a0; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
body { overscroll-behavior: none; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
input, textarea { caret-color: var(--accent); }
* { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#app { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; height: 100%; height: var(--tg-viewport-stable-height, 100dvh); }
#view { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
#view.flush { padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.fade-in { animation: fadeIn .32s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Ikonkalar */
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }
.i.sm { width: 16px; height: 16px; vertical-align: -3px; }
.i.lg { width: 26px; height: 26px; }

/* ---------- Pastki menyu ---------- */
#tabs { display: flex; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
#tabs button { flex: 1; background: none; border: 0; padding: 7px 0 5px; display: flex; flex-direction: column;
  align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--hint); position: relative; letter-spacing: .01em; }
#tabs button svg { width: 25px; height: 25px; }
#tabs button.on { color: var(--accent); }
#tabs .badge { position: absolute; top: 2px; left: calc(50% + 6px); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }

/* ---------- Umumiy ---------- */
h1 { font-size: 27px; line-height: 1.15; margin: 6px 0 6px; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h2 { font-size: 21px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 16px; margin: 22px 0 8px; font-weight: 700; }
.display { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--hint); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.spacer { height: 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 12px; min-height: 40px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.035em; color: var(--accent); }
.brand b { color: var(--text); font-weight: 800; }
.like-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); border: 0; padding: 0 12px; height: 36px; border-radius: 18px;
  font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; transition: transform .15s var(--ease); }
.like-badge .i { width: 17px; height: 17px; color: var(--accent); }
.like-badge:active { transform: scale(.96); }
.like-badge.locked { background: var(--accent-soft); color: var(--accent-ink); }
.like-badge.prem { background: var(--gold-soft); color: var(--gold); }
.like-badge.prem .i { color: var(--gold); }
.actions .like.locked { opacity: .55; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn.plain { background: none; }

/* Pastdan chiquvchi oyna ichidagi tushuntirish bloki */
.limit-sheet { text-align: center; padding: 6px 4px 14px; }
.limit-sheet h2 { margin: 12px 0 8px; font-size: 21px; }
.limit-sheet p { margin: 0 auto 6px; max-width: 34ch; }
.mark { width: 56px; height: 56px; border-radius: 18px; margin: 4px auto 0; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); }
.mark .i { width: 28px; height: 28px; }
.mark.gold { background: var(--gold-soft); color: var(--gold); }
.limit-timer { display: inline-block; font-size: 30px; font-weight: 700; letter-spacing: .02em; color: var(--text); margin: 14px 0 10px; font-variant-numeric: tabular-nums; }

/* Tugmalar */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px;
  min-height: 52px; padding: 12px 16px; font-weight: 700; font-size: 16px; background: var(--accent); color: #fff;
  transition: transform .15s var(--ease), background-color .15s, opacity .2s; }
.btn:active { transform: scale(.985); background: var(--accent-press); }
.btn:disabled { opacity: .4; }
.btn .i { width: 19px; height: 19px; }
.btn.ghost { background: var(--bg2); color: var(--text); }
.btn.ghost:active { background: color-mix(in srgb, var(--hint) 18%, var(--bg2)); }
.btn.outline { background: none; color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.danger { background: color-mix(in srgb, var(--danger) 10%, var(--bg)); color: var(--danger); }
.btn.small { min-height: 40px; padding: 8px 14px; border-radius: 11px; font-size: 14px; width: auto; }
.btn.ok { background: var(--ok); }
.btn.gold, .btn.prem-btn { background: var(--gold); color: #fff; }
.btn.gold:active, .btn.prem-btn:active { background: color-mix(in srgb, var(--gold) 85%, #000); }

/* Maydonlar */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--hint); margin: 0 0 7px 2px; }
input, select, textarea { width: 100%; color: var(--text); background: var(--bg2); border: 1.5px solid transparent;
  border-radius: var(--r-md); padding: 13px 14px; outline: none; transition: border-color .15s, background-color .15s; -webkit-appearance: none; appearance: none; }
input::placeholder, textarea::placeholder { color: var(--hint); }
select { background-image: linear-gradient(45deg, transparent 50%, var(--hint) 50%), linear-gradient(135deg, var(--hint) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--bg); }
textarea { resize: none; min-height: 104px; }
.counter { text-align: right; font-size: 12px; color: var(--hint); margin-top: 5px; font-variant-numeric: tabular-nums; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg button, .opt { border: 1.5px solid transparent; background: var(--bg2); border-radius: var(--r-lg); padding: 16px 10px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .15s, background-color .15s, color .15s; }
.seg button .i { width: 28px; height: 28px; color: var(--hint); }
.seg button.on, .opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.seg button.on .i, .opt.on .i { color: var(--accent); }
.opts { display: grid; gap: 10px; }
.opt { flex-direction: row; justify-content: flex-start; text-align: left; padding: 15px 16px; width: 100%; gap: 12px; }
.opt .i { color: var(--hint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: var(--bg2); color: var(--text); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; transition: background-color .15s, color .15s; }
.chip.on { background: var(--text); color: var(--bg); }
.chip.sm { padding: 5px 10px; font-size: 12.5px; }
.chip.glass { background: rgba(255, 255, 255, .16); color: #fff; }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: color-mix(in srgb, var(--hint) 38%, transparent); transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }

/* Ro'yxat bo'limlari (sozlamalar) */
.group { background: var(--bg2); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.group .item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 52px; width: 100%; background: none; border: 0; text-align: left; }
.group .item + .item { border-top: 1px solid var(--line); }
.group .item:active { background: color-mix(in srgb, var(--hint) 10%, transparent); }
.group .item .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--accent); color: #fff; }
.group .item .ic .i { width: 17px; height: 17px; }
.group .item .ic.gold { background: var(--gold); }
.group .item .ic.mono { background: color-mix(in srgb, var(--hint) 78%, var(--bg)); }
.group .item .ic.red { background: var(--danger); }
.group .item .grow { flex: 1; }
.group .item .chev { color: var(--hint); font-size: 20px; line-height: 1; }
.group .item.danger { color: var(--danger); }

/* ---------- Kirish / anketa bosqichlari ---------- */
.hero { text-align: center; padding: 30px 4px 10px; }
.hero .logo { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 22px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.hero .logo .i { width: 38px; height: 38px; }
.hero .brand { font-size: 36px; }
.hero .lead { font-size: 17px; color: var(--hint); max-width: 30ch; margin: 8px auto 0; }
.rules { background: var(--bg2); border-radius: var(--r-lg); padding: 4px 16px; margin: 24px 0 14px; text-align: left; }
.rules div { display: flex; gap: 12px; padding: 12px 0; font-size: 14.5px; align-items: flex-start; }
.rules div .i { color: var(--accent); margin-top: 1px; }
.rules div + div { border-top: 1px solid var(--line); }
.rules .age { font-size: 11px; font-weight: 800; color: var(--accent); border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 3px; flex: none; margin-top: 1px; line-height: 1.3; }
.check { display: flex; gap: 12px; align-items: center; margin: 16px 2px; font-size: 14.5px; text-align: left; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); -webkit-appearance: auto; appearance: auto; padding: 0; }

.wizard { display: flex; flex-direction: column; min-height: 100%; }
.wizard .progress { height: 4px; border-radius: 2px; background: var(--bg2); overflow: hidden; margin: 2px 0 18px; }
.wizard .progress i { display: block; height: 100%; background: var(--accent); transition: width .4s var(--ease); }
.wizard .step-body { flex: 1; }
.wizard .step-body h1 { font-size: 28px; margin-top: 10px; }
.wizard .step-foot { padding-top: 16px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* Rasmlar */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph { aspect-ratio: 3/4; border-radius: var(--r-md); background: var(--bg2) center/cover; position: relative; display: flex; align-items: center; justify-content: center;
  color: var(--accent); border: 1.5px dashed color-mix(in srgb, var(--hint) 45%, transparent); overflow: hidden; cursor: pointer; }
.ph .plus { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.ph .plus .i { width: 18px; height: 18px; }
.ph.has { border: 0; }
.ph .x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; }
.ph .x .i { width: 14px; height: 14px; }
.ph .main, .ph .mk { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 7px; border: 0; color: #fff; }
.ph .main { background: var(--accent); }
.ph .mk { background: rgba(0,0,0,.5); }

/* ---------- Kartochkalar ---------- */
.feed { display: flex; flex-direction: column; height: 100%; }
.deck { position: relative; flex: 1; min-height: 360px; }
.card { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: #2a2630 center/cover;
  box-shadow: 0 18px 40px -22px rgba(20, 8, 20, .55); touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.card.back { transform: scale(.95) translateY(12px); filter: brightness(.8); transition: transform .35s var(--ease); }
.card .bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.card .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.32); }
.card .bars i.on { background: #fff; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, transparent 18%, transparent 48%, rgba(10,4,10,.86) 100%); }
.card .info { position: absolute; left: 0; right: 56px; bottom: 0; padding: 18px 18px 20px; color: #fff; }
.card .name { font-size: 30px; font-weight: 700; letter-spacing: -.03em; display: flex; align-items: center; gap: 9px; line-height: 1.1; }
.card .name .age { font-weight: 400; opacity: .9; }
.card .again { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.16); margin-bottom: 8px; }
.card .meta { opacity: .88; font-size: 14px; margin-top: 5px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.card .bio { margin-top: 8px; font-size: 15px; opacity: .95; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 40ch; }
.card .chips { margin-top: 10px; }
.card .more { position: absolute; right: 14px; bottom: 20px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; z-index: 3; display: flex; align-items: center; justify-content: center; }
.card .stamp { position: absolute; top: 44px; font-size: 28px; font-weight: 800; padding: 3px 12px; border: 3px solid; border-radius: 10px; opacity: 0; z-index: 3; letter-spacing: .04em; }
.card .stamp.like { left: 20px; color: #3ee08f; transform: rotate(-12deg); }
.card .stamp.nope { right: 20px; color: #ff5a6e; transform: rotate(12deg); }
.dot-online {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 6px #10b981;
  display: inline-block;
  flex: none;
  animation: pulse-online 2s infinite;
}
@keyframes pulse-online {
  0% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 3px #10b981); }
  100% { transform: scale(0.95); opacity: 0.85; }
}
.badge-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.22);
  color: #10b981;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.35);
  margin-left: 6px;
  vertical-align: middle;
}
.actions { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 2px 4px; }
.actions button { flex: none; border-radius: 50%; border: 0; background: var(--card); box-shadow: 0 6px 16px -6px rgba(20,8,20,.28), 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; transition: transform .2s var(--ease); }
.actions button:active { transform: scale(.9); }
.actions .nope { width: 56px; height: 56px; color: var(--text); }
.actions .like { width: 68px; height: 68px; background: var(--accent); color: #fff; box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.actions .info-b, .actions .undo, .actions .super, .actions .direct-b { width: 44px; height: 44px; color: var(--hint); }
.actions .direct-b { color: var(--gold); }
.actions .undo:disabled { opacity: .35; }
.actions .undo svg, .actions .info-b svg, .actions .super svg, .actions .direct-b svg { width: 20px; height: 20px; }
.actions svg { width: 26px; height: 26px; }
.actions .like svg { width: 32px; height: 32px; }
.empty { text-align: center; padding: 48px 20px; }
.empty h2 { margin-top: 16px; }
.empty p { color: var(--hint); max-width: 32ch; margin: 0 auto 20px; }

/* Profil ko'rish (to'liq) */
.pv .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: var(--r-lg); }
.pv .gallery div { flex: 0 0 100%; aspect-ratio: 4/5; scroll-snap-align: start; border-radius: var(--r-lg); background: var(--bg2) center/cover; }
.pv h1 { margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.pv .where { display: flex; align-items: center; gap: 6px; }
.pv .sec { padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--line); }
.pv .sec .muted { font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* Juftlik oynasi */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(18, 8, 16, .93); backdrop-filter: blur(10px);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; animation: fadeIn .35s var(--ease); }
.overlay h1 { font-size: 52px; color: #ff6f98; margin: 0; }
.overlay p { opacity: .85; margin: 8px 0 0; }
.pair { display: flex; margin: 30px 0 34px; }
.pair div { width: 124px; height: 124px; border-radius: 50%; border: 3px solid #fff; background: #444 center/cover; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); animation: pairIn .6s var(--ease) both; }
.pair div:first-child { --r: -7deg; --x: 30px; }
.pair div + div { margin-left: -20px; --r: 7deg; --x: -30px; }
@keyframes pairIn { from { transform: translateX(var(--x)) rotate(0) scale(.9); opacity: 0; } to { transform: rotate(var(--r)); opacity: 1; } }
.pair div { transform: rotate(var(--r)); }
.overlay .btn { background: var(--accent); color: #fff; max-width: 340px; margin-bottom: 10px; }
.overlay .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }

/* ---------- Suhbatlar ---------- */
.list-item { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.list-item:last-child { border-bottom: 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--bg2) center/cover; flex: none; position: relative; }
.avatar .dot-online { position: absolute; right: 1px; bottom: 1px; box-shadow: 0 0 0 2px var(--bg); }
.avatar.sm { width: 42px; height: 42px; }
.avatar.xs { width: 34px; height: 34px; }
.list-item .t { flex: 1; min-width: 0; }
.list-item .n { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.list-item .n time { font-weight: 400; font-size: 12px; color: var(--hint); flex: none; font-variant-numeric: tabular-nums; }
.list-item .l { color: var(--hint); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: space-between; gap: 8px; margin-top: 1px; }
.list-item .l span { overflow: hidden; text-overflow: ellipsis; }
.list-item.unread .l { color: var(--text); font-weight: 600; }
.new-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; margin: 0 -16px 2px; padding-left: 18px; padding-right: 18px; }
.new-row button { background: none; border: 0; padding: 0; text-align: center; font-size: 12.5px; font-weight: 600; width: 68px; flex: none; }
.new-row .avatar { width: 68px; height: 68px; margin-bottom: 6px; box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--accent); }
.section-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 8px 2px 10px; }
.section-title .count { color: var(--hint); font-weight: 600; margin-left: 4px; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 2px 0 14px; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-head .who { flex: 1; min-width: 0; background: none; border: 0; text-align: left; padding: 0; display: flex; gap: 10px; align-items: center; }
.chat-head .n { font-weight: 700; }
.chat-head .s { font-size: 12.5px; color: var(--hint); }
.chat-head .s.on { color: var(--ok); }
.chat-head .s.typing { color: var(--accent); }
.msgs { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 3px; background: var(--bg2); }
.msg { max-width: 80%; padding: 8px 12px 6px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; position: relative; animation: fadeIn .2s var(--ease); font-size: 15.5px; line-height: 1.38; }
.msg.has-photo { padding: 6px; }
.msg.has-photo .meta { padding: 0 4px; }
.msg-media { overflow: hidden; border-radius: 13px; }
.msg-photo { width: 100%; max-width: 240px; border-radius: 13px; display: block; object-fit: cover; aspect-ratio: 4/5; cursor: pointer; }
.msg-caption { font-size: 15px; line-height: 1.35; padding: 4px 6px 2px; }
.photo-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .15s; cursor: pointer; }
.photo-full { max-width: 100%; max-height: 90vh; border-radius: 12px; object-fit: contain; }
.photo-close { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, .18); color: #fff; border: 0; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.msg.in { background: var(--card); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.out { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.gap { margin-top: 8px; }
.msg .meta { display: flex; gap: 4px; justify-content: flex-end; align-items: center; font-size: 11px; opacity: .72; margin-top: 2px; font-variant-numeric: tabular-nums; }
.msg .tick { display: inline-flex; }
.msg .tick .i { width: 15px; height: 15px; }
.day-sep { align-self: center; font-size: 12px; font-weight: 600; color: var(--hint); background: var(--bg); padding: 4px 12px; border-radius: 10px; margin: 10px 0 6px; }
.hello { text-align: center; padding: 28px 16px 12px; color: var(--hint); font-size: 14.5px; }
.hello .avatar { width: 84px; height: 84px; margin: 0 auto 12px; }
.hello b { color: var(--text); display: block; font-size: 17px; margin-bottom: 4px; }
.ice { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 12px 14px; }
.ice button { border: 0; background: var(--bg); color: var(--text); border-radius: 16px; padding: 10px 14px; font-size: 14.5px; max-width: 92%; text-align: left;
  box-shadow: 0 0 0 1px var(--line); transition: transform .15s var(--ease); }
.ice button:active { transform: scale(.98); }
.typing-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; }
.typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.composer textarea { min-height: 44px; max-height: 130px; border-radius: 22px; padding: 11px 16px; }
.composer button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; color: #fff; background: var(--accent); display: flex; align-items: center; justify-content: center; transition: transform .15s var(--ease); }
.composer button:active { transform: scale(.92); }
.composer button svg { width: 21px; height: 21px; }
.closed-note { text-align: center; padding: 16px; color: var(--hint); background: var(--bg); border-top: 1px solid var(--line); }

/* ---------- Pastdan chiquvchi oyna ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(10, 4, 10, .42); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .38s var(--ease); }
.sheet::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
@keyframes up { from { transform: translateY(30%); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .opt { margin-bottom: 8px; }

/* Profil sahifasi */
.me-head { display: flex; gap: 16px; align-items: center; padding: 6px 0 18px; }
.me-head .avatar { width: 84px; height: 84px; }
.me-head h1 { font-size: 24px; margin: 0 0 2px; }
.me-head .muted { margin: 0; display: flex; align-items: center; gap: 5px; font-size: 14.5px; }
.me-head .tag-prem { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-soft); padding: 3px 8px; border-radius: 7px; }
.complete { background: var(--bg2); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 14px; }
.complete .top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.complete .top b { font-variant-numeric: tabular-nums; color: var(--accent); }
.complete .bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--hint) 20%, transparent); margin: 10px 0 10px; overflow: hidden; }
.complete .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .5s var(--ease); }
.complete button { border: 0; background: none; padding: 0; color: var(--accent-ink); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; text-align: left; }
.range { display: flex; gap: 10px; align-items: center; }
.range input { text-align: center; }

/* Taklif */
.ref-big { font-size: 44px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 10px 0 0; }
.ref-link { display: flex; align-items: center; gap: 8px; background: var(--bg2); border-radius: var(--r-md); padding: 10px 12px; margin: 16px 0 12px; text-align: left; }
.ref-link code { flex: 1; min-width: 0; font: 500 13.5px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hint); }
.ref-link button { border: 0; background: var(--bg); border-radius: 9px; padding: 7px 10px; font-weight: 700; font-size: 13px; color: var(--accent); }

#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 60; background: color-mix(in srgb, var(--text) 92%, transparent); color: var(--bg);
  padding: 11px 16px; border-radius: 14px; text-align: center; font-size: 14.5px; font-weight: 500; max-width: calc(100% - 32px); animation: fadeIn .25s var(--ease); }
.spinner { margin: 80px auto; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--bg2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spinner.sm { margin: 0; width: 24px; height: 24px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Admin ---------- */
.adm-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; position: sticky; top: -16px; background: var(--bg); z-index: 5; }
.adm-tabs button { flex: none; border: 0; background: var(--bg2); border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.adm-tabs button.on { background: var(--text); color: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--bg2); border-radius: var(--r-lg); padding: 14px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--hint); font-weight: 600; }
.stat small { display: block; font-size: 12px; color: var(--ok); font-weight: 600; margin-top: 2px; }
.stat.hot { background: color-mix(in srgb, var(--danger) 11%, var(--bg2)); }
.stat.hot b { color: var(--danger); }
.chart { background: var(--bg2); border-radius: var(--r-lg); padding: 14px 12px 8px; margin-bottom: 14px; }
.chart .bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.chart .bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: 10px; color: var(--hint); }
.chart .bars i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: var(--accent); min-height: 3px; }
.chart .bars em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.chart .labels { display: flex; gap: 4px; margin-top: 4px; }
.chart .labels span { flex: 1; text-align: center; font-size: 9px; color: var(--hint); }
.meter { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; }
.meter .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--accent); }
.meter .lbl { width: 130px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter b { width: 34px; text-align: right; }
.searchbar { display: flex; gap: 8px; margin-bottom: 10px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 7px; background: var(--bg2); color: var(--hint); }
.tag.red { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.tag.green { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag.orange { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.card-box { background: var(--bg2); border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; }
.card-box .btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.card-box .btns .btn { flex: 1; min-width: 100px; }
.quote { background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; margin-top: 10px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
mark { background: color-mix(in srgb, var(--danger) 24%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.adm-msg { text-align: left; max-width: 82%; padding: 7px 11px; border-radius: 16px; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; }
.adm-msg.l { align-self: flex-start; background: var(--card); }
.adm-msg.r { align-self: flex-end; background: color-mix(in srgb, #5b8cff 16%, var(--card)); }
.adm-msg.flag { box-shadow: 0 0 0 2px var(--danger); }
.adm-msg .who { font-size: 11px; font-weight: 700; color: var(--hint); }
.adm-msg .meta { font-size: 10px; color: var(--hint); text-align: right; }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.words .chip { display: inline-flex; gap: 6px; align-items: center; }
.words .chip b { color: var(--danger); font-weight: 800; }
.more-btn { margin: 6px 0 20px; }

/* ---------- Premium, reklama, meni yoqtirganlar ---------- */
.upsell { display: grid; gap: 10px; margin: 18px 0 10px; }
.upsell .btn { flex-direction: column; gap: 1px; }
.upsell .btn span { display: inline-flex; align-items: center; gap: 8px; }
.upsell .btn small { font-size: 12.5px; font-weight: 500; opacity: .85; }
.prem-sheet .perks { display: grid; gap: 0; text-align: left; margin: 18px 0 18px; }
.prem-sheet .perks div { display: flex; gap: 12px; align-items: center; font-weight: 600; padding: 11px 2px; }
.prem-sheet .perks div + div { border-top: 1px solid var(--line); }
.prem-sheet .perks .i { color: var(--gold); }
.prem-on { color: var(--ok); font-weight: 700; margin: 4px 0 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px 16px; border-radius: var(--r-lg);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; transition: transform .15s var(--ease); }
.plan b { font-size: 15px; font-weight: 600; }
.plan span { font-size: 24px; font-weight: 700; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 5px; }
.plan span .i { color: var(--gold); width: 18px; height: 18px; }
.plan.best { border-color: var(--gold); background: var(--gold-soft); }
.plan i { position: absolute; top: -10px; padding: 2px 9px; border-radius: 7px; background: var(--gold); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.plan:active { transform: scale(.97); }
.plan:disabled { opacity: .5; }
.likers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.likers button { border: 0; padding: 0; background: none; color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.likers button div { aspect-ratio: 3 / 4; border-radius: var(--r-lg); background: var(--bg2) center / cover; margin-bottom: 7px; }
.ad-progress { height: 6px; border-radius: 3px; background: var(--bg2); overflow: hidden; margin: 16px 0 6px; }
.ad-progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s var(--ease); }
.row-title { display: flex; justify-content: space-between; align-items: center; }
.row-title button { border: 0; background: none; color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 0; }
.likers-row .avatar { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--gold); }
.likers-row .avatar.locked { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.likers-row .avatar.locked i { position: absolute; inset: -10px; background: center / cover; filter: blur(10px) saturate(1.2); }
.likers-row .avatar.locked .i { position: relative; width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* Yoqtirganlar bo'limi */
#tabs .badge.gold { background: var(--gold); }
.lk-head { margin: 2px 0 14px; }
.lk-head p { margin: 4px 0 0; color: var(--hint); }
.lk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lk-grid button { border: 0; padding: 0; background: none; color: var(--text); font: inherit; font-weight: 700; text-align: left; position: relative; }
.lk-grid .ph2 { aspect-ratio: 3 / 4; border-radius: var(--r-lg); background: var(--bg2) center / cover; margin-bottom: 7px; position: relative; overflow: hidden; }
.lk-grid .ph2.blur i { position: absolute; inset: -14px; background: center / cover; filter: blur(16px) saturate(1.15); }
.lk-grid .ph2.blur .i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 28px; height: 28px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.lk-grid .ph2 .when { position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.42); padding: 2px 7px; border-radius: 7px; }
.lk-cta { position: sticky; bottom: 0; margin: 14px -16px -12px; padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 22%); }
.lk-cta .card2 { background: var(--bg2); border-radius: var(--r-lg); padding: 14px; }
.lk-cta .card2 b { display: block; font-size: 16px; margin-bottom: 2px; }
.lk-cta .card2 p { margin: 0 0 12px; color: var(--hint); font-size: 14px; }
.lk-cta .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lk-cta .row2 .btn { min-height: 48px; font-size: 15px; flex-direction: column; gap: 0; }
.lk-cta .row2 .btn small { font-size: 12px; font-weight: 500; opacity: .85; }
.lk-cta .row2 .btn span { display: inline-flex; align-items: center; gap: 6px; }

/* Karta orqali to'lov */
.or { display: flex; align-items: center; gap: 10px; color: var(--hint); font-size: 13px; margin: 14px 0 10px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps { text-align: left; margin: 16px 0 4px; }
.steps div { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 15px; }
.steps div + div { border-top: 1px solid var(--line); }
.steps div > b:first-child { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.warn-note { display: flex; gap: 6px; align-items: flex-start; justify-content: center; font-size: 12.5px; color: var(--hint); margin: 12px 0 0; text-align: left; }
.warn-note .i { color: var(--ok); margin-top: 1px; }

/* Chat limiti paneli */
.msgbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--bg); font-size: 13.5px; }
.msgbar.soft { justify-content: space-between; color: var(--hint); }
.msgbar.soft button { border: 0; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 13px; border-radius: 9px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 4px; }
.msgbar.lock { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
.msgbar.lock b { display: block; font-size: 15px; }
.msgbar.lock span { color: var(--hint); }
.msgbar.lock time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.msgbar .btn.small .i { width: 16px; height: 16px; }
.msgbar .btn.small { white-space: nowrap; flex: none; }

/* Super layk */
.actions .super { width: 48px; height: 48px; color: var(--gold); position: relative; }
.actions .super svg { width: 24px; height: 24px; }
.actions .super .cnt { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #fff; font: 700 11px/18px var(--font); font-style: normal; box-shadow: 0 0 0 2px var(--bg); }
.card .again.super { background: var(--gold); color: #fff; }
.super-note { display: flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; margin: 6px 0 0; }
.tagx { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); padding: 3px 7px; border-radius: 7px; }
.tagx.super { background: var(--gold); }
/* Qiziqish bo'limi: ikki tab */
.segs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg2); border-radius: 12px; padding: 4px; margin: 0 0 12px; }
.segs button { border: 0; background: none; border-radius: 9px; padding: 9px 6px; font-weight: 600; font-size: 14.5px; color: var(--hint); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segs button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.segs button b { font-size: 12px; min-width: 20px; padding: 1px 6px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); }
.lk-sub { margin: 0 2px 14px; color: var(--hint); font-size: 14.5px; }
.lk-cta .btn span { display: inline-flex; align-items: center; gap: 6px; }

/* Chatda rasm yuborish */
.composer .attach { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: none; color: var(--hint); display: flex; align-items: center; justify-content: center; }
.composer .attach .i { width: 24px; height: 24px; }
.composer .attach.busy { opacity: .4; animation: spin 1s linear infinite; }
.msg.out.has-photo { background: var(--accent); }

.msg-media { position: relative; }
.photo-ttl-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .68); color: #ffd27a;
  backdrop-filter: blur(4px); pointer-events: none;
}

/* Yopiq rasm (Premium'siz yigit uchun) */
.msg-media.locked { position: relative; cursor: pointer; width: 220px; max-width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 13px; }
.msg-media.locked img { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); max-width: none; filter: blur(14px) saturate(1.1); object-fit: cover; aspect-ratio: auto; }
.msg-media.locked .lockov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; text-align: center; background: rgba(0,0,0,.18); text-shadow: 0 1px 3px rgba(0,0,0,.5); padding: 10px; }
.msg-media.locked .lockov .i { width: 30px; height: 30px; }
.msg-media.locked .lockov span { font-size: 13px; color: #ffd27a; font-weight: 700; }
.msg-media.locked .lockov .fomo-ttl {
  margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: rgba(226, 51, 107, .92);
  color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); text-shadow: none;
}

/* Premium: ikki xil to'lov */
.pay-h { display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 700; font-size: 14.5px; color: var(--hint); margin: 6px 0 2px; }
.pay-h .i { width: 17px; height: 17px; }
.pay-sub { font-size: 12.5px; color: var(--hint); margin: 0 auto 10px; max-width: 36ch; line-height: 1.35; }
.badge-auto { font-size: 10px; font-weight: 800; background: var(--gold); color: #fff; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .02em; }
.btn-guide { background: var(--bg2); border: 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 7px 14px; border-radius: 20px; margin: 2px auto 12px; transition: transform .15s var(--ease); }
.btn-guide:active { transform: scale(.97); }
.btn-guide .i { width: 15px; height: 15px; color: var(--gold); }
.pay-sep { display: flex; align-items: center; gap: 10px; color: var(--hint); font-size: 12px; margin: 10px 0 8px; text-transform: uppercase; font-weight: 700; }
.pay-sep::before, .pay-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plans.three { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.plans.three .plan { padding: 14px 4px 10px; }
.plans.three .plan b { font-size: 13.5px; }
.plans.three .plan span { font-size: 19px; }
.plans.three .plan .uzs { font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.plans.three .plan small { font-size: 11.5px; color: var(--hint); font-weight: 600; }
.plan .approx { font-size: 11px; color: var(--hint); font-weight: 600; margin-top: 1px; }
.plan.best .approx { color: var(--gold); font-weight: 700; }
.pay-sum { font-size: 17px; margin: 4px 0 0; }
.pay-sum b { color: var(--gold); }

/* 15 daqiqalik Flash Sale (Maxsus taklif) */
.flash-card { background: linear-gradient(135deg, rgba(255, 184, 0, 0.16), rgba(255, 111, 152, 0.12)); border: 1.5px solid var(--gold); border-radius: var(--r-lg); padding: 12px 14px; margin: 10px 0 14px; text-align: left; animation: pulseGlow 3s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.2); } 50% { box-shadow: 0 0 16px 2px rgba(255, 184, 0, 0.4); } }
.flash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.flash-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .02em; }
.flash-timer { font-family: monospace; font-size: 14.5px; font-weight: 800; color: #e53935; background: rgba(229, 57, 53, 0.08); padding: 2px 8px; border-radius: 6px; }
.flash-text b { display: block; font-size: 15.5px; color: var(--text); }
.flash-text b del { font-size: 13px; color: var(--hint); font-weight: 500; margin-left: 6px; }
.flash-text p { font-size: 12px; color: var(--hint); margin: 2px 0 10px; }
.flash-btn { min-height: 44px; font-size: 14px; font-weight: 700; gap: 6px; background: var(--gold); color: #fff; }
.flash-btn:active { background: color-mix(in srgb, var(--gold) 85%, #000); }

/* Sovg'alar (Gifts) va To'g'ridan-to'g'ri xat (Direct) */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0 10px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 2px 2px 10px;
}
.gift-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px 12px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--bg2);
  cursor: pointer;
  transition: transform .15s var(--ease), border-color .15s, box-shadow .15s;
  font: inherit;
}
.gift-card:active {
  transform: scale(.95);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.25);
}
.gift-card .g-emo {
  font-size: 38px;
  line-height: 1.1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
  transition: transform .2s var(--ease);
}
.gift-card:active .g-emo {
  transform: scale(1.15);
}
.gift-card .g-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}
.gift-card .g-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.18), rgba(255, 140, 0, 0.25));
  border: 1px solid rgba(255, 184, 0, 0.5);
  padding: 3px 9px;
  border-radius: 16px;
  color: #ffb800;
  font-weight: 800;
  font-size: 13px;
}
.gift-card .g-star-badge .star-icon {
  font-size: 12px;
}
.gift-card .g-star-badge .star-lbl {
  font-size: 10.5px;
  opacity: 0.9;
  font-weight: 700;
}
.actions .direct-b { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bg2); color: var(--gold); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s var(--ease); }
.actions .direct-b:active { transform: scale(.92); }
.actions .direct-b .i { width: 22px; height: 22px; }
.direct-sheet textarea { width: 100%; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--text); padding: 12px; font: inherit; font-size: 14.5px; resize: none; box-sizing: border-box; }
.direct-sheet textarea:focus { outline: none; border-color: var(--gold); }

/* Sovg'a xabari (Chat ichida juda chiroyli maxsus kartochka) */
.msg.gift-msg {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  max-width: 90% !important;
  width: 100%;
}
.chat-gift-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 20px 14px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 184, 0, 0.20), rgba(255, 111, 152, 0.16), rgba(156, 39, 176, 0.12));
  border: 1.5px solid rgba(255, 184, 0, 0.65);
  box-shadow: 0 10px 28px rgba(255, 184, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  margin: 4px auto;
}
.chat-gift-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffb800;
  text-transform: uppercase;
  background: rgba(255, 184, 0, 0.18);
  border: 1px solid rgba(255, 184, 0, 0.45);
  padding: 3px 10px;
  border-radius: 16px;
  margin-bottom: 6px;
}
.chat-gift-emoji {
  font-size: 54px;
  line-height: 1.1;
  margin: 4px 0 8px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.22));
  animation: giftBounce 2.4s ease-in-out infinite;
}
@keyframes giftBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.08); }
}
.chat-gift-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}
.chat-gift-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.95;
}

/* Yopiq xabar (limit tugagach) */
.msg.locked { cursor: pointer; }
.lockmsg { display: flex; flex-direction: column; gap: 3px; }
.lockmsg i { font-style: normal; filter: blur(4px); letter-spacing: 2px; user-select: none; }
.lockmsg b { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--gold); }

/* Branding & Logo Styllari */
.splash-loader { height: 75vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.splash-logo { width: 78px; height: 78px; border-radius: 22px; animation: logoPulse 2.2s ease-in-out infinite; }
@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 8px 20px rgba(226, 51, 107, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 14px 28px rgba(226, 51, 107, 0.65)); }
}
.topbar .brand { display: flex; align-items: center; gap: 8px; }
.topbar .brand-icon { width: 26px; height: 26px; border-radius: 7px; filter: drop-shadow(0 2px 6px rgba(226, 51, 107, 0.35)); flex-shrink: 0; }

/* Daily Reward (Kunlik sovg'a) */
.reward-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--bg2);
  border: 0;
  color: var(--gold);
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s;
}
.reward-badge .i { width: 19px; height: 19px; }
.reward-badge:active { transform: scale(.94); }
.reward-badge.ready {
  background: var(--gold-soft);
  color: var(--gold);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.35);
  animation: rewardPulse 2s infinite ease-in-out;
}
@keyframes rewardPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.reward-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff334b;
  box-shadow: 0 0 6px #ff334b;
}

.daily-sheet { text-align: center; padding: 4px 2px 14px; }
.daily-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  margin: 10px auto 14px;
}
.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.daily-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: var(--r-md);
  background: var(--bg2);
  border: 1.5px solid transparent;
  position: relative;
  transition: transform .15s var(--ease), border-color .15s;
  min-height: 80px;
}
.daily-card.day-7 {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.15), rgba(226, 51, 107, 0.18));
  border: 1.5px solid rgba(255, 184, 0, 0.4);
}
.daily-card .d-day {
  font-size: 11px;
  font-weight: 600;
  color: var(--hint);
  text-transform: uppercase;
}
.daily-card .d-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.daily-card .d-icon .i { width: 22px; height: 22px; }
.daily-card .d-reward {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.daily-card.claimed {
  opacity: 0.55;
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(46, 204, 113, 0.08);
}
.daily-card.claimed .d-check {
  position: absolute;
  top: 4px;
  right: 4px;
  color: var(--ok);
  width: 14px;
  height: 14px;
}
.daily-card.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.45);
  transform: scale(1.04);
}
.daily-card.active .d-reward {
  color: var(--gold);
  font-weight: 800;
}
.daily-card.day-7.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(226, 51, 107, 0.5);
}
.daily-success-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: popIn .25s ease-out;
}
@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}


/* ==================== ANTI-SCREENSHOT & ANTI-COPY SECURITY ==================== */
html, body, #app, .chat-view, .chat-messages, .msg, .msg-bubble, .msg-text, .msg-media, .photo-overlay, .photo-full, .has-photo {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -khtml-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Obscure screen when window loses focus (screenshot gesture / app switch) */
html.secure-blur body {
  filter: blur(50px) brightness(0.15) !important;
  opacity: 0.08 !important;
  pointer-events: none !important;
  transition: filter 0.05s ease !important;
}
