/* adlix × Mehnat taʼtili — asl ilova uslubi (styles.css, oʻzgarishsiz) ustidagi yupqa qatlam:
   adlix brendi (sarlavha va footer), «Kabinetga qaytish», kirish holati ekranlari (yuklanmoqda / kirilmagan /
   Bepul / xato — asl .auth-card ichida) va 743-nizom izohidagi belgilar (emoji oʻrniga SVG).
   Ranglar asl tokenlardan (--ink, --muted, --accent, --gold...) — kun va tun rejimida oʻzi moslashadi. */

/* ---------- Brend: adlix tarozisi + «adlix / Mehnat taʼtili» ---------- */
.adlix-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.adlix-mark {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #e9d28a;
  background: linear-gradient(150deg, #142a52, #1f3b73);
  box-shadow: 0 6px 16px rgba(31, 59, 115, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform var(--dur) var(--ease);
}
.adlix-mark svg { width: 22px; height: 22px; }
html[data-theme="dark"] .adlix-mark {
  border: 1px solid rgba(233, 210, 138, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.brand.adlix-brand:hover .adlix-mark { transform: scale(1.03); }
.adlix-brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.adlix-brand-text strong { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.adlix-brand-text small { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.adlix-brand-foot { min-height: 0; }
.adlix-brand-foot .adlix-mark { width: 38px; height: 38px; border-radius: 11px; }
.adlix-brand-foot .adlix-mark svg { width: 20px; height: 20px; }

/* «Kabinetga qaytish» — asl «Chiqish» tugmasi (.logout-btn) uslubida, havola */
a.adlix-back { text-decoration: none; }
a.adlix-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  /* asl logotip balandligi (38px) bilan bir xil — sarlavha qatori balandligi oʻzgarmaydi */
  .adlix-brand { min-height: 38px; }
  .adlix-mark { width: 38px; height: 38px; border-radius: 11px; }
  .adlix-mark svg { width: 20px; height: 20px; }
  .adlix-brand-text strong { font-size: 17px; }
  .adlix-brand-text small { font-size: 11.5px; }
}
@media (max-width: 360px) {
  .site-header .adlix-brand-text small { display: none; }
  .site-header .header-actions { gap: 6px; }
}

/* ---------- Kirish holati ekranlari (#adlix-gate .auth-card) ---------- */
.adlix-gate-mark { display: flex; justify-content: center; }
.adlix-gate-mark .adlix-mark { width: 56px; height: 56px; border-radius: 16px; }
.adlix-gate-mark .adlix-mark svg { width: 28px; height: 28px; }
.adlix-gate-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 6px;
  color: var(--muted);
  font-weight: 600;
}
.adlix-spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent-tint-border);
  border-top-color: var(--accent);
  animation: adlix-spin 0.8s linear infinite;
}
@keyframes adlix-spin { to { transform: rotate(360deg); } }
.adlix-gate-eyebrow {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--gold-tint-border);
  background: var(--gold-tint);
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[data-theme="dark"] .adlix-gate-eyebrow { color: #e9d28a; }
.adlix-gate .auth-title { outline: none; margin-bottom: 8px; }
.adlix-gate .adlix-gate-lede { margin-bottom: 0; line-height: 1.55; }
.adlix-gate .auth-benefits { margin-top: 18px; }
.adlix-gate-note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; }
.adlix-gate-note:empty { display: none; }
.adlix-gate-act { display: grid; gap: 10px; margin-top: 22px; }
.adlix-gate-act .btn { width: 100%; justify-content: center; text-decoration: none; }
.adlix-gate .auth-hint { margin-bottom: 0; }

/* ---------- 743-nizom izohidagi belgilar (asl ✅ / ⚠️ oʻrniga) ---------- */
.adlix-ico { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.16em; }
.adlix-ico-ok { color: var(--success); }
.adlix-ico-warn { color: var(--day-moved); }

@media (prefers-reduced-motion: reduce) {
  .adlix-spin { animation-duration: 2.4s; }
  .adlix-mark { transition: none; }
}
@media print {
  .adlix-gate { display: none !important; }
}
