/* HadisLab — kirish va ro'yxatdan o'tish.
   Alohida qobiq (layouts/hisob.html): navbar va footer yo'q, karta ekran markazida va BITTA EKRANGA
   sig'adi. Chap panel — rasm fonda (media/rasmlar/hisob/{kirish,royxat}.webp, zaxira .jpg), ustida
   shior; o'ngda forma. O'lchamlar ekran balandligiga qarab (vh) moslashadi, past ekranda va xato
   chiqqanda ikkinchi darajali bo'laklar yashiriladi. Telefonda panel tepadagi kichik bannerga
   aylanadi (logo + rasm). */

.hisob-sahifa { background: var(--fon-osmon); background-attachment: fixed; }
.hisob-sahifa .bildirishnomalar { top: 16px; }

.hisob {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(10px, 2.4vh, 28px) 16px;
}

.hisob__karta {
  --karta-bal: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 1080px);
  min-height: min(var(--karta-bal), calc(100vh - 2 * clamp(10px, 2.4vh, 28px)));
  min-height: min(var(--karta-bal), calc(100dvh - 2 * clamp(10px, 2.4vh, 28px)));
  border-radius: 28px;
  overflow: hidden;
  background: var(--karta);
  box-shadow: 0 0 0 1px var(--chiziq), 0 44px 90px -40px var(--karta-soya, rgb(67 56 202 / 0.5)), 0 14px 32px -20px rgb(31 42 68 / 0.2);
  animation: hisob-paydo 500ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hisob__karta--royxat { --karta-bal: 720px; --karta-soya: rgb(14 99 255 / 0.38); grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); width: min(100%, 1100px); }
/* Siljish emas, kichikdan o'sish: karta ekranga to'liq sig'ganda ham animatsiya paytida
   pastga chiqib ketmaydi (aks holda bir lahza scrollbar ko'rinadi) */
@keyframes hisob-paydo { from { opacity: 0; transform: scale(0.97); } }

/* ── Chap panel: rasm fonda ──────────────────────────────────────── */

.hisob__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(16px, 3vh, 28px);
  padding: clamp(22px, 4.2vh, 40px) clamp(24px, 3vw, 40px);
  background: var(--panel-fon); /* rasm yuklanguncha */
  color: #fff;
}
.hisob__panel > :not(.hisob__rasm) { position: relative; z-index: 1; }
.hisob__rasm, .hisob__rasm img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hisob__rasm { z-index: 0; }
.hisob__rasm img { object-fit: cover; object-position: var(--rasm-joyi); }
/* Parda — matn o'qilishi uchun: matn turgan joyda quyuqroq, rasmning asosiy qismi ochiq */
.hisob__panel::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--parda); pointer-events: none; }
.hisob__panel--kirish {
  --panel-fon: #3b35c8;
  --rasm-joyi: 50% 54%;
  --soya: rgb(18 14 88 / 0.5);
  --parda:
    linear-gradient(180deg, rgb(24 20 116 / 0.6) 0%, rgb(24 20 116 / 0.2) 30%, transparent 44%, transparent 58%, rgb(22 18 104 / 0.55) 76%, rgb(18 14 88 / 0.86) 100%),
    linear-gradient(90deg, rgb(24 20 116 / 0.32) 0%, transparent 60%);
}
.hisob__panel--royxat {
  --panel-fon: #0d4f86;
  --rasm-joyi: 50% 16%;
  --soya: rgb(0 30 60 / 0.5);
  --parda:
    linear-gradient(180deg, rgb(3 42 82 / 0.4) 0%, transparent 15%, transparent 36%, rgb(2 58 106 / 0.74) 54%, rgb(1 48 90 / 0.95) 100%),
    linear-gradient(90deg, rgb(1 48 90 / 0.35) 0%, transparent 70%);
}

.hisob__logo { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: -4px 0 0 -4px; padding: 4px 12px 4px 4px; border-radius: 999px; color: #fff; font-size: 1.25rem; font-weight: 900; letter-spacing: -0.03em; text-decoration: none; text-shadow: 0 1px 10px var(--soya); transition: background var(--otish); }
.hisob__logo:hover { background: rgb(255 255 255 / 0.14); }
.hisob__logo b { font-weight: 900; color: rgb(255 255 255 / 0.8); }

.hisob__panel-tepa { display: grid; justify-items: start; gap: clamp(14px, 3.2vh, 32px); }
.hisob__panel-past { display: grid; gap: clamp(12px, 2.4vh, 24px); }
.hisob__shior { display: grid; gap: clamp(6px, 1.4vh, 14px); }
.hisob__shior-sarlavha { color: #fff; font-size: clamp(1.875rem, min(3.4vw, 6.4vh), 2.875rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.03em; text-shadow: 0 2px 20px var(--soya); }
.hisob__panel--royxat .hisob__shior-sarlavha { font-size: clamp(1.625rem, min(2.7vw, 5.2vh), 2.375rem); }
.hisob__panel--royxat .hisob__shior-matn { max-width: none; }
.hisob__shior-matn { max-width: 28ch; color: rgb(255 255 255 / 0.88); font-size: clamp(0.9375rem, 1.3vw, 1.0625rem); font-weight: 600; line-height: 1.5; text-shadow: 0 1px 12px var(--soya); }

/* Kirish: imkoniyatlar (shishasimon ikon qutilari, ingichka ajratgichlar) */
.hisob__imkoniyat {
  --ikon-en: clamp(50px, 7.4vh, 64px);
  --oraliq: clamp(10px, 1.9vh, 16px);
  display: grid;
  gap: var(--oraliq);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hisob__imkoniyat li { position: relative; display: grid; grid-template-columns: var(--ikon-en) minmax(0, 1fr); align-items: center; column-gap: 16px; color: #fff; font-size: clamp(0.875rem, 1.25vw, 0.9688rem); font-weight: 700; line-height: 1.35; text-shadow: 0 1px 8px var(--soya); }
.hisob__imkoniyat li:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--ikon-en) + 16px); right: 0; bottom: calc(var(--oraliq) / -2); height: 1px; background: rgb(255 255 255 / 0.16); }
.hisob__imkoniyat-ikon {
  display: grid;
  place-items: center;
  height: clamp(42px, 6.2vh, 54px);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22), 0 10px 22px -12px rgb(10 8 60 / 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hisob__imkoniyat-ikon .ikon3d { width: clamp(24px, 3.7vh, 32px); height: auto; }

/* Ro'yxat: bosqichlar (raqamli doiralar, ular orasida chiziq). To'ldirilgan bosqich — yashil belgi */
.hisob__qadamlar {
  --doira: clamp(32px, 4.8vh, 40px);
  --oraliq: clamp(8px, 2.4vh, 22px);
  display: grid;
  gap: var(--oraliq);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hisob__qadamlar li { position: relative; display: grid; grid-template-columns: var(--doira) minmax(0, 1fr); align-items: center; column-gap: 16px; text-shadow: 0 1px 8px var(--soya); }
.hisob__qadamlar li:not(:last-child)::after { content: ""; position: absolute; z-index: -1; left: calc(var(--doira) / 2 - 1px); top: 50%; width: 2px; height: calc(100% + var(--oraliq)); background: rgb(150 196 255 / 0.55); }
.hisob__qadamlar b { display: grid; place-items: center; width: var(--doira); height: var(--doira); border-radius: 50%; background: linear-gradient(135deg, #3b8bff, #0b62f0); color: #fff; font-size: 1rem; font-weight: 900; text-shadow: none; box-shadow: 0 0 0 4px rgb(59 139 255 / 0.22), 0 8px 18px -8px rgb(0 50 140 / 0.9); transition: background var(--otish), box-shadow var(--otish); }
.hisob__qadam-belgi { display: none; width: 58%; height: 58%; }
.hisob__qadamlar li[data-tayyor] b { background: linear-gradient(135deg, #34d399, #16a34a); box-shadow: 0 0 0 4px rgb(52 211 153 / 0.25), 0 8px 18px -8px rgb(6 78 59 / 0.9); }
.hisob__qadamlar li[data-tayyor] b > span { display: none; }
.hisob__qadamlar li[data-tayyor] .hisob__qadam-belgi { display: block; animation: sakra 360ms var(--sakrash-egri) both; }
.hisob__qadamlar strong { display: block; font-size: clamp(0.9063rem, 1.3vw, 1rem); font-weight: 900; line-height: 1.3; }
.hisob__qadamlar small { display: block; color: rgb(255 255 255 / 0.74); font-size: clamp(0.8125rem, 1.1vw, 0.8438rem); font-weight: 600; line-height: 1.35; }
.hisob__panel-izoh { display: flex; align-items: center; gap: 12px; color: rgb(255 255 255 / 0.92); font-size: 0.875rem; font-weight: 700; line-height: 1.4; text-shadow: 0 1px 8px var(--soya); }
.hisob__panel-izoh .ikon3d { flex-shrink: 0; width: 28px; height: 28px; }

/* ── Forma tomoni ────────────────────────────────────────────────── */

.hisob__forma-quti { display: grid; align-content: center; gap: clamp(12px, 2.3vh, 22px); padding: clamp(22px, 4.6vh, 52px) clamp(24px, 4.8vw, 64px); }
.hisob__karta--royxat .hisob__forma-quti { gap: clamp(10px, 2vh, 20px); padding-block: clamp(20px, 4vh, 44px); }
.hisob__sarlavha { display: grid; gap: clamp(4px, 0.8vh, 8px); }
.hisob__ustsarlavha { display: flex; align-items: center; gap: 12px; color: color-mix(in srgb, var(--asosiy) 45%, var(--siyoh-3)); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.hisob__ustsarlavha--chiziq { color: var(--asosiy); }
.hisob__ustsarlavha--chiziq::after { content: ""; width: 44px; height: 2px; border-radius: 2px; background: currentColor; }
.hisob__sarlavha h1 { font-size: clamp(2rem, min(3.4vw, 6vh), 2.75rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
.hisob__sarlavha-matn { color: var(--siyoh-2); font-size: 1.0313rem; font-weight: 600; }

.hisob__forma { display: grid; gap: clamp(9px, 1.5vh, 14px); }
.hisob__qator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hisob__login { display: grid; gap: 6px; }
/* Login bandligi ko'rsatilayotganda — qoidalar izohi o'rnini u egallaydi (qator qo'shilmaydi) */
.hisob__login:has(.login-holat:not([hidden])) .hm__izoh { display: none; }

.hisob__ogohlantirish { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--qizil-och); color: var(--siyoh); font-size: 0.9375rem; font-weight: 800; line-height: 1.4; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--qizil) 40%, transparent); animation: sakra 400ms var(--sakrash-egri) both; }
.hisob__ogohlantirish svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--qizil); }

/* ── Maydon ──────────────────────────────────────────────────────── */

/* minmax(0, 1fr): ichidagi tugma matni (nowrap) ustunni kengaytirib, qo'shni maydon ustiga chiqmasin */
.hm { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 5px; min-width: 0; }
.hm__yorliq { font-weight: 900; font-size: 0.9063rem; color: var(--siyoh); }
.hm__yorliq-qator { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 1.3em; }
.hm__quti { position: relative; }

.hm__quti input,
.harf-tanlagich input,
.tanlagich__asl,
.tanlagich__tugma {
  width: 100%;
  height: clamp(46px, 6.2vh, 54px); /* aniq balandlik: shrifti katta harf maydoni ham, tugma ham bir xil */
  padding: 0 14px;
  border: 1.5px solid var(--chiziq);
  border-radius: 14px;
  background: var(--karta-2);
  color: var(--siyoh);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  transition: border-color var(--otish), box-shadow var(--otish), background var(--otish);
}
.hm__quti input, .harf-tanlagich input { text-overflow: ellipsis; }
.hm__quti input::placeholder, .harf-tanlagich input::placeholder { color: var(--siyoh-3); font-weight: 600; letter-spacing: 0; }
.hm__quti input:hover, .harf-tanlagich input:hover, .tanlagich__tugma:hover, .tanlagich__asl:hover { border-color: var(--chiziq-2); }
.hm__quti input:focus, .harf-tanlagich input:focus, .tanlagich__asl:focus,
.tanlagich__tugma:focus-visible, .tanlagich--ochiq .tanlagich__tugma {
  outline: none;
  border-color: var(--asosiy);
  background: var(--karta);
  box-shadow: 0 0 0 5px rgb(59 108 255 / 0.15);
}
.hm__quti--belgili input, .hm__quti--parol input { padding-left: 48px; }
.hm__quti--parol input { padding-right: 56px; }
.hm__belgi { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--siyoh-3); pointer-events: none; transition: color var(--otish); }
.hm__quti:focus-within .hm__belgi { color: var(--asosiy); }

.hm--xato input, .hm--xato .tanlagich__tugma, .hm--xato .tanlagich__asl { border-color: var(--qizil); background: color-mix(in srgb, var(--qizil) 6%, var(--karta)); }
.hm--xato input:focus, .hm--xato .tanlagich__tugma:focus-visible { box-shadow: 0 0 0 5px rgb(244 63 94 / 0.16); }
.hm--xato .hm__belgi { color: var(--qizil); }
.hm__xato { display: flex; align-items: center; gap: 6px; color: var(--qizil); font-size: 0.875rem; font-weight: 800; line-height: 1.35; animation: paydo 200ms ease both; }
.hm__xato:empty { display: none; }
.hm__izoh { color: var(--siyoh-3); font-size: 0.8125rem; font-weight: 700; line-height: 1.4; }
.hm--xato .hm__izoh { display: none; }

/* Ko'zcha */
.hm__koz { position: absolute; right: 7px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--siyoh-3); cursor: pointer; transition: color var(--otish), background var(--otish); }
.hm__koz:hover { color: var(--siyoh); background: var(--fon-2); }
.hm__koz svg { width: 22px; height: 22px; }
.hm__koz-yopiq { display: none; }
.hm__koz[aria-pressed="true"] { color: var(--asosiy); }
.hm__koz[aria-pressed="true"] .hm__koz-ochiq { display: none; }
.hm__koz[aria-pressed="true"] .hm__koz-yopiq { display: block; }

.hm__caps { display: flex; align-items: center; gap: 6px; color: #b45309; font-size: 0.8125rem; font-weight: 800; }
.hm__caps[hidden] { display: none; }
.hm__caps svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Parol kuchi */
.hm__kuch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 6px; }
.hm__kuch span { height: 6px; border-radius: 999px; background: var(--chiziq); transition: background 220ms ease; }
.hm__kuch b { min-width: 0; padding-left: 4px; font-size: 0.8125rem; font-weight: 800; white-space: nowrap; }
.hm__kuch[data-daraja="1"] span:nth-child(1) { background: var(--qizil); }
.hm__kuch[data-daraja="1"] b { color: var(--qizil); }
.hm__kuch[data-daraja="2"] span:nth-child(-n+2) { background: var(--sariq); }
.hm__kuch[data-daraja="2"] b { color: #c2410c; }
.hm__kuch[data-daraja="3"] span { background: var(--yashil); }
.hm__kuch[data-daraja="3"] b { color: #15803d; }
.hm__kuch[data-daraja="0"], .hm__kuch:not([data-daraja]) { display: none; }

/* ── Sinf: ochiladigan ro'yxat ───────────────────────────────────── */

.tanlagich { position: relative; }
/* JS bo'lmasa — oddiy select, o'z strelkasi bilan */
.tanlagich__asl { appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%238a93ad' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.tanlagich__asl--yashirin { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.tanlagich__tugma { display: flex; align-items: center; gap: 10px; padding: 0 14px; font-weight: 900; text-align: left; cursor: pointer; }
.tanlagich__tugma > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tanlagich__tugma img { width: 30px; height: 30px; flex-shrink: 0; }
.tanlagich__bosh { color: var(--siyoh-3); font-weight: 700; }
.tanlagich__qisqa { display: none; }
@media (max-width: 480px) { .tanlagich__uzun { display: none; } .tanlagich__qisqa { display: inline; } }
.tanlagich__strelka { width: 20px; height: 20px; flex-shrink: 0; color: var(--siyoh-3); transition: transform var(--otish); }
.tanlagich--ochiq .tanlagich__strelka { transform: rotate(180deg); color: var(--asosiy); }

.tanlagich__royxat,
.harf-tanlagich__oyna {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  margin: 0;
  border-radius: 18px;
  background: var(--karta);
  box-shadow: 0 0 0 1px var(--chiziq), var(--soya-menyu);
  animation: tanlagich-och 160ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes tanlagich-och { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.tanlagich__royxat { left: 0; right: 0; display: grid; gap: 4px; padding: 8px; list-style: none; }
.tanlagich__royxat[hidden], .harf-tanlagich__oyna[hidden] { display: none; }
.tanlagich__band { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 900; cursor: pointer; transition: background 120ms ease; }
.tanlagich__band img { width: 34px; height: 34px; flex-shrink: 0; }
.tanlagich__band span { flex: 1; }
.tanlagich__band svg { width: 20px; height: 20px; color: var(--rang); opacity: 0; transition: opacity 120ms ease; }
.tanlagich__band--faol { background: var(--och); }
.tanlagich__band[aria-selected="true"] { color: var(--rang); }
.tanlagich__band[aria-selected="true"] svg { opacity: 1; }

/* ── Sinf harfi: tanlash yoki yozish ─────────────────────────────── */

.harf-tanlagich { position: relative; }
.harf-tanlagich input { font-size: 1.25rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.harf-tanlagich input::placeholder { font-size: 1.0625rem; text-transform: none; }
.harf-tanlagich--tayyor input { padding-right: 52px; }
.harf-tanlagich__strelka { position: absolute; right: 7px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--siyoh-3); cursor: pointer; transition: color var(--otish), background var(--otish), transform var(--otish); }
.harf-tanlagich__strelka:hover { color: var(--siyoh); background: var(--fon-2); }
.harf-tanlagich__strelka svg { width: 20px; height: 20px; transition: transform var(--otish); }
.harf-tanlagich--ochiq .harf-tanlagich__strelka { color: var(--asosiy); }
.harf-tanlagich--ochiq .harf-tanlagich__strelka svg { transform: rotate(180deg); }
.harf-tanlagich__oyna { right: 0; width: max(100%, 290px); padding: 12px; }
.harf-tanlagich__sarlavha { margin-bottom: 8px; color: var(--siyoh-2); font-size: 0.8125rem; font-weight: 900; }
.harf-tanlagich__royxat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.harf-tanlagich__band { display: grid; place-items: center; min-height: 44px; border-radius: 12px; background: var(--fon-2); box-shadow: inset 0 0 0 1.5px var(--chiziq); font-size: 1.1875rem; font-weight: 900; cursor: pointer; transition: background 120ms ease, box-shadow 120ms ease, transform 120ms var(--sakrash); }
.harf-tanlagich__band:hover, .harf-tanlagich__band--faol { background: var(--asosiy-och); box-shadow: inset 0 0 0 2px var(--asosiy); transform: translateY(-1px); }
.harf-tanlagich__band[aria-selected="true"] { background: var(--asosiy-grad); color: #fff; box-shadow: 0 8px 16px -8px rgb(91 92 255 / 0.8); }
.harf-tanlagich__izoh { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--siyoh-3); font-size: 0.8125rem; font-weight: 700; line-height: 1.35; }
.harf-tanlagich__izoh svg { width: 16px; height: 16px; flex-shrink: 0; }

/* «Sizning sinfingiz: 7-A» */
/* «7-B» — harf yorlig'i yonida (alohida qator olmaydi) */
.sinf-chip { display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; background: var(--och, var(--asosiy-och)); color: var(--rang, var(--asosiy)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rang, var(--asosiy)) 40%, transparent); font-size: 0.8125rem; font-weight: 900; line-height: 1.5; animation: sakra 360ms var(--sakrash-egri) both; }
.sinf-chip[hidden] { display: none; }

/* ── Login holati (jonli tekshiruv) ──────────────────────────────── */

.login-holat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 26px; padding: 4px 10px; border-radius: 12px; font-size: 0.8125rem; font-weight: 800; line-height: 1.35; }
.login-holat[hidden] { display: none; }
.login-holat > svg { width: 18px; height: 18px; flex-shrink: 0; }
.login-holat > span:not(.login-holat__aylana) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.login-holat--kutish { background: var(--fon-2); color: var(--siyoh-2); }
.login-holat--bosh { background: var(--yashil-och); color: #15803d; }
.login-holat--band { background: var(--qizil-och); color: #be123c; }
.login-holat--xato { background: var(--sariq-och); color: #b45309; }
.login-holat__taklif { padding: 4px 10px; border: 0; border-radius: 999px; background: var(--asosiy-grad); color: #fff; font: inherit; font-size: 0.8125rem; font-weight: 900; cursor: pointer; box-shadow: 0 8px 16px -8px rgb(91 92 255 / 0.8); transition: transform var(--otish); }
.login-holat__taklif:hover { transform: translateY(-1px); }
.login-holat__aylana { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: aylan 700ms linear infinite; }
@keyframes aylan { to { transform: rotate(360deg); } }

/* ── Eslab qolish (tumbler) ──────────────────────────────────────── */

.hisob__eslab { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 800; line-height: 1.3; }
.hisob__eslab input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hisob__eslab small { display: block; color: var(--siyoh-3); font-size: 0.8125rem; font-weight: 700; }
.hisob__tumbler { position: relative; flex-shrink: 0; width: 48px; height: 28px; border-radius: 999px; background: var(--chiziq-2); transition: background var(--otish); }
.hisob__tumbler::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 0.25); transition: transform var(--sakrash); }
.hisob__eslab input:checked + .hisob__tumbler { background: var(--asosiy-grad); }
.hisob__eslab input:checked + .hisob__tumbler::after { transform: translateX(20px); }
.hisob__eslab input:focus-visible + .hisob__tumbler { outline: 3px solid var(--fokus); outline-offset: 3px; }

/* ── Tugmalar va pastki qism ─────────────────────────────────────── */

.hisob__yuborish { --grad: linear-gradient(90deg, #3b6cff 0%, #7c4dff 100%); min-height: clamp(48px, 6.6vh, 58px); border-radius: 14px; }
.hisob__karta--royxat .hisob__yuborish { --grad: linear-gradient(90deg, #2f7bff 0%, #0a62ff 100%); --nur-rang: 10 98 255; }
.hisob__yuborish svg { width: 22px; height: 22px; transition: transform var(--otish); }
.hisob__yuborish:hover svg { transform: translateX(3px); }
.hisob__yuborish--kutish { opacity: 0.85; cursor: wait; }

/* «Hisobingiz bormi? Kirish» */
.hisob__boshqa { color: var(--siyoh-2); font-size: 0.9688rem; font-weight: 700; text-align: center; }
.hisob__boshqa a, .hisob__ajratgich a { color: var(--asosiy); font-weight: 900; text-decoration: none; }
.hisob__boshqa a:hover, .hisob__ajratgich a:hover { text-decoration: underline; }

/* «Hisobingiz yo'qmi? Ro'yxatdan o'ting» — ikki yonida chiziq */
.hisob__ajratgich { display: flex; align-items: center; gap: 14px; color: var(--siyoh-2); font-size: 0.9688rem; font-weight: 700; line-height: 1.4; text-align: center; }
.hisob__ajratgich::before, .hisob__ajratgich::after { content: ""; flex: 1 1 0; min-width: 12px; height: 1px; background: var(--chiziq); }
.hisob__ajratgich a { margin-left: 4px; }

/* «Parolni unutdingizmi?» */
.hisob__malumot { display: flex; align-items: center; gap: 14px; padding: clamp(10px, 1.7vh, 15px) 18px; border-radius: 16px; background: var(--fon-2); box-shadow: inset 0 0 0 1px var(--chiziq); }
.hisob__malumot-belgi { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--asosiy) 10%, transparent); color: var(--asosiy); }
.hisob__malumot p { display: grid; gap: 1px; color: var(--siyoh-2); font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
.hisob__malumot b { color: var(--siyoh); font-size: 0.9375rem; font-weight: 900; }

/* ── Kirish sahifasi foni: och lavanda, yon tomonlarda xira masjid siluetlari ── */

.hisob-sahifa--kirish {
  --siluet: linear-gradient(0deg, rgb(116 104 230 / 0.17), rgb(116 104 230 / 0.05));
  background:
    radial-gradient(1000px 560px at 50% 44%, rgb(255 255 255 / 0.9), transparent 72%),
    linear-gradient(180deg, #eceefd 0%, #f4f2fd 100%);
  background-attachment: fixed;
}
:root[data-theme="dark"] .hisob-sahifa--kirish { --siluet: linear-gradient(0deg, rgb(150 140 255 / 0.12), rgb(150 140 255 / 0.03)); background: var(--fon-osmon); background-attachment: fixed; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hisob-sahifa--kirish { --siluet: linear-gradient(0deg, rgb(150 140 255 / 0.12), rgb(150 140 255 / 0.03)); background: var(--fon-osmon); background-attachment: fixed; }
}
.hisob-sahifa--kirish::before,
.hisob-sahifa--kirish::after {
  content: "";
  position: fixed;
  z-index: 0;
  bottom: 0;
  width: min(34vw, 520px);
  aspect-ratio: 520 / 240;
  background: var(--siluet);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 240'%3E%3Cpath d='M40 70h24v170H40zM33 112h38v9H33zM35 64h34v8H35zM40 64l12-40 12 40zM51 10h2v16h-2zM140 146h144v26H140zM140 148C140 92 182 74 212 64C242 74 284 92 284 148zM210.5 30h3v36h-3zM104 170C104 148 118 140 128 136C138 140 152 148 152 170zM272 170C272 148 286 140 296 136C306 140 320 148 320 170zM352 96h20v144h-20zM346 132h32v8h-32zM352 96l10-36 10 36zM361 44h2v18h-2zM392 198h110v42H392zM404 200C404 172 430 162 447 156C464 162 490 172 490 200zM445.8 136h2.4v22h-2.4z'/%3E%3Cpath fill-rule='evenodd' d='M96 168h232v72H96zM190 240v-30c0-14 10-22 22-26c12 4 22 12 22 26v30zM130 240v-22c0-10 7-16 15-19c8 3 15 9 15 19v22zM264 240v-22c0-10 7-16 15-19c8 3 15 9 15 19v22z'/%3E%3Ccircle cx='212' cy='28' r='5'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 240'%3E%3Cpath d='M40 70h24v170H40zM33 112h38v9H33zM35 64h34v8H35zM40 64l12-40 12 40zM51 10h2v16h-2zM140 146h144v26H140zM140 148C140 92 182 74 212 64C242 74 284 92 284 148zM210.5 30h3v36h-3zM104 170C104 148 118 140 128 136C138 140 152 148 152 170zM272 170C272 148 286 140 296 136C306 140 320 148 320 170zM352 96h20v144h-20zM346 132h32v8h-32zM352 96l10-36 10 36zM361 44h2v18h-2zM392 198h110v42H392zM404 200C404 172 430 162 447 156C464 162 490 172 490 200zM445.8 136h2.4v22h-2.4z'/%3E%3Cpath fill-rule='evenodd' d='M96 168h232v72H96zM190 240v-30c0-14 10-22 22-26c12 4 22 12 22 26v30zM130 240v-22c0-10 7-16 15-19c8 3 15 9 15 19v22zM264 240v-22c0-10 7-16 15-19c8 3 15 9 15 19v22z'/%3E%3Ccircle cx='212' cy='28' r='5'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
  filter: blur(1px);
  pointer-events: none;
}
.hisob-sahifa--kirish::before { left: -1vw; }
.hisob-sahifa--kirish::after { right: -1vw; transform: scaleX(-1); }
.hisob-sahifa--kirish .hisob { position: relative; z-index: 1; }

/* ── Qorong'i rejim: matnli ranglar ──────────────────────────────── */

:root[data-theme="dark"] .login-holat--bosh { color: #4ade80; }
:root[data-theme="dark"] .login-holat--band { color: #fb7185; }
:root[data-theme="dark"] .login-holat--xato, :root[data-theme="dark"] .hm__caps { color: #fbbf24; }
:root[data-theme="dark"] .hm__kuch[data-daraja="2"] b { color: #fdba74; }
:root[data-theme="dark"] .hm__kuch[data-daraja="3"] b { color: #4ade80; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .login-holat--bosh { color: #4ade80; }
  :root:not([data-theme="light"]) .login-holat--band { color: #fb7185; }
  :root:not([data-theme="light"]) .login-holat--xato, :root:not([data-theme="light"]) .hm__caps { color: #fbbf24; }
  :root:not([data-theme="light"]) .hm__kuch[data-daraja="2"] b { color: #fdba74; }
  :root:not([data-theme="light"]) .hm__kuch[data-daraja="3"] b { color: #4ade80; }
}

/* ── Past ekranlar (kompyuter): avval kichik izohlar, keyin ikkinchi darajali bloklar ── */

@media (min-width: 881px) and (max-height: 700px) {
  .hisob__qadamlar small { display: none; }
}
/* Ro'yxatda maydon ko'proq — izoh matni ertaroq (1366×768 noutbukda ham zaxira joy qolsin) */
@media (min-width: 881px) and (max-height: 680px) {
  .hisob__karta--royxat .hisob__sarlavha-matn { display: none; }
}
@media (min-width: 881px) and (max-height: 640px) {
  .hisob__eslab small, .hisob__sarlavha-matn { display: none; }
}
@media (min-width: 881px) and (max-height: 580px) {
  .hisob__malumot, .hisob__shior-matn, .hisob__panel-izoh, .hm__izoh { display: none; }
}

/* ── Planshet va telefon: panel — tepada kichik banner (logo va rasm) ── */

@media (max-width: 880px) {
  .hisob__karta { grid-template-columns: minmax(0, 1fr); width: min(100%, 480px); min-height: 0; border-radius: 26px; }
  .hisob__karta--royxat { grid-template-columns: minmax(0, 1fr); width: min(100%, 520px); }
  .hisob__panel { justify-content: flex-start; height: clamp(88px, 17vh, 170px); padding: 12px 14px; }
  .hisob__karta--royxat .hisob__panel { height: clamp(72px, 13vh, 150px); }
  .hisob__shior, .hisob__imkoniyat, .hisob__panel-past { display: none; }
  .hisob__panel--kirish { --rasm-joyi: 50% 56%; --parda: linear-gradient(180deg, rgb(24 20 116 / 0.55) 0%, transparent 50%), linear-gradient(0deg, rgb(18 14 88 / 0.3) 0%, transparent 35%); }
  .hisob__panel--royxat { --rasm-joyi: 50% 26%; --parda: linear-gradient(180deg, rgb(3 42 82 / 0.5) 0%, transparent 55%); }
  /* Bannerda logo rasm ustida — o'qilishi uchun shishasimon fon */
  .hisob__logo { margin: 0; padding: 4px 12px 4px 6px; background: rgb(10 14 60 / 0.38); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 1.125rem; }
  .hisob__logo .ikon3d { width: 28px; height: 28px; }
  .hisob__forma-quti, .hisob__karta--royxat .hisob__forma-quti { gap: clamp(10px, 1.9vh, 18px); padding: clamp(16px, 2.8vh, 28px) clamp(16px, 5vw, 28px); }
  .hisob__sarlavha h1 { font-size: clamp(1.625rem, 7vw, 2.125rem); }
  .hisob-sahifa--kirish::before, .hisob-sahifa--kirish::after { display: none; }
}
/* Telefonda ro'yxat: login yozilganda chiqadigan holat qatoriga («bo'sh») doimiy joy qolsin */
@media (max-width: 880px) and (max-height: 760px) {
  .hisob__karta--royxat :is(.hisob__ustsarlavha, .hisob__sarlavha-matn, .hm__izoh) { display: none; }
  .hisob__karta--royxat .hisob__panel { height: clamp(64px, 11vh, 150px); }
}
@media (max-width: 880px) and (max-height: 660px) {
  .hisob__sarlavha-matn, .hisob__eslab small { display: none; }
  .hisob__forma { gap: 8px; }
  .hm { gap: 3px; }
}
@media (max-width: 880px) and (max-height: 620px) {
  .hisob__panel { height: 84px; padding-block: 10px; }
  .hisob__karta--royxat .hisob__panel { height: 64px; padding-block: 8px; }
  .hisob__malumot { padding-block: 8px; }
}
@media (max-width: 880px) and (max-height: 580px) {
  .hisob__panel { height: 64px; padding-block: 8px; }
  .hisob__karta--royxat .hisob__panel { display: none; }
}
/* Juda past ekran (yotiq telefon, kichik planshet): maydonlar va chekkalar ixchamroq */
@media (max-height: 620px) {
  .hisob { padding-block: 6px; }
  .hm__quti input, .harf-tanlagich input, .tanlagich__asl, .tanlagich__tugma { height: 42px; }
  .hm__yorliq { font-size: 0.8438rem; }
  .hisob__yuborish { min-height: 46px; }
}
@media (max-width: 400px) {
  .hisob__qator { gap: 8px; }
  /* Tor ustunlarda «Sinfni tanlang» / «Harfni tanlang» to'liq sig'sin */
  .tanlagich__tugma { gap: 6px; padding-inline: 12px 10px; font-size: 0.9375rem; }
  .tanlagich__tugma img { width: 26px; height: 26px; }
  .harf-tanlagich input { padding-left: 12px; }
  .harf-tanlagich input::placeholder { font-size: 0.9375rem; }
  .harf-tanlagich--tayyor input { padding-right: 40px; }
  .harf-tanlagich__strelka { right: 3px; width: 36px; }
  .hisob__ajratgich { gap: 8px; font-size: 0.875rem; }
  .hisob__ajratgich::before, .hisob__ajratgich::after { min-width: 8px; }
  .hisob__malumot { gap: 12px; padding-inline: 14px; }
}

/* ── Xato chiqqanda past ekranda joy bo'shatiladi ──
   Xato matnlari qator qo'shadi (bo'sh forma yuborilsa — 4-6 ta; login band bo'lsa — taklif tugmasi). Shunda ustsarlavha va ikkinchi
   darajali matnlar yashiriladi, sarlavha va oraliqlar ixchamlashadi, telefonda banner yo'qoladi.
   «Parolni unutdingizmi?» qutisi aynan shu payt kerak — u qoladi. */
@media (max-height: 760px), (max-width: 880px) and (max-height: 860px) {
  .hisob__karta:has(.hisob__ogohlantirish, .hm--xato, .login-holat--band, .login-holat--xato) :is(.hisob__ustsarlavha, .hisob__sarlavha-matn, .hisob__eslab small, .hm__izoh) { display: none; }
  .hisob__karta:has(.hisob__ogohlantirish, .hm--xato, .login-holat--band, .login-holat--xato) .hisob__sarlavha h1 { font-size: clamp(1.5rem, 4.4vh, 2.25rem); }
  .hisob__karta:has(.hisob__ogohlantirish, .hm--xato, .login-holat--band, .login-holat--xato) .hisob__forma { gap: 6px; }
  .hisob__karta:has(.hisob__ogohlantirish, .hm--xato, .login-holat--band, .login-holat--xato) .hm { gap: 3px; }
  .hisob__karta:has(.hisob__ogohlantirish, .hm--xato, .login-holat--band, .login-holat--xato) .hm__xato { font-size: 0.8125rem; line-height: 1.25; }
}
@media (max-width: 880px) and (max-height: 860px) {
  .hisob__karta:has(.hisob__ogohlantirish, .hm--xato, .login-holat--band, .login-holat--xato) .hisob__panel { display: none; }
}
/* Kichik oyna (≈900×560): ro'yxatda sarlavha ham joy beradi — tugma va maydonlar muhimroq */
@media (min-width: 881px) and (max-height: 580px) {
  .hisob__karta--royxat:has(.hm--xato, .login-holat--band, .login-holat--xato) .hisob__sarlavha { display: none; }
}
