/* Asilzoda — asosiy stillar */


:root {
  --oq: #ffffff;
  --qora: #0f0f0f;
  --kulrang: #6b7280;
  --chegara: rgba(0,0,0,0.06);
  --yashil: #22c55e;
  --yashil-yengil: rgba(34,197,94,0.08);
  --kok: #2563eb;
  --kok-qorongi: #1d4ed8;
  --qizil: #dc2626;
  --fon: #f3f4f6;
}

html, body {
  height: 100%;
  font-family: 'Montserrat', -apple-system, sans-serif;
  background: var(--oq);
  color: var(--qora);
  -webkit-font-smoothing: antialiased;
}

.sahifa {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ——— CHAP: LOGO ——— */
.chap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  border-right: 1px solid var(--chegara);
  background: var(--oq);
}

.logo-blok {
  text-align: center;
  max-width: 340px;
}

/* Aslzoda uslubidagi brend */
.brend-nom {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  color: #000;
  letter-spacing: -0.01em;
}

.brend-a-wrap {
  position: relative;
  display: inline-block;
}

.brend-a {
  font-style: italic;
  font-weight: 600;
}

/* A harfi ostidagi bezak — Aslzoda logotipidagi kabi */
.brend-swirl {
  position: absolute;
  left: -14px;
  bottom: -12px;
  width: 58px;
  height: 30px;
  pointer-events: none;
}

.brend-tag {
  margin-top: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #000;
}

.brend-past {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
}

.brend-past span {
  height: 1px;
  width: 32px;
  background: #000;
  opacity: 0.25;
}

.brend-past p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: #000;
  opacity: 0.55;
}

.chap-izoh {
  margin-top: 44px;
  font-size: 0.78rem;
  color: var(--kulrang);
  line-height: 1.7;
  text-align: center;
  max-width: 260px;
  letter-spacing: 0.01em;
}

/* ——— O'NG: RO'YXAT ——— */
.ong {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--oq);
}

.royxat-blok {
  width: 100%;
  max-width: 400px;
}

.royxat-sarlavha {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.royxat-izoh {
  font-size: 0.82rem;
  color: var(--kulrang);
  margin-bottom: 28px;
}

/* Tanlov tugmalari */
.tanlovlar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tanlov {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--oq);
  border: 1px solid var(--chegara);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: inherit;
}

.tanlov:hover {
  border-color: rgba(34,197,94,0.35);
  background: var(--yashil-yengil);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.tanlov-ikon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tanlov-ikon svg {
  width: 20px;
  height: 20px;
  stroke: var(--qora);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tanlov-matn h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.tanlov-matn p {
  font-size: 0.75rem;
  color: var(--kulrang);
  line-height: 1.4;
}

.tanlov-ok {
  margin-left: auto;
  color: var(--kulrang);
  font-size: 1rem;
  opacity: 0.4;
}

/* Ekranlar — bir vaqtda faqat bittasi */
.ekran { display: none; }
.ekran.faol { display: block; }

.orqaga {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--kulrang);
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 8px 0;
  font-family: inherit;
  min-height: 44px;
}

.orqaga:hover { color: var(--qora); }

.forma h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.forma .sub {
  font-size: 0.8rem;
  color: var(--kulrang);
  margin-bottom: 22px;
}

.maydon { margin-bottom: 14px; }

.maydon label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--kulrang);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.maydon input,
.maydon textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--chegara);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--oq);
  color: var(--qora);
  outline: none;
  transition: border-color 0.15s;
}

.maydon input:focus,
.maydon textarea:focus {
  border-color: rgba(34,197,94,0.5);
}

.maydon input::placeholder,
.maydon textarea::placeholder {
  color: #c4c4c4;
}

.tugma-asosiy {
  width: 100%;
  padding: 13px;
  margin-top: 6px;
  background: var(--qora);
  color: var(--oq);
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.tugma-asosiy:hover { opacity: 0.85; }
.tugma-asosiy:disabled { opacity: 0.5; cursor: not-allowed; }

.tugma-pwa {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 4px;
  background: #fff;
  color: var(--qora);
  border: 1.5px dashed rgba(15, 15, 15, 0.25);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.tugma-pwa:hover {
  background: #fafafa;
  border-color: rgba(15, 15, 15, 0.45);
}

.tugma-pwa-ikon { font-size: 1.1rem; line-height: 1; }

.pwa-izoh {
  font-size: 0.72rem;
  color: var(--kulrang);
  text-align: center;
  margin: 0 0 8px;
}

.pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.pwa-modal[hidden] { display: none !important; }

.pwa-modal-quti {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 24px 20px 28px;
  text-align: center;
  position: relative;
}

.pwa-modal-yopish {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--kulrang);
}

.pwa-modal-ikon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.pwa-modal-quti h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.pwa-modal-qadamlar {
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0 0 18px 1.1rem;
  color: #374151;
}

.pwa-modal-qadamlar li { margin-bottom: 8px; }

.pwa-safari-ikon {
  display: inline-block;
  transform: rotate(180deg);
  font-size: 1rem;
}

@media (min-width: 769px) {
  .pwa-modal { align-items: center; }
  .pwa-modal-quti { border-radius: 16px; }
}

.xabar {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  display: none;
}
.xabar.xato { display: block; background: #fef2f2; color: #b91c1c; }
.xabar.muvaffaq { display: block; background: #f0fdf4; color: #166534; }

.manzil-input {
  cursor: pointer;
  background: #fafafa;
}
.manzil-input::placeholder { color: #9ca3af; }

/* Xarita modali */
.xarita-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.xarita-modal.ochiq { display: flex; }

.xarita-quti {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.xarita-sarlavha {
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--chegara);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.xarita-yuklanmoqda {
  padding: 10px 18px;
  font-size: 0.78rem;
  color: var(--kulrang);
  background: #fafafa;
}

#xarita { height: 320px; width: 100%; }

.xarita-past {
  padding: 14px 18px;
  border-top: 1px solid var(--chegara);
}

.xarita-manzil {
  font-size: 0.8rem;
  color: var(--kulrang);
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 2.5em;
}

.xarita-tugmalar {
  display: flex;
  gap: 8px;
}

.tugma-ikkinchi {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--chegara);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.tugma-ikkinchi.asosiy {
  background: var(--qora);
  color: #fff;
  border-color: var(--qora);
}

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

/* Muvaffaqiyat sahifasi */
.muvaffaqiyat { text-align: center; }

.muvaffaqiyat-ikon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.muvaffaqiyat h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.muvaffaqiyat p {
  font-size: 0.85rem;
  color: var(--kulrang);
  line-height: 1.7;
  margin-bottom: 24px;
}

.tugma-bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #229ED9;
  color: #fff;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.tugma-bot:hover { opacity: 0.9; }

.kod-bolim {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--chegara);
  text-align: left;
}

.kod-bolim h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
}

.kod-bolim .sub {
  font-size: 0.78rem;
  color: var(--kulrang);
  text-align: center;
  margin-bottom: 16px;
}

.kod-qatori {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--chegara);
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  margin-bottom: 14px;
}

.kod-prefix {
  padding: 12px 14px;
  background: #f3f4f6;
  color: var(--qora);
  font-size: 0.95rem;
  font-weight: 700;
  border-right: 1.5px solid var(--chegara);
  user-select: none;
  white-space: nowrap;
}

.kod-raqam {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  font-family: inherit;
  background: #fff;
  min-width: 0;
}

.kod-raqam::placeholder {
  letter-spacing: 0.1em;
  font-weight: 400;
  font-size: 0.9rem;
  color: #c4c4c4;
}

/* Kirish sahifalari */
.asosiy-sahifa { text-align: center; padding: 20px 0; }

.asosiy-sahifa h2 { font-size: 1.2rem; margin-bottom: 8px; }
.asosiy-sahifa p { font-size: 0.85rem; color: var(--kulrang); line-height: 1.6; }

.kirish-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--kulrang);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  width: 100%;
}

.kirish-link:hover { color: var(--qora); }

/* ——— VITRINA (do'kon egasi) ——— */
body.vitrina-rejim .sahifa {
  grid-template-columns: 1fr;
  min-height: 100vh;
}

body.vitrina-rejim .chap { display: none; }

body.vitrina-rejim .ong {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: var(--fon);
}

body.vitrina-rejim .royxat-blok {
  max-width: none;
  width: 100%;
}

/* ——— ISHCHI PANEL ——— */
body.ishchi-rejim .sahifa {
  grid-template-columns: 1fr;
  min-height: 100vh;
}

body.ishchi-rejim .chap { display: none; }

body.ishchi-rejim .ong {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: var(--fon);
}

body.ishchi-rejim .royxat-blok {
  max-width: none;
  width: 100%;
}

body.admin-rejim .sahifa {
  grid-template-columns: 1fr;
  min-height: 100vh;
}

body.admin-rejim .chap { display: none; }

body.admin-rejim .ong {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: var(--fon);
}

body.admin-rejim .royxat-blok {
  max-width: none;
  width: 100%;
}

/* ——— ADMIN PANEL (SkuterBozor uslubi) ——— */
.admin-panel-sahifa { padding: 0; background: #eef1f6; }
.admin-panel-sahifa.faol { display: block !important; }

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

.admin-sidebar {
  width: 248px;
  background: #0b0f19;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
}

.admin-brand { padding: 28px 22px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-brand-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.admin-brand-logo .aq { color: #f8fafc; }
.admin-brand-logo .yashil { color: #22c55e; }
.admin-brand-sub { margin-top: 6px; font-size: 12px; color: #64748b; font-weight: 500; }

.admin-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }

.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 14px; border: none;
  border-radius: 12px; background: transparent;
  color: #94a3b8; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: background 0.22s, color 0.22s, transform 0.15s;
  font-family: inherit;
}

.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.admin-nav-item:hover { background: rgba(255,255,255,0.05); color: #e2e8f0; }
.admin-nav-item.active { background: rgba(255,255,255,0.08); color: #f8fafc; box-shadow: inset 3px 0 0 #22c55e; }
.admin-nav-item.active svg { color: #22c55e; }

.admin-nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700; display: flex;
  align-items: center; justify-content: center;
}
.admin-nav-badge.bosh { display: none; }

.admin-sidebar-foot { padding: 16px 12px 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.admin-user-ism { font-size: 12px; color: #94a3b8; text-align: center; margin-bottom: 8px; }
.admin-btn-logout {
  width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; background: rgba(255,255,255,0.04);
  color: #94a3b8; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.admin-btn-logout:hover { background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.25); }

.admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 55; }
.admin-overlay.show { display: block; }

.admin-main { flex: 1; margin-left: 248px; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 28px; background: rgba(238,241,246,0.85);
  backdrop-filter: blur(12px); border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 30;
}

.admin-menu-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}

.admin-topbar h2 { flex: 1; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }

.admin-content { padding: 24px 28px 40px; animation: adminFadeUp 0.4s ease; }

@keyframes adminFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-section { display: none; animation: adminFadeUp 0.35s ease; }
.admin-section.active { display: block; }

.admin-hero-card {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  border-radius: 16px; padding: 22px 26px; margin-bottom: 18px;
  color: #fff; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(34,197,94,0.28);
  animation: adminFadeUp 0.45s ease;
}

.admin-hero-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.9; }
.admin-hero-card h2 { font-size: 22px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.admin-hero-hint { font-size: 13px; opacity: 0.88; margin-top: 4px; }
.admin-hero-metrics { display: flex; gap: 28px; }
.admin-hero-metric b { display: block; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.admin-hero-metric span { font-size: 12px; opacity: 0.85; margin-top: 4px; display: block; }

.admin-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  padding: 20px 22px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.8);
  transition: box-shadow 0.22s;
}
.admin-card:hover { box-shadow: 0 12px 48px rgba(15,23,42,0.08); }

.admin-card-head { margin-bottom: 16px; }
.admin-card-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.admin-card-head p { font-size: 12px; color: #64748b; margin-top: 4px; }

.admin-chart-wrap { position: relative; height: 260px; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.admin-stat {
  background: #fff; border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  border: 1px solid rgba(226,232,240,0.6);
  transition: transform 0.2s, box-shadow 0.22s;
}

.admin-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 48px rgba(15,23,42,0.08); }
.admin-stat span { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.35; }
.admin-stat b { display: block; font-size: 26px; margin-top: 8px; letter-spacing: -0.03em; font-weight: 800; }
.admin-stat small { display: block; margin-top: 4px; font-size: 11px; color: #64748b; }

.admin-section-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.admin-section-desc { font-size: 13px; color: #64748b; margin-bottom: 18px; }

.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid #e2e8f0; box-shadow: 0 4px 24px rgba(15,23,42,0.06);
}
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e2e8f0; }
.admin-table th { color: #64748b; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; background: #f8fafc; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafbfc; }

.admin-loading { text-align: center; padding: 24px; color: #64748b; font-size: 13px; }
.admin-empty { text-align: center; padding: 40px 20px; color: #64748b; font-size: 13px; }

.admin-ishchi-detail { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.admin-ishchi-detail h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

.admin-ishchilar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.admin-ishchi-karta {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  border: 1px solid rgba(226,232,240,0.6);
  transition: transform 0.2s, box-shadow 0.22s;
}

.admin-ishchi-karta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(15,23,42,0.08);
}

.admin-ishchi-karta-bosh {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.admin-ishchi-ism { font-size: 15px; font-weight: 700; color: #0f172a; }
.admin-ishchi-login { font-size: 12px; color: #64748b; margin-top: 2px; }

.admin-ishchi-statlar {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.admin-ishchi-stat-item b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.admin-ishchi-stat-item span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-ishchi-karta-amallar {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* Vitrina grid */
.admin-vitrina-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.admin-vitrina-karta {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  border: 1px solid rgba(226,232,240,0.6);
  transition: transform 0.2s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}

.admin-vitrina-karta:hover { transform: translateY(-2px); box-shadow: 0 12px 48px rgba(15,23,42,0.08); }
.admin-vitrina-karta.noaktiv { opacity: 0.55; }

.admin-vitrina-rasm {
  height: 140px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-vitrina-rasm img { width: 100%; height: 100%; object-fit: cover; }
.admin-vitrina-rasm.bosh-rasm { font-size: 40px; }

.admin-vitrina-info { padding: 14px 16px; flex: 1; }
.admin-vitrina-nom { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.admin-vitrina-narx { font-size: 15px; font-weight: 800; color: #22c55e; margin-bottom: 6px; }
.admin-vitrina-tavsif { font-size: 12px; color: #64748b; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.admin-vitrina-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #64748b; }
.admin-vitrina-holat { padding: 2px 8px; border-radius: 6px; font-weight: 600; background: #fef2f2; color: #b91c1c; }
.admin-vitrina-holat.faol { background: #dcfce7; color: #166534; }

.admin-vitrina-amallar { padding: 12px 16px; border-top: 1px solid #f1f5f9; display: flex; gap: 8px; }

/* Modal */
.admin-modal-bg {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px); display: none;
  align-items: center; justify-content: center;
  z-index: 200; padding: 16px;
}
.admin-modal-bg.show { display: flex; }

.admin-modal {
  background: #fff; border-radius: 16px;
  padding: 24px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 12px 48px rgba(15,23,42,0.12);
  animation: adminFadeUp 0.3s ease;
}

.admin-modal label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 6px; margin-top: 12px; }
.admin-modal label:first-of-type { margin-top: 0; }
.admin-modal input, .admin-modal textarea {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; background: #f8fafc;
  font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-modal input:focus, .admin-modal textarea:focus {
  outline: none; border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
  background: #fff;
}
.admin-modal textarea { resize: vertical; min-height: 70px; }

@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-menu-toggle { display: flex; }
  .admin-content { padding: 18px 16px 32px; }
  .admin-topbar { padding: 14px 16px; }
  .admin-hero-metrics { gap: 18px; }
  .admin-hero-metric b { font-size: 22px; }
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.holat-belgi {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.holat-faol { background: var(--yashil-yengil); color: #166534; }
.holat-kutilmoqda { background: #fef3c7; color: #92400e; }
.holat-blok { background: #fef2f2; color: #b91c1c; }

.admin-tugmalar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tugma {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.admin-tugma:active { transform: scale(0.97); }
.admin-tugma.yashil { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.admin-tugma.yashil:hover { background: #bbf7d0; }
.admin-tugma.qizil { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.admin-tugma.qizil:hover { background: #fecaca; }
.admin-tugma.kok { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.admin-tugma.kok:hover { background: #dbeafe; }

.ishchi-panel {
  min-height: 100vh;
  background: var(--fon);
}

.ishchi-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.ishchi-menu {
  background: var(--oq);
  border-right: 1px solid var(--chegara);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.ishchi-menu-brend {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 4px 12px 2px;
  margin-bottom: 4px;
}

.ishchi-menu-ism {
  font-size: 0.78rem;
  color: var(--kulrang);
  padding: 0 12px 16px;
  border-bottom: 1px solid var(--chegara);
  margin-bottom: 8px;
}

.ishchi-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--qora);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.ishchi-menu-item:hover { background: var(--fon); }

.ishchi-menu-item.faol {
  background: rgba(37, 99, 235, 0.1);
  color: var(--kok);
}

.ishchi-menu-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--qizil);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ishchi-menu-badge.bosh { display: none; }

.ishchi-chiqish {
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid var(--chegara);
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--kulrang);
  cursor: pointer;
}

.ishchi-chiqish:hover { background: var(--fon); color: var(--qora); }

.ishchi-asosiy {
  padding: 20px 24px 40px;
  overflow-y: auto;
}

.ishchi-bolim { display: none; }
.ishchi-bolim.faol { display: block; }

.ishchi-bolim-sarlavha {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ishchi-bolim-izoh {
  font-size: 0.82rem;
  color: var(--kulrang);
  margin-bottom: 20px;
}

.zakazlar-ro-yxat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zakaz-karta {
  background: var(--oq);
  border: 1px solid var(--chegara);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.zakaz-karta-yangi {
  border-left: 4px solid var(--qizil);
}

.zakaz-karta-jarayon {
  border-left: 4px solid var(--kok);
}

.zakaz-qabul-belgi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yashil-yengil);
  color: #166534;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.zakaz-karta-sarlavha {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.zakaz-karta-sarlavha h4 {
  font-size: 1rem;
  font-weight: 600;
}

.zakaz-karta-vaqt {
  font-size: 0.72rem;
  color: var(--kulrang);
  white-space: nowrap;
}

.zakaz-karta-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 14px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.zakaz-karta-meta span { color: var(--kulrang); }
.zakaz-karta-meta a { color: var(--kok); text-decoration: none; }
.zakaz-karta-meta a:hover { text-decoration: underline; }

.zakaz-mahsulotlar {
  background: var(--fon);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.zakaz-mahsulotlar li {
  list-style: none;
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.zakaz-karta-past {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.zakaz-jami {
  font-size: 0.95rem;
  font-weight: 600;
}

.tugma-qabul {
  padding: 10px 20px;
  background: var(--yashil);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.tugma-qabul:hover { opacity: 0.9; }
.tugma-qabul:disabled { opacity: 0.5; cursor: not-allowed; }

.mening-sana-input {
  border: 1px solid var(--chegara);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--oq);
  cursor: pointer;
  color: var(--qora);
}

.mening-sana-tugma {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--chegara);
  background: var(--oq);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.mening-sana-tugma:hover { background: var(--fon); }

/* Tahrirlash bo'limi */
.tahrir-mahsulotlar-royxat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tahrir-mahsulot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--oq);
  border: 1px solid var(--chegara);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.tahrir-mahsulot-item:hover { background: #f8fafc; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.tahrir-mahsulot-rasm {
  width: 44px; height: 44px; border-radius: 10px;
  background: #f1f5f9; display: flex; align-items: center;
  justify-content: center; overflow: hidden; flex-shrink: 0;
  font-size: 1.2rem;
}

.tahrir-mahsulot-rasm img { width: 100%; height: 100%; object-fit: cover; }

.tahrir-mahsulot-info { flex: 1; min-width: 0; }
.tahrir-mahsulot-nom { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tahrir-mahsulot-narx { font-size: 0.78rem; color: var(--kulrang); margin-top: 2px; }

.tahrir-modal-fon {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 16px;
}

.tahrir-modal {
  background: var(--oq); border-radius: 16px; padding: 20px;
  width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.rasm-input {
  border: 1px dashed var(--chegara);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  font-size: 0.82rem;
  cursor: pointer;
  background: #f8fafc;
}

.rasm-yuklash-zona {
  border: 2px dashed var(--chegara);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafbfc;
  position: relative;
  overflow: hidden;
}

.rasm-yuklash-zona:hover { border-color: var(--kok); background: #f0f7ff; }
.rasm-yuklash-zona.tashlash { border-color: var(--yashil); background: #f0fdf4; }
.rasm-yuklash-zona.yuklangan { padding: 8px; }

.rasm-zona-ichki { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rasm-zona-ikon { font-size: 2rem; }
.rasm-zona-matn { font-size: 0.78rem; color: var(--kulrang); }

.rasm-zona-oldindan {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
}

.kunlik-xulosa {
  margin-top: 28px;
  background: var(--oq);
  border: 1px solid var(--chegara);
  border-radius: 14px;
  padding: 18px 20px;
}

.kunlik-xulosa-sarlavha {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kunlik-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kunlik-stat-karta {
  background: var(--fon);
  border-radius: 10px;
  padding: 12px 14px;
}

.kunlik-stat-karta .qiymat {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--kok);
}

.kunlik-stat-karta .yorliq {
  font-size: 0.72rem;
  color: var(--kulrang);
  margin-top: 2px;
}

.ishchi-forma {
  max-width: 480px;
  background: var(--oq);
  border: 1px solid var(--chegara);
  border-radius: 14px;
  padding: 20px;
}

.ishchi-forma .maydon { margin-bottom: 14px; }

.ishchi-bosh-holat {
  text-align: center;
  padding: 40px 20px;
  color: var(--kulrang);
  font-size: 0.88rem;
}

.mening-kichik-sarlavha {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.mening-faol-blok {
  margin-bottom: 28px;
}

.mening-kalendar-blok {
  background: var(--oq);
  border: 1px solid var(--chegara);
  border-radius: 14px;
  padding: 18px;
}

.kalendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.kalendar-header button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--chegara);
  border-radius: 10px;
  background: var(--fon);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.kalendar-header span {
  font-weight: 600;
  font-size: 0.95rem;
}

.kalendar-kun-nomlar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  font-size: 0.68rem;
  color: var(--kulrang);
  text-align: center;
  font-weight: 600;
}

.kalendar-tarmog {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.kalendar-kun {
  aspect-ratio: 1;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  position: relative;
  color: var(--qora);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
}

.kalendar-kun:hover:not(:disabled) { background: var(--fon); }

.kalendar-kun.bosh { visibility: hidden; pointer-events: none; }

.kalendar-kun.bugun { box-shadow: inset 0 0 0 2px var(--kok); }

.kalendar-kun.tanlangan {
  background: var(--kok);
  color: #fff;
}

.kalendar-kun.tanlangan .kalendar-kun-badge {
  background: #fff;
  color: var(--kok);
}

.kalendar-kun:disabled {
  opacity: 0.35;
  cursor: default;
}

.kalendar-kun-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--qizil);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
}

.mening-kun-xulosa {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--chegara);
}

.zakaz-isbot {
  background: #f8fafc;
  border: 1px dashed var(--chegara);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.zakaz-isbot div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}

.zakaz-isbot span { color: var(--kulrang); }

.zakaz-isbot code {
  font-size: 0.72rem;
  word-break: break-all;
  text-align: right;
}

.ishchi-yuklanmoqda {
  text-align: center;
  padding: 24px;
  color: var(--kulrang);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .ishchi-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .ishchi-menu {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    gap: 6px;
    border-right: none;
    border-bottom: 1px solid var(--chegara);
  }

  .ishchi-menu-brend,
  .ishchi-menu-ism { display: none; }

  .ishchi-menu-item {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .ishchi-chiqish {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .ishchi-asosiy { padding: 16px 14px 32px; }
}

.vitrina-ekran {
  text-align: left;
  padding: 0;
  min-height: 100vh;
  background: var(--fon);
  position: relative;
  padding-bottom: 80px;
}

.vitrina-header {
  background: var(--oq);
  border-bottom: 1px solid var(--chegara);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.vitrina-chiqish {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 10px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--qizil);
  z-index: 60;
  position: relative;
}

.vitrina-chiqish:hover {
  color: #fff;
  background: var(--qizil);
  border-color: var(--qizil);
}

.vitrina-header-ichki {
  max-width: 1400px;
  margin: 0 auto;
}

.vitrina-brend {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kulrang);
  margin-bottom: 2px;
}

.vitrina-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.vitrina-kontent {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 16px 24px;
}

.vitrina-izoh {
  font-size: 0.82rem;
  color: var(--kulrang);
  margin-bottom: 14px;
}

.mahsulotlar-tarmog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .mahsulotlar-tarmog { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (min-width: 900px) {
  .mahsulotlar-tarmog { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .mahsulotlar-tarmog { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .vitrina-kontent { padding: 20px 24px 32px; }
}

.mahsulot-karta {
  background: var(--oq);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.mahsulot-karta:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.mk-rasm-wrap {
  position: relative;
  background: #fafafa;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
}

.mk-rasm-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mk-zakaz-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  background: var(--kok);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 99px;
  display: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.mk-zakaz-badge.korinadi { display: block; }

.mk-tana {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mk-id {
  background: #1f2937;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  align-self: flex-start;
}

.mk-nom {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.mk-qisqa {
  font-size: 0.68rem;
  color: var(--kulrang);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mk-narx {
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: auto;
  padding-top: 6px;
}

.savat-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 160;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  max-width: 85vw;
  text-align: center;
}

.savat-toast.korinadi {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Buyurtma modali */
.buyurtma-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.buyurtma-modal.ochiq { display: flex; }

.buyurtma-quti {
  background: var(--oq);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.buyurtma-quti h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.buyurtma-quti-izoh {
  font-size: 0.82rem;
  color: var(--kulrang);
  margin-bottom: 16px;
}

.buyurtma-xulosa {
  background: var(--fon);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.buyurtma-xulosa-qator {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  flex-wrap: wrap;
}

.buyurtma-xulosa-jami {
  border-top: 1px solid var(--chegara);
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 600;
}

.buyurtma-tugmalar {
  display: flex;
  gap: 10px;
}

.buyurtma-tugmalar button { flex: 1; }

.buyurtma-muvaffaqiyat {
  text-align: center;
  padding: 8px 0;
}

.buyurtma-muvaffaqiyat .ikon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.yuklanmoqda, .bosh-holat {
  text-align: center;
  padding: 48px 20px;
  color: var(--kulrang);
  font-size: 0.88rem;
}

/* Mahsulot modali */
.mahsulot-modal, .savat-fon {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mahsulot-modal.ochiq, .savat-fon.ochiq { display: flex; }

.mahsulot-modal {
  background: rgba(0,0,0,0.45);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .mahsulot-modal {
    align-items: center;
    padding: 20px;
  }
}

.mahsulot-quti {
  background: var(--oq);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  animation: yuqoriga 0.25s ease;
}

@media (min-width: 640px) {
  .mahsulot-quti { border-radius: 20px; }
}

@keyframes yuqoriga {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mahsulot-quti-rasm {
  background: #fafafa;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.mahsulot-quti-rasm img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
}

.mahsulot-quti-tana { padding: 18px 20px 24px; }

.mahsulot-quti-tana h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mahsulot-quti-narx {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.mahsulot-quti-tavsif {
  font-size: 0.82rem;
  color: var(--kulrang);
  line-height: 1.6;
  margin-bottom: 14px;
}

.xususiyatlar-ro-yxat {
  list-style: none;
  margin-bottom: 18px;
  border: 1px solid var(--chegara);
  border-radius: 12px;
  overflow: hidden;
}

.xususiyatlar-ro-yxat li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--chegara);
}

.xususiyatlar-ro-yxat li:last-child { border-bottom: none; }

.xususiyatlar-ro-yxat li span:first-child { color: var(--kulrang); }

.xususiyatlar-ro-yxat li span:last-child { font-weight: 600; text-align: right; }

.mahsulot-quti { position: relative; }

.modal-zakaz-info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
  padding: 12px 20px;
  font-size: 0.85rem;
  color: #1e40af;
  text-align: center;
}

.modal-zakaz-info b { font-weight: 800; }

.modal-zakaz-info.bosh {
  background: #f9fafb;
  color: var(--kulrang);
}

.miqdor-qator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 16px;
}

.miqdor-tugma {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--chegara);
  background: var(--oq);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.miqdor-tugma:hover { background: #f3f4f6; }

.miqdor-qiymat {
  font-size: 1.6rem;
  font-weight: 800;
  min-width: 40px;
  text-align: center;
}

.tugma-kok {
  width: 100%;
  padding: 18px;
  background: var(--kok);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.tugma-kok:hover { background: var(--kok-qorongi); }
.tugma-kok:active { transform: scale(0.98); }

.modal-yopish {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Savat FAB */
.savat-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--qizil);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(220,38,38,0.45);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

body.vitrina-rejim .savat-fab { display: flex; }

.savat-fab:hover { transform: scale(1.05); }

.savat-fab.sakrash {
  animation: fabSakrash 0.4s ease;
}

@keyframes fabSakrash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.savat-fab svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.savat-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #fff;
  color: var(--qizil);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.savat-fab-badge.bosh { display: none; }

/* Savat paneli */
.savat-fon {
  background: rgba(0,0,0,0.4);
  z-index: 180;
}

.savat-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  background: var(--oq);
  border-radius: 20px 20px 0 0;
  z-index: 190;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
  pointer-events: none;
}

.savat-panel.ochiq { transform: translateY(0); pointer-events: auto; }

@media (min-width: 640px) {
  .savat-panel {
    top: 0;
    bottom: 0;
    max-height: none;
    border-radius: 20px 0 0 20px;
    transform: translateX(100%);
  }
  .savat-panel.ochiq { transform: translateX(0); pointer-events: auto; }
}

.savat-panel-sarlavha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--chegara);
}

.savat-panel-sarlavha h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.savat-panel-yopish {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--kulrang);
  padding: 4px 8px;
}

.savat-ro-yxat {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.savat-bosh {
  text-align: center;
  padding: 40px 20px;
  color: var(--kulrang);
  font-size: 0.88rem;
}

.savat-bosh span { font-size: 2.5rem; display: block; margin-bottom: 10px; }

.savat-element {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.savat-element-rasm {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.savat-element-rasm img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.savat-element-matn { flex: 1; min-width: 0; }

.savat-element-nom {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.savat-element-narx {
  font-size: 0.75rem;
  color: var(--kulrang);
}

.savat-element-ctrl {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.savat-element-miqdor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.savat-element-miqdor button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--chegara);
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}

.savat-element-jami {
  font-size: 0.82rem;
  font-weight: 700;
}

.savat-past {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--chegara);
  background: var(--oq);
}

.savat-jami-qator {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.tugma-buyurtma {
  width: 100%;
  padding: 14px;
  background: var(--qora);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

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

/* ——— TELEFON ——— */
@media (max-width: 768px) {
  .sahifa {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .chap {
    border-right: none;
    border-bottom: 1px solid var(--chegara);
    padding: 24px 20px 20px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0;
  }

  .logo-blok {
    text-align: left;
    max-width: 100%;
  }

  .brend-nom { font-size: 2rem; }

  .brend-swirl { width: 36px; height: 18px; bottom: -6px; left: -8px; }

  .brend-tag {
    margin-top: 6px;
    font-size: 0.5rem;
    letter-spacing: 0.28em;
  }

  .brend-past,
  .chap-izoh { display: none; }

  .ong {
    padding: 24px 16px 36px;
    align-items: flex-start;
  }

  .royxat-blok { max-width: 100%; }

  .royxat-sarlavha { font-size: 1rem; }
  .royxat-izoh { font-size: 0.78rem; margin-bottom: 16px; }

  .tanlov { padding: 12px 14px; border-radius: 12px; }
  .tanlov-ikon { width: 34px; height: 34px; }

  .kod-raqam { font-size: 1.15rem; letter-spacing: 0.2em; }

  .tugma-bot { max-width: 100%; }

  .xarita-modal { padding: 0; align-items: stretch; }
  .xarita-quti {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  #xarita { flex: 1; height: auto; min-height: 200px; }

  /* Vitrina telefonda */
  .vitrina-header {
    padding: 12px 14px;
    gap: 8px;
  }

  .vitrina-header h2 { font-size: 0.92rem; }
  .vitrina-brend { font-size: 0.65rem; }

  .vitrina-chiqish {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .vitrina-kontent { padding: 12px 12px 20px; }

  .mahsulotlar-tarmog {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .mk-tana { padding: 8px 10px 10px; gap: 4px; }
  .mk-nom { font-size: 0.75rem; }
  .mk-qisqa { font-size: 0.65rem; -webkit-line-clamp: 1; }
  .mk-narx { font-size: 0.85rem; padding-top: 4px; }
  .mk-id { font-size: 0.58rem; padding: 2px 5px; }

  /* Mahsulot modali telefonda */
  .mahsulot-quti {
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
  }

  .mahsulot-quti-rasm { padding: 16px; min-height: 150px; }
  .mahsulot-quti-rasm img { max-height: 140px; }
  .mahsulot-quti-tana { padding: 14px 16px 20px; }
  .mahsulot-quti-tana h3 { font-size: 1rem; }
  .mahsulot-quti-narx { font-size: 1.3rem; margin-bottom: 10px; }
  .miqdor-qator { margin: 14px 0 12px; gap: 16px; }
  .miqdor-tugma { width: 42px; height: 42px; }
  .miqdor-qiymat { font-size: 1.4rem; }
  .tugma-kok { padding: 14px; font-size: 0.95rem; }

  /* Savat paneli telefonda */
  .savat-fab { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .savat-fab svg { width: 22px; height: 22px; }

  .savat-panel {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
  }

  .savat-panel-sarlavha { padding: 14px 16px; }
  .savat-panel-sarlavha h3 { font-size: 0.95rem; }
  .savat-ro-yxat { padding: 10px 14px; }
  .savat-element { padding: 10px; gap: 10px; }
  .savat-element-rasm { width: 48px; height: 48px; }
  .savat-element-nom { font-size: 0.78rem; }
  .savat-element-narx { font-size: 0.7rem; }
  .savat-past { padding: 14px 16px 20px; }
  .savat-jami-qator { font-size: 0.92rem; margin-bottom: 12px; }
  .tugma-buyurtma { padding: 12px; font-size: 0.85rem; }

  /* Buyurtma modali telefonda */
  .buyurtma-quti {
    max-width: 100%;
    padding: 20px 16px;
    border-radius: 14px;
  }
  .buyurtma-quti h3 { font-size: 1rem; }
  .buyurtma-xulosa { padding: 12px; font-size: 0.8rem; }
  .buyurtma-xulosa-qator { padding: 3px 0; }

  /* Ishchi panel telefonda */
  .zakazlar-ro-yxat { gap: 10px; }
  .zakaz-karta { padding: 12px; border-radius: 12px; }
  .zakaz-karta h4 { font-size: 0.88rem; }

  .kunlik-xulosa { padding: 12px; border-radius: 12px; }
  .kunlik-stat-grid { gap: 8px; }
  .kunlik-stat-karta { padding: 10px; }
  .kunlik-stat-karta .qiymat { font-size: 1.2rem; }

  .kalendar { padding: 12px; }
  .kalendar-kun { width: 32px; height: 32px; font-size: 0.72rem; }
  .kalendar-kun-badge { font-size: 0.5rem; min-width: 14px; height: 14px; top: -4px; right: -4px; }
}

@media (max-width: 380px) {
  .mahsulotlar-tarmog { gap: 8px; }
  .mk-tana { padding: 6px 8px 8px; }
  .mk-nom { font-size: 0.7rem; }
  .mk-narx { font-size: 0.78rem; }
  .mk-id { font-size: 0.55rem; }
  .mk-rasm-wrap { padding: 8px; }

  .savat-element-rasm { width: 40px; height: 40px; }
  .savat-element-miqdor button { width: 24px; height: 24px; font-size: 0.85rem; }
}
