/* =====================================================================
   ToolTrack — umumiy dizayn tizimi
   Ranglar qurilish maydonidan olingan: beton, po'lat, ogohlantirish sarig'i.
   Barcha panellar (super admin / prorab / xodim) shu fayldan foydalanadi.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Beton — fon va chegaralar */
  --beton-0:  #ffffff;
  --beton-1:  #f1f1ee;
  --beton-2:  #e3e3dd;
  --beton-3:  #c8c8c1;

  /* Siyoh */
  --qora:     #191c1e;
  --kul:      #5e6468;
  --kul-och:  #8b9195;

  /* Po'lat — asosiy rang */
  --polat:      #24445c;
  --polat-och:  #2f5a79;
  --polat-tund: #17303f;

  /* Ogohlantirish sarig'i — faqat bitta joyda kuchli ishlatiladi */
  --sariq:      #e39a0c;
  --sariq-tund: #b87b06;

  /* Holat ranglari — butun sayt bo'ylab bir xil */
  --yashil: #16794a;
  --kok:    #2a62a8;
  --qizil:  #b33228;

  --chegara: 1px solid var(--beton-2);
  --radius:  3px;
  --sidebar: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--qora);
  background: var(--beton-1);
}

a { color: var(--polat-och); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--sariq);
  outline-offset: 2px;
}

h1 { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1rem;    font-weight: 600; }

/* =====================  KIRISH SAHIFASI  ========================== */

.kirish-ekran {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 100vh;
}

.kirish-brend {
  background: var(--polat);
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Po'lat panelda o'lchov chizig'i — qurilish chizmasidan olingan */
.kirish-brend::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg, var(--sariq) 0 18px, var(--polat-tund) 18px 36px);
}

.brend-nom { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; }
.brend-izoh { color: #a9c2d4; margin-top: .35rem; font-size: 1rem; }
.brend-pastki { color: #7f9db3; font-size: .85rem; }

.kirish-panel {
  background: var(--beton-1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.kirish-forma {
  width: 100%;
  max-width: 360px;
}

.kirish-forma h1 { margin-bottom: 1.5rem; }

/* =====================  FORMA  =================================== */

.maydon { margin-bottom: 1.1rem; }

.maydon label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--kul);
  margin-bottom: .35rem;
}

input[type=text], input[type=password], input[type=number],
input[type=date], input[type=search], input[type=tel],
select, textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--qora);
  background: var(--beton-0);
  border: 1px solid var(--beton-3);
  border-radius: var(--radius);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--polat-och);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 90, 121, .15);
}

.yordam { font-size: .85rem; color: var(--kul); margin-top: .9rem; }

/* =====================  TUGMALAR  ================================= */

.tugma {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--polat);
  border: 1px solid var(--polat);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}
.tugma:hover { background: var(--polat-och); text-decoration: none; }
.tugma:active { transform: translateY(1px); }

.tugma-keng { width: 100%; }

.tugma-ikkilamchi {
  background: var(--beton-0);
  color: var(--qora);
  border-color: var(--beton-3);
}
.tugma-ikkilamchi:hover { background: var(--beton-1); }

.tugma-sariq {
  background: var(--sariq);
  border-color: var(--sariq);
  color: #241a02;
}
.tugma-sariq:hover { background: var(--sariq-tund); }

.tugma-qizil { background: var(--qizil); border-color: var(--qizil); }

.tugma-katta { padding: 1.1rem 1.4rem; font-size: 1.1rem; }

/* =====================  SAYT SKELETI  ============================= */

.qobiq { display: flex; min-height: 100vh; }

.yon-panel {
  width: var(--sidebar);
  flex-shrink: 0;
  background: var(--polat);
  color: #d5e2ec;
  display: flex;
  flex-direction: column;
}

.yon-brend {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.yon-brend .nom { color: #fff; font-weight: 700; font-size: 1.15rem; }
.yon-brend .izoh { font-size: .78rem; color: #8fb0c6; }

.yon-menyu { padding: .75rem 0; flex: 1; overflow-y: auto; }

.yon-guruh {
  font-size: .72rem;
  font-weight: 600;
  color: #7a9cb4;
  padding: .9rem 1.25rem .35rem;
}

.yon-menyu a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1.25rem;
  color: #cfdde7;
  border-left: 4px solid transparent;
  font-size: .95rem;
}
.yon-menyu a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.yon-menyu a.faol {
  background: rgba(255,255,255,.10);
  border-left-color: var(--sariq);
  color: #fff;
  font-weight: 600;
}

.yon-pastki {
  padding: .9rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
}
.yon-pastki .ism { color: #fff; font-weight: 600; }
.yon-pastki .rol { color: #8fb0c6; }

.asosiy { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.yuqori {
  background: var(--beton-0);
  border-bottom: var(--chegara);
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menyu-tugma {
  display: none;
  background: none;
  border: 1px solid var(--beton-3);
  border-radius: var(--radius);
  padding: .45rem .6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.yuqori-oraliq { flex: 1; }

.tanlov { display: flex; gap: .3rem; align-items: center; }

.til-tugma {
  border: 1px solid transparent;
  background: none;
  padding: .25rem .4rem;
  border-radius: var(--radius);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  opacity: .45;
}
.til-tugma.faol { opacity: 1; border-color: var(--beton-3); background: var(--beton-1); }

.sahifa { padding: 1.5rem; flex: 1; }
.sahifa-boshi { margin-bottom: 1.25rem; }
.sahifa-boshi p { color: var(--kul); margin-top: .2rem; }

/* =====================  KARTALAR  ================================= */

.karta {
  background: var(--beton-0);
  border: var(--chegara);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.setka { display: grid; gap: 1rem; }
.setka-4 { grid-template-columns: repeat(4, 1fr); }
.setka-3 { grid-template-columns: repeat(3, 1fr); }
.setka-2 { grid-template-columns: repeat(2, 1fr); }

.raqam-karta { display: flex; flex-direction: column; gap: .15rem; }
.raqam-karta .raqam { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.raqam-karta .izoh  { color: var(--kul); font-size: .9rem; }

/* =====================  HOLAT BELGILARI  ========================== */

.holat {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.holat-yashil { background: var(--yashil); }
.holat-kok    { background: var(--kok); }
.holat-sariq  { background: var(--sariq); color: #241a02; }
.holat-qizil  { background: var(--qizil); }
.holat-kul    { background: var(--kul-och); }

/* =====================  JADVAL  =================================== */

.jadval-oram {
  background: var(--beton-0);
  border: var(--chegara);
  border-radius: var(--radius);
  overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  font-size: .82rem;
  font-weight: 600;
  color: var(--kul);
  padding: .7rem .9rem;
  border-bottom: 2px solid var(--beton-2);
  white-space: nowrap;
}

td {
  padding: .75rem .9rem;
  border-bottom: var(--chegara);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--beton-1); }

.jadval-rasm {
  width: 44px; height: 44px;
  object-fit: cover;
  border: var(--chegara);
  border-radius: var(--radius);
  background: var(--beton-1);
}

/* =====================  XABARLAR  ================================= */

.xabar {
  padding: .8rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 1rem;
  background: var(--beton-0);
}
.xabar-xato    { border-color: var(--qizil); color: #7d2219; background: #fbf0ef; }
.xabar-yaxshi  { border-color: var(--yashil); color: #0f4f30; background: #eef7f2; }
.xabar-ogoh    { border-color: var(--sariq); color: #6b4703; background: #fdf6e7; }

/* =====================  BO'SH HOLAT  ============================== */

.bosh {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--kul);
}
.bosh h3 { color: var(--qora); margin-bottom: .4rem; }

/* =====================  XODIM PANELI (telefon)  =================== */

.xodim-qobiq {
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1rem 5.5rem;
}

.xodim-yuqori {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--polat);
  color: #fff;
}
.xodim-yuqori .ism { font-weight: 600; flex: 1; }

.skaner-tugma {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: 2.4rem 1rem;
  background: var(--sariq);
  color: #241a02;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.skaner-tugma svg { width: 54px; height: 54px; }

.asbob-qator {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem;
  background: var(--beton-0);
  border: var(--chegara);
  border-radius: var(--radius);
  margin-bottom: .6rem;
}
.asbob-qator img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--beton-1);
  flex-shrink: 0;
}
.asbob-qator .nom { font-weight: 600; }
.asbob-qator .kun { font-size: .87rem; color: var(--kul); }

.pastki-menyu {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--beton-0);
  border-top: var(--chegara);
  z-index: 20;
}
.pastki-menyu a {
  padding: .7rem .4rem calc(.7rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: .78rem;
  font-weight: 500;
  color: var(--kul);
}
.pastki-menyu a.faol { color: var(--polat); font-weight: 700; box-shadow: inset 0 3px 0 var(--sariq); }
.pastki-menyu a:hover { text-decoration: none; }
.pastki-menyu .belgi { display: block; font-size: 1.25rem; line-height: 1.2; }

/* =====================  TELEFON / PLANSHET  ======================= */

@media (max-width: 900px) {
  .setka-4 { grid-template-columns: repeat(2, 1fr); }
  .setka-3, .setka-2 { grid-template-columns: 1fr; }

  .menyu-tugma { display: block; }

  .yon-panel {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform .18s ease;
  }
  .yon-panel.ochiq { transform: translateX(0); }

  .qobiq.menyu-ochiq::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 25;
  }

  .sahifa { padding: 1rem; }
  .yuqori { padding: .7rem 1rem; }
}

@media (max-width: 760px) {
  .kirish-ekran { grid-template-columns: 1fr; }
  .kirish-brend { padding: 1.6rem 1.25rem 2rem; }
  .brend-pastki { display: none; }
  .kirish-panel { align-items: flex-start; padding: 1.75rem 1.25rem; }
}

@media (max-width: 560px) {
  .setka-4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =====================  QO'SHIMCHA (2-qadam)  ===================== */

.sahifa-boshi-qator {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.sahifa-boshi-qator .oraliq { flex: 1; }

.forma-setka { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.forma-setka .keng { grid-column: 1 / -1; }

.qator-amallar { display: flex; gap: .5rem; flex-wrap: wrap; }

.parol-quti {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 1.15rem;
  background: var(--beton-1);
  border: 1px dashed var(--beton-3);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  letter-spacing: .04em;
  user-select: all;
}

.kichik { font-size: .86rem; color: var(--kul); }

.ustun { display: flex; flex-direction: column; gap: 1rem; }

fieldset { border: none; }
legend { font-weight: 600; margin-bottom: .6rem; }

.bolim + .bolim { margin-top: 1rem; }

@media (max-width: 700px) {
  .forma-setka { grid-template-columns: 1fr; }
}

/* =====================  QR STIKERLAR (3-qadam)  =================== */

.chop-boshqaruv {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--beton-0);
  border-bottom: var(--chegara);
  position: sticky;
  top: 0;
  z-index: 10;
}

.stiker-varaq {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  padding: 1.25rem;
}

.stiker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--beton-3);
  border-radius: 2px;
  break-inside: avoid;
}

.stiker-qr { width: 62px; height: 62px; flex-shrink: 0; }
.stiker-qr svg { width: 100%; height: 100%; display: block; }

.stiker-matn { min-width: 0; }
.stiker-nom {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.stiker-raqam {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* Chop etishda: boshqaruv paneli chiqmaydi, stikerlar zich joylashadi */
@media print {
  body { background: #fff !important; }
  .chop-boshqaruv { display: none !important; }
  .stiker-varaq {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6mm;
  }
  .stiker { border: 1px dashed #999; }
  @page { size: A4; margin: 6mm; }
}

/* =====================  SKANER (4-qadam)  ========================= */

.skaner-oyna {
  position: relative;
  margin-top: .75rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 1 / 1;
}

.skaner-oyna video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Markazdagi mo'ljal ramkasi */
.skaner-rom {
  position: absolute;
  inset: 18%;
  border: 3px solid var(--sariq);
  border-radius: 4px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35);
}

/* =====================  KAMERA (6-qadam)  ========================= */

.kamera-oyna {
  position: relative;
  margin-top: .75rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 3 / 4;
}

.kamera-oyna video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pastdagi boshqaruv qatori — chiroq va zatvor */
.kamera-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem calc(.9rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0));
}

/* Zatvor: oq halqa ichida to'ldirilgan doira */
.kamera-tugma {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: transparent;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kamera-tugma span {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #fff;
}
.kamera-tugma:active span { background: var(--sariq); }

/* Chiroq tugmasi */
.kamera-chiroq {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.kamera-chiroq svg { width: 22px; height: 22px; }
.kamera-chiroq.yoniq {
  background: var(--sariq);
  border-color: var(--sariq);
  color: #241a02;
}

/* Skaner oynasidagi chiroq — o'ng pastda */
.skaner-chiroq {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

/* Olingan suratning ko'rinishi */
.kamera-oldkorish {
  display: block;
  width: 100%;
  margin-top: .75rem;
  border-radius: var(--radius);
  border: 2px solid var(--yashil);
}

.tugma:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* =====================  SURATLAR (7-qadam)  ======================= */

.surat-setka {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: .7rem;
  max-width: 720px;
}

.surat-karta {
  background: var(--beton-0);
  border: var(--chegara);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.surat-karta:hover { border-color: var(--polat-och); text-decoration: none; }
.surat-karta.surat-karta { line-height: 1.4; }
.surat-karta img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--beton-1);
}
.surat-matn { padding: .45rem .6rem; font-size: .85rem; }
.surat-matn .kichik { font-size: .78rem; }

/* Kattalashtirilgan surat */
.surat-oyna {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.surat-oyna[hidden] { display: none; }
.surat-oyna img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
}
.surat-yop {
  position: absolute;
  top: .75rem; right: 1rem;
  width: 44px; height: 44px;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* Xavfli amallar bloki */
.xavfli {
  border: 2px solid var(--qizil);
  background: #fdf3f2;
}
.xavfli h3 { color: #8a251c; }

/* Kattalashadigan rasmlar */
a[data-rasm] { display: inline-block; cursor: zoom-in; }
a[data-rasm]:hover { opacity: .85; }
/* line-height: 0 ni havolaga emas, faqat rasmga beramiz —
   aks holda kartochka ichidagi matn ustma-ust tushib qoladi */
a[data-rasm] > img { display: block; }
.katta-rasm { display: block; }

/* =====================  SAVAT (8-qadam)  ========================== */

.savat-qator {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: var(--chegara);
}
.savat-qator:last-child { border-bottom: none; }

.savat-qator img {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--beton-1);
  flex-shrink: 0;
}

.savat-matn { flex: 1; min-width: 0; }
.savat-matn .nom {
  font-weight: 600;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.savat-ochir {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--beton-3);
  background: var(--beton-0);
  border-radius: var(--radius);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--kul);
  cursor: pointer;
}
.savat-ochir:hover { background: var(--beton-1); color: var(--qizil); }

/* =====================  TELEFONGA MOSLASH (9-qadam)  ============== */

/* Keng ekranda yon panel joyida qotib turadi — uzun ro'yxatda ham qimirlamaydi */
@media (min-width: 901px) {
  .yon-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
  }
}

/* Suratlar kartochkasi noutbukda ham kichik qolsin */
.surat-setka {
  grid-template-columns: repeat(auto-fill, minmax(128px, 160px));
  justify-content: start;
}

@media (max-width: 700px) {
  /* Ikkinchi darajali ustunlar telefonda chiqmaydi */
  .yashir-mobil { display: none !important; }

  /* Jadval zichroq bo'ladi */
  th, td { padding: .55rem .5rem; }
  th { font-size: .76rem; }
  td { font-size: .9rem; }

  .jadval-rasm { width: 38px; height: 38px; }

  /* Sarlavha va tugmalar bir-birining ustiga tushmasin */
  .sahifa-boshi-qator { gap: .6rem; }
  .sahifa-boshi-qator .tugma,
  .sahifa-boshi-qator form { width: 100%; }
  .sahifa-boshi-qator .tugma { justify-content: center; }

  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.05rem; }

  /* Filtr formalari ustma-ust joylashsin */
  .qator-amallar { flex-direction: column; align-items: stretch; }
  .qator-amallar > * { width: 100%; }
  .qator-amallar .tugma { justify-content: center; }

  /* Qidiruv formasi ham */
  form.qator-amallar input,
  form.qator-amallar select { max-width: none !important; }

  .karta { padding: .9rem; }
  .surat-setka { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

  /* Katta rasmlar ekranga sig'sin */
  .katta-rasm { max-width: 100%; height: auto !important; }

  .parol-quti { font-size: 1rem; word-break: break-all; }
}

/* Juda tor ekranlar */
@media (max-width: 420px) {
  .sahifa { padding: .75rem; }
  .stiker-varaq { grid-template-columns: 1fr 1fr; }
}

/* =====================  PAROL KO'ZCHASI  ========================== */

.parol-oram { position: relative; }

.parol-oram input {
  padding-right: 3rem;   /* matn tugma ostiga kirib ketmasin */
}

.parol-kozcha {
  position: absolute;
  top: 50%;
  right: .35rem;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--kul);
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius);
}
.parol-kozcha svg { width: 20px; height: 20px; }
.parol-kozcha:hover { color: var(--qora); background: var(--beton-1); }

/* Brauzerning o'z ko'zchasi ikkilanmasin */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }
