/* ============================================================
   60Soniya — components.css
   ============================================================ */

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-top) + 10px) var(--pad) 10px;
  background: linear-gradient(180deg, rgba(10,14,15,.96), rgba(10,14,15,.72) 70%, transparent);
  backdrop-filter: blur(10px);
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 7px; font-weight: 800; }
.brand b { font-family: var(--mono); color: var(--lime); letter-spacing: -.03em; font-size: 20px; }
.brand span { letter-spacing: .26em; font-size: 11px; color: var(--ink-2); }

/* Wallet pill */
.wpill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: var(--r-pill); font-weight: 700;
}
.wpill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.wpill .num { font-size: 14px; }
.wpill small { color: var(--muted); font-weight: 600; }

/* Language toggle */
.lang { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.lang button { padding: 6px 11px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--h); padding: 0 18px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 700; letter-spacing: .01em; user-select: none;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, opacity .15s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--block { width: 100%; }
.btn--lg { --h: 60px; font-size: 18px; border-radius: var(--r-lg); }
.btn--sm { --h: 38px; padding: 0 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn--primary { background: var(--lime); color: var(--on-lime); border-color: transparent; box-shadow: 0 8px 26px rgba(184,255,44,.18); }
.btn--primary:active { background: var(--lime-press); }
.btn--amber { background: var(--amber); color: #1c1606; border-color: transparent; }
.btn--ghost { background: transparent; }
.btn--danger { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 50%, var(--line)); }
.btn--chip { --h: 44px; background: var(--surface-3); border-color: var(--line); border-radius: var(--r-pill); font-family: var(--mono); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--pad); box-shadow: var(--sh-1);
}
.card--tight { padding: 12px; }
.card--flat { box-shadow: none; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-h h2 { flex: 1; }

/* List rows */
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.lrow:last-child { border-bottom: 0; }
.lrow .thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--surface-3); flex: none; }
.lrow .lr-main { flex: 1; min-width: 0; }
.lrow .lr-main b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .lr-main small { color: var(--muted); }

/* ---------- Chips / tags ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 650; color: var(--ink-2); white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); border-color: transparent; }

/* Badges / status pills */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); }
.badge--live { background: rgba(255,84,104,.16); color: #ff8a97; }
.badge--live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red);
  animation: pulse 1.4s infinite; }
.badge--soon { background: rgba(84,224,255,.14); color: var(--cyan); }
.badge--lime { background: rgba(184,255,44,.16); color: var(--lime); }
.badge--amber{ background: rgba(255,210,62,.16); color: var(--amber); }
.badge--mut { background: var(--surface-3); color: var(--ink-2); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Inputs ---------- */
.field { display: block; }
.field > label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  font-size: 16px; transition: border-color .15s, background .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--lime-dim); background: var(--surface-3); outline: none; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input--mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.err-text { color: var(--red); font-size: 13px; }

/* OTP / pin segmented */
.otp { display: flex; gap: 8px; }
.otp input { flex: 1; text-align: center; font-family: var(--mono); font-size: 22px; min-height: 56px; padding: 0; }

/* ---------- Bottom nav ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 2px; padding: 8px 10px calc(8px + var(--safe-bot));
  background: linear-gradient(0deg, rgba(10,14,15,.98), rgba(10,14,15,.82));
  backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft);
}
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
  color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; border-radius: 12px; }
.tabbar .tab svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tabbar .tab[aria-current="page"] { color: var(--lime); }
.tabbar .tab .badge-n { position: absolute; transform: translate(14px,-8px); background: var(--red); color: #fff;
  font-size: 10px; min-width: 16px; height: 16px; border-radius: 9px; display: grid; place-content: center; padding: 0 4px; }
.tabbar .tab { position: relative; }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(86px + var(--safe-bot)); transform: translateX(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(440px, 92vw); }
.toast { padding: 12px 14px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--line);
  box-shadow: var(--sh-2); font-weight: 650; font-size: 14px; display: flex; gap: 10px; align-items: center;
  animation: toastin .25s ease; }
.toast--ok { border-color: color-mix(in srgb, var(--lime) 45%, var(--line)); }
.toast--warn { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }
.toast--err { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); }
.toast .ti { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.toast--ok .ti { background: var(--lime); } .toast--warn .ti { background: var(--amber); } .toast--err .ti { background: var(--red); }
@keyframes toastin { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Modal / sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(4,7,7,.66); backdrop-filter: blur(3px); z-index: 70;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
@media (min-width: 560px) { .scrim { align-items: center; } }
.sheet { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 18px var(--pad) calc(20px + var(--safe-bot));
  box-shadow: var(--sh-2); animation: sheetin .26s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 560px) { .sheet { border-radius: var(--r-lg); } }
.sheet h2 { margin-bottom: 4px; }
.sheet .grab { width: 38px; height: 4px; border-radius: 4px; background: var(--surface-3); margin: -4px auto 14px; }
@keyframes sheetin { from { transform: translateY(28px); opacity: .6; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Skeleton ---------- */
.sk { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.3s infinite; }
.sk-line { height: 13px; border-radius: 6px; } .sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; }
.sk-card { height: 132px; border-radius: var(--r-lg); }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------- Empty / connection states ---------- */
.empty { text-align: center; padding: 40px 18px; color: var(--muted); }
.empty .big { font-size: 30px; margin-bottom: 8px; opacity: .8; }
.conn { position: sticky; top: 64px; z-index: 15; margin: 0 auto 8px; max-width: var(--maxw); }
.conn__in { margin: 0 var(--pad); padding: 8px 12px; border-radius: var(--r); font-size: 13px; font-weight: 700;
  background: rgba(255,210,62,.12); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 30%, var(--line));
  display: flex; align-items: center; gap: 8px; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 13px; }
.stat .v { font-family: var(--mono); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 11.5px; color: var(--muted); font-weight: 650; margin-top: 2px; }
.stat--lime .v { color: var(--lime); } .stat--amber .v { color: var(--amber); }

/* Progress (top-up presets etc.) */
.seg { display: grid; grid-auto-flow: column; gap: 8px; }

/* ---------- Landing (mehmon uchun hero) ---------- */
.land { position: relative; padding: 20px 0 4px; overflow: hidden; }
.land::before { content: ""; position: absolute; top: -80px; right: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(184,255,44,.14), transparent 66%); pointer-events: none; z-index: 0; }
.land > * { position: relative; z-index: 1; }
.land h1 { font-size: clamp(30px, 9.5vw, 46px); margin: 12px 0 10px; }
.land h1 .lime { color: var(--lime); text-shadow: 0 0 24px rgba(184,255,44,.28); }
.land__sub { color: var(--ink-2); font-size: 15.5px; max-width: 32ch; line-height: 1.5; }
.land__cta { margin-top: 18px; }
.land__steps { display: grid; gap: 9px; margin-top: 22px; }
.lstep { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh-1); }
.lstep__n { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-content: center;
  font-family: var(--mono); font-weight: 800; font-size: 15px; color: var(--on-lime); background: var(--lime); }
.lstep b { font-size: 14.5px; font-weight: 700; }
.land__trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.land__trust .chip { font-size: 12px; padding: 6px 11px; }

/* ---------- Home: hero + show cards ---------- */
.hero { padding: 6px 0 2px; }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .sc-grid { grid-template-columns: 1fr; } }
.sc { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: transform .08s, border-color .15s; }
.sc:active { transform: scale(.99); }
.sc-media { position: relative; aspect-ratio: 4/3; background: var(--surface-3); }
.sc-cover { width: 100%; height: 100%; object-fit: cover; }
.sc-cover.ph, .sc-media .ph { width: 100%; height: 100%; display: grid; place-content: center;
  font-family: var(--mono); font-size: 30px; font-weight: 800; color: var(--lime-dim);
  background: radial-gradient(70% 60% at 50% 35%, #16231f, #0a0f10); }
.sc-timer { position: absolute; right: 8px; bottom: 8px; background: rgba(7,10,11,.74); backdrop-filter: blur(6px);
  color: var(--lime); font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: var(--r-pill); }
.sc-body { padding: 11px 12px 13px; }
.sc-seller { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.sc-seller .av { width: 19px; height: 19px; border-radius: 50%; background: var(--surface-3); display: grid;
  place-content: center; font-size: 10px; font-weight: 800; color: var(--lime); }
.sc-seller b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-title { font-weight: 700; font-size: 14.5px; line-height: 1.25; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-meta { font-size: 13px; display: flex; align-items: baseline; gap: 2px; }
.sc-meta .mono { font-weight: 800; }

/* Storefront header */
.shop-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
  display: flex; gap: 14px; align-items: center; }
.shop-hero .av { width: 60px; height: 60px; border-radius: 18px; background: var(--surface-3); display: grid;
  place-content: center; font-size: 22px; font-weight: 800; color: var(--lime); flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pcard .pimg { aspect-ratio: 1/1; background: var(--surface-3); display: grid; place-content: center; color: var(--lime-dim);
  font-family: var(--mono); font-size: 22px; }
.pcard .pb { padding: 9px 10px; font-size: 13px; font-weight: 650; }

/* Star rating */
.stars { color: var(--amber); letter-spacing: 2px; font-size: 14px; }
