/* Palma — telefon ilovasi uslublari. Ranglar tokenlarda: kunduzgi (:root) va tungi (.dark) */
:root {
  --bg: #F3F2EE; --bg-2: #E8E6DF; --card: #FFFFFF; --card-2: #F7F6F2;
  --line: #E4E1D8; --line-2: #EEECE5;
  --t: #121A16; --t-2: #535E58; --t-3: #8A928D;
  --g: #0D6A4E; --g-2: #14845F; --g-d: #0A4C38; --g-l: #E3EFE8; --on-g: #FFFFFF;
  --acc: #C39A44; --acc-d: #94712A; --acc-l: #F4ECDA;
  --red: #C4423D; --red-l: #F8E6E4; --org: #B7771B; --org-l: #F7EDDA;
  --blue: #2E63B3; --blue-l: #E5ECF7; --vio: #6A55C0; --vio-l: #ECE8F8;
  --ink: #0C211B; --ink-2: #123A2F;
  --sh: 0 1px 2px rgba(18,26,22,.04), 0 6px 18px rgba(18,26,22,.06);
  --sh-2: 0 18px 40px rgba(18,26,22,.18);
  --ov: rgba(9,18,14,.46);
  --glass: rgba(255,255,255,.86);
  --ring: rgba(13,106,78,.16);
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root.dark {
  --bg: #0A0E0C; --bg-2: #151B18; --card: #141A17; --card-2: #1A221E;
  --line: #252E2A; --line-2: #1C2421;
  --t: #E9EEEB; --t-2: #A3ADA7; --t-3: #6E7973;
  --g: #34B88A; --g-2: #45CC9B; --g-d: #9AE3C6; --g-l: #13291F; --on-g: #04130D;
  --acc: #D6AF5C; --acc-d: #E8C985; --acc-l: #2A2315;
  --red: #F0716A; --red-l: #33191A; --org: #E3A14C; --org-l: #2E2314;
  --blue: #74A2EE; --blue-l: #16223A; --vio: #A792F2; --vio-l: #221C38;
  --ink: #08140F; --ink-2: #10291F;
  --sh: 0 1px 2px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.28);
  --sh-2: 0 18px 44px rgba(0,0,0,.55);
  --ov: rgba(0,0,0,.62);
  --glass: rgba(20,26,23,.88);
  --ring: rgba(52,184,138,.22);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Ilova kabi: pastga surib yangilash, chetdagi "cho'zilish", ikki bosishda kattalashish va matnni tasodifan belgilash yo'q */
html, body { margin: 0; overscroll-behavior: none; }
/* iPhone (iOS 26) holat qatori rangini theme-color'dan emas, sahifa fonidan va tepadagi qotirilgan (fixed)
   elementdan oladi. Shuning uchun: sahifa foni to'q (sarlavha rangi), sarlavha tepada qotirilgan,
   kontent esa och rangli #app ichida — tepada xira/kulrang qatlam bo'lmaydi */
html { background: var(--ink); }
html.sp-on, html.sp-on body { background: #06110D; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; min-height: 100vh; min-height: 100dvh; }
input, textarea, select { -webkit-user-select: text; user-select: text; }
body { font-family: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--ink); color: var(--t); font-size: 15px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
#app { background: var(--bg); min-height: 100vh; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--g); text-decoration: none; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.red { color: var(--red); } .grn { color: var(--g); } .org { color: var(--org); } .mut { color: var(--t-3); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== Sarlavha (doim to'q — status bar matni o'qilsin) ===== */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: var(--ink); color: #fff; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px; display: flex; align-items: center; gap: 12px; }
.bar h1 { font-size: 18px; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.bar .back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, #16946A, #0A4C38); display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(241,213,140,.35); }
.logo-mark svg { width: 24px; height: 24px; }
.ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #2A1E05; background: linear-gradient(145deg, #E9C97F, #B98A2F); flex: none; border: 0; }
/* O'ng tomon: bulut holati nuqtasi va yangilash tugmasi (bosilganda aylanadi) */
.bar-r { display: flex; align-items: center; gap: 10px; flex: none; }
.bar .back.aylan svg { animation: aylan .8s linear infinite; }
@keyframes aylan { to { transform: rotate(360deg); } }
.syncd { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); }
.syncd i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ===== Kontent ===== */
#view { padding: calc(78px + env(safe-area-inset-top, 0px)) 16px calc(var(--nav-h) + var(--safe-b) + 36px); max-width: 560px; margin: 0 auto; }
#view.has-total { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 124px); }
.hello { margin: 2px 0 14px; }
.hello b { font-size: 21px; display: block; letter-spacing: -.4px; }
.hello span { color: var(--t-2); font-weight: 600; font-size: 13.5px; }
.seg { display: flex; background: var(--bg-2); border-radius: 13px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 10px; font-weight: 700; color: var(--t-2); font-size: 13.5px; padding: 0 2px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: background .2s, color .2s; }
.seg button.on { background: var(--card); color: var(--t); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.05); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sc { background: var(--card); border-radius: 16px; box-shadow: var(--sh); padding: 14px; min-width: 0; }
.sc .l { font-size: 12.5px; color: var(--t-2); font-weight: 700; }
.sc .v { font-size: 19px; font-weight: 800; letter-spacing: -.4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc .s { font-size: 12px; color: var(--t-3); margin-top: 2px; font-weight: 600; }
.card { background: var(--card); border-radius: 18px; box-shadow: var(--sh); padding: 14px 16px; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.card h3 .sp { flex: 1; }
.card h3 a { font-size: 13px; font-weight: 700; }
.alert { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: var(--sh); margin-bottom: 10px; border: 0; width: 100%; text-align: left; min-height: 60px; color: var(--t); }
.alert .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--red-l); color: var(--red); flex: none; }
.alert.o .ico { background: var(--org-l); color: var(--org); }
.alert b { display: block; } .alert span { color: var(--t-2); font-size: 13px; font-weight: 600; }
.alert .go { margin-left: auto; color: var(--t-3); }

/* Ro'yxat */
.list { background: var(--card); border-radius: 18px; box-shadow: var(--sh); overflow: hidden; margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 62px; border-bottom: 1px solid var(--line-2); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: var(--t); }
.row:last-child { border-bottom: 0; }
button.row:active, a.row:active { background: var(--line-2); }
.row .mid { flex: 1; min-width: 0; }
.row .mid b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .mid small { display: block; color: var(--t-3); font-size: 12.5px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .mid .wrap { white-space: normal; }
.row .end { text-align: right; flex: none; }
.row .end b { display: block; }
.row .end small { font-size: 12px; color: var(--t-3); font-weight: 600; }
.ri { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--g-l); color: var(--g); font-weight: 800; }
.ri.r { background: var(--red-l); color: var(--red); } .ri.b { background: var(--blue-l); color: var(--blue); } .ri.o { background: var(--org-l); color: var(--org); } .ri.a { background: var(--acc-l); color: var(--acc-d); } .ri.v { background: var(--vio-l); color: var(--vio); }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 16px; }
.day-h { font-size: 13px; font-weight: 800; color: var(--t-2); margin: 16px 4px 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--line-2); color: var(--t-2); }
.tag.g { background: var(--g-l); color: var(--g); } .tag.r { background: var(--red-l); color: var(--red); } .tag.o { background: var(--org-l); color: var(--org); } .tag.b { background: var(--blue-l); color: var(--blue); }
.empty { text-align: center; color: var(--t-3); padding: 34px 10px; font-weight: 600; }
.search { position: relative; margin-bottom: 12px; display: block; }
.search svg { position: absolute; left: 14px; top: 14px; color: var(--t-3); }
.search input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px 0 44px; background: var(--card); outline: none; font-size: 16px; }
.search input:focus, .inp:focus { border-color: var(--g); box-shadow: 0 0 0 3px var(--ring); }
.grp { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--t-3); margin: 18px 4px 8px; }
.note { color: var(--t-3); font-size: 12.5px; font-weight: 600; margin: -6px 4px 10px; }

/* Tugmalar va forma */
.btn { min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; color: var(--t); text-align: center; }
.btn.primary { background: var(--g); border-color: var(--g); color: var(--on-g); }
.btn.gold { background: linear-gradient(145deg, #D9B661, #B98A2F); border: 0; color: #231804; }
.btn.danger { color: var(--red); border-color: var(--red-l); background: var(--card); }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 12px; }
.btn:disabled { opacity: .5; }
.btn:active { transform: scale(.98); }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btns.three { grid-template-columns: repeat(3, 1fr); }
.btns.three .btn { padding: 0 6px; font-size: 13.5px; flex-direction: column; gap: 3px; min-height: 64px; }
.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.f > span { font-size: 13px; font-weight: 700; color: var(--t-2); }
.inp { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 0 14px; background: var(--card-2); outline: none; font-size: 16px; }
select.inp { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--t-3) 50%), linear-gradient(135deg, var(--t-3) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.inp.big { font-size: 24px; font-weight: 800; min-height: 58px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chips button { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; flex: 1 0 auto; color: var(--t); }
.chips button.on { border-color: var(--g); background: var(--g-l); color: var(--g); }
.info { background: var(--g-l); color: var(--g); padding: 12px 14px; border-radius: 13px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.info.r { background: var(--red-l); color: var(--red); } .info.o { background: var(--org-l); color: var(--org); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--t-2); }
.kv b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv.tot { font-size: 17px; font-weight: 800; border-top: 2px solid var(--line); border-bottom: 0; padding-top: 12px; }
.kv.tot span { color: var(--t); }
.kv.hl { background: var(--g-l); border: 2px solid var(--g); border-radius: 14px; padding: 12px; margin: 6px -4px; }
.kv.hl span { color: var(--g); } .kv.hl b { color: var(--g); font-size: 19px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 44px; flex: none; }
.qty button { width: 44px; height: 100%; border: 0; background: var(--line-2); font-size: 20px; font-weight: 800; }
.qty span { min-width: 46px; text-align: center; font-weight: 800; padding: 0 4px; }

/* Kalitcha (switch) */
.sw { width: 50px; height: 30px; border-radius: 999px; background: var(--bg-2); position: relative; flex: none; transition: background .2s; border: 1px solid var(--line); }
.sw i { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .22s cubic-bezier(.3,1.4,.5,1); }
.sw.on { background: var(--g); border-color: var(--g); }
.sw.on i { transform: translateX(20px); }

/* ===== Pastki menyu ===== */
.nav { position: fixed; left: 10px; right: 10px; bottom: calc(8px + var(--safe-b)); z-index: 30; height: var(--nav-h); padding: 6px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--sh-2); display: flex; justify-content: space-around; align-items: center; max-width: 540px; margin: 0 auto; }
.nav button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--t-3); min-height: 52px; justify-content: center; position: relative; z-index: 0; min-width: 0; }
.nav button span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 5 bo'limli menyu (bosh adminda "Foydalanuvchilar" bilan) — yozuvlar sig'sin */
.nav.n5 { left: 6px; right: 6px; padding: 4px; }
.nav.n5 button { flex: 1 1 auto; padding: 0 3px; font-size: 10px; letter-spacing: -.01em; }
.nav button.on { color: var(--g); }
.nav button.on::before { content: ''; position: absolute; top: 4px; width: 44px; height: 30px; border-radius: 10px; background: var(--g-l); z-index: -1; }
.nav button .bd { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 10px; font-style: normal; border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.nav .plus { flex: none; width: 60px; height: 60px; min-height: 60px; border-radius: 50%; background: linear-gradient(145deg, #18A074, #0A4C38); color: #fff; margin-top: -30px; box-shadow: 0 10px 24px rgba(10,76,56,.45), inset 0 0 0 1px rgba(241,213,140,.4); border: 4px solid var(--bg); }
.nav .plus svg { width: 28px; height: 28px; stroke-width: 2.4; }
.nav .plus.on { color: #fff; }
.nav .plus.on::before { display: none; }

/* Sotish — pastki jami paneli */
.totbar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 25; background: var(--ink); color: #fff; padding: 12px 14px 12px 16px; display: flex; align-items: center; gap: 12px; border-radius: 18px; box-shadow: var(--sh-2); max-width: 540px; margin: 0 auto; }
.totbar div { flex: 1; min-width: 0; }
.totbar small { color: rgba(255,255,255,.62); font-weight: 700; font-size: 12px; display: block; }
.totbar b { font-size: 22px; letter-spacing: -.5px; color: #E9C97F; white-space: nowrap; }
.totbar .btn { min-width: 124px; background: #18A074; border-color: #18A074; color: #fff; }

/* ===== Pastdan chiqadigan oyna ===== */
.ov { position: fixed; inset: 0; z-index: 60; background: var(--ov); opacity: 0; transition: opacity .22s; }
.ov.show { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; background: var(--card); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: 560px; margin: 0 auto; }
.ov.show .sheet { transform: none; }
.sheet .handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sh-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px; border-bottom: 1px solid var(--line-2); }
.sh-head h3 { margin: 0; flex: 1; font-size: 17px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-head button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--line-2); display: grid; place-items: center; color: var(--t); }
.sh-body { overflow-y: auto; padding: 16px; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sh-foot { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-foot.one { grid-template-columns: 1fr; }

/* Yon menyu (☰) — chapdan, ekranning 80% i */
.mn-ov { position: fixed; inset: 0; z-index: 50; background: var(--ov); opacity: 0; transition: opacity .25s; }
.mn-ov.show { opacity: 1; }
.mn { position: absolute; top: 0; bottom: 0; left: 0; width: 80vw; max-width: 460px; background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--sh-2); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.mn-ov.show .mn { transform: none; }
.mn-head { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px 16px; }
.mn-t { flex: 1; min-width: 0; }
.mn-t b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-t small { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.65); }
.mn-head .back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; }
.mn-body { flex: 1; overflow-y: auto; padding: 0 16px calc(24px + var(--safe-b)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.mn-body .grp:first-child { margin-top: 14px; }
.mn-body .row .mid b { white-space: normal; line-height: 1.25; }
.mn-body .tema3 { gap: 8px; }
.mn-body .tema3 button { padding: 6px 6px 8px; font-size: 12.5px; }
.mn-body .tp { height: 52px; }

/* Xabarlar */
.toasts { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 18px); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: #17231E; color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: tin .22s; max-width: 100%; }
.toast.err { background: #B5362F; } .toast.warn { background: #8A5A06; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.ttoast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 120; width: min(92vw, 420px); background: var(--card); color: var(--t); border-radius: 18px; box-shadow: var(--sh-2); padding: 12px 14px; display: flex; gap: 12px; align-items: center; animation: tdown .25s ease-out; border: 1px solid var(--line); }
.ttoast .ok { width: 36px; height: 36px; border-radius: 50%; background: var(--g); color: var(--on-g); display: grid; place-items: center; flex: none; }
.ttoast b { display: block; } .ttoast small { color: var(--t-2); font-weight: 600; }
@keyframes tdown { from { transform: translate(-50%, -16px); opacity: 0; } }

/* ===== Asosiy ===== */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 18px 18px 14px; color: #fff; background: radial-gradient(90% 70% at 100% 0%, rgba(214,175,92,.32), transparent 60%), linear-gradient(150deg, #11765A 0%, #0A3D2F 100%); box-shadow: 0 16px 34px rgba(10,61,47,.3); margin-bottom: 12px; }
.hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(241,213,140,.18); }
.hero .top { display: flex; align-items: center; justify-content: space-between; }
.hero .lbl { font-size: 11.5px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero .big { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 4px 0 12px; line-height: 1.05; }
.hero .big small { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.72); letter-spacing: 0; }
.hero .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero .mini div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; padding: 8px 10px; min-width: 0; }
.hero .mini small { display: block; font-size: 11.5px; color: rgba(255,255,255,.7); font-weight: 700; }
.hero .mini b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .week { display: flex; gap: 6px; align-items: flex-end; height: 64px; margin-top: 12px; }
.hero .week .d { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.hero .week i { display: block; width: 100%; border-radius: 6px; background: rgba(255,255,255,.22); min-height: 4px; }
.hero .week .d.on i { background: linear-gradient(180deg, #F1D58C, #C39A44); }
.hero .week span { font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.66); }
.hero .week .d.on span { color: #fff; }
.up { color: #8FE3C1; } .down { color: #FFB3AE; }
.goal { background: var(--card); border-radius: 18px; box-shadow: var(--sh); padding: 13px 14px; margin-bottom: 12px; border: 0; width: 100%; text-align: left; display: block; color: var(--t); }
.goal .row1 { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.goal .row1 span { display: flex; align-items: center; gap: 6px; }
.goal .row1 span svg { color: var(--acc); }
.goal .row1 b { color: var(--g); }
.goal .gbar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin: 9px 0 6px; }
.goal .gbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g), #C39A44); border-radius: 4px; }
.goal small { color: var(--t-3); font-weight: 600; font-size: 12.5px; }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tiles3 > * { background: var(--card); border-radius: 16px; box-shadow: var(--sh); padding: 10px 11px; min-width: 0; border: 0; text-align: left; color: var(--t); }
.tiles3 small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--t-2); white-space: nowrap; }
.tiles3 small svg { width: 15px; height: 15px; }
.tiles3 b { display: block; font-size: 16px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.quick4 button { background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--sh); padding: 11px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; min-height: 80px; color: var(--t); }
.qi { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--g-l); color: var(--g); flex: none; }
.qi.o { background: var(--acc-l); color: var(--acc-d); } .qi.b { background: var(--blue-l); color: var(--blue); } .qi.v { background: var(--vio-l); color: var(--vio); } .qi.r { background: var(--red-l); color: var(--red); }
.qi svg { width: 21px; height: 21px; }

/* "Ilova qilib o'rnating" taklifi (telefonda brauzer ichida ochilganda) */
.ornat { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; margin-bottom: 14px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgba(214,175,92,.3), transparent 60%), linear-gradient(150deg, #11765A, #0A3D2F); box-shadow: 0 10px 24px rgba(10,61,47,.25); }
.ornat .oi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #F1D58C; flex: none; }
.ornat .mid { flex: 1; min-width: 0; }
.ornat b { display: block; font-size: 14.5px; }
.ornat small { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); margin-top: 1px; }
.ornat .ob { min-height: 38px; padding: 0 12px; border-radius: 11px; border: 0; background: #F1D58C; color: #231804; font-weight: 800; font-size: 13.5px; flex: none; }
.ornat .ox { width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: rgba(255,255,255,.7); display: grid; place-items: center; flex: none; padding: 0; }

/* Dashboard: 7 kunlik grafik */
.chart7 { display: flex; gap: 6px; align-items: flex-end; height: 130px; }
.chart7 .d { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.chart7 .bb { flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 3px; }
.chart7 i { display: block; width: 36%; max-width: 12px; border-radius: 5px 5px 2px 2px; min-height: 3px; transition: height .4s; }
.chart7 i.g, .lg-l i.g { background: var(--g); } .chart7 i.o, .lg-l i.o { background: var(--acc); }
.chart7 span { font-size: 11px; font-weight: 700; color: var(--t-3); }
.chart7 .d.on span { color: var(--t); }
.lg-l { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--t-3); }
.lg-l i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.card h3 svg { color: var(--acc); }

/* Umumiy summa kartochkasi (mijozlar, ta'minotchilar) */
.sumcard { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; color: #fff; border-radius: 22px; padding: 16px 18px; margin-bottom: 12px; background: radial-gradient(80% 90% at 100% 0%, rgba(214,175,92,.28), transparent 60%), linear-gradient(150deg, #123D31, #0A221B); box-shadow: 0 14px 30px rgba(10,34,27,.28); }
.sumcard.r { background: radial-gradient(80% 90% at 100% 0%, rgba(240,113,106,.3), transparent 60%), linear-gradient(150deg, #3A1E1C, #1C0F0E); box-shadow: 0 14px 30px rgba(40,14,12,.3); }
.sumcard > div { flex: 1; min-width: 0; }
.sumcard small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sumcard b { display: block; font-size: 26px; letter-spacing: -.6px; margin: 3px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sumcard span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.72); }
.sumcard .sc-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #F1D58C; flex: none; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.tri > div { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 9px 10px; min-width: 0; }
.tri small { display: block; font-size: 11.5px; color: var(--t-2); font-weight: 700; }
.tri b { display: block; font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big-debt { text-align: center; padding: 8px 10px 12px; }
.big-debt small { color: var(--t-2); font-weight: 700; }
.big-debt b { display: block; font-size: 34px; letter-spacing: -1px; margin-top: 2px; }

/* Tarix yozuvlari (sana, soat, nima, qancha, qoldi) */
.ev { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: var(--t); }
.ev:last-child { border-bottom: 0; }
.ev:active { background: var(--line-2); }
.ev .mid { flex: 1; min-width: 0; }
.ev .mid b { display: block; }
.ev .mid small { display: block; color: var(--t-3); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.ev .mid .pl { color: var(--t-2); font-weight: 700; }
.ev .mid .iz { color: var(--t-2); font-style: italic; }
.ev .end { text-align: right; flex: none; }
.ev .end b { display: block; }
.ev .end small { font-size: 12px; color: var(--t-3); font-weight: 700; }

/* Sotish */
.carts { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px; scrollbar-width: none; }
.carts::-webkit-scrollbar { display: none; }
.cartc { flex: 0 0 auto; min-width: 150px; border-radius: 18px; padding: 12px 14px; border: 0; text-align: left; background: var(--card); box-shadow: var(--sh); color: var(--t); }
.cartc b { display: block; font-size: 13px; } .cartc strong { display: block; font-size: 20px; margin-top: 2px; letter-spacing: -.4px; } .cartc small { font-weight: 600; color: var(--t-3); font-size: 12px; }
.cartc.on { background: linear-gradient(150deg, #11765A, #0A3D2F); color: #fff; box-shadow: 0 10px 22px rgba(10,61,47,.3); }
.cartc.on small { color: rgba(255,255,255,.7); }
.cartc.new { min-width: 84px; background: transparent; box-shadow: none; border: 2px dashed var(--line); color: var(--g); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; }
.srow { display: flex; gap: 8px; margin-bottom: 12px; }
.srow .search { flex: 1; margin: 0; }
.sqbtn { width: 48px; height: 48px; flex: none; border: 0; border-radius: 14px; display: grid; place-items: center; color: var(--on-g); background: var(--g); box-shadow: 0 6px 14px rgba(13,106,78,.25); }
.sqbtn.alt { background: var(--card); color: var(--g); border: 1px solid var(--line); box-shadow: none; }
.sqbtn.del { background: var(--red-l); color: var(--red); box-shadow: none; }
.ecart { text-align: center; padding: 22px 10px 8px; }
.ecart .qi { width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 10px; }
.ecart .qi svg { width: 28px; height: 28px; }
.ecart b { display: block; font-size: 16px; } .ecart small { color: var(--t-3); font-weight: 600; }
.btn.scan { width: 100%; min-height: 54px; margin-top: 14px; background: var(--g); border: 0; color: var(--on-g); font-size: 16px; box-shadow: 0 8px 18px rgba(13,106,78,.25); }
/* To'lov qatorlari (bir nechta usul) */
.pays { background: var(--card); border-radius: 18px; box-shadow: var(--sh); padding: 6px 14px; margin-bottom: 14px; }
.sheet .pays { box-shadow: none; border: 1px solid var(--line); }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pl-row:last-child { border-bottom: 0; }
.pl-row .ri { width: 36px; height: 36px; border-radius: 11px; }
.pl-row .mid { flex: 1; min-width: 0; }
.pl-row .mid b { display: block; font-size: 14px; }
.pl-row .mid small { display: block; font-size: 11.5px; color: var(--t-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row input { width: 132px; min-height: 44px; text-align: right; font-weight: 800; font-size: 17px; padding: 0 12px; }
.paysum { border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; background: var(--card-2); border: 1px solid var(--line); }
.paysum .kv { padding: 5px 0; border: 0; }
.paysum .kv.q b { color: var(--red); font-size: 18px; }
.paysum .kv.ok b { color: var(--g); }

/* Skaner */
.scanbox { position: relative; border-radius: 18px; overflow: hidden; background: #000; min-height: 260px; }
.scanbox #scan-reader { width: 100%; }
.scanbox #scan-reader video { width: 100% !important; display: block; }
.scanlast { margin-top: 12px; }

/* Mahsulotlar */
.ocard { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; box-shadow: var(--sh); padding: 12px 14px; margin-bottom: 10px; }
.ocard .qi { width: 46px; height: 46px; border-radius: 14px; }
.ocard .mid { flex: 1; } .ocard small { color: var(--t-3); font-weight: 600; font-size: 12.5px; display: block; } .ocard b { font-size: 22px; }
.xl { min-height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--g-l); color: var(--g); font-weight: 800; display: flex; align-items: center; gap: 6px; }
.v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.v2 > div { background: var(--card); border-radius: 16px; box-shadow: var(--sh); padding: 12px 14px; min-width: 0; }
.v2 small { color: var(--t-2); font-weight: 600; font-size: 12.5px; } .v2 b { display: block; font-size: 18px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kchips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; scrollbar-width: none; }
.kchips::-webkit-scrollbar { display: none; }
.kchips button { flex: none; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--t); }
.kchips button i { font-style: normal; font-size: 11.5px; background: var(--line-2); border-radius: 999px; padding: 1px 7px; }
.kchips button.on { background: var(--g); border-color: var(--g); color: var(--on-g); } .kchips button.on i { background: rgba(255,255,255,.25); }
.pic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 17px; object-fit: cover; background: var(--line-2); overflow: hidden; }
img.pic { display: block; }
.pcard { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pc-img { width: 112px; height: 112px; border-radius: 20px; object-fit: cover; flex: none; background: var(--line-2); display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 800; box-shadow: var(--sh); }
.pc-info { min-width: 0; flex: 1; }
.pc-info b { display: block; font-size: 18px; line-height: 1.25; }
.pc-info small { display: block; color: var(--t-3); font-weight: 600; font-size: 12.5px; margin-top: 3px; overflow-wrap: anywhere; }
.pc-price { font-size: 22px; font-weight: 800; color: var(--g); margin-top: 6px; letter-spacing: -.4px; }
.pc-big { width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto 14px; border-radius: 24px; overflow: hidden; background: var(--line-2); box-shadow: var(--sh); }
.pc-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-big span { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 72px; font-weight: 800; }
button.sumcard { border: 0; width: 100%; text-align: left; font: inherit; }
.ph-pick { display: flex; gap: 12px; align-items: stretch; margin-bottom: 16px; }
.ph-box { width: 116px; height: 116px; flex: none; border-radius: 20px; border: 2px dashed var(--line); background: var(--card-2); display: grid; place-items: center; overflow: hidden; color: var(--t-3); text-align: center; }
.ph-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-box small { display: block; font-size: 12px; font-weight: 700; margin-top: 4px; }
.ph-btns { flex: 1; display: grid; gap: 8px; align-content: center; min-width: 0; }
.ph-btns .btn { min-height: 44px; font-size: 14px; justify-content: flex-start; padding: 0 12px; }

/* Sozlamalar */
.prof { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 20px; box-shadow: var(--sh); padding: 16px; margin-bottom: 6px; }
.prof .ava { width: 56px; height: 56px; font-size: 22px; }
.prof b { display: block; font-size: 18px; } .prof small { color: var(--t-3); font-weight: 600; }
.tema3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.tema3 button { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 8px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-weight: 800; font-size: 13px; color: var(--t); }
.tema3 button.on { border-color: var(--g); box-shadow: 0 0 0 3px var(--ring); }
.tema3 button span.lb { display: flex; align-items: center; gap: 5px; }
.tema3 button span.lb svg { width: 16px; height: 16px; }
.tp { width: 100%; height: 64px; border-radius: 12px; position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.tp i { position: absolute; left: 8px; right: 8px; height: 12px; border-radius: 5px; }
.tp i:nth-child(1) { top: 9px; height: 16px; } .tp i:nth-child(2) { top: 31px; } .tp i:nth-child(3) { top: 47px; right: 30px; }
.tp.l { background: #F3F2EE; } .tp.l i { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); } .tp.l i:nth-child(1) { background: #11765A; }
.tp.d { background: #0A0E0C; } .tp.d i { background: #1A221E; } .tp.d i:nth-child(1) { background: #11765A; }
.tp.a { background: linear-gradient(135deg, #F3F2EE 50%, #0A0E0C 50%); } .tp.a i { background: rgba(127,127,127,.35); } .tp.a i:nth-child(1) { background: #11765A; }
.ver { text-align: center; color: var(--t-3); font-size: 12px; font-weight: 700; margin: 18px 0 6px; }
/* PIN almashtirish oynasi */
.pinbox { text-align: center; padding: 6px 0 4px; }
.pinbox .pb-t { font-weight: 800; font-size: 16px; margin-bottom: 4px; min-height: 22px; }
.pinbox .pb-e { color: var(--red); font-weight: 700; font-size: 13px; min-height: 18px; }
.pinbox .pb-s { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.pinbox .pb-s i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); }
.pinbox .pb-s i.on { background: var(--g); }
.dots { display: flex; justify-content: center; gap: 18px; margin: 14px 0 22px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--t-3); transition: background .15s, border-color .15s, transform .15s; }
.dots i.on { background: var(--g); border-color: var(--g); transform: scale(1.05); }
.dots.shake { animation: shake .4s; }
.dots.bad i { border-color: var(--red); background: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 16px 28px; justify-content: center; }
.keypad button, .keypad span { width: 72px; height: 72px; border-radius: 50%; }
.keypad button { border: 0; background: var(--card-2); font-size: 28px; font-weight: 600; display: grid; place-items: center; color: var(--t); transition: background .12s, transform .12s; }
.keypad button:active { transform: scale(.94); background: var(--g-l); }
.keypad button.fn { background: transparent; }
.keypad button.fn svg { width: 28px; height: 28px; }

/* ===== Kirish ekrani va boshlanish animatsiyasi (doim to'q, brend ranglari) ===== */
#lockroot:empty { display: none; }
.lock, .splash { position: fixed; inset: 0; z-index: 200; color: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(120% 70% at 50% -10%, #18493B 0%, transparent 62%), radial-gradient(90% 60% at 100% 110%, rgba(199,154,62,.2), transparent 60%), linear-gradient(180deg, #0C221C, #06120E); }
.lock::before, .splash::before { content: ''; position: absolute; width: 140vmax; height: 140vmax; left: 50%; top: 40%; margin: -70vmax 0 0 -70vmax; background: conic-gradient(from 0deg, transparent 0 20%, rgba(214,175,92,.10) 30%, transparent 40% 60%, rgba(52,184,138,.10) 72%, transparent 82%); animation: spin 26s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lock { justify-content: space-between; padding: calc(42px + env(safe-area-inset-top, 0px)) 20px calc(26px + var(--safe-b)); overflow-y: auto; }
.lk-top { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.lk-logo { width: 92px; height: 92px; position: relative; }
.lk-name { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin-top: 14px; }
.lk-sub { font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.62); margin-top: 4px; min-height: 20px; transition: color .2s; }
.lk-sub.bad { color: #FF9C95; }
.lock .dots i { border-color: rgba(255,255,255,.55); }
.lock .dots i.on { background: #E2BE6A; border-color: #E2BE6A; }
.lock .dots.bad i { background: #F0716A; border-color: #F0716A; }
.lock .keypad { position: relative; margin-top: 8px; }
.lock .keypad button { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); color: #fff; }
.lock .keypad button:active { background: rgba(255,255,255,.22); }
.lock .keypad button.fn { background: transparent; border: 0; color: rgba(255,255,255,.85); }
.lock .keypad button.fn.face { color: #E2BE6A; }
.lock .keypad:disabled, .lock .keypad.off { opacity: .35; pointer-events: none; }
.lk-hint { position: relative; font-size: 12.5px; color: rgba(255,255,255,.5); text-align: center; margin-top: 12px; }
.lk-hint b { color: rgba(255,255,255,.85); }
.lock .box { width: 100%; max-width: 380px; position: relative; margin: auto 0; }
.lock .box h2 { margin: 18px 0 6px; text-align: center; } .lock .box p { margin: 0 0 18px; color: rgba(255,255,255,.65); text-align: center; }
.lock .inp { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #fff; }
.lock .f > span { color: rgba(255,255,255,.7); }
.lock .btn.primary { background: linear-gradient(145deg, #D9B661, #B98A2F); border: 0; color: #231804; }
/* Logotip chizig'i */
.lg { width: 100%; height: 100%; overflow: visible; }
.lg .d { stroke-dasharray: 1; stroke-dashoffset: 0; }
.lg .glint { stroke-dasharray: .07 .93; animation: glint 3.2s linear infinite; }
@keyframes glint { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
.lg .sun { transform-origin: 84px 30px; }
/* ===== Kirish animatsiyasi (premium, ≈4,4 s + ochilish; zarrachalar va kuy — splash.js) =====
   0.1–2.2 zarrachalar girdob bo'lib logotipni chizadi → 2.2 chaqnash, to'lqin, nurlar, shisha disk →
   2.55 P·A·L·M·A niqobdan ko'tariladi → 3.1 shior chiziqlari → 3.3 metall yaltirash → 3.55 salom → 3.8 kadr bo'ylab nur →
   chiqish: kamera logotip ichiga uchib kiradi, portal ochiladi */
@property --r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.splash { justify-content: center; gap: 0; background: radial-gradient(120% 80% at 50% 40%, #10291F 0%, #08140F 55%, #030806 100%); }
.splash::before { content: none; }
.sp-bokeh { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.sp-bokeh i { position: absolute; border-radius: 50%; animation: bok var(--d) ease-in-out infinite alternate; }
@keyframes bok { to { translate: var(--x) var(--y); } }
.sp-rays { position: absolute; left: var(--pcx, 50%); top: var(--pcy, 38%); width: 1000px; height: 1000px; margin: -500px 0 0 -500px; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(242,213,140,.11) 0deg 1.4deg, transparent 1.4deg 8deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.55) 16%, transparent 42%); mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.55) 16%, transparent 42%); }
.sp-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sp-stage { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -6vh; }
/* Katak qat'iy 150px: katta qatlamlar (chaqnash, halo) ikki tomonga teng chiqadi, logotip markazda qoladi */
.sp-logo { width: 150px; height: 150px; position: relative; display: grid; grid-template: 150px / 150px; place-items: center; }
.sp-logo > * { grid-area: 1 / 1; }
.sp-flash { width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,248,226,.95) 0%, rgba(242,205,120,.5) 20%, rgba(242,205,120,0) 62%); opacity: 0; scale: .2; pointer-events: none; }
/* Halo — tayyor yumshoq gradient (blur filtri ishlatilmaydi — kuchsiz qurilmada ham yengil) */
.sp-halo { width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(242,205,120,.42) 0%, rgba(52,184,138,.22) 38%, rgba(14,107,79,.1) 55%, transparent 70%); opacity: 0; scale: .4; }
.sp-glass { width: 124px; height: 124px; border-radius: 50%; position: relative; overflow: hidden; opacity: 0; scale: .8;
  background: radial-gradient(120% 120% at 28% 18%, rgba(255,255,255,.2), rgba(255,255,255,.04) 55%, rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -10px 24px rgba(0,0,0,.25), 0 24px 60px rgba(0,0,0,.45); }
.sp-glass::after { content: ''; position: absolute; inset: -30%; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%); translate: -110% 0; }
.sp-wave { width: 132px; height: 132px; border-radius: 50%; border: 1.5px solid rgba(243,219,151,.85); opacity: 0; }
.sp-logo .lg { width: 132px; height: 132px; position: relative; opacity: 0; }
.splash .lg .glint { opacity: 0; }
.sp-wordbox { position: relative; margin-top: 30px; }
.sp-word, .sp-shine { display: flex; font-size: clamp(23px, 7.3vw, 40px); font-weight: 800; letter-spacing: .2em; padding-left: .2em; line-height: 1.15; white-space: nowrap; }
.sp-word .gap, .sp-shine .gap { width: .4em; flex: none; }
.sp-word .ch { display: inline-block; overflow: hidden; }
.sp-word .ch b { display: inline-block; translate: 0 112%; background: linear-gradient(180deg, #FFF8E2 0%, #F3DB97 32%, #C9993E 58%, #8F6A22 66%, #F1D58C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-shine { position: absolute; inset: 0; color: transparent; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%) no-repeat; background-size: 280% 100%; background-position: 170% 0; -webkit-background-clip: text; background-clip: text; pointer-events: none; }
.sp-tagline { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .5em; color: rgba(242,213,140,.9); }
.sp-tagline span { opacity: 0; font-size: 8px; letter-spacing: 0; color: #E2BE6A; }
.sp-tagline::before, .sp-tagline::after { content: ''; height: 1px; width: 0; background: linear-gradient(90deg, transparent, #E2BE6A); }
.sp-tagline::after { background: linear-gradient(270deg, transparent, #E2BE6A); }
.sp-hi { margin-top: 28px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.72); opacity: 0; translate: 0 10px; min-height: 22px; text-align: center; padding: 0 20px; }
.sp-sweep { position: absolute; inset: -20% -60%; pointer-events: none; opacity: 0; translate: -70% 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,240,205,.08) 47%, rgba(255,255,255,.16) 50%, rgba(255,240,205,.08) 53%, transparent 58%); }
.sp-grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-size: 128px 128px; animation: grain .6s steps(4) infinite; }
@keyframes grain { 0% { background-position: 0 0; } 25% { background-position: -40px 30px; } 50% { background-position: 30px -50px; } 75% { background-position: -20px -20px; } }
.sp-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 90% at 50% 42%, transparent 55%, rgba(0,0,0,.6) 100%); }
.sp-bar { position: absolute; bottom: calc(48px + var(--safe-b)); width: 120px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; opacity: 0; transition: opacity .4s; }
.splash.wait .sp-bar { opacity: 1; }
.sp-bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: linear-gradient(90deg, transparent, #E2BE6A, transparent); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* Vaqt chizig'i — .go qo'shilganda (kuy ham shu lahzada boshlanadi) */
.splash.go .sp-bokeh { animation: fade 1.4s .1s ease-out forwards; }
.splash.go .sp-flash { animation: flash 1s 2.15s cubic-bezier(.2,.8,.2,1) forwards; }
.splash.go .lg { animation: lgin .8s 2.18s ease-out forwards; }
.splash.go .lg .glint { animation: fade .4s 2.6s forwards, glint 3.2s 2.6s linear infinite; }
.splash.go .sp-wave { animation: wave 1.5s 2.2s cubic-bezier(.2,.8,.2,1) forwards; }
.splash.go .sp-halo { animation: halo 1.1s 2.25s cubic-bezier(.2,.8,.2,1) forwards; }
.splash.go .sp-rays { animation: fade 1.8s 2.25s ease-out forwards, rot 50s 2.25s linear infinite; }
.splash.go .sp-glass { animation: glass .9s 2.3s cubic-bezier(.2,.8,.2,1) forwards; }
.splash.go .sp-glass::after { animation: sweep 1.2s 3s ease-in-out forwards; }
/* PALMA MARKET: har harf (--i) 55 ms oraliq bilan niqobdan ko'tariladi — har biriga bitta nota */
.splash.go .sp-word .ch b { animation: lup .8s calc(2.55s + var(--i) * .055s) cubic-bezier(.16,1,.3,1) forwards; }
.splash.go .sp-tagline::before, .splash.go .sp-tagline::after { animation: line .9s 3.35s cubic-bezier(.2,.8,.2,1) forwards; }
.splash.go .sp-tagline span { animation: fade .8s 3.4s ease-out forwards; }
.splash.go .sp-shine { animation: shine 1s 3.5s ease-in-out forwards; }
.splash.go .sp-hi { animation: hi .7s 3.75s ease-out forwards; }
.splash.go .sp-sweep { animation: sweepall 1.4s 3.95s ease-in-out forwards; }
@keyframes fade { to { opacity: 1; } }
@keyframes flash { 0% { opacity: 0; scale: .2; } 22% { opacity: 1; } 100% { opacity: 0; scale: 1.7; } }
@keyframes lgin { from { opacity: 0; scale: 1.1; } to { opacity: 1; scale: 1; } }
@keyframes halo { to { opacity: .5; scale: 1; } }
@keyframes rot { to { rotate: 360deg; } }
@keyframes glass { to { opacity: 1; scale: 1; } }
@keyframes sweep { to { translate: 110% 0; } }
@keyframes wave { 0% { opacity: .95; scale: .9; } 100% { opacity: 0; scale: 2.3; } }
@keyframes lup { to { translate: 0 0; } }
@keyframes line { to { width: 70px; } }
@keyframes shine { to { background-position: -70% 0; } }
@keyframes hi { to { opacity: 1; translate: 0 0; } }
@keyframes sweepall { 0% { opacity: 1; translate: -70% 0; } 100% { opacity: 1; translate: 70% 0; } }
/* Ochilish: kamera logotip ichiga "uchib kiradi", logotip markazidan portal kengayib ilova ko'rinadi */
.splash.out { pointer-events: none; -webkit-mask-image: radial-gradient(circle at var(--pcx, 50%) var(--pcy, 38%), transparent var(--r), #000 calc(var(--r) + 1px)); mask-image: radial-gradient(circle at var(--pcx, 50%) var(--pcy, 38%), transparent var(--r), #000 calc(var(--r) + 1px)); animation: portal 1s .22s cubic-bezier(.65,0,.25,1) forwards; }
.splash.out .sp-stage { animation: thru 1s cubic-bezier(.55,0,.2,1) forwards; }
.splash.out .sp-rays, .splash.out .sp-bokeh, .splash.out .sp-sweep { animation: fadeout .5s forwards; }
@keyframes portal { 0% { --r: 0px; opacity: 1; } 80% { opacity: 1; } 100% { --r: 130vmax; opacity: 0; } }
@keyframes thru { to { scale: 3.4; opacity: 0; } }
/* Kuchsiz qurilma (splash.js kadr tezligini o'lchab "lite" qo'shadi): og'ir effektlar o'chadi, ochilish oddiy */
.splash.lite .sp-grain { display: none; }
.splash.lite .sp-bokeh i { animation: none; }
.splash.lite.go .sp-rays { animation: fade 1.8s 2.25s ease-out forwards; }
.splash.lite.out { -webkit-mask-image: none; mask-image: none; animation: fadeout .55s .15s forwards; }
@keyframes fadeout { to { opacity: 0; } }
/* Splashdan kirish ekraniga o'tish */
.lock.from-splash .lk-top { animation: lkTop .7s cubic-bezier(.2,.8,.2,1) both; }
.lock.from-splash .keypad > * { animation: keyIn .5s cubic-bezier(.2,.8,.2,1) both; }
.lock.from-splash .keypad > :nth-child(3n+1) { animation-delay: .12s; } .lock.from-splash .keypad > :nth-child(3n+2) { animation-delay: .18s; } .lock.from-splash .keypad > :nth-child(3n) { animation-delay: .24s; }
@keyframes lkTop { from { transform: translateY(16vh) scale(1.25); } }
@keyframes keyIn { from { opacity: 0; transform: translateY(26px) scale(.9); } }
/* To'g'ri PIN: logotip porlaydi, uchqunlar sochiladi, ekran ochiladi */
.lock.ok .lk-logo { animation: glow .9s ease-out forwards; }
@keyframes glow { 40% { transform: scale(1.12); filter: drop-shadow(0 0 22px rgba(226,190,106,.8)); } to { transform: scale(1.04); filter: drop-shadow(0 0 12px rgba(226,190,106,.5)); } }
.lock.ok .keypad, .lock.ok .lk-hint { transition: opacity .35s, transform .35s; opacity: 0; transform: translateY(30px); }
.lock.out { transition: opacity .5s ease, transform .5s ease; opacity: 0; transform: scale(1.06); pointer-events: none; }
.spark { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #F1D58C; box-shadow: 0 0 8px #E2BE6A; animation: spark .9s cubic-bezier(.1,.7,.3,1) forwards; pointer-events: none; }
@keyframes spark { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }
.entering #view > * { animation: enter .6s .18s cubic-bezier(.2,.8,.2,1) both; }
.entering #view > :nth-child(2) { animation-delay: .24s; } .entering #view > :nth-child(3) { animation-delay: .3s; } .entering #view > :nth-child(4) { animation-delay: .36s; }
.entering #view > :nth-child(5) { animation-delay: .42s; } .entering #view > :nth-child(6) { animation-delay: .48s; } .entering #view > :nth-child(n+7) { animation-delay: .54s; }
.entering .nav { animation: navIn .6s .1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(22px); } }
@keyframes navIn { from { opacity: 0; transform: translateY(40px); } }
/* Animatsiya o'chirilgan yoki tizimda "kamroq harakat" */
.noanim *, .noanim *::before, .noanim *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; } }
@media (max-height: 640px) { .keypad { grid-template-columns: repeat(3, 64px); gap: 12px 26px; } .keypad button, .keypad span { width: 64px; height: 64px; } .lock { padding-top: calc(22px + env(safe-area-inset-top, 0px)); } .lk-logo { width: 72px; height: 72px; } }

/* ===== Shtrixkod skaneri: to'liq ekranli kamera (ikkala dizaynda bir xil, qora fonda) ===== */
.skn { position: fixed; inset: 0; z-index: 250; background: #000; color: #fff; overflow: hidden; touch-action: none; overscroll-behavior: contain;
  -webkit-user-select: none; user-select: none; opacity: 0; transition: opacity .2s ease; }
.skn.on { opacity: 1; }
.skn [hidden] { display: none !important; }
.skn-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.skn-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 16px max(12px, env(safe-area-inset-left, 0px));
  background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,0)); }
.skn-top b { font-size: 16px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.skn-x { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(40,40,40,.62); }
.skn-x svg { width: 20px; height: 20px; stroke-width: 2.1; }
.skn-win { position: absolute; z-index: 1; left: 50%; top: 40%; width: min(86vw, 440px); height: min(40vw, 200px); transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.92); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.skn-line { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(74,222,128,0), #4ADE80 25%, #4ADE80 75%, rgba(74,222,128,0)); box-shadow: 0 0 14px rgba(74,222,128,.75);
  animation: sknLine 2.2s ease-in-out infinite alternate; }
@keyframes sknLine { from { top: 16%; } to { top: 84%; } }
.skn.ok .skn-win { border-color: #4ADE80; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5), inset 0 0 0 100vmax rgba(74,222,128,.26); }
.skn.pauza .skn-line { animation-play-state: paused; opacity: .25; }
.skn-hint { position: absolute; z-index: 2; left: 16px; right: 16px; top: calc(40% + min(20vw, 100px) + 16px); text-align: center; font-size: 14px; font-weight: 500;
  line-height: 1.4; color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.65); }
.skn-msg { position: absolute; z-index: 3; left: 50%; top: calc(40% + min(20vw, 100px) + 60px); transform: translateX(-50%); width: min(calc(100% - 32px), 440px);
  padding: 12px 14px; border-radius: 16px; background: rgba(24,26,26,.92); color: #fff; font-size: 14.5px; line-height: 1.45; text-align: center; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.skn-msg b { color: #fff; }
.skn-err { position: absolute; z-index: 4; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(calc(100% - 32px), 400px); padding: 22px 18px 18px;
  border-radius: 22px; background: rgba(28,30,30,.97); color: #fff; text-align: center; box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.skn-err b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.skn-err p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.84); }
.skn-err .skn-yoki { font-size: 13px; color: rgba(255,255,255,.6); }
.skn-err button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: #fff; color: #111; font-weight: 600; font-size: 15px; }
.skn.xato .skn-win, .skn.xato .skn-hint { display: none; }
.skn-bot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: flex-start; gap: 22px;
  padding: 30px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.68)); }
.skn-b { width: 80px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.skn-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(40,40,40,.62); color: #fff; transition: background .15s, color .15s, transform .15s; }
.skn-ic svg { width: 24px; height: 24px; }
.skn-ic b { font-size: 17px; font-weight: 700; }
.skn-b:active .skn-ic { transform: scale(.94); }
.skn-b.on .skn-ic { background: #fff; color: #111; }
.skn-foto { width: 96px; }
.skn-foto .skn-ic { width: 64px; height: 64px; background: #fff; color: #111; box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
.skn.xato .skn-foto .skn-ic { animation: sknPuls 1.6s ease-in-out infinite; }
@keyframes sknPuls { 50% { box-shadow: 0 0 0 11px rgba(255,255,255,.14); } }
@media (prefers-reduced-motion: reduce) { .skn-line { animation: none; } .skn.xato .skn-foto .skn-ic { animation: none; } }
