/* ==========================================
   DIZAYN TOKENLARI — Dermatologiya Jurnali
   Klassik palitra: oq asosiy fon + lojuvard (navy) va oltin aksent
   ========================================== */
:root {
  --primary-blue: #1a2b4a; /* Klassik to'q lojuvard — matn/nav/footer */
  --primary-blue-light: #24365c; /* Ingichka border/hover uchun bir bosqich ochroq soya */
  --accent-teal: #b08d57; /* Klassik oltin — yagona aksent */
  --accent-teal-dark: #8f6f3f; /* Hover/bosilgan holatlar uchun to'qroq variant */
  --accent-teal-light: #d9c398;
  --soft-bg: #faf6ee; /* Juda och oltin-krem fon (hover holatlari uchun) */

  /* Ikkilamchi klassik aksent (bordo) — juda kam, faqat mayda urg'ular uchun (nuqta, indikator) */
  --accent-warm: #8b3a3a;
  --accent-warm-dark: #6e2c2c;
  --accent-warm-light: #f3e2e2;

  --text-main: #1e293b; /* To'q matn */
  --text-muted: #64748b;
  --white: #ffffff;
  --border-color: #e2ded2;

  /* Tipografiya — xalqaro ilmiy jurnal uslubidagi shrift juftligi */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:
    "IBM Plex Sans", -apple-system, system-ui, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.1);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --topbar-height: 38px;
  --nav-height: 76px;
  --header-height: calc(var(--topbar-height) + var(--nav-height));

  /* --- "1.html" dizayn tokenlari — faqat header, footer va bosh sahifa
     (foydalanuvchi qismi) uchun ishlatiladi. Boshqa sahifalar hozircha
     yuqoridagi eski tokenlarda qoladi. --- */
  --dj-primary: #1b3fa0;
  --dj-primary-deep: #0e2a76;
  --dj-pink: #eaa9cb;
  --dj-lilac: #c2d0f5;
  --dj-ink: #131b2e;
  --dj-surface: #f4f6fc;
  --dj-surface-2: #eef1fb;
  --dj-line: #dfe4f4;
  --dj-muted: #5b6785;
  --dj-font-display: "Space Grotesk", sans-serif;
  --dj-font-sans: "Inter", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #ffffff;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
}

code,
.mono,
.badge-issn,
.scope-badge {
  font-family: var(--font-mono);
}

img,
svg {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent-teal);
  color: var(--white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ==========================================
   YUQORI QISM (HEADER) — "1.html" dizayni:
   1) topbar: ISSN / aloqa / til / kirish (to'q ko'k, IBM Plex Mono)
   2) main-nav: logotip + asosiy navigatsiya (oq/shaffof, Space Grotesk + Inter)
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* --- Topbar --- */
.topbar {
  background-color: var(--dj-primary-deep);
  height: var(--topbar-height);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.topbar-item svg {
  flex-shrink: 0;
  color: var(--dj-pink);
  opacity: 0.9;
}

.topbar-email a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.topbar-email a:hover {
  color: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* --- Main nav bar --- */
.main-nav {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dj-line);
  /* height emas, min-height: agar tarjima matni juda uzun bo'lib ketsa ham,
     tugmalar kesilib qolmaydi — panel shunchaki bir oz pastga cho'ziladi */
  min-height: var(--nav-height);
  /* .header-container'ning height:100% xossasi faqat ota-elementda aniq
     height bo'lsa ishlaydi (min-height emas) — shu sababli ichidagi
     elementlar konteyner yuqorisiga "yopishib" qolardi. display:flex +
     align-items:center bilan bu muammo hal qilinadi: header-container
     har doim main-nav balandligining o'rtasida joylashadi */
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 15px;
}

/* logo-area kerak bo'lsa qisqarishi kerak (masalan, juda tor ekranda
   uzun brend nomi burger tugmasini ekrandan chetga surib yubormasin) */
.logo-area {
  min-width: 0;
  flex: 1 1 auto;
}

.menu-toggle,
nav {
  flex-shrink: 0;
}

.logo-area h1 {
  color: var(--dj-ink);
  font-family: var(--dj-font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-area p {
  color: var(--dj-muted);
  font-size: 11px;
}

/* Logotipni header ichida chiroyli tekislash */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-wrapper a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.cafet-vector-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    var(--dj-primary) 0%,
    var(--dj-pink) 100%
  );
  color: #fff;
  font-family: var(--dj-font-display);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(14, 42, 118, 0.45);
  position: relative;
  transition: transform var(--transition);
}

/* Nozik halqa — hover paytida logotip atrofida paydo bo'ladi */
.logo-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 1.5px solid var(--dj-primary);
  opacity: 0;
  transition:
    opacity var(--transition),
    inset var(--transition);
}

.logo-wrapper a:hover .logo-mark {
  transform: rotate(-4deg) scale(1.04);
}

.logo-wrapper a:hover .logo-mark::after {
  opacity: 0.4;
  inset: -6px;
}

.logo-text {
  min-width: 0;
}

.logo-text h1 {
  color: var(--dj-ink);
  font-family: var(--dj-font-display);
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  /* Brend nomi qanchalik uzun tarjima qilinmasin, hech qachon
     burger tugmasini ekrandan chiqarib yubormaydi — kerak bo'lsa "..." bilan qisqaradi */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.logo-text p {
  color: var(--dj-muted);
  font-family: var(--dj-font-sans);
  font-size: 10.5px;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Navigatsiya menyusi */
nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
}

nav ul li a {
  display: inline-block;
  color: var(--dj-ink);
  text-decoration: none;
  font-family: var(--dj-font-sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 8px;
  transition:
    background-color var(--transition),
    color var(--transition);
  white-space: nowrap;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: var(--dj-surface-2);
  color: var(--dj-primary);
}

nav ul li a.active {
  font-weight: 600;
}

/* Kichraytirilgan menyu (nav-link-row): asosiy havola va submenyuni
   ochish/yopish uchun alohida tugma. Havolaning o'zi har doim to'g'ridan-
   to'g'ri navigatsiya qiladi — faqat strelka submenyuni boshqaradi */
.nav-link-row {
  display: flex;
  align-items: center;
}

.nav-link-row .nav-link {
  flex: 1;
}

.dropdown-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #b7bfd6;
  cursor: pointer;
  padding: 0;
}

.dropdown-toggle-btn .chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.nav-hover-dropdown.open .dropdown-toggle-btn .chevron {
  transform: rotate(-135deg);
}

.issn-tag {
  background-color: var(--dj-primary);
  color: #fff;
  padding: 6px 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Mega-menyu (bosh sahifa, mualliflarga, yangiliklar bo'limlaridagi dropdown) */
.nav-hover-dropdown {
  position: relative;
}

.nav-hover-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 250px;
  border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(19, 27, 46, 0.18);
  border: 1px solid var(--dj-line);
  padding: 10px;
  z-index: 50;
  animation: fadeIn 0.15s ease;
}

.nav-hover-dropdown:hover .nav-hover-panel {
  display: block;
}

.nav-hover-panel .dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--dj-ink);
  font-family: var(--dj-font-sans);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color var(--transition),
    color var(--transition);
}

.nav-hover-panel .dropdown-item:hover {
  background: var(--dj-surface);
  color: var(--dj-primary);
}

/* Kirish tugmasi (login) — topbarning to'q fonida */
.login {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 16px;
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.08);
  font-family: var(--dj-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login:hover {
  background-color: var(--dj-pink);
  border-color: var(--dj-pink);
  color: var(--dj-primary-deep);
  transform: translateY(-1px);
}

/* "Maqola yuborish" tugmasi + burger — header-container'ning o'ng chetida,
   navdan keyin (nav bilan bir qatorda flex order orqali joylashtiriladi) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  order: 3;
}

/* Burger menyu (Mobil uchun) */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--dj-line);
  flex-shrink: 0;
  z-index: 1100;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background-color: var(--dj-ink);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobil menyu (nav) ochilganda pastda ko'rinadigan to'liq kengli tugma */
.mobile-auth {
  display: none;
  gap: 10px;
  padding: 16px 12px 6px;
  margin-top: 8px;
  border-top: 1px solid var(--dj-line);
}

.mobile-auth .dj-btn {
  flex: 1;
  text-align: center;
}

/* ==========================================
   TIL TANLASH / KIRISH BLOKI (topbar ichida)
   ========================================== */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 10px 0;
  margin: -10px 0;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 14px;
  font-family: var(--dj-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
  pointer-events: none;
}

.lang-btn svg {
  flex-shrink: 0;
}

.lang-dropdown:hover .lang-btn,
.lang-dropdown.open .lang-btn {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--dj-pink);
}

.arrow-down {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.lang-options {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #ffffff;
  min-width: 150px;
  box-shadow: 0 20px 40px -12px rgba(19, 27, 46, 0.22);
  border-radius: 12px;
  overflow: hidden;
  z-index: 9999;
  border: 1px solid var(--dj-line);
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown:hover .lang-options,
.lang-dropdown.open .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown:hover .arrow-down,
.lang-dropdown.open .arrow-down {
  transform: rotate(-135deg);
}

.lang-options a {
  color: var(--dj-ink);
  padding: 11px 16px;
  text-decoration: none;
  display: block;
  font-family: var(--dj-font-sans);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.lang-options a:hover {
  background-color: var(--dj-surface);
  color: var(--dj-primary);
  padding-left: 19px;
}

.lang-options a.active {
  background-color: var(--dj-surface-2);
  color: var(--dj-primary);
  font-weight: 600;
}

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

/* ==========================================
   AMALGA OSHIRISH TUGMASI (404 sahifasida ham ishlatiladi)
   ========================================== */
.btn-call {
  background: var(--dj-primary);
  border-radius: 100px;
  box-shadow: 0 10px 24px -8px rgba(27, 63, 160, 0.45);
  color: #fff;
  padding: 14px 36px;
  text-decoration: none;
  font-family: var(--dj-font-sans);
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}

.btn-call:hover {
  background: var(--dj-primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(14, 42, 118, 0.5);
}

/* ==========================================
   BOSH SAHIFA — "1.html" DIZAYNI
   (Jurnal haqida + Indeksatsiya + So'nggi maqolalar + Ma'lumot kartalari)
   ========================================== */

/* --- 1) Muqova + jurnal haqida --- */
.dj-about {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--dj-surface) 100%);
  padding: calc(var(--header-height) + 46px) 20px 80px;
}

.dj-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.dj-blob-1 {
  width: 320px;
  height: 320px;
  background: var(--dj-lilac);
  top: -80px;
  right: 12%;
}

.dj-blob-2 {
  width: 240px;
  height: 240px;
  background: var(--dj-pink);
  bottom: -80px;
  left: -60px;
  opacity: 0.3;
}

.dj-wrap {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 56px;
  align-items: center;
}

.dj-coverwrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.dj-cover-card {
  position: relative;
  width: 400px;
  border-radius: 20px;
  /* padding: 3px; */
  overflow: hidden;
  /* border: 1px solid rgba(255, 255, 255, 0.6); */
  aspect-ratio: 4 / 5;
  /* background: linear-gradient(
    150deg,
    var(--dj-primary) 0%,
    var(--dj-primary-deep) 65%,
    var(--dj-pink) 130%
    ); */
}

.dj-cover-card img {
  /* box-shadow: 0 0 15px color-mix(in srgb, var(--dj-primary) 35%, transparent); */
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
}

/* Rasm hali yuklanmagan (joriy sonning muqovasi bo'lmagan) holatdagi ko'rinish */
.dj-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  text-align: center;
  padding: 30px;
}

.dj-cover-fallback .dj-cover-mark {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dj-font-display);
  font-weight: 700;
  font-size: 30px;
}

.dj-cover-fallback strong {
  font-family: var(--dj-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dj-cover-fallback span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.dj-cover-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dj-cover-tag .dj-num {
  font-family: var(--dj-font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--dj-primary-deep);
}

.dj-cover-tag .dj-num small {
  display: block;
  font-family: var(--dj-font-sans);
  font-weight: 500;
  font-size: 10px;
  color: var(--dj-muted);
}

.dj-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.dj-eyebrow .dj-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dj-primary);
  flex-shrink: 0;
}

.dj-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dj-primary);
  font-weight: 500;
}

.dj-about-text {
  /* Grid item bo'lgani uchun matn/tugmalar kesilib qolmasligi kerak —
     brauzer bo'lmasa ham default min-width:auto contentga qarab
     torayishga to'sqinlik qilib, mobil ekranda gorizontal skroll/kesilish
     hosil qiladi */
  min-width: 0;
}

.dj-about-text h1 {
  font-family: var(--dj-font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dj-ink);
  margin-bottom: 16px;
}

.dj-lead {
  font-family: var(--dj-font-sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--dj-muted);
  margin-bottom: 24px;
  max-width: 560px;
}

.dj-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

.dj-feat {
  border: 1px solid var(--dj-line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}

.dj-feat-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--dj-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  margin-bottom: 10px;
}

.dj-feat h4 {
  font-family: var(--dj-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--dj-ink);
  margin-bottom: 4px;
}

.dj-feat p {
  font-family: var(--dj-font-sans);
  font-size: 11.5px;
  color: var(--dj-muted);
  line-height: 1.45;
}

.dj-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.dj-btn {
  font-family: var(--dj-font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 100px;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  transition: all var(--transition);
}

.dj-btn-solid {
  background: var(--dj-primary);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(27, 63, 160, 0.5);
}

.dj-btn-solid:hover {
  background: var(--dj-primary-deep);
  transform: translateY(-2px);
}

.dj-btn-ghost {
  color: var(--dj-primary);
  border-color: var(--dj-line);
  background: #fff;
}

.dj-btn-ghost:hover {
  border-color: var(--dj-primary);
  transform: translateY(-2px);
}

/* Navbardagi "Maqola yuborish" tugmasi — .dj-btn'dan kichikroq.
   Bu qoida .dj-btn'dan KEYIN kelishi shart, aks holda teng
   spetsifiklikda .dj-btn'ning padding/font-size'i ustun bo'lib qoladi */
.dj-header-cta {
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
}

/* --- 2) Xalqaro ma'lumotlar bazalarida indeksatsiya --- */
.dj-databases {
  padding: 70px 20px;
  background: var(--dj-surface);
  border-top: 1px solid var(--dj-line);
  border-bottom: 1px solid var(--dj-line);
}

.dj-db-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.dj-db-head h2 {
  font-family: var(--dj-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--dj-ink);
  margin-top: 10px;
}

.dj-db-row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--dj-line);
  border-radius: 18px;
  overflow: hidden;
}

.dj-db-chip {
  flex: 1 1 16.6%;
  position: relative;
  text-align: center;
  transition: background-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 12px;
  text-decoration: none;
}

.dj-db-chip:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  right: 0;
  width: 1px;
  background: var(--dj-line);
}

.dj-db-chip:hover {
  background: var(--dj-surface);
}

.dj-db-logo {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dj-db-logo img {
  max-width: 76%;
  max-height: 60%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: 0.2s;
}

.dj-db-chip:hover .dj-db-logo img {
  filter: grayscale(0) opacity(1);
}

.dj-db-word {
  font-family: var(--dj-font-display);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--dj-ink);
}

.dj-db-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--dj-muted);
  text-transform: uppercase;
}

/* --- 3) So'nggi maqolalar --- */
.dj-articles {
  padding: 90px 20px;
}

.dj-art-head {
  max-width: 1240px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.dj-art-head h2 {
  font-family: var(--dj-font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--dj-ink);
}

.dj-art-head p {
  font-family: var(--dj-font-sans);
  font-size: 14px;
  color: var(--dj-muted);
  margin-top: 6px;
}

.dj-art-head a {
  font-family: var(--dj-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dj-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dj-art-list {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.dj-art-list .dj-art-featured {
  grid-row: span 2;
}

.dj-art-card {
  min-width: 0;
  border: 1px solid var(--dj-line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.dj-art-card:hover {
  box-shadow: 0 22px 40px -18px rgba(19, 27, 46, 0.22);
  transform: translateY(-2px);
  border-color: transparent;
}

.dj-art-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dj-primary);
  background: var(--dj-surface-2);
  padding: 5px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 16px;
}

.dj-art-card h3 {
  font-family: var(--dj-font-display);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--dj-ink);
  margin-bottom: 10px;
}

.dj-art-card.dj-art-featured h3 {
  font-size: 23px;
}

.dj-art-card p {
  font-family: var(--dj-font-sans);
  font-size: 13.5px;
  color: var(--dj-muted);
  line-height: 1.6;
}

.dj-art-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dj-line);
  font-family: var(--dj-font-sans);
  font-size: 12px;
  color: var(--dj-muted);
  gap: 6px 10px;
}

.dj-art-meta .dj-art-auth {
  min-width: 0;
  font-weight: 600;
  color: var(--dj-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dj-art-meta .dj-art-doi {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
}

.dj-art-empty {
  max-width: 1240px;
  margin: 0 auto;
  border: 1px dashed var(--dj-line);
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  color: var(--dj-muted);
  font-family: var(--dj-font-sans);
  font-size: 14px;
}

/* --- 4) Guvohnoma va tahririyat manzili — qisqa ma'lumot kartalari --- */
.dj-infocards {
  padding: 0 20px 90px;
}

.dj-infocards-grid {
  max-width: 1240px;
  margin: 25px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dj-infocard {
  min-width: 0;
  border: 1px solid var(--dj-line);
  border-radius: 18px;
  padding: 26px 28px;
  background: #fff;
}

.dj-infocard h3 {
  font-family: var(--dj-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--dj-ink);
  margin-bottom: 12px;
}

.dj-infocard p {
  font-family: var(--dj-font-sans);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--dj-muted);
}

.dj-infocard-list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dj-infocard-list li {
  font-family: var(--dj-font-sans);
  font-size: 13px;
  color: var(--dj-ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--dj-line);
}

.dj-infocard-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.dj-infocard-list li span:first-child {
  color: var(--dj-muted);
}

/* ==========================================
   SKROLLDA PAYDO BO'LISH (REVEAL ON SCROLL)
   JS orqali .in-view klassi qo'shiladi
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   STRUKTURA LAYOUT
   ========================================== */
.main-container {
  max-width: 1200px;
  margin: calc(var(--header-height) + 40px) auto 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2.7fr 1.3fr;
  gap: 30px;
  align-items: start;
  min-width: 0;
}

/* Grid katakchalari standart bo'yicha o'z tarkibining "min-content"
   kengligidan tor bo'la olmaydi — shu sabab uzun so'z/jadval bo'lsa,
   butun sahifa torroq ekranlarda gorizontal toshib ketishi mumkin edi */
.main-container > main,
.main-container > aside {
  min-width: 0;
}

/* Bo'lim panellari */
section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #eef0f2;
  border-top: 4px solid var(--accent-teal);
  box-shadow: var(--shadow-sm);
  padding: 35px;
  margin-bottom: 30px;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

section:hover {
  box-shadow: var(--shadow-md);
}

section h2 {
  color: var(--primary-blue);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 600;
  padding-bottom: 12px;
}

/* Ixtisoslashuv teglari */
.spec-container {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spec-badge {
  background-color: #f3ead9;
  color: #7a5f34;
  border: none;
  border-radius: 4px;
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.spec-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Har uchinchi tegga iliq aksent — teglar qatori bir xil rangda
   monoton ko'rinmasligi uchun */
.spec-badge:nth-child(3n) {
  background-color: var(--accent-warm-light);
  color: var(--accent-warm-dark);
}

/* Ma'lumotlar jadvali */
.info-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 15px;
}
.info-grid td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  vertical-align: top;
  overflow-wrap: break-word;
}
.info-grid tr:hover {
  background-color: #f8fafc;
}
.info-grid td:first-child {
  font-weight: 700;
  color: #475569;
  width: 30%;
}

/* Arxiv maqolalari (umumiy) */
.paper-item {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border-color);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-left: -16px;
  transition:
    border-color var(--transition),
    background-color var(--transition);
}
.paper-item:hover {
  border-left-color: var(--accent-teal);
  background-color: var(--soft-bg);
}
.paper-item:last-child {
  border-bottom: none;
}
.paper-link {
  color: var(--primary-blue);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.4;
  display: block;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.paper-link:hover {
  color: var(--accent-teal-dark);
  text-decoration: underline;
}
.paper-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2px;
  color: #64748b;
}
.download-pdf {
  color: var(--accent-teal-dark);
  font-weight: 600;
  float: right;
  text-decoration: none;
}
.download-pdf:hover {
  text-decoration: underline;
}

/* Aloqa formasi elementlari */
.input-box {
  margin-bottom: 18px;
}
.input-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-blue);
}
.input-box input,
.input-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  background: #fff;
}
.input-box input:focus,
.input-box textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.12);
}
.btn-send {
  background-color: var(--primary-blue) !important;
  color: var(--white) !important;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: background var(--transition);
}

.btn-send:hover,
.btn-send:focus,
.btn-send:active {
  background-color: var(--accent-teal) !important;
  color: var(--white) !important;
  border: none;
  outline: none;
  box-shadow: none;
}

/* ==========================================
   YON PANEL (SIDEBAR)
   ========================================== */
.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.side-block {
  border-top: 4px solid var(--primary-blue);
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

/* Yon paneldagi bloklar navbatma-navbat rangda — bir nechtasi ketma-ket
   turganda hammasi bir xil to'q ko'k bo'lib, monoton ko'rinmasligi uchun */
.side-block:nth-of-type(2n) {
  border-top-color: var(--accent-warm);
}

.side-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.side-block h3 {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--primary-blue);
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.gov-title {
  font-size: 12px;
  text-align: center;
  color: #475569;
  background: #f1f5f9;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.gov-number {
  color: var(--accent-teal);
  border: 2px dashed var(--accent-teal);
  background: var(--soft-bg);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 15px 0;
  padding: 10px;
  border-radius: 4px;
}

.gov-list {
  font-size: 13px;
  list-style: none;
}

.gov-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gov-list li span:first-child {
  color: #64748b;
  font-weight: 600;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background-color: var(--dj-primary-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 20px 0;
  margin-top: 60px;
  font-size: 14px;
  font-family: var(--dj-font-sans);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  font-family: var(--font-mono);
  color: var(--dj-pink);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--dj-primary) 0%,
    var(--dj-pink) 100%
  );
  color: #fff;
  font-family: var(--dj-font-display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-name {
  font-family: var(--dj-font-display);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
  overflow-wrap: break-word;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13.5px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact-list a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: #fff;
}

.footer-index-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-index-badges span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 100px;
  transition:
    border-color var(--transition),
    color var(--transition);
}

.footer-index-badges span:hover {
  border-color: var(--dj-pink);
  color: #fff;
}

.footer-issn {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.footer-social-link:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  filter: brightness(1.08);
}

.footer-social-telegram {
  background: #26a5e4;
}
.footer-social-instagram {
  background: radial-gradient(
    circle at 30% 110%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.footer-social-facebook {
  background: #1877f2;
}
.footer-social-linkedin {
  background: #0a66c2;
}
.footer-social-youtube {
  background: #ff0000;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
}

.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   SIDEBAR — toza matnli stillar
   ========================================== */
.info-card-box {
  background: #ffffff;
  border-top: 4px solid var(--primary-blue) !important;
  padding: 20px !important;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.info-tag-header {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  font-weight: 600;
}

.founder-title {
  font-size: 15px;
  color: #0f172a;
  margin-top: 5px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.side-divider {
  border: 0;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.contact-mini-details p {
  font-size: 13px;
  color: #475569;
  margin: 6px 0;
  line-height: 1.4;
  word-break: break-word;
}

/* Metrika va statistika stillari */
.metrics-card-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  padding: 20px !important;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  flex-wrap: wrap;
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
}

.metric-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-blue);
  background: #eef1f6;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Yuklab olish tugmasi */
.download-card-box {
  padding: 15px !important;
}

.btn-download-side {
  display: block;
  text-align: center;
  background: var(--primary-blue);
  color: #ffffff !important;
  text-decoration: none;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  margin-top: 8px;
}

.btn-download-side:hover {
  background: var(--accent-teal);
}

/* ==========================================
   ABOUT SAHIFASI ARXITEKTURASI
   ========================================== */
.about-page-main {
  min-width: 0;
}

.about-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.about-hero {
  margin-bottom: 30px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 15px;
}

.about-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  color: #1e293b;
  font-weight: 600;
}

.about-lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: #475569;
  margin-top: 12px;
}

.about-section {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.about-section h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 15px;
  border-left: 4px solid var(--accent-teal);
  padding-left: 12px;
}

/* Pasport Jadvali */
.journal-passport-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.journal-passport-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14.5px;
  color: #334155;
  vertical-align: top;
  overflow-wrap: break-word;
}

.journal-passport-table tr:last-child td {
  border-bottom: none;
}

.badge-issn {
  background: #eef1f6;
  color: var(--primary-blue);
  padding: 3px 8px;
  font-weight: 700;
  border-radius: 4px;
  font-family: monospace;
  display: inline-block;
}

/* OAK Sidebar Dizayni */
.oak-official-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--accent-teal) !important;
  text-align: center;
  padding: 20px !important;
}

.oak-svg-wrapper {
  width: 130px;
  margin: 0 auto 15px auto;
}

.oak-sidebar-title {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.oak-sidebar-status {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Indeksatsiya */
.index-logos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.idx-badge {
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
  border: 1px solid #e2e8f0;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.idx-badge:hover {
  transform: translateY(-3px);
  background: var(--white);
  border-color: var(--accent-teal);
}

.idx-badge:nth-child(2n):hover {
  border-color: var(--accent-warm);
}

/* Eslatma qutisi (Notice Box) */
.contact-notice-box {
  background-color: #f8fafc;
  border-left: 4px solid var(--primary-blue);
  padding: 15px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-notice-box p {
  margin: 8px 0;
}

/* Xarita konteyneri */
.contact-map-container {
  width: 100%;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.contact-map-container iframe {
  width: 100%;
  display: block;
  border: 0;
}

/* Ekran balandligi bo'yicha cheklov - footerni qat'iy pastda ushlaydi */
.contact-page-wrapper {
  min-height: 80vh;
  margin-bottom: 10px;
}

/* Links blokidagi ro'yxat elementlari uchun interaktiv effekt */
.links-card-box ul li a {
  transition: padding-left var(--transition);
  display: inline-block;
}

.links-card-box ul li a:hover {
  padding-left: 5px;
  color: var(--primary-blue) !important;
}

/* ==========================================
   BOOTSTRAP-USLUBIDAGI YORDAMCHI (UTILITY) SINFLAR
   Ba'zi sahifalar (masalan, Mualliflar uchun
   yo'riqnoma) shu klasslarga tayanadi
   ========================================== */
.py-5,
.container,
.row,
.col-lg-8,
.col-lg-4,
.card {
  box-sizing: border-box !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}
.row.g-4 {
  gap: 1.5rem;
}

.col-lg-8 {
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
  min-width: 0;
}
.col-lg-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  min-width: 0;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.card.shadow-sm:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}
.alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/* Sarlavha chizig'i */
.title-line {
  width: 60px;
  height: 3px;
  background-color: var(--accent-teal) !important;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 2px;
}

.tracking-wider {
  letter-spacing: 0.08em;
}

.text-accent,
.text-primary {
  color: var(--primary-blue) !important;
}

.text-danger {
  color: #dc2626 !important;
}

.text-warning {
  color: #d97706 !important;
}

.text-muted {
  color: #64748b !important;
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.fw-bold {
  font-weight: 700;
}

.small {
  font-size: 0.875em;
}

.fs-4 {
  font-size: 1.5rem;
}
.fs-5 {
  font-size: 1.25rem;
}

.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.gap-2 {
  gap: 0.5rem;
}
.justify-content-center {
  justify-content: center;
}
.align-self-center {
  align-self: center;
}

.me-2 {
  margin-right: 0.5rem;
}
.m-0 {
  margin: 0;
}
.mx-0 {
  margin-left: 0;
  margin-right: 0;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-5 {
  margin-top: 3rem;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1.5rem;
}
.px-0 {
  padding-left: 0;
  padding-right: 0;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.pb-5 {
  padding-bottom: 3rem;
}
.ps-3 {
  padding-left: 1rem;
}

.border-0 {
  border: none !important;
}
.rounded-3 {
  border-radius: var(--radius-lg) !important;
}
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}
.bg-light {
  background-color: #f8fafc !important;
}
.bg-white {
  background-color: #ffffff !important;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Ro'yxat elementlari */
.list-group-item {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  background: transparent !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* Katta to'q rangli blok */
.bg-dark {
  background-color: #1e293b !important;
}

/* Yo'nalish kodlari (Badgelar) */
.scope-badge {
  color: var(--primary-blue) !important;
  font-family: monospace !important;
  font-size: 14px !important;
  background: #f1f5f9 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  margin-right: 5px !important;
  display: inline-block;
}

/* Tugmalar */
.btn-light {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease-in-out !important;
}

.btn-light:hover {
  background-color: #ffffff !important;
  transform: translateX(4px) !important;
}

/* ==========================================
   KIRISH / ROʻYXATDAN OʻTISH (AUTH) KARTALARI
   auth.php / register.php / forgotpassword.php / resetpassword.php /
   verify_notice.php / verify_result.php uchun umumiy uslub
   ========================================== */
.auth-wrapper {
  margin: 100px 0;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #faf8f3 0%, #f0ece0 100%);
}

.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  margin: 0 0 8px 0;
  font-size: 26px;
  font-weight: 600;
  color: var(--primary-blue);
  text-align: center;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9dfe6;
  border-radius: var(--radius-sm);
  font-size: 15px;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.12);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 14px;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-main);
}

.form-options a,
.auth-footer a,
.checkbox-group a {
  color: var(--accent-teal-dark);
  text-decoration: none;
}

.form-options a:hover,
.auth-footer a:hover,
.checkbox-group a:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.auth-btn:hover {
  background: var(--accent-teal);
  color: var(--primary-blue);
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  font-weight: 500;
}

.divider {
  display: flex;
  align-items: center;
  margin: 22px 0;
  color: #9aa5b5;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e5ec;
}

.divider::before {
  margin-right: 12px;
}
.divider::after {
  margin-left: 12px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 30px 28px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.show .modal-box {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.modal-icon.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.modal-icon.success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.modal-message {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn.error {
  background: #dc2626;
  color: var(--white);
}
.modal-btn.error:hover {
  background: #b91c1c;
}
.modal-btn.success {
  background: #16a34a;
  color: var(--white);
}
.modal-btn.success:hover {
  background: #15803d;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* ==========================================
   404 SAHIFASI
   ========================================== */
.not-found-page {
  min-height: calc(100vh - var(--header-height) - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 20px 60px;
}

.not-found-box {
  max-width: 520px;
  text-align: center;
}

.not-found-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-teal-dark);
  text-transform: uppercase;
}

.not-found-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  color: var(--primary-blue);
  margin: 14px 0 10px;
}

.not-found-text {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* ==========================================
   RESPONSIVE DIZAYN
   ========================================== */

/* Planshet / kichik noutbuk */
@media (max-width: 1100px) {
  .main-container {
    grid-template-columns: 1.8fr 1fr;
    gap: 22px;
  }
}

/* Planshet (nav burger, layoutlar bir ustunga tushadi) */
@media (max-width: 992px) {
  .main-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }
  .about-page-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .about-page-sidebar > .side-block {
    flex: 1 1 260px;
  }
  .col-lg-8,
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .row {
    margin: 0 !important;
    width: 100% !important;
  }
  .col-lg-8,
  .col-lg-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Navigatsiya uchun alohida chegara nuqtasi: 7 ta menyu bandi (masalan,
   "Редакционная коллегия") 993–1180px oralig'ida bitta qatorga sig'may,
   ikkinchi qatorga o'tib ketishi mumkin edi — shu sabab burger shu yerdan
   boshlab yoqiladi, oddiy 992px o'rniga */
@media (max-width: 1180px) {
  .menu-toggle {
    display: flex;
  }
  /* Tor ekranda "Maqola yuborish" tugmasi header'dan yashirinadi —
     o'rniga mobil menyu pastidagi .mobile-auth to'liq kengli tugmasi ishlatiladi */
  .dj-header-cta {
    display: none;
  }
  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(19, 27, 46, 0.15);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
  }
  nav.active {
    display: block;
  }
  nav ul {
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }
  nav ul li a {
    display: block;
    padding: 14px 12px;
    color: var(--dj-ink);
  }
  nav ul li a:hover {
    background-color: var(--dj-surface-2);
    color: var(--dj-primary);
  }
  /* Submenyusi bor havolalar uchun alohida "strelka" tugmasi paydo bo'ladi —
     havolaning o'zi bosilganda to'g'ridan-to'g'ri sahifaga o'tadi */
  .dropdown-toggle-btn {
    display: flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  /* Mega-menyu paneli mobilda oddiy ichma-ich ro'yxatga aylanadi */
  .nav-hover-panel {
    display: none;
    position: static;
    background: var(--dj-surface);
    min-width: 0;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--dj-primary);
    border-radius: 0;
    margin: 0 0 6px 12px;
    padding: 4px 0 4px 10px;
    animation: none;
  }
  .nav-hover-dropdown:hover .nav-hover-panel,
  .nav-hover-dropdown.open .nav-hover-panel {
    display: block;
  }
  .nav-hover-panel .dropdown-item {
    color: var(--dj-muted);
    padding: 8px 10px;
  }
  .nav-hover-panel .dropdown-item:hover {
    background: var(--dj-surface-2);
    color: var(--dj-primary);
  }
  .issn-tag {
    display: none;
  }
  .mobile-auth {
    display: flex;
  }

  /* Topbardagi ISSN/aloqa matnini yashirib, faqat til/kirish qoldiramiz */
  .topbar-meta {
    display: none;
  }
  .topbar-inner {
    justify-content: flex-end;
  }
}

/* Mobil telefonlar */
@media (max-width: 768px) {
  :root {
    --topbar-height: 34px;
    --nav-height: 62px;
  }

  .dj-about {
    padding: calc(var(--header-height) + 30px) 18px 56px;
  }
  .dj-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dj-coverwrap {
    order: -1;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .dj-cover-card {
    width: 100%;
  }
  .dj-grid2 {
    grid-template-columns: 1fr;
  }
  .dj-databases {
    padding: 46px 18px;
  }
  .dj-db-chip {
    flex: 1 1 33.3%;
  }
  .dj-db-chip:nth-child(3n)::after {
    display: none;
  }
  .dj-articles {
    padding: 56px 18px;
  }
  .dj-art-list {
    grid-template-columns: 1fr;
  }
  .dj-art-list .dj-art-featured {
    grid-row: auto;
  }
  .dj-infocards {
    padding: 0 18px 56px;
  }
  .dj-infocards-grid {
    grid-template-columns: 1fr;
  }

  .main-container {
    margin-top: calc(var(--header-height) + 25px);
    padding: 0 16px;
  }
  section,
  .about-section {
    padding: 22px;
  }
  .side-block {
    padding: 20px;
  }

  .about-page-sidebar {
    flex-direction: column;
  }

  footer {
    padding: 40px 16px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 30px;
  }
  .footer-col p {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 18px;
  }
}

/* Kichik ekranli telefonlar */
@media (max-width: 480px) {
  .logo-text p {
    display: none;
  }
  .cafet-vector-logo {
    width: 44px;
    height: 44px;
  }
  .logo-text h1 {
    font-size: 16px;
  }

  /* Topbarni juda tor ekranda ixchamlashtirish */
  .topbar-inner {
    padding: 0 14px;
  }
  .login span,
  .lang-btn span {
    display: inline;
  }
  .login {
    padding: 5px 12px;
    font-size: 11.5px;
  }
  .lang-btn {
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .topbar-actions {
    gap: 6px;
  }

  .dj-label {
    font-size: 10px;
  }
  .dj-about-text h1 {
    margin-bottom: 12px;
  }
  .dj-db-chip {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--dj-line);
  }
  .dj-db-chip:nth-child(2n)::after {
    display: none;
  }

  section h2 {
    font-size: 19px;
  }

  .index-logos-grid {
    grid-template-columns: 1fr;
  }

  .download-pdf {
    float: none;
    display: inline-block;
    margin-top: 6px;
  }

  .metric-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* =========================
   SEARCH MODAL
========================= */

.search-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
}

.search-modal.active {
  display: block !important;
}

/* Qora fon */
.search-modal-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.55);
}

/* Modal */
.search-box {
  position: relative !important;
  z-index: 1000000 !important;

  width: 600px;
  max-width: calc(100% - 30px);

  margin: 100px auto 0;
  padding: 30px;

  background: #fff;
  border-radius: 12px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* X */
.search-close {
  position: absolute;
  top: 10px;
  right: 15px;

  width: 35px;
  height: 35px;

  border: none;
  background: transparent;

  font-size: 30px;
  line-height: 30px;

  color: #555;
  cursor: pointer;
}

.search-close:hover {
  color: #000;
}

/* Title */
.search-box h3 {
  margin: 0 0 20px;
  font-size: 22px;
}

/* Input */
.search-input {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  height: 48px;

  box-sizing: border-box;

  border: 1px solid #ddd;
  border-radius: 8px;

  padding: 0 14px;
}

.search-input svg {
  flex-shrink: 0;
  color: #777;
}

.search-input input {
  width: 100%;
  height: 100%;

  padding: 0;

  border: none;
  outline: none;

  background: transparent;

  font-size: 16px;
}

/* Search button */
.search-submit {
  width: 100%;
  height: 48px;

  margin-top: 12px;

  border: none;
  border-radius: 8px;

  background: #222;
  color: #fff;

  font-size: 15px;
  cursor: pointer;
}

.search-submit:hover {
  background: #000;
}

.badge-page {
  background: #f1efe8;
  color: #444441;
}

.search-suggestions {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f7f7f7;
}

.suggestion-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-article {
  background: #e6f1fb;
  color: #185fa5;
}

.badge-news {
  background: #eaf3de;
  color: #3b6d11;
}

.badge-page {
  background: #f1efe8;
  color: #5f5e5a;
}

.no-results {
  padding: 16px;
  font-size: 13px;
  color: #999;
  margin: 0;
  text-align: center;
}
