/* Shriftlar o'z serverimizdan (tashqi so'rovsiz) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-kursiv-latin-ext.9ee79c50a32b.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-kursiv-latin.9b8a16c9964e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-latin-ext.acc46a2a7785.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-latin.c47ff12887a3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-latin-ext.acc46a2a7785.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-latin.c47ff12887a3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.1ad231aac0a8.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.260c81a4759b.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cosmos Mebel — ilova uslubi. Rang palitrasi logotipdan: to'q yashil + krem. */
:root {
  --y-900: #133520;
  --y-800: #1a4429;
  --y-700: #1e4d2b;
  --y-600: #2a6a3b;
  --y-500: #3b8250;
  --y-200: #cfe2c6;
  --y-100: #e4efdd;
  --y-50: #f1f6ec;
  --krem: #f1f5ec;
  --oq: #ffffff;
  --matn: #18241c;
  --matn-2: #55655a;
  --matn-3: #8a978e;
  --chiziq: #dfe7d8;
  --qizil: #c2412d;
  --qizil-och: #fbe9e5;
  --sariq: #b7791f;
  --sariq-och: #fbf1dc;
  --kok: #2563a8;
  --kok-och: #e6eff9;
  --soya: 0 1px 2px rgba(19, 53, 32, .06), 0 4px 16px rgba(19, 53, 32, .06);
  --soya-kuchli: 0 12px 40px rgba(19, 53, 32, .18);
  --r: 16px;
  --r-kichik: 11px;
  --tepa: 60px;
  --past: 64px;
  --xavfsiz-past: env(safe-area-inset-bottom, 0px);
  --xavfsiz-tepa: env(safe-area-inset-top, 0px);
  --shrift: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --brend-shrift: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Scrollbar ko'rinmaydi — ilova kabi */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
  background: var(--krem);
}
body {
  margin: 0;
  font-family: var(--shrift);
  font-size: 15px;
  line-height: 1.45;
  color: var(--matn);
  background: var(--krem);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior-y: none;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
.kichik svg { width: 14px; height: 14px; vertical-align: -2px; }
.element > svg, .tg-holat > svg { color: var(--matn-3); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
.tanlanmas, .pastki, .yon, .tepa, .tugma, .tab, .chip { -webkit-user-select: none; user-select: none; }

/* ============ Ilova qobig'i ============ */
.ilova { display: flex; min-height: 100dvh; }
.asosiy { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.tepa {
  position: sticky; top: 0; z-index: 30;
  height: calc(var(--tepa) + var(--xavfsiz-tepa));
  padding: var(--xavfsiz-tepa) 12px 0 16px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(241, 245, 236, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.tepa.soyali { border-bottom-color: var(--chiziq); }
.tepa-sarlavha { flex: 1; min-width: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tepa-brend { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.tepa-brend img { width: 34px; height: 34px; border-radius: 50%; }
.tepa-brend b { font-family: var(--brend-shrift); font-size: 21px; font-weight: 700; letter-spacing: .04em;
  color: var(--y-800); white-space: nowrap; }
.ortga { width: 40px; height: 40px; margin-left: -8px; border: 0; background: none; border-radius: 12px;
  display: grid; place-items: center; color: var(--y-800); }
.ortga:active { background: var(--y-100); }
.ikon-tugma { position: relative; width: 42px; height: 42px; border: 0; border-radius: 13px; background: none;
  display: grid; place-items: center; color: var(--y-800); flex-shrink: 0; }
.ikon-tugma:active { background: var(--y-100); }
.ikon-tugma svg { width: 23px; height: 23px; }
.nishon { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--qizil); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--krem); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--y-700); color: #fff; font-weight: 700;
  font-size: 13px; display: grid; place-items: center; flex-shrink: 0; letter-spacing: .02em; }
.avatar.katta { width: 64px; height: 64px; font-size: 22px; }
.avatar.och { background: var(--y-100); color: var(--y-800); }

.kontent {
  flex: 1; width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 8px 16px calc(var(--past) + var(--xavfsiz-past) + 28px);
}

/* Pastki navigatsiya (telefon) */
.pastki {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--past) + var(--xavfsiz-past));
  padding-bottom: var(--xavfsiz-past);
  display: flex; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--chiziq);
}
.pastki a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--matn-3); font-size: 11px; font-weight: 600; position: relative; }
.pastki a svg { width: 24px; height: 24px; }
.pastki a.faol { color: var(--y-700); }
.pastki a.faol::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--y-700); }
.pastki a:active svg { transform: scale(.9); }

/* Yon panel (kompyuter) */
.yon { display: none; }
@media (min-width: 960px) {
  .yon {
    display: flex; flex-direction: column; width: 256px; flex-shrink: 0;
    position: sticky; top: 0; height: 100vh; padding: 20px 14px;
    background: var(--y-800); color: #e7f0e2;
  }
  .yon-brend { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
  .yon-brend img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
  .yon-brend b { display: block; font-family: var(--brend-shrift); font-size: 22px; letter-spacing: .05em; color: #fff; line-height: 1.05; }
  .yon-brend small { font-family: var(--brend-shrift); font-style: italic; font-size: 14px; opacity: .75; }
  .yon nav { display: flex; flex-direction: column; gap: 3px; }
  .yon nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
    color: #cfe0c8; font-weight: 500; transition: background .15s, color .15s; }
  .yon nav a svg { width: 21px; height: 21px; opacity: .85; }
  .yon nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .yon nav a.faol { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }
  .yon-bolim { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8fae8f; padding: 18px 12px 6px; }
  .yon-past { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0;
    border-top: 1px solid rgba(255,255,255,.1); }
  .yon-past .avatar { background: rgba(255,255,255,.14); }
  .yon-past a { flex: 1; min-width: 0; }
  .yon-past b { display: block; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .yon-past small { color: #9fbb9f; font-size: 12px; }
  .pastki { display: none; }
  .kontent { padding: 18px 32px 48px; }
  .tepa { padding: 0 24px 0 32px; height: 68px; }
  .tepa-brend { display: none; }
  .tepa .profil-avatar { display: none; }
  .faqat-telefon { display: none !important; }
}
@media (max-width: 959px) { .faqat-kompyuter { display: none !important; } }

/* ============ Elementlar ============ */
.karta { background: var(--oq); border-radius: var(--r); box-shadow: var(--soya); padding: 16px; }
.karta + .karta, .blok + .blok { margin-top: 14px; }
.karta-sarlavha { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.karta-sarlavha h2, .bolim-sarlavha h2 { font-size: 16px; font-weight: 700; }
.bolim-sarlavha { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px; }
.bolim-sarlavha a { color: var(--y-600); font-weight: 600; font-size: 14px; }
.izoh { color: var(--matn-2); font-size: 13px; }
.kichik { font-size: 12px; color: var(--matn-3); }
.qalin { font-weight: 700; }
.markaz { text-align: center; }
.qator { display: flex; align-items: center; gap: 10px; }
.qator.oraliq { justify-content: space-between; }
.ustun { display: flex; flex-direction: column; gap: 10px; }
.osish { flex: 1; min-width: 0; }
.qisqart { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yashil { color: var(--y-600); }
.qizil { color: var(--qizil); }
.sariq { color: var(--sariq); }

.tugma {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
  background: var(--y-700); color: #fff; font-weight: 600; font-size: 15px;
  transition: transform .08s, background .15s, opacity .15s; white-space: nowrap;
}
.tugma svg { width: 20px; height: 20px; flex-shrink: 0; }
.tugma:hover { background: var(--y-800); }
.tugma:active { transform: scale(.97); }
.tugma.toliq { width: 100%; }
.tugma.ikkinchi { background: var(--y-100); color: var(--y-800); }
.tugma.ikkinchi:hover { background: var(--y-200); }
.tugma.oq { background: var(--oq); color: var(--y-800); box-shadow: inset 0 0 0 1.5px var(--chiziq); }
.tugma.xavfli { background: var(--qizil-och); color: var(--qizil); }
.tugma.xavfli:hover { background: #f6d6cf; }
.tugma.kichik { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.tugma[disabled] { opacity: .55; pointer-events: none; }
.tugmalar { display: flex; gap: 10px; flex-wrap: wrap; }
.tugmalar > .tugma { flex: 1; }

/* Suzuvchi "yaratish" tugmasi */
.fab { position: fixed; right: 18px; bottom: calc(var(--past) + var(--xavfsiz-past) + 16px); z-index: 35;
  height: 56px; padding: 0 22px 0 18px; border-radius: 18px; box-shadow: 0 10px 28px rgba(30, 77, 43, .38); }
@media (min-width: 960px) { .fab { display: none; } }

/* Statistika kartalari */
.statlar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .statlar { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.stat { background: var(--oq); border-radius: var(--r); padding: 14px; box-shadow: var(--soya); display: block; }
.stat-ikon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 10px;
  background: var(--y-100); color: var(--y-700); }
.stat-ikon svg { width: 20px; height: 20px; }
.stat-ikon.qizil { background: var(--qizil-och); color: var(--qizil); }
.stat-ikon.sariq { background: var(--sariq-och); color: var(--sariq); }
.stat-ikon.kok { background: var(--kok-och); color: var(--kok); }
.stat small { display: block; color: var(--matn-2); font-size: 12.5px; }
.stat b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.01em; margin-top: 2px; white-space: nowrap; }
.stat b span { font-size: 12px; font-weight: 600; color: var(--matn-3); }

/* Salom bloki */
.salom { background: linear-gradient(135deg, var(--y-700), var(--y-900)); color: #fff; border-radius: 20px;
  padding: 20px; position: relative; overflow: hidden; margin-bottom: 14px; }
.salom::after { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0 2px, transparent 2.5px) 0 0 / 11px 11px;
  opacity: .8; }
.salom small { opacity: .75; font-size: 13px; }
.salom h1 { font-size: 22px; margin: 2px 0 14px; font-weight: 700; }
.salom .tugma { background: #fff; color: var(--y-800); position: relative; z-index: 1; }

/* Ro'yxat elementlari */
.royxat { background: var(--oq); border-radius: var(--r); box-shadow: var(--soya); overflow: hidden; }
.element { display: flex; align-items: center; gap: 12px; padding: 13px 14px; position: relative; }
.element + .element { border-top: 1px solid var(--chiziq); }
a.element:active, button.element:active { background: var(--y-50); }
button.element { width: 100%; border: 0; background: none; text-align: left; }
.element-ikon { width: 42px; height: 42px; border-radius: 13px; background: var(--y-100); color: var(--y-700);
  display: grid; place-items: center; flex-shrink: 0; }
.element-ikon svg { width: 21px; height: 21px; }
.element-ikon.qizil { background: var(--qizil-och); color: var(--qizil); }
.element-ikon.sariq { background: var(--sariq-och); color: var(--sariq); }
.element b { display: block; font-weight: 600; }
.element .ong { text-align: right; flex-shrink: 0; }
.element .ong b { font-weight: 700; }
.bosh-holat { text-align: center; padding: 38px 20px; color: var(--matn-2); }
.bosh-holat svg { width: 54px; height: 54px; color: var(--y-200); margin: 0 auto 10px; }
.bosh-holat b { display: block; color: var(--matn); font-size: 16px; margin-bottom: 4px; }

/* Buyurtma kartasi */
.buyurtmalar { display: grid; gap: 12px; }
@media (min-width: 720px) { .buyurtmalar { grid-template-columns: repeat(2, 1fr); } }
.bk { display: block; background: var(--oq); border-radius: var(--r); box-shadow: var(--soya); padding: 15px;
  transition: transform .1s; }
.bk:active { transform: scale(.985); }
.bk-tepa { display: flex; align-items: flex-start; gap: 10px; }
.bk-tepa h3 { flex: 1; font-size: 16px; font-weight: 700; }
.bk-mijoz { color: var(--matn-2); font-size: 13.5px; margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.bk-mijoz svg { width: 15px; height: 15px; }
.bk-past { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.progress { height: 6px; border-radius: 3px; background: var(--y-100); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; background: var(--y-500); border-radius: 3px; }
.pul-qator { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--matn-2); margin-top: 6px; }
.pul-qator b { color: var(--matn); font-weight: 650; }
.avatarlar { display: flex; }
.avatarlar .avatar { width: 28px; height: 28px; font-size: 10.5px; border: 2px solid #fff; margin-left: -7px; }
.avatarlar .avatar:first-child { margin-left: 0; }
.avatarlar .avatar:nth-child(2n) { background: var(--y-500); }
.avatarlar .avatar:nth-child(3n) { background: #7a8f3a; }

.holat { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 10px; border-radius: 13px;
  font-size: 12px; font-weight: 650; white-space: nowrap; flex-shrink: 0; }
.holat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.holat.jarayonda { background: var(--sariq-och); color: var(--sariq); }
.holat.tayyor { background: var(--y-100); color: var(--y-600); }
.holat.topshirildi { background: #eceff1; color: #607080; }

/* Tablar */
.tablar { display: flex; gap: 6px; overflow-x: auto; margin: 4px -16px 14px; padding: 2px 16px; }
.tab { flex-shrink: 0; height: 36px; padding: 0 15px; border-radius: 18px; display: inline-flex; align-items: center;
  background: var(--oq); color: var(--matn-2); font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--chiziq); }
.tab.faol { background: var(--y-700); color: #fff; box-shadow: none; }
@media (min-width: 960px) { .tablar { margin: 4px 0 16px; padding: 2px 0; } }

.qidiruv { position: relative; margin-bottom: 12px; }
.qidiruv svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--matn-3); }
.qidiruv input { padding-left: 44px; background: var(--oq); }

/* Segment (holat almashtirgich) */
.segment { display: flex; background: var(--y-50); border-radius: 13px; padding: 4px; gap: 4px; box-shadow: inset 0 0 0 1px var(--chiziq); }
.segment button { flex: 1; border: 0; height: 38px; border-radius: 10px; background: none; font-weight: 600; font-size: 13.5px; color: var(--matn-2); }
.segment button.faol { background: var(--oq); color: var(--y-800); box-shadow: var(--soya); }

/* ============ Formalar ============ */
.maydon { display: block; margin-bottom: 14px; }
.maydon > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--matn-2); margin: 0 0 6px 2px; }
.maydon > span em { font-style: normal; font-weight: 500; color: var(--matn-3); }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=search], textarea, select {
  width: 100%; height: 50px; padding: 0 15px; border-radius: 13px; border: 1.5px solid var(--chiziq);
  background: var(--oq); font: inherit; font-size: 16px; color: var(--matn); outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea { height: auto; min-height: 104px; padding: 13px 15px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--y-500); box-shadow: 0 0 0 4px rgba(59, 130, 80, .13); }
input::placeholder, textarea::placeholder { color: #a9b5ac; }
.maydon.xato input, .maydon.xato textarea { border-color: var(--qizil); }
.xato-matn { color: var(--qizil); font-size: 13px; margin: 6px 2px 0; }
.tel-input { position: relative; }
.tel-input > span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 16px;
  font-weight: 600; color: var(--matn); pointer-events: none; }
.tel-input input { padding-left: 64px; font-weight: 500; }
.pul-input { position: relative; }
.pul-input input { padding-right: 58px; font-weight: 600; }
.pul-input::after { content: "so'm"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  color: var(--matn-3); font-size: 14px; pointer-events: none; }
.parol-input { position: relative; }
.parol-input input { padding-right: 50px; }
.parol-input button { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; border: 0; background: none;
  color: var(--matn-3); display: grid; place-items: center; border-radius: 10px; }
.parol-input button svg { width: 21px; height: 21px; }
.ikki-ustun { display: grid; gap: 0 12px; }
@media (min-width: 640px) { .ikki-ustun { grid-template-columns: 1fr 1fr; } }

.almashtirgich { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.almashtirgich input { display: none; }
.almashtirgich i { width: 48px; height: 28px; border-radius: 14px; background: #cdd6c8; position: relative; flex-shrink: 0; transition: background .2s; }
.almashtirgich i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.almashtirgich input:checked + i { background: var(--y-600); }
.almashtirgich input:checked + i::after { transform: translateX(20px); }

/* Ishchi tanlash chiplari */
.chiplar { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 10px; border-radius: 13px;
  border: 1.5px dashed var(--chiziq); background: var(--y-50); align-content: flex-start; }
.chiplar.tanlangan { background: #fff; border-style: solid; border-color: var(--y-200); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 5px; border-radius: 19px;
  border: 0; background: var(--oq); box-shadow: inset 0 0 0 1.5px var(--chiziq); font-weight: 600; font-size: 14px;
  transition: transform .1s, background .15s; }
.chip .avatar { width: 28px; height: 28px; font-size: 11px; }
.chip:active { transform: scale(.94); }
.chip svg { width: 16px; height: 16px; opacity: .6; }
.chiplar.tanlangan .chip { background: var(--y-700); color: #fff; box-shadow: none; }
.chiplar.tanlangan .chip .avatar { background: rgba(255,255,255,.2); color: #fff; }
.chiplar .bosh { color: var(--matn-3); font-size: 13px; align-self: center; padding: 0 4px; }

/* Andoza (placeholder) tugmalari */
.kalitlar { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 4px; }
.kalit { height: 32px; padding: 0 11px; border-radius: 9px; border: 1.5px dashed var(--y-500); background: #fff;
  color: var(--y-700); font-size: 12px; font-weight: 700; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 5px; }
.kalit::before { content: '+'; font-size: 15px; font-weight: 600; }
.kalit.faol { background: var(--y-700); color: #fff; border-style: solid; border-color: var(--y-700); }
.kalit.faol::before { content: '×'; }
.korinish { background: #e7f3e0; border-radius: 4px 16px 16px 16px; padding: 12px 14px; font-size: 14.5px;
  white-space: pre-wrap; position: relative; margin-top: 8px; color: #10240f; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.korinish-sarlavha { font-size: 12px; font-weight: 700; color: var(--matn-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 14px; }
.korinish mark { background: rgba(59, 130, 80, .18); color: inherit; border-radius: 4px; padding: 0 2px; font-weight: 600; }

.kunlar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kun input { display: none; }
.kun span { display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--oq);
  box-shadow: inset 0 0 0 1.5px var(--chiziq); font-weight: 700; font-size: 13.5px; color: var(--matn-2); cursor: pointer; }
.kun input:checked + span { background: var(--y-700); color: #fff; box-shadow: none; }

/* ============ Jadval ============ */
.jadval-oram { background: var(--oq); border-radius: var(--r); box-shadow: var(--soya); overflow-x: auto; }
table.jadval { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.jadval th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--matn-3); text-transform: uppercase;
  letter-spacing: .04em; padding: 12px 10px; background: var(--y-50); white-space: nowrap; }
.jadval td { padding: 13px 10px; border-top: 1px solid var(--chiziq); white-space: nowrap; }
.jadval td.fish { white-space: normal; font-weight: 600; min-width: 110px; }
.jadval .raqam { text-align: right; font-variant-numeric: tabular-nums; }
.jadval tbody tr { cursor: pointer; }
.jadval tbody tr:active, .jadval tbody tr:hover { background: var(--y-50); }
.jadval tfoot td { font-weight: 700; background: var(--y-50); }
.jadval th:first-child, .jadval td:first-child { padding-left: 14px; width: 1%; color: var(--matn-3); }
.jadval th:last-child, .jadval td:last-child { padding-right: 14px; }
@media (max-width: 420px) { table.jadval { font-size: 12.5px; } .jadval td, .jadval th { padding-left: 7px; padding-right: 7px; } }

/* Katta pul ko'rsatkichlari */
.pul-kartalar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pul-karta { background: var(--oq); border-radius: 14px; padding: 12px 10px; box-shadow: var(--soya); min-width: 0; }
.pul-karta small { display: block; font-size: 11.5px; color: var(--matn-2); font-weight: 600; }
.pul-karta b { display: block; font-size: min(16px, 4.1vw); letter-spacing: -.02em; font-weight: 750; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pul-karta.asosiy-rang { background: var(--y-700); color: #fff; }
.pul-karta.asosiy-rang small { color: #cfe2c6; }
@media (min-width: 720px) { .pul-karta b { font-size: 20px; } .pul-karta { padding: 16px; } }

.malumot { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; }
.malumot dt { color: var(--matn-2); }
.malumot dd { margin: 0; text-align: right; font-weight: 600; }

/* Xarajat elementi */
.xarajat { display: flex; gap: 12px; padding: 13px 14px; }
.xarajat + .xarajat { border-top: 1px solid var(--chiziq); }
.xarajat-rasm { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--y-100); cursor: zoom-in; }
.xarajat-matn { flex: 1; min-width: 0; }
.xarajat-matn p { font-size: 14px; margin-top: 2px; word-break: break-word; }

/* ============ Varaq (bottom sheet / modal) ============ */
.varaq { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.varaq-fon { position: absolute; inset: 0; background: rgba(12, 28, 17, .45); animation: fon .2s ease; }
.varaq-ichi { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto;
  background: var(--krem); border-radius: 24px 24px 0 0; padding: 8px 18px calc(22px + var(--xavfsiz-past));
  animation: chiq .28s cubic-bezier(.2, .9, .3, 1); overscroll-behavior: contain; }
.varaq-ichi::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: #c9d3c3; margin: 0 auto 14px; }
.varaq-sarlavha { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.varaq-sarlavha h2 { font-size: 19px; }
.varaq-yop { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--y-100); display: grid; place-items: center; color: var(--y-800); }
.varaq-yop svg { width: 18px; height: 18px; }
@media (min-width: 640px) {
  .varaq { align-items: center; padding: 20px; }
  .varaq-ichi { border-radius: 22px; padding: 22px 24px 24px; animation: kattalash .22s ease; }
  .varaq-ichi::before { display: none; }
}
@keyframes fon { from { opacity: 0; } }
@keyframes chiq { from { transform: translateY(100%); } }
@keyframes kattalash { from { transform: scale(.95); opacity: 0; } }
body.varaq-ochiq { overflow: hidden; }

/* Rasm ko'rish */
.rasm-korish { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; }
.rasm-korish img { max-height: 100%; max-width: 100%; border-radius: 8px; }

/* Rasm tanlash */
.rasm-tanla { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; border: 1.5px dashed var(--y-200);
  background: #fff; cursor: pointer; }
.rasm-tanla input { display: none; }
.rasm-tanla .element-ikon { width: 46px; height: 46px; }
.rasm-tanla img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }

/* ============ Bildirishnomalar ============ */
.bildir-panel { position: fixed; z-index: 90; inset: 0; display: flex; justify-content: flex-end; }
.bildir-panel .varaq-fon { background: rgba(12, 28, 17, .3); }
.bildir-ichi { position: relative; width: 100%; max-width: 420px; height: 100%; background: var(--krem);
  display: flex; flex-direction: column; animation: ongdan .25s cubic-bezier(.2, .9, .3, 1); padding-top: var(--xavfsiz-tepa); }
@keyframes ongdan { from { transform: translateX(100%); } }
.bildir-tepa { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 18px; }
.bildir-tepa h2 { flex: 1; font-size: 19px; }
.bildir-tepa button.matnli { border: 0; background: none; color: var(--y-600); font-weight: 600; font-size: 13.5px; padding: 8px; }
.bildir-royxat { flex: 1; overflow-y: auto; padding: 0 12px 20px; }
.bildir { display: flex; gap: 12px; padding: 13px; border-radius: 14px; background: #fff; margin-bottom: 8px; box-shadow: var(--soya); }
.bildir.yangi { box-shadow: inset 3px 0 0 var(--y-600), var(--soya); }
.bildir .element-ikon { width: 38px; height: 38px; border-radius: 12px; }
.bildir b { display: block; font-size: 14.5px; }
.bildir p { font-size: 13.5px; color: var(--matn-2); margin-top: 2px; word-break: break-word; }
.bildir small { font-size: 11.5px; color: var(--matn-3); display: block; margin-top: 4px; }

/* ============ Xabarlar (toast) ============ */
.toastlar { position: fixed; z-index: 200; left: 12px; right: 12px; top: calc(10px + var(--xavfsiz-tepa));
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 480px; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 14px; background: var(--y-800); color: #fff; box-shadow: var(--soya-kuchli);
  font-weight: 500; font-size: 14.5px; animation: tushish .3s cubic-bezier(.2, .9, .3, 1); }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }
.toast.error { background: var(--qizil); }
.toast.ketish { transition: opacity .3s, transform .3s; opacity: 0; transform: translateY(-12px); }
@keyframes tushish { from { transform: translateY(-20px); opacity: 0; } }

/* ============ Kirish / ro'yxat ============ */
.kirish-sahifa { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(24px + var(--xavfsiz-tepa)) 20px calc(24px + var(--xavfsiz-past));
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,80,.14), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(30,77,43,.12), transparent 40%), var(--krem); }
.kirish-quti { width: 100%; max-width: 400px; }
.kirish-logo { width: 116px; height: 116px; border-radius: 50%; margin: 0 auto 14px; box-shadow: 0 10px 30px rgba(30,77,43,.2); }
.kirish-brend { text-align: center; margin-bottom: 26px; }
.kirish-brend h1 { font-family: var(--brend-shrift); font-size: 32px; font-weight: 700; letter-spacing: .06em; color: var(--y-800); }
.kirish-brend p { font-family: var(--brend-shrift); font-style: italic; font-size: 18px; color: var(--y-600); }
.kirish-quti .karta { padding: 22px 18px; border-radius: 22px; }
.kirish-quti h2 { font-size: 20px; margin-bottom: 4px; }
.kirish-xato { display: flex; gap: 10px; align-items: flex-start; background: var(--qizil-och); color: #8e2b1b;
  border-radius: 12px; padding: 11px 13px; font-size: 13.5px; margin: 14px 0 4px; animation: silkinish .4s; }
.kirish-xato svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.kirish-xato a { font-weight: 700; text-decoration: underline; }
@keyframes silkinish { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.kirish-past { text-align: center; margin-top: 18px; color: var(--matn-2); font-size: 14.5px; }
.kirish-past a { color: var(--y-700); font-weight: 700; }
.ornatish-tugma { margin-top: 14px; }

/* O'rnatish qo'llanmasi */
.qadamlar { counter-reset: q; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 16px; padding: 0; list-style: none; }
.qadamlar li { counter-increment: q; display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--soya); font-size: 14.5px; }
.qadamlar li::before { content: counter(q); width: 28px; height: 28px; border-radius: 50%; background: var(--y-700); color: #fff;
  font-weight: 700; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; }
.qadamlar li b { color: var(--y-800); }
.qadamlar .belgi { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--kok-och); color: var(--kok); vertical-align: middle; margin: 0 2px; }
.qadamlar .belgi svg { width: 17px; height: 17px; }
.ornat-banner { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--r); padding: 12px 12px 12px 14px;
  box-shadow: var(--soya); margin-bottom: 14px; }
.ornat-banner img { width: 44px; height: 44px; border-radius: 50%; }

/* Profil */
.profil-bosh { display: flex; align-items: center; gap: 14px; }
.tg-holat { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; background: var(--y-50); }
.tg-holat .element-ikon { background: #e3f0fb; color: #229ed9; }

.nuqta { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #aab5ad; }
.nuqta.yashil { background: #2fa45a; box-shadow: 0 0 0 4px rgba(47,164,90,.18); }
.nuqta.qizil { background: var(--qizil); }

.jurnal-qator { font-size: 13px; padding: 10px 14px; border-top: 1px solid var(--chiziq); }
.jurnal-qator:first-child { border-top: 0; }
.jurnal-qator p { color: var(--matn-2); white-space: pre-wrap; word-break: break-word; max-height: 3.2em; overflow: hidden; }

.ikki-panel { display: grid; gap: 14px; }
@media (min-width: 960px) { .ikki-panel { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.yuklanmoqda { pointer-events: none; opacity: .7; }

/* ============ Tezlik va silliqlik ============ */

/* Sahifalar orasida ilovadagidek silliq o'tish (Chrome 126+, Safari 18.2+). Menyu va
   tepa panel joyida qoladi, faqat kontent almashadi. Faqat transform/opacity — GPU. */
@view-transition { navigation: auto; }
.tepa { view-transition-name: tepa; }
.pastki { view-transition-name: pastki; }
.yon { view-transition-name: yon; }
::view-transition-group(tepa), ::view-transition-group(pastki), ::view-transition-group(yon) { animation: none; }
::view-transition-old(tepa), ::view-transition-new(tepa) { animation-duration: 120ms; }
::view-transition-old(root) { animation: 110ms ease-out both vt-ketish; }
::view-transition-new(root) { animation: 190ms cubic-bezier(.2, .9, .3, 1) both vt-kelish; }
@keyframes vt-ketish { to { opacity: 0; } }
@keyframes vt-kelish { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Ekrandan tashqaridagi kartalar chizilmaydi — uzun ro'yxatlar ham yengil (virtual scroll o'rnida). */
.bk { content-visibility: auto; contain-intrinsic-size: auto 150px; }
.royxat > .element, .xarajat, .jurnal-qator, .bildir { content-visibility: auto; contain-intrinsic-size: auto 70px; }

/* Pastga surilganda keyingi buyurtmalar */
.keyingi { grid-column: 1 / -1; display: grid; place-items: center; padding: 18px; }
.aylana { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--y-200); border-top-color: var(--y-600);
  animation: aylan .8s linear infinite; }
@keyframes aylan { to { transform: rotate(360deg); } }

/* Yangilanganda kontent sezdirmasdan almashadi */
.kontent.yangilandi { animation: yangilanish .25s ease; }
@keyframes yangilanish { from { opacity: .6; } }

/* Oflayn navbatdagi xarajatlar */
.navbat-royxat { margin-bottom: 10px; box-shadow: inset 0 0 0 1.5px var(--sariq-och), var(--soya); }
.navbat-belgi { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--sariq);
  background: var(--sariq-och); border-radius: 10px; padding: 2px 8px; }
.oflayn-chiziq { position: fixed; z-index: 150; left: 50%; bottom: calc(var(--past) + var(--xavfsiz-past) + 12px);
  transform: translateX(-50%); background: #2b2b2b; color: #fff; font-size: 13px; font-weight: 600; border-radius: 20px;
  padding: 8px 14px; box-shadow: var(--soya-kuchli); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  animation: tushish .3s ease; }
.oflayn-chiziq i { width: 8px; height: 8px; border-radius: 50%; background: #f0a53a; }
@media (min-width: 960px) { .oflayn-chiziq { bottom: 20px; } }
