/* ===== Source: style.css ===== */
:root {
  /* Soft Warm Light Theme — ko'zni xonlamaydigan yumshoq rejim */
  --bg: #dfe4ec;
  --surface: rgba(238, 241, 247, 0.78);
  --surface-strong: rgba(241, 244, 249, 0.9);
  --text: #1e293b;
  --text-secondary: #3f4f65;
  --muted: #64748b;
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --accent: #d97706;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --info: #0891b2;
  --border: rgba(120, 140, 170, 0.28);

  --border-soft: rgba(120, 140, 170, 0.14);
  --border-strong: rgba(120, 140, 170, 0.35);
  --shadow: 0 10px 30px rgba(50, 70, 100, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
  --card-bg: rgba(238, 241, 247, 0.78);
  --card-border: rgba(120, 140, 170, 0.16);
  --card-hover-bg: rgba(244, 247, 252, 0.9);
  --input-bg: rgba(245, 248, 252, 0.85);
  --input-border: rgba(120, 140, 170, 0.3);
  --input-focus: #3b82f6;
  --badge-bg: rgba(59, 130, 246, 0.08);
  --badge-text: #1d4ed8;
  --success-bg: rgba(22, 163, 74, 0.08);
  --success-text: #15803d;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --danger-text: #991b1b;
  --warning-bg: rgba(217, 119, 6, 0.08);
  --warning-text: #78350f;
  --header-bg: rgba(235, 239, 246, 0.92);
  --header-nav-text: #1e293b;
  --header-nav-hover: rgba(59, 130, 246, 0.06);
  --table-stripe: rgba(226, 232, 240, 0.35);
  --table-hover: rgba(226, 232, 240, 0.55);
  --table-border: rgba(180, 195, 215, 0.5);
  --scrollbar-track: rgba(59, 130, 246, 0.04);
  --scrollbar-thumb: rgba(59, 130, 246, 0.15);
  --scrollbar-thumb-hover: rgba(59, 130, 246, 0.3);
  --scrollbar-glow: rgba(59, 130, 246, 0.08);
  --scrollbar-duration: 0.45s;
  --sidebar-bg: #e8ecf2;
  --sidebar-text: #3f4f65;
  --sidebar-border: rgba(120, 140, 170, 0.18);
}

:root[data-theme='dark'] {
  --bg: #07111f;
  --surface: #0f1b2d;
  --surface-strong: rgba(9, 17, 29, 0.92);
  --text: #e6eefb;
  --text-secondary: #9cb1cb;
  --muted: #9cb1cb;
  --primary: #7db4ff;
  --primary-2: #4d94ff;
  --accent: #2dd4bf;
  --border: #22334a;
  --border-soft: rgba(156, 177, 203, 0.14);
  --border-strong: rgba(156, 177, 203, 0.24);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  --success: #4ade80;
  --warning: #fbbf24;
  --info: #22d3ee;
  --card-bg: rgba(12, 22, 37, 0.84);
  --card-border: rgba(148, 163, 184, 0.12);
  --card-hover-bg: rgba(15, 27, 46, 0.95);
  --input-bg: rgba(15, 27, 46, 0.8);
  --input-border: rgba(148, 163, 184, 0.2);
  --input-focus: #7db4ff;
  --badge-bg: rgba(125, 180, 255, 0.15);
  --badge-text: #7db4ff;
  --success-bg: rgba(74, 222, 128, 0.15);
  --success-text: #4ade80;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --danger-text: #f87171;
  --warning-bg: rgba(251, 191, 36, 0.15);
  --warning-text: #fbbf24;
  --header-bg: rgba(7, 17, 31, 0.92);
  --header-nav-text: #e6eefb;
  --header-nav-hover: rgba(125, 180, 255, 0.1);
  --table-stripe: rgba(15, 27, 46, 0.4);
  --table-hover: rgba(15, 27, 46, 0.6);
  --table-border: rgba(34, 51, 74, 0.6);
  /* Scrollbar — tungi rejim (asosiy va accent bilan uyg‘un) */
  --scrollbar-track: rgba(15, 27, 46, 0.85);
  --scrollbar-thumb: rgba(125, 180, 255, 0.38);
  --scrollbar-thumb-hover: rgba(45, 212, 191, 0.55);
  --scrollbar-glow: rgba(125, 180, 255, 0.22);
  --sidebar-bg: #0a1628;
  --sidebar-text: #c8d6e5;
  --sidebar-border: rgba(148, 163, 184, 0.12);
}

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

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

/* Scrollbar — global (:root va ichki scroll konteynerlar) */
:root::-webkit-scrollbar,
:root *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

:root::-webkit-scrollbar-track,
:root *::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
  transition: background var(--scrollbar-duration) ease;
}

:root::-webkit-scrollbar-thumb,
:root *::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 1px var(--scrollbar-glow);
  transition:
    background var(--scrollbar-duration) ease,
    box-shadow var(--scrollbar-duration) ease,
    transform 0.2s ease;
}

:root::-webkit-scrollbar-thumb:hover,
:root *::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  box-shadow: 0 0 12px var(--scrollbar-glow);
}

:root::-webkit-scrollbar-corner,
:root *::-webkit-scrollbar-corner {
  background: transparent;
}

:root,
:root * {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: #dfe4ec;
}

html[data-theme='dark'] {
  background: #07111f !important;
  color-scheme: dark;
}

/* Light mode — native form controls (spinners, scrollbars) */
html:not([data-theme='dark']) {
  color-scheme: light;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at 18% -5%,
      #cdd5e0 0%,
      var(--bg) 50%,
      #d8dde6 100%);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

:root[data-theme='dark'] body {
  background: radial-gradient(circle at 20% -10%,
      #10233f 0%,
      var(--bg) 40%,
      #050b14 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  color: #fff;
  overflow: hidden;
  background: transparent;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  filter: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.62) 100%);
  pointer-events: none;
}

:root:not([data-theme='dark']) .hero-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.55) 100%);
}


/* ===== GLOBAL ELEGANT FLOATING FIXED NAVBAR ===== */
.page-header {
  position: relative !important;
  z-index: 999999 !important;
  padding-top: 0 !important;
  margin: 0 !important;
}

.page-header .container {
  transform: none !important;
  perspective: none !important;
  filter: none !important;
  contain: none !important;
}

.header-main {
  position: fixed !important;
  top: 26px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 1180px !important;
  margin-top: 0 !important;
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  transition: top 0.3s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), visibility 0.25s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* Hide navbar when global search modal is open */
.global-search-open .page-header,
.global-search-open .header-main {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(-45px) scale(0.96) !important;
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), visibility 0.22s ease !important;
}

.header-main.scrolled {
  top: 18px !important;
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(56, 189, 248, 0.15) !important;
}

:root:not([data-theme='dark']) .header-main {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08) !important;
}

:root:not([data-theme='dark']) .header-main.scrolled {
  top: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.14), 0 0 18px rgba(37, 99, 235, 0.08) !important;
}

.page-header .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
}

.logo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.logo {
  flex-shrink: 0;
}

#site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

#site-nav ul li {
  flex-shrink: 0;
}

/* PRIME LEVEL NAV-LINK */
.nav-link {
  color: #ecf4ff;
  font-weight: 500;
  font-size: 14.5px;
  padding: 5px 8px;
  border-bottom: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* Background hover effect */
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  z-index: -1;
  pointer-events: none;
}

/* Bottom Glowing line - LIGHT MODE */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, #3b82f6, #ec4899, transparent);
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.5);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.3s ease, background 0.4s;
  opacity: 0;
  pointer-events: none;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.nav-link:hover::before,
.nav-link.active::before,
.nav-link:focus-visible::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link:focus-visible::after {
  width: 85%;
  opacity: 1;
  background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
  box-shadow: 0 2px 15px rgba(139, 92, 246, 0.7);
}

.login {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  font-weight: 700;
  font-size: 14px;
  color: #dbe9ff;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(13, 63, 120, 0.15);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(21, 101, 192, 0.3);
  color: #fff;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary-2);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn1 {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.ai-header-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.mobile-ai-toggle-wrap {
  display: none;
}

.card-home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* ==========================================================================
   Premium Modern Hero Redesign
   ========================================================================== */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-content {
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #bfdbfe;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 12px #3b82f6;
  animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.hero-title {
  margin-bottom: 22px;
}

.hero-title-3d {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-title-3d::before,
.hero-title-3d::after {
  display: none !important;
}

.hero-title-3d .hero-title-top {
  color: #93c5fd;
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-transform: none;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: block;
}

.hero-title-3d .hero-title-main {
  position: relative;
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-transform: none;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.68;
  color: #cbd5e1;
  max-width: 56ch;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.6);
  color: #ffffff !important;
}

.btn-hero-primary i {
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover i {
  transform: translateX(4px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc !important;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  color: #ffffff !important;
}

/* Glass Info Panel (Right side) */
.hero-side-card {
  position: relative;
  width: 100%;
  animation: heroFloat 6s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.hero-glass-panel {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.3s ease;
}

.hero-glass-panel:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.hero-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(147, 197, 253, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.hero-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.hero-panel-sub {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.hero-panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.hero-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-mini-stat .stat-val {
  font-size: 22px;
  font-weight: 900;
  color: #60a5fa;
  letter-spacing: -0.02em;
}

.hero-mini-stat .stat-lbl {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.hero-social-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-social-lbl {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

.hero-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-social-links a:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Light Mode Overrides for Hero Panel */
:root:not([data-theme='dark']) .hero-glass-panel {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root:not([data-theme='dark']) .hero-panel-head {
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

:root:not([data-theme='dark']) .hero-panel-title {
  color: #0f172a;
}

:root:not([data-theme='dark']) .hero-panel-sub {
  color: #64748b;
}

:root:not([data-theme='dark']) .hero-panel-stats {
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

:root:not([data-theme='dark']) .hero-mini-stat .stat-val {
  color: #2563eb;
}

:root:not([data-theme='dark']) .hero-mini-stat .stat-lbl {
  color: #64748b;
}

:root:not([data-theme='dark']) .hero-social-lbl {
  color: #475569;
}

:root:not([data-theme='dark']) .hero-social-links a {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(203, 213, 225, 0.8);
  color: #1e293b;
}

:root:not([data-theme='dark']) .hero-social-links a:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

:root:not([data-theme='dark']) .hero-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.95);
  color: #1e40af;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme='dark']) .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.95);
  color: #0f172a !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme='dark']) .btn-hero-secondary:hover {
  background: #ffffff;
  color: #2563eb !important;
  border-color: #ffffff;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 120px 0 60px;
  }
}

:root[data-theme='dark'] .hero-title-3d {
  --hero-kicker-text: #edf4ff;
  --hero-main-text: #f8fbff;
  --hero-main-shadow: rgba(0, 0, 0, 0.5);
  --hero-accent: #5aa9ff;
}

:root:not([data-theme='dark']) .hero-title-3d {
  --hero-kicker-text: rgba(15, 23, 42, 0.78);
  --hero-main-text: #0f172a;
  --hero-main-shadow: rgba(255, 255, 255, 0.54);
  --hero-accent: #0ea5e9;
}

:root[data-theme='dark'] .home-content p {
  color: #e3ecfa;
}

:root:not([data-theme='dark']) .home-content p {
  color: #334155;
}

@media (max-width: 1180px) {
  .hero-title {
    font-size: 4.75rem;
  }

  .hero-title-3d .hero-title-main {
    font-size: 4.75rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3.3rem;
    margin-bottom: 20px;
  }

  .hero-title-3d {
    padding-left: 18px;
    gap: 10px;
  }

  .hero-title-3d::after {
    left: 18px;
    width: 148px;
  }

  .hero-title-3d .hero-title-top {
    font-size: 0.92rem;
  }

  .hero-title-3d .hero-title-main {
    font-size: 3.3rem;
    line-height: 0.98;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.55rem;
  }

  .hero-title-3d .hero-title-main {
    font-size: 2.55rem;
  }
}

/* .home-btn moved to Bomba design section at the bottom */

section {
  padding: 84px 0;
}

.section-head {
  margin-top: 60px;
  margin-bottom: 24px;
}

.section-head h2,
.teacher h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: var(--primary);
}

.section-head p {
  color: var(--muted);
}

.glass-section {
  margin-top: 100px;
  position: relative;
  border-radius: 26px;
  padding: 54px 34px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg,
      rgba(247, 250, 255, 0.95),
      rgba(232, 242, 255, 0.88)),
    radial-gradient(circle at 10% 8%, rgba(20, 184, 166, 0.10), transparent 45%);
  box-shadow: 0 18px 42px rgba(13, 63, 120, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.glass-section::before {
  content: '';
  position: absolute;
  width: 70px;
  height: 4px;
  left: 34px;
  top: 0;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, var(--primary-2), var(--accent));
}

.about-modern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: var(--shadow);
}

.about-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.about-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover-bg);
  box-shadow: 0 20px 45px rgba(50, 70, 100, 0.08);
  border-color: var(--accent);
}

:root[data-theme='dark'] .about-card {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
}

:root[data-theme='dark'] .about-card:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--accent);
}

.about-highlight {
  border-radius: 24px;
  padding: 30px;
  background: linear-gradient(145deg, #0d3f78, #1565c0);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 15px 35px rgba(13, 63, 120, 0.25);
}

.about-highlight::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.about-highlight:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(13, 63, 120, 0.35);
}

.about-highlight:hover::after {
  opacity: 1;
}

.about-card h3,
.about-highlight h3 {
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 22px;
}

.about-highlight h3,
.about-highlight p {
  color: #fff;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
}

.news-container {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#news .news-container {
  align-items: stretch;
}

#news .news-card {
  min-width: 0;
  height: 100%;
}

#news .news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  aspect-ratio: auto;
}

.news-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: var(--shadow);
}

.news-card:hover {
  transform: translateY(-12px);
  background: var(--card-hover-bg);
  box-shadow: 0 30px 60px rgba(50, 70, 100, 0.1);
  border-color: var(--accent);
}

:root[data-theme='dark'] .news-card {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
}

:root[data-theme='dark'] .news-card:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--accent);
}

.news-card img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* img tag default whitespace bo'lmasligi uchun */
  flex-shrink: 0;
  /* flex ichida rasm siqilib "galati" bo'lmasin */
  aspect-ratio: 3 / 2;
  /* 1200x800 uchun mos (crop bo'lmasin uchun ratio saqlanadi) */
  height: auto;
}

.zoomable-image {
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.zoomable-image:hover {
  filter: brightness(1.04);
}

.news-card h3,
.news-card p,
.icon-links {
  padding: 0 16px;
}

.news-card h3 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.news-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.icon-links {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
}

.icon-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

/* Yoqtirish — pill chip, barcha ochiq sahifalar */
.js-like-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: middle;
}

.like-btn {
  position: relative;
  border: 1px solid rgba(13, 63, 120, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(13, 63, 120, 0.06), 0 1px 3px rgba(15, 23, 42, 0.06);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.like-btn i {
  font-size: 1.05em;
  line-height: 1;
}

.like-count {
  font-variant-numeric: tabular-nums;
  min-width: 1.15em;
  text-align: center;
}

.like-btn:hover {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.35);
  background: rgba(254, 242, 242, 0.95);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
  transform: translateY(-1px);
}

.like-btn:active {
  transform: translateY(0) scale(0.98);
}

.like-btn:focus {
  outline: none;
}

.like-btn:focus-visible {
  outline: 2px solid rgba(13, 63, 120, 0.45);
  outline-offset: 2px;
}

.like-btn.liked {
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.42);
  background: linear-gradient(145deg, rgba(254, 205, 211, 0.55), rgba(252, 231, 243, 0.9));
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.15);
}

.like-btn.liked:hover {
  color: #9f1239;
  border-color: rgba(190, 18, 60, 0.5);
  background: linear-gradient(145deg, rgba(254, 205, 211, 0.75), rgba(252, 231, 243, 1));
}

.like-btn.liked:focus-visible {
  outline-color: rgba(225, 29, 72, 0.55);
}

.js-bookmark-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.bookmark-btn {
  position: relative;
  border: 1px solid rgba(13, 63, 120, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 12px;
  min-height: 38px;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(13, 63, 120, 0.06), 0 1px 3px rgba(15, 23, 42, 0.06);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.bookmark-btn i {
  font-size: 1.05em;
  line-height: 1;
}

.bookmark-btn__text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bookmark-btn:hover {
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.35);
  background: rgba(239, 246, 255, 0.95);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.12);
  transform: translateY(-1px);
}

.bookmark-btn:active {
  transform: translateY(0) scale(0.98);
}

.bookmark-btn:focus {
  outline: none;
}

.bookmark-btn:focus-visible {
  outline: 2px solid rgba(13, 63, 120, 0.45);
  outline-offset: 2px;
}

.bookmark-btn.is-saved {
  color: #1e40af;
  border-color: rgba(29, 78, 216, 0.42);
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.65), rgba(239, 246, 255, 0.92));
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.14);
}

.bookmark-btn.is-saved:hover {
  color: #1e3a8a;
  border-color: rgba(30, 58, 138, 0.5);
}

.bookmark-btn.is-saved:focus-visible {
  outline-color: rgba(37, 99, 235, 0.55);
}

a.bookmark-btn--guest {
  text-decoration: none;
  color: inherit;
}

a.bookmark-btn--guest:hover {
  color: #1d4ed8;
}

@media (max-width: 420px) {
  .bookmark-btn__text {
    display: none;
  }

  .bookmark-btn {
    padding: 8px 11px;
  }
}

.teachers {
  margin-top: 60px;
  background: linear-gradient(135deg, #0a2f5e, #14559b 60%, #1f77cb);
}

.teacher {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.teacher h2,
.teacher p {
  color: #fff;
}

.teacher p {
  margin: 18px 0 24px;
  color: #d8e7ff;
}

.teacher-img {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  overflow: hidden;
  padding: 16px;
}

.teacher-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 12px;
}

.teacher-img h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 21px;
}

.teacher-img p {
  margin: 0 0 14px;
}

/*
 * Ustozlar bo'limi foni har doim quyuq — ichidagi tugmalar
 * light/dark temadan qat'iy nazar oq rangda ko'rinishi shart.
 */
.teachers .btn-outline,
.teachers .btn1 {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
}

.teachers .btn-outline:hover,
.teachers .btn1:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff !important;
}

/* ── Home Teacher Section: Eyebrow ── */
.home-teacher-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.home-teacher-eyebrow i {
  font-size: 13px;
  color: #60a5fa;
}

/* ── Home Teacher Section: Stats Grid ── */
.home-teacher-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.home-teacher-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.home-teacher-stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

/* Stat Icon */
.home-teacher-stat-card .stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}
.home-teacher-stat-card .stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-teacher-stat-card .stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.home-teacher-stat-card .stat-lbl {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

/* ── Home Teacher Section: CTA Group ── */
.home-teacher-cta-group {
  margin-top: 28px;
}
.btn-island-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 28px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-island-primary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-island-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-island-primary:hover .btn-island-icon {
  transform: translateX(4px);
}

/* ── Featured Teacher Meta ── */
.home-featured-teacher-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 6px 0 0;
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  .home-teacher-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-teacher-stat-card {
    padding: 12px 14px;
  }
  .home-teacher-stat-card .stat-num {
    font-size: 18px;
  }
}

.teachers .btn {
  color: #fff;
}

.teachers .share-btn i,
.teachers .share-btn {
  color: inherit;
}

.teachers .profile-muted {
  color: #bdd2f0;
}

.contact {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.contact-form {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.contact-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 420px;
}

.contact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

.contact .btn {
  width: fit-content;
  padding: 10px 20px;
  margin-top: 8px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #93c5fd;
  border-color: var(--primary-2);
}

.form-message {
  min-height: 24px;
  color: #0f766e;
  font-weight: 600;
}

/* Obsolete footer styles removed */

/* ===== Global Chat Widget + AI + ovoz (o‘ng past — vertikal «dock») ===== */
:root {
  --dock-edge: max(16px, env(safe-area-inset-right, 16px));
  --dock-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  --dock-chat-bubble: 52px;
  --dock-ai-bubble: 52px;
  --dock-audio-bubble: 48px;
  --dock-gap: 12px;
}

@media (max-width: 768px) {
  :root {
    --dock-edge: max(14px, env(safe-area-inset-right, 14px));
    --dock-bottom: max(14px, env(safe-area-inset-bottom, 14px));
    --dock-chat-bubble: 48px;
    --dock-ai-bubble: 48px;
    --dock-audio-bubble: 44px;
    --dock-gap: 12px;
  }
}

.chat-widget {
  position: fixed !important;
  bottom: var(--dock-bottom) !important;
  right: var(--dock-edge) !important;
  left: auto !important;
  z-index: 10050;
  touch-action: none;
  transition: z-index 0.3s step-end;
}

.chat-widget.is-open {
  z-index: 10200 !important;
  transition: z-index 0s !important;
}

.ai-widget {
  position: fixed !important;
  bottom: calc(var(--dock-bottom) + var(--dock-chat-bubble) + var(--dock-gap)) !important;
  right: var(--dock-edge) !important;
  left: auto !important;
  z-index: 10050;
  touch-action: none !important;
  transition: z-index 0.3s step-end;
}

.ai-widget.is-open {
  z-index: 10200 !important;
  transition: z-index 0s !important;
}

.prime-audio-slot {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10300;
}

.prime-audio-slot .prime-audio-toggle {
  pointer-events: auto;
}

/* Global chat tugmasi bilan bir xil o‘lcham va dumaloq */
.ai-bubble {
  width: var(--dock-ai-bubble);
  height: var(--dock-ai-bubble);
  border-radius: 50%;
  border: none;
  padding: 0;
  background: linear-gradient(135deg, #a855f7, #6366f1, #3b82f6);
  background-size: 200% 200%;
  animation: bgPulse 6s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
  z-index: 2;
}

.ai-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.5);
}

.ai-bubble:active {
  transform: scale(0.95);
}

/* AI Icon — Font Awesome Brain */
.ai-icon-fa {
  font-size: 24px;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.ai-bubble:hover .ai-icon-fa {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.6));
}

.ai-icon-fa-panel {
  font-size: 20px;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.3));
}

.ai-panel {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  right: var(--dock-edge, max(12px, env(safe-area-inset-right))) !important;
  bottom: calc(var(--dock-bottom, max(6px, env(safe-area-inset-bottom))) + var(--dock-ai-bubble, 52px) + 8px) !important;
  z-index: 10100 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) scale(0.95) !important;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  visibility: hidden !important;
}

.ai-panel.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  visibility: visible !important;
}

.ai-messages .chat-msg {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 16px !important;
  max-width: 85% !important;
}

.ai-messages .is-user {
  align-self: flex-end !important;
  align-items: flex-end !important;
}

.ai-messages .is-ai {
  align-self: flex-start !important;
  align-items: flex-start !important;
}

.ai-messages .chat-msg-content {
  padding: 10px 14px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  position: relative !important;
  white-space: pre-wrap !important;
}

.ai-messages .is-user .chat-msg-content {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #ffffff !important;
  border-bottom-right-radius: 4px !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
}

.ai-messages .is-ai .chat-msg-content {
  background: linear-gradient(145deg, #f8fafc, #f1f5f9) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
  border-bottom-left-radius: 4px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="dark"] .ai-messages .is-ai .chat-msg-content {
  background: linear-gradient(145deg, #1e293b, #0f172a) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.ai-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  font-size: 12px;
}

.is-user .ai-avatar {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.is-ai .ai-avatar {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}


.chat-widget.is-dragging {
  transition: none !important;
}

.chat-widget.is-dragging .chat-bubble {
  transform: scale(1.12);
  box-shadow: 0 12px 36px rgba(21, 101, 192, 0.5);
  cursor: grabbing;
}

.chat-bubble {
  width: var(--dock-chat-bubble);
  height: var(--dock-chat-bubble);
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  font-size: 22px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(21, 101, 192, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(21, 101, 192, 0.5);
}

.chat-bubble:active {
  transform: scale(0.95);
}

.chat-bubble::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(21, 101, 192, 0.28);
  opacity: 0;
  animation: chatBubblePulse 2.8s ease-out infinite;
}

.chat-widget.is-open .chat-bubble {
  transform: scale(0.92);
  box-shadow: 0 12px 34px rgba(21, 101, 192, 0.36);
}

.chat-widget.is-open .chat-bubble::after {
  animation: none;
  opacity: 0;
}

.chat-widget.is-open .chat-bubble i {
  animation: chatBubbleIconKick 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-widget.is-bubble-return .chat-bubble {
  animation: chatBubbleReturn 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-widget.is-bubble-return .chat-bubble i {
  animation: chatBubbleIconReturn 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes chatBubblePulse {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  18% {
    opacity: 0.45;
  }

  100% {
    opacity: 0;
    transform: scale(1.26);
  }
}

@keyframes chatBubbleIconKick {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  40% {
    transform: translateY(-2px) rotate(-10deg) scale(1.08);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes chatBubbleReturn {
  0% {
    transform: scale(0.92);
  }

  55% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes chatBubbleIconReturn {
  0% {
    transform: rotate(0deg) scale(1);
  }

  45% {
    transform: rotate(12deg) scale(1.08);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

.chat-bubble-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  animation: chatBadgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes chatBadgePop {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.chat-panel {
  position: fixed;
  z-index: 10100;
  width: 360px;
  height: 480px;
  border-radius: 18px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatPanelIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: var(--chat-origin, bottom right);
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-panel-main,
.ai-panel-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* [hidden] brauzer standarti .chat-panel-main ichidagi display:flex dan kuchli bo‘lishi kerak */
#chat-panel-main[hidden],
#chat-disabled-panel[hidden],
#ai-panel-main[hidden],
#ai-disabled-panel[hidden] {
  display: none !important;
}

.chat-panel-intro,
.chat-rules {
  flex-shrink: 0;
}

/* Xabarlar oqimi (flex ustun) */
.chat-feed-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-disabled-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  gap: 14px;
  box-sizing: border-box;
}

.chat-disabled-panel[hidden] {
  display: none !important;
}

.chat-disabled-panel-icon {
  font-size: 2.1rem;
  line-height: 1;
  opacity: 0.5;
  color: var(--muted-foreground, #64748b);
}

.chat-disabled-panel-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--foreground, #0f172a);
  max-width: 32ch;
}

:root[data-theme="dark"] .chat-disabled-panel-text {
  color: var(--foreground, #f1f5f9);
}

:root[data-theme="dark"] .chat-disabled-panel-icon {
  color: var(--muted-foreground, #94a3b8);
}

@keyframes chatPanelIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  60% {
    opacity: 1;
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.chat-panel.is-closing {
  animation: chatPanelOut 0.42s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}

@keyframes chatPanelOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }

  35% {
    opacity: 0.94;
    transform: scale(1.01) translateY(-2px);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scale(0.84) translateY(22px);
    filter: blur(6px);
  }
}

.chat-panel.is-fullscreen {
  position: fixed;
  top: 0 !important;
  left: 0 !important;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  z-index: 1000000;
  transform-origin: center;
  animation: chatFullIn 0.52s cubic-bezier(0.18, 0.92, 0.28, 1) both;
}

.chat-panel.is-fullscreen-enter {
  animation: chatFullIn 0.52s cubic-bezier(0.18, 0.92, 0.28, 1) both;
}

.chat-panel.is-fullscreen-exit {
  animation: chatFullOut 0.4s cubic-bezier(0.55, 0, 0.9, 0.4) both;
}

@keyframes chatFullIn {
  0% {
    opacity: 0.4;
    transform: scale(0.88) translateY(20px);
    filter: blur(6px);
  }

  60% {
    opacity: 1;
    transform: scale(1.015) translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes chatFullOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 0.55;
    transform: scale(0.92) translateY(16px);
    filter: blur(5px);
  }
}

body.chat-fullscreen-active .header-main,
body.chat-fullscreen-active .page-header {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.chat-fullscreen-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10190;
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
  animation: none;
}

@keyframes chatBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.chat-panel.is-fullscreen .chat-panel-header {
  padding: 16px 20px;
}

.chat-panel.is-fullscreen .chat-messages {
  padding: 18px 20px;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  flex-shrink: 0;
}

.chat-panel.is-opening .chat-panel-header,
.chat-panel.is-opening .chat-panel-intro,
.chat-panel.is-opening .chat-rules,
.chat-panel.is-opening .chat-feed-stack,
.chat-panel.is-opening .chat-input-wrap {
  animation: chatPanelSectionIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chat-panel.is-opening .chat-panel-intro {
  animation-delay: 0.05s;
}

.chat-panel.is-opening .chat-rules {
  animation-delay: 0.08s;
}

.chat-panel.is-opening .chat-feed-stack {
  animation-delay: 0.11s;
}

.chat-panel.is-opening .chat-input-wrap {
  animation-delay: 0.17s;
}

.chat-panel.is-closing .chat-panel-header,
.chat-panel.is-closing .chat-panel-intro,
.chat-panel.is-closing .chat-rules,
.chat-panel.is-closing .chat-feed-stack,
.chat-panel.is-closing .chat-input-wrap {
  animation: chatPanelSectionOut 0.28s cubic-bezier(0.4, 0, 1, 1) both;
}

.chat-panel.is-closing .chat-panel-header {
  animation-delay: 0ms;
}

.chat-panel.is-closing .chat-panel-intro {
  animation-delay: 25ms;
}

.chat-panel.is-closing .chat-rules {
  animation-delay: 45ms;
}

.chat-panel.is-closing .chat-feed-stack {
  animation-delay: 70ms;
}

.chat-panel.is-closing .chat-input-wrap {
  animation-delay: 115ms;
}

.chat-panel.is-closing .chat-msg {
  animation: chatMsgOut 0.22s cubic-bezier(0.4, 0, 1, 1) both;
}

.chat-panel.is-closing .chat-msg:nth-last-child(1) {
  animation-delay: 0ms;
}

.chat-panel.is-closing .chat-msg:nth-last-child(2) {
  animation-delay: 16ms;
}

.chat-panel.is-closing .chat-msg:nth-last-child(3) {
  animation-delay: 28ms;
}

.chat-panel.is-closing .chat-msg:nth-last-child(4) {
  animation-delay: 40ms;
}

.chat-panel.is-closing .chat-msg:nth-last-child(n+5) {
  animation-delay: 48ms;
}

@keyframes chatPanelSectionIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chatPanelSectionOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes chatMsgOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

.chat-panel-intro {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(21, 101, 192, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38));
  flex-shrink: 0;
}

.chat-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-2);
}

.chat-panel-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.38);
  animation: chatLiveDot 1.6s ease-out infinite;
}

/* Umumiy chat: jonli odam «onlayn» emas — faol kanal (ko‘k puls) */
.chat-panel-live-dot--channel {
  background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35);
  animation: chatLiveDotChannel 1.6s ease-out infinite;
}

@keyframes chatLiveDotChannel {
  0% {
    transform: scale(0.94);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35);
  }

  70% {
    transform: scale(1.04);
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }

  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* AI: «onlayn» yashil nuqta emas — brend rang, pulsatsiyasiz (avtomatik xizmat) */
.chat-panel-live-dot--ai {
  background: #6366f1;
  animation: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.chat-panel-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

@keyframes chatLiveDot {
  0% {
    transform: scale(0.94);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
  }

  70% {
    transform: scale(1.04);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.chat-rules {
  margin: 0;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  flex-shrink: 0;
}

.chat-rules summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--muted);
  list-style: none;
  font-size: 12px;
}

.chat-rules summary:hover {
  color: var(--text);
}

.chat-rules summary::-webkit-details-marker {
  display: none;
}

.chat-rules summary::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.7;
}

.chat-rules[open] summary::after {
  content: " ▴";
}

.chat-rules ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.chat-rules li {
  margin-bottom: 4px;
}

:root[data-theme='dark'] .chat-rules {
  background: transparent;
}

.chat-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.chat-panel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.chat-panel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.chat-panel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-user-select: none;
  user-select: none;
  scroll-behavior: auto !important;
  overscroll-behavior: contain;
}

.chat-msg {
  display: flex;
  gap: 6px;
  max-width: 85%;
  animation: chatMsgIn 0.25s ease both;
  align-items: flex-start;
  --chat-msg-delay: 0ms;
}

@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.chat-msg.is-seeded {
  animation: chatMsgSeedIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--chat-msg-delay);
}

.chat-msg.is-fresh {
  animation: chatMsgFreshIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--chat-msg-delay);
}

.chat-msg.is-fresh .chat-msg-text,
.chat-msg.is-seeded .chat-msg-text {
  animation: chatMsgGlow 0.65s ease both;
  animation-delay: calc(var(--chat-msg-delay) + 40ms);
}

.chat-msg.is-burst .chat-msg-text {
  animation: chatMineBurst 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes chatMsgSeedIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chatMsgFreshIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    filter: blur(6px);
  }

  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes chatMsgGlow {
  0% {
    box-shadow: 0 0 0 rgba(21, 101, 192, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(21, 101, 192, 0.06);
  }

  100% {
    box-shadow: 0 0 0 rgba(21, 101, 192, 0);
  }
}

@keyframes chatMineBurst {
  0% {
    transform: translateY(10px) scale(0.9);
    box-shadow: 0 0 0 rgba(21, 101, 192, 0);
  }

  55% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 26px rgba(21, 101, 192, 0.2);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(21, 101, 192, 0);
  }
}

@keyframes primeGroupIn {
  0% { transform: translateY(16px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.chat-msg.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(21, 101, 192, 0.12);
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg.is-mine .chat-msg-avatar {
  background: rgba(21, 101, 192, 0.2);
}

.chat-msg-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

button.chat-msg-avatar-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  flex-shrink: 0;
}

button.chat-msg-avatar-btn:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

/* Brauzer <dialog> standart stillari (inset:0 va h.k.) markazni buzmasin */
.chat-user-preview-dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  max-width: none;
}

.chat-user-preview-dialog[open],
.chat-user-preview-dialog:modal {
  position: fixed !important;
  inset: auto !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 10050;
  max-width: min(360px, calc(100vw - 24px));
  width: min(360px, calc(100vw - 24px));
  max-height: min(88vh, 640px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.chat-user-preview-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.chat-user-preview-shell {
  position: relative;
  padding: 16px 16px 14px;
  max-height: inherit;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-user-preview-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: min(78vh, 560px);
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.chat-user-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-user-preview-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
  transform: scale(1.05);
}

:root[data-theme='dark'] .chat-user-preview-close {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .chat-user-preview-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.chat-user-preview-loading {
  margin: 24px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.chat-user-preview-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.15) 0%, rgba(21, 101, 192, 0.08) 100%);
  color: var(--primary-2);
  font-size: 30px;
  font-weight: 800;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.15);
}

.chat-user-preview-avatar--initial {
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.2) 0%, rgba(21, 101, 192, 0.12) 100%);
}

.chat-user-preview-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-user-preview-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  padding: 0 32px;
  letter-spacing: -0.01em;
}

.chat-user-preview-role {
  margin: 0 0 12px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.chat-user-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.12) 0%, rgba(21, 101, 192, 0.06) 100%);
  color: var(--primary-2);
  border: 1px solid rgba(21, 101, 192, 0.1);
}

.chat-user-preview-badge--super {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}

.chat-user-preview-badge--base {
  background: var(--surface, #fff);
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 600;
}

:root[data-theme='dark'] .chat-user-preview-badge--base {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #9cb1cb;
}

.chat-user-preview-details {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.chat-user-preview-details li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-user-preview-details li span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}

.chat-user-preview-details-empty {
  color: var(--muted);
  font-style: italic;
  border-top: none !important;
  padding-top: 4px !important;
}

.chat-user-preview-admin-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(245, 158, 11, 0.3);
}

.chat-user-preview-admin-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c2410c;
}

.chat-user-preview-admin-status {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
}

.chat-user-preview-admin-status strong {
  font-weight: 800;
}

.chat-user-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.chat-user-preview-btn:first-of-type {
  margin-top: 0;
}

.chat-user-preview-btn--danger {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
}

.chat-user-preview-btn--danger:hover {
  filter: brightness(1.06);
}

.chat-user-preview-btn--ok {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #fff;
}

.chat-user-preview-btn--ok:hover {
  filter: brightness(1.06);
}

.chat-user-preview-contact {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.chat-user-preview-contact-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.chat-user-preview-contact-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 4px 0;
  word-break: break-word;
}

.chat-user-preview-contact-row span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}

.chat-user-preview-extra {
  margin-top: 4px;
}

.chat-user-preview-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-user-preview-section-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.chat-user-preview-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.chat-user-preview-links li {
  padding: 5px 0;
  line-height: 1.35;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-user-preview-links li:first-child {
  border-top: none;
  padding-top: 0;
}

.chat-user-preview-links a {
  color: var(--primary-2);
  font-weight: 600;
  text-decoration: none;
}

.chat-user-preview-links a:hover {
  text-decoration: underline;
}

.chat-user-preview-muted {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.chat-user-preview-stat-block {
  font-size: 13px;
}

.chat-user-preview-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-user-preview-stat-row:first-child {
  border-top: none;
  padding-top: 0;
}

.chat-user-preview-stat-row span {
  color: var(--muted);
  font-size: 12px;
}

.chat-user-preview-stat-row strong {
  font-size: 14px;
  font-weight: 800;
}

.chat-user-preview-stat--ok {
  color: #15803d;
}

.chat-user-preview-stat--bad {
  color: #b91c1c;
}

.chat-user-preview-stat-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

:root[data-theme='dark'] .chat-user-preview-links li,
:root[data-theme='dark'] .chat-user-preview-stat-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* =====================================================================
   SUPER ADMIN PRIME PROFILE — "BOMBA" EFFECT
   ===================================================================== */

/* Animated gradient border via pseudo-element */
@keyframes sa-border-rotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes sa-particle-float {
  0% {
    transform: translateY(0) scale(1);
    opacity: var(--sa-opacity);
  }

  60% {
    opacity: var(--sa-opacity);
  }

  100% {
    transform: translateY(-110px) scale(0.6);
    opacity: 0;
  }
}

@keyframes sa-glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 22px 4px rgba(245, 158, 11, 0.45),
      0 0 60px 12px rgba(249, 115, 22, 0.2);
  }

  50% {
    box-shadow: 0 0 36px 8px rgba(251, 191, 36, 0.65),
      0 0 80px 20px rgba(239, 68, 68, 0.18);
  }
}

@keyframes sa-avatar-ring {

  0%,
  100% {
    box-shadow: 0 0 0 3px #f59e0b, 0 0 18px 4px rgba(245, 158, 11, 0.55);
  }

  50% {
    box-shadow: 0 0 0 5px #f97316, 0 0 32px 8px rgba(249, 115, 22, 0.7);
  }
}

@keyframes sa-shine {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes sa-name-in {
  from {
    opacity: 0;
    transform: translateY(6px);
    letter-spacing: 0.08em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

/* Dialog wrapper when super-admin */
.chat-user-preview-dialog.is-super-admin[open],
.chat-user-preview-dialog.is-super-admin:modal {
  background: linear-gradient(160deg, #0b0f1a 0%, #12192d 55%, #0f1623 100%);
  border: none;
  padding: 2px;
  box-shadow: 0 0 0 2px transparent;
  overflow: visible;
  animation: sa-glow-pulse 3s ease infinite;
}

/* Animated gradient border ring */
.chat-user-preview-dialog.is-super-admin::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  z-index: 0;
  background: linear-gradient(120deg, #f59e0b, #f97316, #ef4444, #a855f7, #6366f1, #f59e0b);
  background-size: 300% 300%;
  animation: sa-border-rotate 4s linear infinite;
}

/* Inner card surface */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-shell {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #0d1526 0%, #111d34 60%, #0c1422 100%);
  border-radius: 16px;
  overflow: hidden;
}

/* Subtle top aurora stripe */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #f97316, #a855f7, #6366f1, #f59e0b);
  background-size: 200% 100%;
  animation: sa-border-rotate 3s linear infinite;
  border-radius: 16px 16px 0 0;
}

/* Radial glow behind avatar */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-shell::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Close button — on dark bg */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-close {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
  z-index: 2;
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-close:hover {
  background: rgba(245, 158, 11, 0.24);
}

/* Avatar ring glow */
.chat-user-preview-avatar.chat-user-preview-avatar--super {
  animation: sa-avatar-ring 2.4s ease infinite;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.chat-user-preview-avatar--super-initial {
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Shining name text */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-name {
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f9a8d4, #fbbf24);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sa-shine 3s linear infinite, sa-name-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
  z-index: 1;
}

/* Role badge — super */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-badge--super {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.45);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Details rows — dark themed */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-details li {
  border-top-color: rgba(245, 158, 11, 0.14);
  color: #c8d9f5;
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-details li span:first-child {
  color: rgba(245, 158, 11, 0.7);
}

/* Section titles */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-section {
  border-top-color: rgba(245, 158, 11, 0.15);
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-section-title {
  color: #f59e0b;
  letter-spacing: 0.06em;
}

/* Stat rows */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-stat-row {
  border-top-color: rgba(255, 255, 255, 0.07);
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-stat-row span {
  color: rgba(200, 217, 245, 0.65);
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-stat-row strong {
  color: #fbbf24;
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-stat--ok {
  color: #4ade80;
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-stat--bad {
  color: #f87171;
}

/* Admin kicker / status */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-admin-kicker {
  color: #fbbf24;
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-admin-actions {
  border-top-color: rgba(245, 158, 11, 0.28);
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-admin-status {
  color: #c8d9f5;
}

/* Contact section */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-contact {
  border-top-color: rgba(245, 158, 11, 0.18);
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-contact-kicker {
  color: #f59e0b;
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-contact-row {
  color: #c8d9f5;
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-contact-row span:first-child {
  color: rgba(245, 158, 11, 0.65);
}

/* Muted text */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-muted {
  color: rgba(200, 217, 245, 0.4);
}

/* Links */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-links a {
  color: #fbbf24;
}

.chat-user-preview-dialog.is-super-admin .chat-user-preview-links li {
  border-top-color: rgba(255, 255, 255, 0.07);
  color: #c8d9f5;
}

/* Scrollbar inside super admin body */
.chat-user-preview-dialog.is-super-admin .chat-user-preview-body::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
}

/* Backdrop — more dramatic */
.chat-user-preview-dialog.is-super-admin::backdrop {
  background: rgba(4, 10, 22, 0.72);
  backdrop-filter: blur(4px);
}

/* Floating particle container */
.sa-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
  z-index: 0;
}

.sa-particle {
  position: absolute;
  bottom: -10px;
  left: var(--sa-x, 50%);
  font-size: var(--sa-size, 12px);
  color: #f59e0b;
  opacity: 0;
  animation: sa-particle-float var(--sa-dur, 3s) ease-in var(--sa-delay, 0s) infinite;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.sa-particle:nth-child(even) {
  color: #fb923c;
}

.sa-particle:nth-child(3n) {
  color: #a78bfa;
}

.sa-particle:nth-child(4n) {
  color: #fbbf24;
}

/* =====================================================================
   ADMIN PRIME PROFILE — "COSMIC BLUE" EFFECT
   ===================================================================== */

@keyframes admin-glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 22px 4px rgba(56, 189, 248, 0.45),
      0 0 60px 12px rgba(59, 130, 246, 0.2);
  }

  50% {
    box-shadow: 0 0 36px 8px rgba(96, 165, 250, 0.65),
      0 0 80px 20px rgba(139, 92, 246, 0.18);
  }
}

@keyframes admin-avatar-ring {

  0%,
  100% {
    box-shadow: 0 0 0 3px #3b82f6, 0 0 18px 4px rgba(59, 130, 246, 0.55);
  }

  50% {
    box-shadow: 0 0 0 5px #60a5fa, 0 0 32px 8px rgba(96, 165, 250, 0.7);
  }
}

.chat-user-preview-dialog.is-admin[open],
.chat-user-preview-dialog.is-admin:modal {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 55%, #0f172a 100%);
  border: none;
  padding: 2px;
  box-shadow: 0 0 0 2px transparent;
  overflow: visible;
  animation: admin-glow-pulse 3s ease infinite;
}

.chat-user-preview-dialog.is-admin::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  z-index: 0;
  background: linear-gradient(120deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
  background-size: 300% 300%;
  animation: sa-border-rotate 4s linear infinite;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-shell {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #0b1120 0%, #171638 60%, #080f1c 100%);
  border-radius: 16px;
  overflow: hidden;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 200% 100%;
  animation: sa-border-rotate 3s linear infinite;
  border-radius: 16px 16px 0 0;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-shell::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-close {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
  z-index: 2;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-close:hover {
  background: rgba(59, 130, 246, 0.24);
}

.chat-user-preview-dialog.is-admin .chat-user-preview-avatar {
  animation: admin-avatar-ring 2.4s ease infinite;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-avatar--initial {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.chat-user-preview-dialog.is-admin .chat-user-preview-name {
  background: linear-gradient(90deg, #93c5fd, #c4b5fd, #fbcfe8, #93c5fd);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sa-shine 3s linear infinite, sa-name-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
  z-index: 1;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-badge {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.45);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-details li {
  border-top-color: rgba(59, 130, 246, 0.14);
  color: #e2e8f0;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-details li span:first-child {
  color: rgba(96, 165, 250, 0.8);
}

.chat-user-preview-dialog.is-admin .chat-user-preview-section {
  border-top-color: rgba(59, 130, 246, 0.15);
}

.chat-user-preview-dialog.is-admin .chat-user-preview-section-title {
  color: #93c5fd;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-links a {
  color: #93c5fd;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-links li {
  border-top-color: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}

.chat-user-preview-dialog.is-admin .chat-user-preview-muted {
  color: rgba(148, 163, 184, 0.7);
}

.chat-user-preview-dialog.is-admin .chat-user-preview-body::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
}

.chat-user-preview-dialog.is-admin::backdrop {
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(4px);
}

.chat-msg-body {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 0;
  flex-wrap: wrap;
  padding-right: 52px;
  line-height: 1.2;
}

.chat-msg-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.chat-msg-admin-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(21, 101, 192, 0.12);
  color: var(--primary-2);
  text-transform: uppercase;
}

.chat-msg-super-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: superBadgeGlow 2s ease-in-out infinite alternate;
}

.chat-msg-super-badge i {
  font-size: 8px;
}

@keyframes superBadgeGlow {
  from {
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
  }

  to {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  }
}

.chat-msg.is-super-admin .chat-msg-avatar--super {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
  animation: superAvatarPulse 2.5s ease-in-out infinite alternate;
}

@keyframes superAvatarPulse {
  from {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
  }

  to {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.4), 0 0 12px rgba(245, 158, 11, 0.15);
  }
}

.chat-msg.is-super-admin .chat-msg-name {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.chat-msg.is-super-admin:not(.is-mine) .chat-msg-text {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(249, 115, 22, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.chat-msg.is-super-admin.is-mine .chat-msg-text {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
}

:root[data-theme='dark'] .chat-msg.is-super-admin:not(.is-mine) .chat-msg-text {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(249, 115, 22, 0.08));
  border-color: rgba(245, 158, 11, 0.2);
}

:root[data-theme='dark'] .chat-msg.is-super-admin .chat-msg-name {
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  background-clip: text;
  color: transparent;
}

.chat-msg-time {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.chat-msg-actions {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 0;
  right: 0;
  margin-left: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.chat-msg:hover .chat-msg-actions {
  opacity: 1;
}

@media (hover: none) {
  .chat-msg-actions {
    opacity: 0.75;
  }
}

.chat-msg-action {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, color 0.12s ease;
}

.chat-msg-action:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.chat-msg-action--block:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

:root[data-theme='dark'] .chat-msg-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .chat-msg-action--block:hover {
  background: rgba(220, 38, 38, 0.15);
}

.chat-msg-text {
  font-size: 14px;
  line-height: 1.45;
  padding: 6px 10px;
  margin-top: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  word-break: break-word;
  -webkit-user-select: none;
  user-select: none;
}

.chat-msg.is-mine .chat-msg-text {
  background: var(--primary-2);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}

.chat-msg:not(.is-mine) .chat-msg-text {
  border-radius: 14px 14px 14px 4px;
}

/* Stiker xabarlari — katta rasm, pufaksiz */
.chat-msg-sticker {
  background: transparent !important;
  padding: 2px 0 !important;
  border-radius: 0 !important;
}

.chat-sticker-image {
  width: 128px;
  height: 128px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.chat-msg.is-mine .chat-msg-sticker {
  background: transparent !important;
}

.chat-msg-sticker--fallback {
  font-size: 28px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  padding: 8px 14px !important;
  background: rgba(21, 101, 192, 0.06) !important;
  border-radius: 16px !important;
  display: inline-block;
}

.chat-msg.is-mine .chat-msg-sticker--fallback {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

.chat-compose-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 8px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.chat-compose-status[hidden],
.chat-panel .chat-compose-status[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
}

.chat-compose-status:not([hidden]) {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

.chat-compose-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 101, 192, 0.1);
  color: var(--primary-2);
  flex-shrink: 0;
}

.chat-compose-status[data-state='sending'] .chat-compose-status-icon {
  background: rgba(21, 101, 192, 0.16);
  animation: chatComposeIconSpin 0.8s linear infinite;
}

.chat-compose-status-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat-compose-status-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  animation: chatTypingDot 1s ease-in-out infinite;
}

.chat-compose-status-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.chat-compose-status-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes chatTypingDot {

  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes chatComposeIconSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.chat-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
  z-index: 3;
  transition: background 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

/* Invisible Turnstile hech narsani bosishni to'smasin */
.chat-turnstile-host {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  inset: auto !important;
}

.chat-turnstile-host iframe {
  pointer-events: none !important;
}

.chat-widget.is-typing .chat-input-wrap,
.chat-widget.is-sending .chat-input-wrap {
  background: linear-gradient(180deg, rgba(21, 101, 192, 0.04), transparent);
  box-shadow: inset 0 1px 0 rgba(21, 101, 192, 0.06);
}

/* ===== Telegram-style Sticker Panel ===== */
.chat-sticker-panel {
  position: relative;
  display: flex;
  align-items: center;
}

.chat-sticker-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-sticker-toggle:hover {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.1);
}

.chat-sticker-toggle:active {
  transform: scale(0.95);
}

/* Sticker popup panel */
.chat-sticker-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 280px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 100;
  overflow: hidden;
  animation: stickerPopupIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: bottom left;
}

.chat-sticker-popup[hidden] {
  display: none !important;
}

@keyframes stickerPopupIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes stickerPopupOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
}

.chat-sticker-popup.is-closing {
  animation: stickerPopupOut 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

/* Tabs */
.sticker-popup-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
}

.sticker-tab {
  flex: 1;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px 8px 0 0;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sticker-tab:hover {
  background: rgba(59, 130, 246, 0.08);
}

.sticker-tab.active {
  background: var(--surface, #fff);
}

.sticker-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Sticker grid */
.sticker-popup-content {
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.sticker-grid[hidden] {
  display: none !important;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.sticker-item {
  width: 100%;
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

.sticker-item:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.2);
}

.sticker-item:active {
  transform: scale(0.9);
}

/* Dark mode */
:root[data-theme='dark'] .chat-sticker-popup {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

:root[data-theme='dark'] .sticker-popup-tabs {
  background: rgba(255, 255, 255, 0.03);
  border-color: #334155;
}

:root[data-theme='dark'] .sticker-tab.active {
  background: #1e293b;
}

:root[data-theme='dark'] .sticker-tab:hover {
  background: rgba(99, 102, 241, 0.15);
}

:root[data-theme='dark'] .sticker-item:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* Oddiy stikerlar (donor bo'lmaganlar uchun) */
.chat-sticker-row--simple {
  width: 100%;
  display: flex;
  gap: 6px;
  padding-bottom: 2px;
  position: relative;
  z-index: 3;
}

.chat-sticker-row--simple .chat-sticker-btn {
  width: 34px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
}

.chat-sticker-row--simple .chat-sticker-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--primary-2);
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.18);
}

.chat-sticker-row--simple .chat-sticker-btn:active {
  transform: scale(0.94);
}

.chat-sticker-row--simple .chat-sticker-btn.is-fired {
  animation: chatStickerBurst 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Donor foydalanuvchi: oddiy stikerlarni yashiramiz */
.chat-sticker-row--simple.is-donor-hidden {
  display: none !important;
}

/* Oddiy foydalanuvchi: panel yo'q, oddiy stikerlar ko'rinadi */
.chat-sticker-row--simple:not(.is-donor-hidden) + .chat-sticker-panel {
  display: none;
}

.chat-input {
  flex: 1 1 180px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg, #f8fafc);
  outline: none;
  text-align: left;
  position: relative;
  z-index: 4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.chat-input:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.08);
}

.chat-widget.is-typing .chat-input {
  border-color: rgba(21, 101, 192, 0.26);
  background: rgba(255, 255, 255, 0.92);
}

.chat-input::placeholder {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat-widget.is-typing .chat-input::placeholder {
  opacity: 0.72;
  transform: translateX(2px);
}

.chat-input[disabled] {
  cursor: progress;
  opacity: 0.88;
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: var(--primary-2);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  position: relative;
  z-index: 4;
  overflow: hidden;
  pointer-events: auto !important;
}

#chat-send-btn,
#ai-send-btn {
  z-index: 6;
  pointer-events: auto !important;
}

/* Panel ochilganda pastki floating ikonlar input/send ustini to'smasin */
body.chat-panel-open .prime-audio-toggle,
body.chat-panel-open #ai-widget,
/* Widgetni o'zini ham pointer-events: none qilamiz */
body.chat-panel-open #ai-widget .ai-bubble,
body.chat-panel-open #chat-widget .chat-bubble,
body.ai-panel-open .prime-audio-toggle,
body.ai-panel-open #chat-widget,
/* Widgetni o'zini ham pointer-events: none qilamiz */
body.ai-panel-open #chat-widget .chat-bubble,
body.ai-panel-open #ai-widget .ai-bubble,
body:has(#chat-widget.is-open) .prime-audio-toggle,
body:has(#chat-widget.is-open) #ai-widget,
body:has(#chat-widget.is-open) #ai-widget .ai-bubble,
body:has(#chat-widget.is-open) #chat-widget .chat-bubble,
body:has(#ai-panel.is-open) .prime-audio-toggle,
body:has(#ai-panel.is-open) #chat-widget,
body:has(#ai-panel.is-open) #chat-widget .chat-bubble,
body:has(#ai-panel.is-open) #ai-widget .ai-bubble {
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.85) !important;
}

.chat-send-btn:hover {
  transform: scale(1.06);
}

.chat-send-btn:active {
  transform: scale(0.94);
}

.nav-search-trigger {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
}

.global-search-open {
  overflow: hidden !important;
}

.global-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(3, 8, 20, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  align-items: flex-start;
  justify-content: center;
  padding: clamp(20px, 5vw, 60px) 16px 24px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.global-search-modal:not([hidden]) {
  display: flex;
  opacity: 1;
}

.global-search-modal.is-opening .global-search-shell {
  animation: globalSearchShellIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.global-search-modal.is-closing .global-search-shell {
  animation: globalSearchShellOut 0.2s cubic-bezier(0.55, 0.08, 0.68, 0.53) both;
}

.global-search-shell {
  width: min(980px, 100%);
  transform-origin: top center;
}

.global-search-label {
  display: inline-block;
  color: #cbd5e1;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.global-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.84);
  border-radius: 16px;
  padding: 0 18px;
  box-shadow: 0 16px 50px rgba(2, 8, 23, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.global-search-input-wrap i {
  color: #cbd5e1;
  flex-shrink: 0;
}

#global-search-input {
  width: 100%;
  height: 72px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fafc;
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 600;
}

#global-search-input::placeholder {
  color: #8ea0bc;
}

.global-search-input-wrap:focus-within {
  border-color: rgba(147, 197, 253, 0.75);
  box-shadow: 0 20px 56px rgba(30, 64, 175, 0.36);
}

.global-search-results {
  margin-top: 14px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  display: grid;
  gap: 10px;
}

.global-search-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  text-decoration: none;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
  border-radius: 14px;
  padding: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  animation: globalSearchItemIn 0.22s ease both;
}

.global-search-item-media {
  width: 68px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.global-search-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-search-item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.global-search-item-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.global-search-item-title {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search-item-desc {
  font-size: 12px;
  color: #9fb0c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search-item:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(147, 197, 253, 0.52);
  background: rgba(30, 41, 59, 0.86);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.38);
}

.global-search-item.is-active {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(147, 197, 253, 0.6);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.42);
}

.global-search-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  color: #9fb0c8;
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

:root[data-theme='light'] .global-search-modal {
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.12), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.1), transparent 48%),
    rgba(241, 245, 249, 0.9);
}

:root[data-theme='light'] .global-search-label {
  color: #334155;
}

:root[data-theme='light'] .global-search-input-wrap {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(100, 116, 139, 0.24);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

:root[data-theme='light'] .global-search-input-wrap i {
  color: #334155;
}

:root[data-theme='light'] #global-search-input {
  color: #0f172a;
}

:root[data-theme='light'] #global-search-input::placeholder {
  color: #64748b;
}

:root[data-theme='light'] .global-search-item {
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

:root[data-theme='light'] .global-search-item-media {
  background: rgba(226, 232, 240, 0.8);
}

:root[data-theme='light'] .global-search-item-type {
  color: #1d4ed8;
}

:root[data-theme='light'] .global-search-item-desc {
  color: #475569;
}

:root[data-theme='light'] .global-search-item:hover,
:root[data-theme='light'] .global-search-item.is-active {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.16);
}

:root[data-theme='light'] .global-search-empty {
  color: #1e293b;
  border-color: rgba(100, 116, 139, 0.35);
  background: rgba(255, 255, 255, 0.92);
}

@keyframes globalSearchShellIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.985);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes globalSearchShellOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    filter: blur(3px);
  }
}

@keyframes globalSearchItemIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-send-btn::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: #fff;
  opacity: 0;
}

.chat-send-btn i {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-widget.is-sending .chat-send-btn {
  transform: none;
  box-shadow: 0 10px 24px rgba(21, 101, 192, 0.22);
  pointer-events: none;
}

.chat-widget.is-sending .chat-send-btn::before {
  opacity: 1;
  animation: chatSendSpin 0.7s linear infinite;
}

.chat-widget.is-sending .chat-send-btn i {
  opacity: 0;
  transform: scale(0.65);
}

.chat-widget.is-sending .chat-sticker-btn {
  opacity: 0.56;
  pointer-events: none;
}

@keyframes chatSendSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

:root[data-theme='dark'] .chat-bubble {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  background-size: 200% 200%;
  animation: chatBubbleShimmer 3s ease infinite;
}

:root[data-theme='dark'] .ai-bubble {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

@keyframes chatBubbleShimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

:root[data-theme='dark'] .chat-panel {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: linear-gradient(160deg, #0f172a 0%, #1a1040 50%, #0f172a 100%);
  background-size: 200% 200%;
  animation: chatPanelBgShift 8s ease infinite;
}

@keyframes chatPanelBgShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

:root[data-theme='dark'] .chat-panel-header {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

:root[data-theme='dark'] .chat-panel-intro {
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.28));
}

:root[data-theme='dark'] .chat-panel-kicker {
  color: #c4b5fd;
}

:root[data-theme='dark'] .chat-msg-text {
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme='dark'] .chat-msg.is-mine .chat-msg-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

:root[data-theme='dark'] .chat-msg-avatar {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

:root[data-theme='dark'] .chat-send-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

:root[data-theme='dark'] .chat-input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
}

:root[data-theme='dark'] .chat-compose-status-icon {
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
}

:root[data-theme='dark'] .chat-sticker-btn,
:root[data-theme='dark'] .chat-sticker-row--simple .chat-sticker-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.26);
}

:root[data-theme='dark'] .chat-sticker-btn:hover,
:root[data-theme='dark'] .chat-sticker-row--simple .chat-sticker-btn:hover {
  border-color: rgba(167, 139, 250, 0.75);
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.24);
}

:root[data-theme='dark'] .chat-input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

:root[data-theme='dark'] .chat-widget.is-typing .chat-input-wrap,
:root[data-theme='dark'] .chat-widget.is-sending .chat-input-wrap {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent);
  box-shadow: inset 0 1px 0 rgba(139, 92, 246, 0.12);
}

:root[data-theme='dark'] .chat-widget.is-typing .chat-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(167, 139, 250, 0.38);
}

@media (max-width: 480px) {
  .chat-widget {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .chat-panel:not(.is-fullscreen) {
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(72px + max(8px, env(safe-area-inset-bottom))) !important;
    width: auto !important;
    height: min(68vh, 520px) !important;
    border-radius: 16px;
  }

  .chat-panel:not(.is-fullscreen) .chat-panel-header {
    padding: 12px 14px;
  }

  .chat-panel:not(.is-fullscreen) .chat-panel-intro {
    padding: 10px 12px 8px;
  }

  .chat-panel:not(.is-fullscreen) .chat-messages {
    padding: 10px;
  }

  .chat-panel:not(.is-fullscreen) .chat-compose-status {
    padding: 0 10px 6px;
  }

  .chat-panel:not(.is-fullscreen) .chat-input-wrap {
    padding: 8px 10px;
    gap: 6px;
  }

  .chat-sticker-row,
  .chat-sticker-row--simple {
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chat-sticker-row::-webkit-scrollbar,
  .chat-sticker-row--simple::-webkit-scrollbar {
    display: none;
  }

  .chat-sticker-btn,
  .chat-sticker-row--simple .chat-sticker-btn {
    width: 32px;
    height: 28px;
    flex: 0 0 auto;
  }

  .chat-msg {
    max-width: 94%;
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  .chat-panel:not(.is-fullscreen) {
    width: min(420px, calc(100vw - 20px)) !important;
    height: min(72vh, 560px) !important;
  }

  .chat-msg {
    max-width: 90%;
  }
}

/* PRIME LEVEL SCROLL-TOP BUTTON */
.scroll-top {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  right: auto;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 245, 255, 0.6));
  backdrop-filter: blur(12px);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(13, 63, 120, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.scroll-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 32px rgba(13, 63, 120, 0.25), 0 0 15px rgba(59, 130, 246, 0.5);
}

.scroll-top:hover::before {
  opacity: 1;
}

.scroll-top i {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-top:hover i {
  transform: translateY(-2px);
  animation: scrollTopPulse 1s infinite alternate ease-in-out;
}

@keyframes scrollTopPulse {
  0% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(-6px);
  }
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* DARK MODE SCROLL-TOP */
:root[data-theme='dark'] .scroll-top {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.05));
  border-color: rgba(14, 165, 233, 0.3);
  color: #0ea5e9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(14, 165, 233, 0.2);
}

:root[data-theme='dark'] .scroll-top::before {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

:root[data-theme='dark'] .scroll-top:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(14, 165, 233, 0.6);
  color: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 15, 29, 0.82);
  backdrop-filter: blur(12px);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox-stage {
  position: relative;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.image-lightbox-img {
  max-width: 100%;
  max-height: calc(88vh - 56px);
  display: block;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.image-lightbox-caption {
  margin: 0;
  max-width: min(88vw, 880px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef4ff;
  font-size: 14px;
  text-align: center;
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.image-lightbox-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

section.teachers.reveal {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

section.teachers.reveal::before {
  display: none;
}

/* ==========================================================================
   PRIME ANIMATION SYSTEM (Elite UI/UX)
   ========================================================================== */

:root {
  --prime-bezier: cubic-bezier(0.16, 1, 0.3, 1);
  --prime-duration: 0.8s;
  --prime-stagger-delay: 0.12s;
}

/* Glass Scroll Progress Bar */
.prime-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
  pointer-events: none;
}

.prime-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary-2), var(--accent));
  background-size: 200% 100%;
  animation: primeGradientFlow 3s linear infinite;
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.2s ease-out;
}

@keyframes primeGradientFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Global Reveal Classes */
.prime-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  filter: blur(5px);
  transition: opacity var(--prime-duration) var(--prime-bezier),
    transform var(--prime-duration) var(--prime-bezier),
    filter var(--prime-duration) var(--prime-bezier);
  will-change: transform, opacity, filter;
}

.prime-reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.prime-reveal--scale {
  transform: scale(0.92);
}

.prime-reveal--scale.active {
  transform: scale(1);
}

.prime-reveal--blur {
  filter: blur(15px);
}

.prime-reveal--blur.active {
  filter: blur(0);
}

/* Stagger Support */
.prime-stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--prime-bezier);
}

.prime-stagger.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* Glow Hover Effect */
.prime-glow-hover {
  position: relative;
  transition: transform 0.3s var(--prime-bezier), box-shadow 0.3s var(--prime-bezier);
}

.prime-glow-hover:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(13, 63, 120, 0.18), 0 0 25px rgba(20, 184, 166, 0.15);
}

/* Magnetic Button Base */
.btn-prime {
  position: relative;
  overflow: hidden;
}

.btn-prime::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--prime-bezier);
}

.btn-prime:hover::after {
  transform: translateX(100%);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .mobile-ai-toggle-wrap {
    display: block;
  }

  .ai-header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 10px 6px;
    color: #fff;
    text-align: left;
    background: transparent;
  }

  #ai-bubble {
    display: none !important;
  }

  #site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(6, 31, 58, 0.94);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    display: block !important;
    z-index: 100;
  }

  #site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Staggered Mobile Menu Animation */
  #site-nav.open ul li {
    opacity: 0;
    animation: primeSlideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  #site-nav.open ul li:nth-child(1) {
    animation-delay: 0.1s;
  }

  #site-nav.open ul li:nth-child(2) {
    animation-delay: 0.16s;
  }

  #site-nav.open ul li:nth-child(3) {
    animation-delay: 0.22s;
  }

  #site-nav.open ul li:nth-child(4) {
    animation-delay: 0.28s;
  }

  #site-nav.open ul li:nth-child(5) {
    animation-delay: 0.34s;
  }

  #site-nav.open ul li:nth-child(6) {
    animation-delay: 0.4s;
  }

  #site-nav.open ul li:nth-child(7) {
    animation-delay: 0.46s;
  }

  #site-nav.open ul li:nth-child(n+8) {
    animation-delay: 0.52s;
  }

  @keyframes primeSlideInRight {
    from {
      opacity: 0;
      transform: translateX(20px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  #site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .login {
    display: none;
  }

  .card-home {
    padding-top: 110px;
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .home-btn {
    grid-auto-flow: column;
  }

  .about-modern,
  .teacher,
  .footer-container,
  .contact {
    grid-template-columns: 1fr;
  }

  .news-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form,
  .contact-img {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .header-main {
    top: 10px;
    width: calc(100% - 20px);
  }

  section {
    padding: 64px 0;
  }

  .glass-section {
    border-radius: 16px;
    padding: 36px 20px;
  }

  .glass-section::before {
    left: 20px;
  }

  .news-container {
    grid-template-columns: 1fr;
  }

  #news .news-card img {
    height: 170px;
  }

  .news-card img {
    height: auto;
  }

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox-stage {
    max-width: 100%;
    gap: 10px;
  }

  .image-lightbox-img {
    max-height: calc(100vh - 110px);
    border-radius: 16px;
  }

  .image-lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .image-lightbox-caption {
    border-radius: 16px;
    font-size: 13px;
  }
}

/* ===== Source: about/about.css ===== */
.about-hero {
  position: relative;
  min-height: 52vh;
  background: linear-gradient(145deg, #04172f 0%, #0a2f5e 55%, #1f5fa8 100%);
  overflow: hidden;
  color: #fff;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 24%,
      rgba(20, 184, 166, 0.2),
      transparent 54%),
    radial-gradient(circle at 8% 78%, rgba(21, 101, 192, 0.22), transparent 52%);
  pointer-events: none;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 0 84px;
  max-width: 700px;
}

.about-hero-content .badge {
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.about-hero-content h1 {
  font-size: clamp(30px, 5.6vw, 58px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.about-hero-content h1 strong {
  display: block;
  background: linear-gradient(90deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero-content p {
  font-size: clamp(15px, 2vw, 18px);
  color: #c3d9f5;
  margin-bottom: 28px;
}

.about-overview {
  padding-top: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-info-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(13, 63, 120, 0.08);
}

.about-info-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.about-info-card p {
  color: var(--muted);
}

.fact-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.fact-list li {
  color: var(--muted);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7fbff;
  padding: 10px 12px;
}

.milestone-section {
  padding: 14px 0 20px;
  margin-top: 50px;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.milestone-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
}

.milestone-year {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  margin-bottom: 10px;
}

.milestone-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.milestone-card p {
  color: var(--muted);
}

.about-stats-section {
  background: linear-gradient(135deg, #0a2f5e 0%, #14559b 60%, #1f77cb 100%);
  padding: 70px 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.about-stat-item {
  color: #fff;
}

.about-stat-item strong {
  display: block;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-item span {
  color: #b8d4f5;
}

.about-cta {
  padding: 68px 0 90px;
}

.about-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.about-cta-box h2 {
  color: var(--primary);
  margin-bottom: 8px;
}

.about-cta-box p {
  color: var(--muted);
}

@media (max-width: 960px) {

  .about-grid,
  .milestone-grid,
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .about-hero-content {
    padding: 132px 0 66px;
  }

  .about-grid,
  .milestone-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== Source: contact/contact.css ===== */
.contact-hero {
  position: relative;
  min-height: 52vh;
  background: linear-gradient(145deg, #04172f 0%, #0a2f5e 55%, #1f5fa8 100%);
  overflow: hidden;
  color: #fff;
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 24%,
      rgba(20, 184, 166, 0.2),
      transparent 54%),
    radial-gradient(circle at 8% 78%, rgba(21, 101, 192, 0.24), transparent 52%);
  pointer-events: none;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 0 84px;
  max-width: 690px;
}

.contact-hero-content .badge {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.contact-hero-content h1 {
  font-size: clamp(30px, 5.5vw, 58px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.contact-hero-content h1 strong {
  display: block;
  background: linear-gradient(90deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero-content p {
  font-size: clamp(15px, 2vw, 18px);
  color: #c3d9f5;
  margin-bottom: 28px;
}

.contact-main {
  padding: 60px 0 90px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 10px 26px rgba(13, 63, 120, 0.08);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-card:nth-child(2) .contact-card-icon {
  background: linear-gradient(135deg, var(--accent), #0d9488);
}

.contact-card-text h3 {
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-card-text p,
.contact-card-text a {
  color: var(--muted);
}

.contact-card-text a:hover {
  color: var(--primary);
}

.contact-form-wrap {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(13, 63, 120, 0.09);
}

.contact-form-wrap h2 {
  color: var(--primary);
  margin-bottom: 14px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #93c5fd;
  border-color: var(--primary-2);
}

.contact-form .btn {
  width: 100%;
  margin-top: 2px;
}

.contact-auth-info {
  background: color-mix(in srgb, var(--surface) 82%, #ffffff 18%);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.contact-auth-prompt {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-auth-prompt-icon {
  width: 64px;
  height: 64px;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.contact-auth-prompt-title {
  margin-bottom: 12px;
  color: var(--text);
}

.contact-auth-prompt-text {
  color: var(--muted);
  margin-bottom: 24px;
}

.form-message {
  min-height: 24px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-hero-content {
    padding: 132px 0 64px;
  }

  .contact-form-wrap {
    padding: 20px;
  }
}

/* ===== Source: courses/courses.css ===== */
.courses-hero {
  position: relative;
  min-height: 52vh;
  background: linear-gradient(145deg, #04172f 0%, #0a2f5e 55%, #1f5fa8 100%);
  overflow: hidden;
  color: #fff;
}

.courses-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%,
      rgba(20, 184, 166, 0.18),
      transparent 55%),
    radial-gradient(circle at 10% 80%,
      rgba(21, 101, 192, 0.22),
      transparent 50%);
  pointer-events: none;
}

.courses-hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 0 80px;
  max-width: 680px;
}

.courses-hero-content .badge {
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  min-height: 36px;
}

.courses-hero-content h1 {
  font-size: clamp(30px, 5.5vw, 58px);
  line-height: 1.08;
  margin-bottom: 16px;
  font-weight: 700;
}

.courses-hero-content h1 strong {
  display: block;
  background: linear-gradient(90deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.courses-hero-content p {
  font-size: clamp(15px, 2vw, 18px);
  color: #c3d9f5;
  margin-bottom: 28px;
  max-width: 560px;
}

.courses-filter-section {
  padding-top: 60px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.mobile-courses-toggle {
  display: none;
  width: 100%;
  margin: 0 auto 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.mobile-courses-toggle i {
  transition: transform 0.2s ease;
}

.mobile-courses-toggle.expanded i {
  transform: rotate(180deg);
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(13, 63, 120, 0.28);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
  padding-bottom: 50px;
}

.course-card {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04) !important;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme='dark'] .course-card {
  background: rgba(15, 23, 42, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

.course-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12), 0 0 20px rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
}

.course-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  background: linear-gradient(135deg, #0d3f78 0%, #1565c0 100%);
  overflow: hidden;
}

.course-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.course-details-page-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
}

.course-details-page-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.course-img-wrap {
  position: relative;
  padding: 28px 20px 20px;
  background: linear-gradient(135deg, #0d3f78 0%, #1565c0 100%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.course-img-wrap.course-img-lang {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.course-img-wrap.course-img-science {
  background: linear-gradient(135deg, #6b21a8 0%, #a855f7 100%);
}

.course-img-wrap.course-img-tech {
  background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%);
}

.course-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.course-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Card body */
.course-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.course-body>p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.course-meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.course-meta li i {
  color: var(--accent);
}

.course-card-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(21, 101, 192, 0.12);
}

.course-card-toolbar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.course-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 140px;
  min-height: 40px;
  min-width: 0;
  font-size: 12px;
  padding: 8px 12px;
  text-align: center;
  line-height: 1.2;
}

.course-card-toolbar .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 100px;
  min-height: 40px;
  min-width: 0;
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

.home-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

:root[data-theme='dark'] .home-btn {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.home-btn a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.home-btn a:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1) translateX(-5px);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .home-btn {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

.course-enroll-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.course-enroll-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.course-enroll-note {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 52px;
}

.course-enroll-note:focus {
  outline: 2px solid #93c5fd;
  border-color: var(--primary-2);
}

.course-enroll-submit {
  align-self: flex-start;
}

.course-enrolled-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.course-enroll-guest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.course-enroll-hint {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}

.btn.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.course-card.hidden {
  display: none;
}

.course-card.mobile-collapsed-hidden {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.course-details-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.course-details-modal.active {
  display: block;
}

.course-details-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 23, 47, 0.65);
}

.course-details-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 24px));
  margin: 6vh auto 0;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 22px 44px rgba(5, 29, 58, 0.25);
}

.course-details-content {
  padding: 30px 26px;
}

.course-details-content h2 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: clamp(24px, 3vw, 33px);
}

.course-details-meta {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.course-details-meta li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.course-details-content p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.course-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.1);
  border: 1px solid rgba(21, 101, 192, 0.16);
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.course-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.course-details-main {
  display: grid;
  gap: 18px;
}

.course-details-meta {
  padding: 0;
  margin: 0;
}

.course-details-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(13, 63, 120, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.course-details-meta li i {
  color: var(--accent);
  margin-top: 3px;
}

.course-details-copy {
  padding: 18px;
  border-radius: 18px;
  background: rgba(13, 63, 120, 0.04);
  border: 1px solid var(--border);
}

.course-details-copy h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.course-details-copy p {
  margin: 0;
}

.course-teacher-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.course-teacher-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.course-teacher-card-head img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.course-teacher-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-teacher-card h3 {
  margin: 8px 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.course-teacher-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.course-teacher-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.course-teacher-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.course-teacher-bio {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.course-teacher-achievements {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.course-teacher-achievements h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.course-teacher-achievements ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.course-teacher-achievements li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.course-teacher-achievements li i {
  color: var(--primary-2);
  margin-top: 4px;
}

.course-teacher-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.course-teacher-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.course-details-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.course-details-close:hover {
  color: var(--primary);
}

.courses-stats-section {
  background: linear-gradient(135deg, #0a2f5e 0%, #14559b 60%, #1f77cb 100%);
  padding: 70px 0;
}

.courses-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  color: #fff;
}

.stat-num {
  display: block;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 15px;
  color: #b8d4f5;
  font-weight: 500;
}

.courses-cta-section {
  padding: 70px 0 90px;
}

.courses-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-content h2 {
  font-size: clamp(22px, 3vw, 34px);
  color: var(--primary);
  margin-bottom: 8px;
}

.cta-content p {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .courses-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .mobile-courses-toggle {
    display: inline-flex;
  }

  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-details-grid,
  .course-create-info-grid {
    grid-template-columns: 1fr;
  }

  .courses-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .courses-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .courses-hero-content {
    padding: 130px 0 60px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-card-media {
    aspect-ratio: 16 / 10;
  }

  .courses-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-details-content {
    padding: 24px 18px;
  }

  .course-create-guide,
  .course-create-teacher-card {
    padding: 18px;
  }

  .course-teacher-card-head,
  .course-create-teacher-media {
    align-items: flex-start;
  }

  .course-create-teacher-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== Source: news/new.css ===== */
.news {
  margin-top: 60px;
  margin-bottom: 100px;
}

.news-page {
  min-height: 100vh;
}

.news-hero {
  padding-top: 130px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #0f172a, #3b0764, #0284c7, #7e22ce, #0f172a);
  background-size: 400% 400%;
  animation: heroBgMove 8s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes heroBgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.news-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: floatGlow1 6s ease-in-out infinite alternate;
}

.news-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.4) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: floatGlow2 7s ease-in-out infinite alternate;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); filter: hue-rotate(0deg) blur(80px); opacity: 0.5; }
  100% { transform: translate(150px, 80px) scale(1.5); filter: hue-rotate(180deg) blur(80px); opacity: 1; }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1); filter: hue-rotate(0deg) blur(80px); opacity: 0.5; }
  100% { transform: translate(-120px, -100px) scale(1.6); filter: hue-rotate(-180deg) blur(80px); opacity: 1; }
}

:root[data-theme='dark'] .news-page .header-main {
  position: fixed;
  top: 10px;
  background: rgba(6, 31, 58, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

:root[data-theme='dark'] .news-page .nav-link {
  color: #ecf4ff;
}

.news-hero-content {
  margin-top: 50px;
  color: #fff;
  max-width: 700px;

}

.news-hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.news-hero-content p {
  color: #dbe9ff;
  font-size: 18px;
}

/* ===== Light-mode hero overrides ===== */
:root:not([data-theme='dark']) .news-hero {
  background: linear-gradient(135deg, #c5cdd8 0%, #b8c2d0 30%, #a8b5c6 60%, #bcc8d6 100%);
  background-size: 400% 400%;
  animation: heroBgMove 8s ease infinite;
}

:root:not([data-theme='dark']) .news-hero::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  animation: floatGlow1 6s ease-in-out infinite alternate;
}

:root:not([data-theme='dark']) .news-hero::after {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
  animation: floatGlow2 7s ease-in-out infinite alternate;
}

:root:not([data-theme='dark']) .news-hero-content h1 {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

:root:not([data-theme='dark']) .news-hero-content {
  color: #0f172a;
}

:root:not([data-theme='dark']) .news-hero-content p {
  color: #1e293b;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
}

:root:not([data-theme='dark']) .news-hero-content .btn-outline {
  color: var(--primary);
  border-color: var(--border);
}

/* ===== Menu — ALL pages light mode ===== */
:root:not([data-theme='dark']) .header-main {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

:root:not([data-theme='dark']) .header-main.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

:root:not([data-theme='dark']) .nav-link {
  color: #1e293b !important;
}

:root:not([data-theme='dark']) .nav-link.active {
  color: var(--primary) !important;
}

:root:not([data-theme='dark']) .theme-toggle {
  color: #475569 !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(148, 163, 184, 0.08) !important;
}

:root:not([data-theme='dark']) .theme-toggle:hover {
  background: rgba(148, 163, 184, 0.15) !important;
}

:root:not([data-theme='dark']) .page-inner .header-main:not(.scrolled) {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

:root:not([data-theme='dark']) .news-page .nav-link {
  color: #334155;
}

.comment-box {
  border-top: 1px solid var(--border);
  padding: 0 16px 16px;
  display: none;
}

.comment-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.course-create-form {
  flex-direction: column;
  align-items: stretch;
}

.course-create-form .comment-input,
.course-create-form select.form-control,
.course-create-form input[type="file"] {
  width: 100%;
  flex: none;
}

.course-create-shell {
  display: grid;
  gap: 24px;
}

.course-create-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.course-create-guide,
.course-create-teacher-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.course-create-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.1);
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-create-guide h2 {
  margin: 14px 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text);
}

.course-create-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.course-create-guide-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.course-create-guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13, 63, 120, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1.6;
}

.course-create-guide-list li i {
  color: #0f766e;
  margin-top: 4px;
}

.course-create-teacher-card {
  display: grid;
  gap: 16px;
}

.course-create-teacher-media {
  display: flex;
  align-items: center;
  gap: 14px;
}

.course-create-teacher-media img {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.course-create-teacher-media h3 {
  margin: 8px 0 4px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.course-create-teacher-media p {
  margin: 0;
  color: var(--muted);
}

.course-create-teacher-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.course-create-teacher-stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(13, 63, 120, 0.04);
  border: 1px solid var(--border);
}

.course-create-teacher-stat strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.course-create-teacher-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-create-teacher-bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.course-create-achievements {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.course-create-achievements h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.course-create-achievements ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.course-create-achievements li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: var(--text);
  line-height: 1.55;
}

.course-create-achievements li i {
  color: #b45309;
  margin-top: 4px;
}

.course-create-placeholder {
  color: var(--muted);
  font-size: 14px;
}

.comment-form .comment-label {
  display: block;
  margin-top: 6px;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

.comment-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.form-control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-control:focus {
  outline: 2px solid #93c5fd;
  border-color: var(--primary-2);
}

.comment-input:focus {
  outline: 2px solid #93c5fd;
  border-color: var(--primary-2);
}

.comment-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.comment-list li {
  background: transparent;
  border: none;
  color: inherit;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
}

.comment-empty {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
}

.all-news-wrap {
  margin-top: 26px;
  margin-bottom: 2rem;
  text-align: center;
}

.comment-trigger {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.comment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(8, 24, 43, 0.72);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.comment-modal.open {
  display: flex;
}

.comment-modal-dialog {
  width: min(1080px, 100%);
  height: min(86vh, 760px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #ffffff;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.comment-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.comment-media {
  width: 100%;
  height: 100%;
}

.comment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-panel {
  background: #f6f9ff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.comment-panel h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.comment-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  overflow: auto;
  flex: 1;
  padding-right: 6px;
}

.comment-modal-list li {
  display: inline-block;
  width: fit-content;
  max-width: min(100%, 420px);
  background: #ffffff;
  border: 1px solid #dbe8f9;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  word-break: break-word;
}

.comment-modal-empty {
  color: var(--muted);
  margin-bottom: 12px;
}

.comment-modal-form {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.extra-news {
  margin-top: 20px;
  display: none;
}

.extra-news.open {
  display: grid;
}

@media (max-width: 980px) {
  .news-hero {
    padding-top: 90px;
  }

  .news-hero-content {
    margin-top: 90px;
  }

  .comment-form {
    flex-direction: column;
  }

  .comment-modal-dialog {
    grid-template-columns: 1fr;
    height: min(90vh, 760px);
  }

  .comment-media {
    height: 32vh;
  }

  .comment-panel {
    min-height: 0;
  }

  .comment-modal-form {
    flex-direction: column;
  }
}

/* ===== Source: register/register.css ===== */
/* (global stiller birinchi blokda, bu yerda faqat register-xos stillar) */

.register-hero {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, #0d3f78 0%, #14559b 45%, #14b8a6 100%);
  color: #fff;
  text-align: center;
}

.register-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.register-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

/* вЂ”вЂ”вЂ” Ro'yxatdan o'tish kartochkasi вЂ”вЂ”вЂ” */
.register-section {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Aurora background for auth pages */
.register-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.register-card {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 30px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06) !important;
  position: relative;
  z-index: 1;
  animation: authCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

:root[data-theme='dark'] .register-card {
  background: rgba(15, 23, 42, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25) !important;
}

.register-card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}


.register-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s ease;
}

.register-card:hover .register-card-icon {
  transform: rotate(-5deg) scale(1.08);
}

.register-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.register-card .register-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.register-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.register-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 63, 120, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.register-chip i {
  color: var(--primary-2);
}

.register-form {
  display: grid;
  gap: 18px;
}

.register-field {
  display: grid;
  gap: 8px;
}

.register-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.register-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.register-form input,
.register-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-form input:focus,
.register-form select:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.register-form select {
  appearance: none;
  cursor: pointer;
  padding-right: 46px;
}

.register-select-wrap {
  position: relative;
  width: 100%;
}

.register-select-wrap select {
  display: block;
}

.register-select-wrap::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

/* ===== REGISTER CUSTOM GRADE DROPDOWN ===== */
.reg-custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.reg-cs-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.88);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
[data-theme='dark'] .reg-cs-trigger,
:root[data-theme='dark'] .reg-cs-trigger {
  background: var(--surface, #1e293b);
  border-color: var(--border, rgba(255,255,255,0.1));
}
.reg-custom-select[aria-expanded='true'] .reg-cs-trigger {
  border-radius: 12px 12px 0 0;
  border-color: var(--primary-2, #1565c0);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.15);
}

.reg-cs-icon {
  color: var(--primary-2, #1565c0);
  font-size: 14px;
  flex-shrink: 0;
}
[data-theme='dark'] .reg-cs-icon,
:root[data-theme='dark'] .reg-cs-icon {
  color: #7dd3fc;
}

.reg-cs-value {
  flex: 1;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.reg-cs-value.is-placeholder {
  color: var(--muted);
}

.reg-cs-arrow {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1);
}
.reg-custom-select[aria-expanded='true'] .reg-cs-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.reg-cs-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--primary-2, #1565c0);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(21,101,192,0.15), 0 4px 12px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(-6px) scaleY(0.97);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(.34,1.56,.64,1);
}
[data-theme='dark'] .reg-cs-dropdown,
:root[data-theme='dark'] .reg-cs-dropdown {
  background: var(--surface, #1e293b);
  border-color: rgba(125,211,252,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.3);
}
.reg-custom-select[aria-expanded='true'] .reg-cs-dropdown {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
}

/* Scrollbar */
.reg-cs-dropdown::-webkit-scrollbar { width: 4px; }
.reg-cs-dropdown::-webkit-scrollbar-track { background: transparent; }
.reg-cs-dropdown::-webkit-scrollbar-thumb {
  background: rgba(21,101,192,0.25);
  border-radius: 10px;
}
[data-theme='dark'] .reg-cs-dropdown::-webkit-scrollbar-thumb,
:root[data-theme='dark'] .reg-cs-dropdown::-webkit-scrollbar-thumb {
  background: rgba(125,211,252,0.3);
}

/* Group label */
.reg-cs-group-label {
  padding: 8px 16px 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-2, #1565c0);
  background: rgba(21,101,192,0.05);
  border-bottom: 1px solid rgba(21,101,192,0.07);
}
[data-theme='dark'] .reg-cs-group-label,
:root[data-theme='dark'] .reg-cs-group-label {
  color: #7dd3fc;
  background: rgba(125,211,252,0.07);
  border-bottom-color: rgba(125,211,252,0.1);
}

/* Option */
.reg-cs-option {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #1e293b);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
[data-theme='dark'] .reg-cs-option,
:root[data-theme='dark'] .reg-cs-option {
  color: #e2e8f0;
}
.reg-cs-option:hover,
.reg-cs-option.is-focused {
  background: rgba(21,101,192,0.07);
  color: #1565c0;
}
[data-theme='dark'] .reg-cs-option:hover,
[data-theme='dark'] .reg-cs-option.is-focused,
:root[data-theme='dark'] .reg-cs-option:hover,
:root[data-theme='dark'] .reg-cs-option.is-focused {
  background: rgba(125,211,252,0.1);
  color: #7dd3fc;
}
.reg-cs-option.is-selected {
  background: rgba(21,101,192,0.1);
  color: #1565c0;
  font-weight: 700;
}
[data-theme='dark'] .reg-cs-option.is-selected,
:root[data-theme='dark'] .reg-cs-option.is-selected {
  background: rgba(125,211,252,0.14);
  color: #7dd3fc;
}
.reg-cs-option:last-child { border-radius: 0 0 10px 10px; }
.reg-cs-option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.reg-cs-option.is-full {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  background: rgba(239, 68, 68, 0.05) !important;
}
.reg-cs-option.is-full:hover,
.reg-cs-option.is-full.is-focused {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}
.reg-cs-full-badge {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.register-field-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.register-parent-wrap {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(21, 101, 192, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.register-parent-wrap:has(input:checked) {
  border-color: var(--primary-2);
  background: rgba(21, 101, 192, 0.07);
}

.register-parent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.register-parent-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.register-parent-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.25s ease;
}

.register-parent-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.register-parent-toggle input:checked~.register-parent-switch {
  background: var(--primary-2);
}

.register-parent-toggle input:checked~.register-parent-switch::after {
  transform: translateX(20px);
}

.register-parent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.register-parent-label i {
  font-size: 15px;
  color: var(--primary-2);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.register-parent-toggle input:checked~.register-parent-label i {
  opacity: 1;
}

.register-parent-wrap .register-field-note {
  margin-top: 10px;
}

:root[data-theme='dark'] .register-parent-wrap {
  background: rgba(96, 165, 250, 0.04);
}

:root[data-theme='dark'] .register-parent-wrap:has(input:checked) {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.08);
}

:root[data-theme='dark'] .register-parent-switch {
  background: rgba(125, 180, 255, 0.2);
}

:root[data-theme='dark'] .register-parent-toggle input:checked~.register-parent-switch {
  background: #4d94ff;
}

.register-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.16);
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
}

.register-form .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 4px;
  box-shadow: 0 14px 28px rgba(13, 63, 120, 0.18);
}

.register-form .form-message {
  min-height: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  margin-top: -2px;
}

.register-submit-note {
  margin: -6px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.register-global-message {
  min-height: 22px;
  text-align: center;
  margin-top: -6px;
}

.register-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 20px;
}

.register-divider::before,
.register-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.register-divider span {
  font-size: 13px;
  color: var(--muted);
}

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

.register-signin a {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-2);
}

.register-signin a:hover {
  text-decoration: underline;
}

/* вЂ”вЂ”вЂ” Password toggle вЂ”вЂ”вЂ” */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap input {
  padding-right: 46px !important;
}

.pw-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.pw-toggle:hover {
  color: var(--primary-2);
}

/* Footer */
/* Redundant footer block removed */

.img2 {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a:hover {
  color: var(--primary);
}

.footer-cop p,
.footer-com p {
  font-size: 14px;
  color: var(--muted);
}

.footer-cop p a {
  color: inherit;
  text-decoration: none;
}

.footer-cop p a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  text-align: center;
  padding: 14px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(6, 31, 58, 0.96);
    border-radius: 14px;
    padding: 14px;
    display: none;
  }

  #site-nav.open {
    display: block;
  }

  #site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .login {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-main {
    width: calc(100% - 20px);
  }

  .register-hero {
    padding: 100px 0 36px;
  }

  .register-card {
    margin: 0 16px;
    padding: 28px 24px;
  }

  .register-field-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ===== Source: show/show.css ===== */
/* .sow-hero selectors removed — teacherShow now uses .news-hero */

.teachers-detail {
  padding-top: 60px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.detail-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 12px 30px rgba(13, 63, 120, 0.09);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-2);
}

.detail-content h2 {
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.12;
  color: var(--primary);
  margin-bottom: 12px;
}

.detail-content p {
  color: var(--muted);
  margin-bottom: 14px;
}

.detail-content .js-like-form {
  margin-bottom: 14px;
}

.detail-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-list li {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-list i {
  color: var(--accent);
}

.detail-image-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(145deg, #0a2f5e, #14559b 68%, #1f77cb);
  box-shadow: 0 12px 30px rgba(13, 63, 120, 0.15);
}

.detail-image-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-caption {
  padding: 16px 18px 20px;
}

.image-caption h3 {
  color: #fff;
  margin-bottom: 6px;
}

.image-caption p {
  color: #d7e8ff;
}

/* ===== Light-mode teacher-profile overrides ===== */
:root:not([data-theme='dark']) .detail-image-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 12px 30px rgba(13, 63, 120, 0.09);
}

:root:not([data-theme='dark']) .image-caption h3 {
  color: var(--text);
}

:root:not([data-theme='dark']) .image-caption p {
  color: var(--muted);
}

:root:not([data-theme='dark']) .news-hero .badge {
  background: rgba(13, 63, 120, 0.08);
  border: 1px solid rgba(13, 63, 120, 0.15);
  color: var(--primary);
}

.comments-section {
  padding: 68px 0 86px;
}

.comments-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  justify-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(13, 63, 120, 0.08);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-num {
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.comments-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.comments-list {
  display: grid;
  gap: 16px;
}

.comment-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 10px 26px rgba(13, 63, 120, 0.08);
}

.comment-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
}

.comment-avatar img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  flex-shrink: 0;
}

.comment-avatar-image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

.comment-avatar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  line-height: 1;
}

.comment-avatar.accent {
  background: linear-gradient(135deg, var(--accent), #0d9488);
}

button.comment-avatar.comment-avatar--btn {
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  text-align: inherit;
}

button.comment-avatar.comment-avatar--btn:hover {
  filter: brightness(1.06);
}

button.comment-avatar.comment-avatar--btn:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

.comment-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.comment-date {
  color: var(--muted);
  font-size: 13px;
}

.comment-body p {
  color: var(--muted);
  margin-bottom: 10px;
}

.comment-body {
  color: var(--muted);
  margin-bottom: 10px;
  flex: 1 1 0;
  min-width: 0;
}

.comment-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.comment-list li.comment-item:not(.comment-card) {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(219, 232, 249, 0.95);
  padding: 12px 12px;
  border-radius: 14px;
}

.comment-item-reply {
  margin-left: 48px;
  padding: 10px 12px;
  border-left: 3px solid rgba(21, 101, 192, 0.35);
  background: transparent !important;
  border: none !important;
  border-left: 3px solid rgba(21, 101, 192, 0.35) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.comment-item-reply .comment-meta {
  font-size: 0.85em;
}

.comment-item-reply .comment-meta strong {
  font-size: 0.9em;
}

.comment-item-reply .comment-body p {
  font-size: 0.9em;
  margin-bottom: 4px;
}

.comment-item-reply .comment-actions {
  gap: 6px;
}

.comment-item-reply .comment-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.comment-item-reply .comment-avatar-image {
  width: 28px;
  height: 28px;
}

.comment-replies-toggle {
  margin-top: 10px;
  flex: 0 0 100%;
  width: 100%;
  margin-left: 58px;
}

.comment-replies-toggle>summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  user-select: none;
  list-style: none;
}

.comment-replies-toggle>summary::-webkit-details-marker {
  display: none;
}

.comment-replies-toggle>summary::before {
  content: '\f107';
  font-family: 'Font Awesome 7 Free';
  font-weight: 900;
  transition: transform 0.2s ease;
}

.comment-replies-toggle[open]>summary::before {
  transform: rotate(180deg);
}

.comment-replies-toggle .comment-replies {
  margin-top: 10px;
  margin-left: 0;
  padding-left: 14px;
  border-left: 3px solid rgba(21, 101, 192, 0.25);
}

/* Super Admin: alov + yaltirash (harakatlanuvchi nur) */
.comment-card.comment-card--super-admin {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(251, 146, 60, 0.55);
  background-color: var(--surface);
  background-image: linear-gradient(145deg,
      rgba(255, 247, 237, 0.98) 0%,
      var(--surface) 45%,
      rgba(255, 251, 235, 0.92) 100%),
    linear-gradient(118deg,
      rgba(251, 146, 60, 0.12) 0%,
      rgba(255, 255, 255, 0.22) 22%,
      rgba(251, 191, 36, 0.28) 40%,
      rgba(255, 255, 255, 0.18) 58%,
      rgba(249, 115, 22, 0.15) 78%,
      rgba(254, 215, 170, 0.2) 100%);
  background-size: 100% 100%, 220% 220%;
  background-blend-mode: normal, soft-light;
  animation:
    comment-super-fire-glow 2.4s ease-in-out infinite,
    comment-super-bg-shimmer 5.5s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(251, 146, 60, 0.35),
    0 8px 28px rgba(234, 88, 12, 0.18);
}

.comment-card.comment-card--super-admin>* {
  position: relative;
  z-index: 2;
}

.comment-card.comment-card--super-admin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
      transparent 0%,
      rgba(255, 255, 255, 0) 36%,
      rgba(255, 255, 255, 0.42) 47%,
      rgba(254, 243, 199, 0.75) 50%,
      rgba(255, 255, 255, 0.38) 53%,
      transparent 64%,
      transparent 100%);
  background-size: 260% 100%;
  animation: comment-super-fire-sheen 2.1s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

@keyframes comment-super-bg-shimmer {

  0%,
  100% {
    background-position: 0% 0%, 12% 8%;
  }

  50% {
    background-position: 0% 0%, 88% 92%;
  }
}

/* Super admin comment matni ham ajralib turadi */
.comment-card.comment-card--super-admin .comment-meta strong {
  color: #9a3412;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.comment-card.comment-card--super-admin .comment-body p {
  color: #7c2d12;
  font-weight: 600;
}

.comment-card.comment-card--super-admin .comment-date {
  color: #b45309;
}

/* Admin: super admin bilan bir xil g‘oya — ranglar ko‘k */
.comment-card.comment-card--admin {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(145deg,
      rgba(239, 246, 255, 0.98) 0%,
      var(--surface) 45%,
      rgba(219, 234, 254, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.32),
    0 8px 28px rgba(29, 78, 216, 0.16);
  animation: comment-admin-glow 2.4s ease-in-out infinite;
}

.comment-card.comment-card--admin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg,
      transparent 40%,
      rgba(96, 165, 250, 0.14) 50%,
      transparent 60%);
  background-size: 200% 100%;
  animation: comment-super-fire-sheen 2.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.comment-card.comment-card--moderator {
  position: relative;
  overflow: hidden;
  border-color: rgba(13, 148, 136, 0.5);
  background: linear-gradient(145deg,
      rgba(240, 253, 250, 0.98) 0%,
      var(--surface) 45%,
      rgba(204, 251, 241, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(13, 148, 136, 0.32),
    0 8px 28px rgba(15, 118, 110, 0.16);
  animation: comment-moderator-glow 2.4s ease-in-out infinite;
}

.comment-card.comment-card--moderator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg,
      transparent 40%,
      rgba(45, 212, 191, 0.15) 50%,
      transparent 60%);
  background-size: 200% 100%;
  animation: comment-super-fire-sheen 2.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.comment-card.comment-card--teacher {
  position: relative;
  overflow: hidden;
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(145deg,
      rgba(238, 242, 255, 0.98) 0%,
      var(--surface) 48%,
      rgba(224, 231, 255, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.28),
    0 8px 26px rgba(79, 70, 229, 0.12);
}

.comment-card.comment-card--teacher::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg,
      transparent 42%,
      rgba(129, 140, 248, 0.12) 50%,
      transparent 58%);
  background-size: 200% 100%;
  animation: comment-super-fire-sheen 3s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

@keyframes comment-admin-glow {

  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(37, 99, 235, 0.38),
      0 8px 26px rgba(29, 78, 216, 0.14);
    border-color: rgba(59, 130, 246, 0.48);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(96, 165, 250, 0.42),
      0 10px 36px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.52);
  }
}

@keyframes comment-moderator-glow {

  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(13, 148, 136, 0.38),
      0 8px 26px rgba(15, 118, 110, 0.14);
    border-color: rgba(20, 184, 166, 0.48);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(45, 212, 191, 0.42),
      0 10px 36px rgba(13, 148, 136, 0.2);
    border-color: rgba(13, 148, 136, 0.52);
  }
}

@keyframes comment-super-fire-glow {

  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(251, 146, 60, 0.4),
      0 8px 26px rgba(234, 88, 12, 0.14),
      0 0 18px rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 146, 60, 0.5);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(251, 191, 36, 0.55),
      0 0 24px rgba(253, 186, 116, 0.35),
      0 10px 36px rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.45);
  }
}

@keyframes comment-super-fire-sheen {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .comment-card.comment-card--super-admin,
  .comment-card.comment-card--super-admin::after {
    animation: none !important;
  }
}

.comment-meta span {
  color: var(--muted);
  font-size: 13px;
}

.comment-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}

.comment-role-badge.role-super_admin {
  color: #fff;
  border: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  background: linear-gradient(90deg,
      #c2410c,
      #ea580c,
      #f97316,
      #fbbf24,
      #ef4444,
      #ea580c,
      #c2410c);
  background-size: 200% 100%;
  animation: comment-super-fire-badge 2s linear infinite;
}

@keyframes comment-super-fire-badge {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.comment-role-badge.role-admin {
  color: #fff;
  border: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  background: linear-gradient(90deg,
      #1e3a8a,
      #1d4ed8,
      #2563eb,
      #3b82f6,
      #60a5fa,
      #2563eb,
      #1e40af,
      #1e3a8a);
  background-size: 200% 100%;
  animation: comment-admin-badge-flow 2s linear infinite;
}

@keyframes comment-admin-badge-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.comment-role-badge.role-editor {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.28);
}

.comment-role-badge.role-moderator {
  color: #fff;
  border: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  background: linear-gradient(90deg,
      #0f766e,
      #0d9488,
      #14b8a6,
      #2dd4bf,
      #5eead4,
      #14b8a6,
      #0f766e);
  background-size: 200% 100%;
  animation: comment-moderator-badge-flow 2s linear infinite;
}

@keyframes comment-moderator-badge-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.comment-role-badge.role-teacher {
  color: #b45309;
  background: rgba(180, 83, 9, 0.14);
  border-color: rgba(180, 83, 9, 0.28);
}

.comment-role-badge.role-user,
.comment-role-badge.role-guest {
  color: #475569;
  background: rgba(71, 85, 105, 0.1);
  border-color: rgba(71, 85, 105, 0.22);
}

.comment-action-box {
  border: none;
  margin: 0;
}

.comment-action-box summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--muted);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 0.85rem;
  border: none;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s;
}

.comment-action-box summary:focus,
.comment-action-box summary:focus-visible,
.comment-action-box summary:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.comment-action-box summary:hover {
  transform: translateY(-1px);
  color: var(--primary);
}

.comment-action-box summary::-webkit-details-marker {
  display: none;
}

.comment-action-box summary::marker {
  display: none;
}

.comment-form-inline {
  display: flex !important;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.comment-form-inline .btn {
  width: auto !important;
}

.comment-form-inline input,
.comment-form-inline textarea {
  width: auto;
  flex: 1 1 auto;
  min-width: 220px;
}

.js-comment-reply-form-wrapper {
  margin-top: 10px;
}

.js-comment-reply-form-wrapper[hidden] {
  display: none;
}

.comment-delete-btn {
  background: transparent !important;
  border: none !important;
  color: var(--muted) !important;
  font-weight: 500;
  padding: 0 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem !important;
}

.comment-delete-btn:hover {
  color: #ef476f !important;
  transform: translateY(-1px);
}

.comment-reply {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0;
  transition: all 0.2s;
}

.comment-reply:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.comment-like {
  padding: 5px 11px;
  min-height: 32px;
  font-size: 0.8125rem;
  gap: 5px;
}

.comment-like.liked {
  color: #be123c;
}

.comment-form-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(13, 63, 120, 0.08);
  position: sticky;
  top: 96px;
}

.comment-form-box h3 {
  margin-bottom: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form input,
.comment-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid #93c5fd;
  border-color: var(--primary-2);
}

.comment-form .btn {
  width: 100%;
}

.comment-hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.form-message {
  color: #0f766e;
  font-weight: 600;
}

@media (max-width: 980px) {

  .detail-grid,
  .comments-wrapper,
  .comments-stats {
    grid-template-columns: 1fr;
  }

  .comment-form-box {
    position: static;
    order: -1;
  }
}

@media (max-width: 560px) {

  .detail-image-card img {
    height: 240px;
  }
}

/* ===== Source: signin/signin.css ===== */
/* (global stiller birinchi blokda, bu yerda faqat signin-xos stillar) */

.signin-hero {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, #0a2f5e 0%, #14559b 50%, #1a6bb5 100%);
  color: #fff;
  text-align: center;
}

.signin-hero h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.signin-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
}

/* вЂ”вЂ”вЂ” Sign-in kartocha вЂ”вЂ”вЂ” */
.signin-section {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Aurora background for auth pages */
.signin-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.signin-section::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.signin-card {
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 30px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06) !important;
  position: relative;
  z-index: 1;
  animation: authCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

:root[data-theme='dark'] .signin-card {
  background: rgba(15, 23, 42, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25) !important;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.signin-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s ease;
}

.signin-card:hover .signin-card-icon {
  transform: rotate(-5deg) scale(1.08);
}

.signin-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.signin-card .signin-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.signin-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.signin-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition: all 0.2s ease;
}

.signin-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: #fff;
}


.signin-form .forgot {
  font-size: 13px;
  color: var(--primary-2);
  text-align: right;
  margin-top: -6px;
}

.signin-form .forgot:hover {
  text-decoration: underline;
}

.signin-form .btn {
  margin-top: 10px;
  width: 100%;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.signin-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.signin-form .form-message {
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.signin-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 20px;
}

.signin-divider::before,
.signin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.signin-divider span {
  font-size: 13px;
  color: var(--muted);
}

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

.signin-register a {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-2);
}

.signin-register a:hover {
  text-decoration: underline;
}

/* вЂ”вЂ”вЂ” Password toggle вЂ”вЂ”вЂ” */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap input {
  padding-right: 46px !important;
}

.pw-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.pw-toggle:hover {
  color: var(--primary-2);
}

/* Footer */
/* Professional Elite Footer */
.footer {
  background: var(--surface);
  color: var(--text);
  padding-top: 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--primary), 
    #8b5cf6, 
    #ec4899, 
    #f59e0b, 
    var(--primary));
  background-size: 200% 100%;
}

.footer.active::before {
  animation: footerGradient 8s ease infinite;
}

@keyframes footerGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px var(--container-gutter, 20px) 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-brand .footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-brand .footer-logo:hover img {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.footer-brand .footer-logo span {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.footer-brand:hover .footer-desc {
  color: var(--text);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--muted);
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social-link i {
  position: relative;
  z-index: 1;
}

.social-link:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.social-link:hover::before {
  opacity: 1;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-title:hover::after {
  width: 60px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.footer-links a:hover::before {
  width: 16px;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(8px);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}

.footer-contact-list i {
  color: var(--primary);
  margin-top: 3px;
  transition: transform 0.3s ease;
}

.footer-contact-list li:hover i {
  transform: scale(1.2);
}

.footer-contact-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-map-action .btn-outline-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.footer-map-action .btn-outline-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.footer-map-action .btn-outline-footer i,
.footer-map-action .btn-outline-footer span {
  position: relative;
  z-index: 1;
}

.footer-map-action .btn-outline-footer:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.footer-map-action .btn-outline-footer:hover::before {
  opacity: 1;
}

.footer-bottom {
  padding: 24px 0;
  border-top: none;
  background: rgba(0, 0, 0, 0.02);
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    var(--primary) 20%,
    #8b5cf6 50%,
    var(--primary) 80%,
    transparent 100%);
  opacity: 0.4;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(6, 31, 58, 0.96);
    border-radius: 14px;
    padding: 14px;
    display: none;
  }

  #site-nav.open {
    display: block;
  }

  #site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .login {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-main {
    width: calc(100% - 20px);
  }

  .signin-hero {
    padding: 100px 0 36px;
  }

  .signin-card {
    margin: 0 16px;
    padding: 28px 24px;
  }
}

/* ===== Source: teachers/teachers.css ===== */
.teachers-hero {
  position: relative;
  min-height: 52vh;
  background: linear-gradient(145deg, #04172f 0%, #0a2f5e 55%, #1f5fa8 100%);
  overflow: hidden;
  color: #fff;
}

.teachers-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 24%,
      rgba(20, 184, 166, 0.2),
      transparent 55%),
    radial-gradient(circle at 12% 80%,
      rgba(21, 101, 192, 0.24),
      transparent 52%);
  pointer-events: none;
}

.teachers-hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 0 86px;
  max-width: 700px;
}

.teachers-hero-content .badge {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.teachers-hero-content h1 {
  font-size: clamp(30px, 5.5vw, 58px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.teachers-hero-content h1 strong {
  display: block;
  background: linear-gradient(90deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.teachers-hero-content p {
  font-size: clamp(15px, 2vw, 18px);
  color: #c3d9f5;
  margin-bottom: 28px;
}

.teachers-section {
  padding-top: 60px;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.teacher-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 26px rgba(13, 63, 120, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(13, 63, 120, 0.14);
}

.teacher-photo-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.teacher-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.teacher-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  position: relative;
  z-index: 10;
}

/* Ustozlar kartasidagi ulashish tugmasi — home sahifadagi ustozlar
   sektsiyasidagi btn-outline hover bilan bir xil effekt */
.teacher-card .teacher-actions .btn-outline,
.teacher-card .teacher-actions .share-btn {
  border-color: rgba(21, 101, 192, 0.3);
  color: var(--primary, #1565c0);
  background: transparent;
}

.teacher-card .teacher-actions .btn-outline:hover,
.teacher-card .teacher-actions .share-btn:hover {
  background: rgba(21, 101, 192, 0.12);
  border-color: rgba(21, 101, 192, 0.5);
  color: var(--primary, #1565c0);
}

:root[data-theme='dark'] .teacher-card .teacher-actions .btn-outline,
:root[data-theme='dark'] .teacher-card .teacher-actions .share-btn {
  border-color: rgba(125, 180, 255, 0.35);
  color: #e6eefb;
  background: rgba(125, 180, 255, 0.06);
}

:root[data-theme='dark'] .teacher-card .teacher-actions .btn-outline:hover,
:root[data-theme='dark'] .teacher-card .teacher-actions .share-btn:hover {
  background: rgba(125, 180, 255, 0.14);
  border-color: rgba(125, 180, 255, 0.6);
  color: #e6eefb;
}

/* Ustozlar show sahifasidagi ulashish tugmasi */
.teacher-detail-actions .btn-outline,
.teacher-detail-actions .share-btn {
  border-color: rgba(21, 101, 192, 0.3);
  color: var(--primary, #1565c0);
  background: transparent;
}

.teacher-detail-actions .btn-outline:hover,
.teacher-detail-actions .share-btn:hover {
  background: rgba(21, 101, 192, 0.12);
  border-color: rgba(21, 101, 192, 0.5);
  color: var(--primary, #1565c0);
}

:root[data-theme='dark'] .teacher-detail-actions .btn-outline,
:root[data-theme='dark'] .teacher-detail-actions .share-btn {
  border-color: rgba(125, 180, 255, 0.35);
  color: #e6eefb;
  background: rgba(125, 180, 255, 0.06);
}

:root[data-theme='dark'] .teacher-detail-actions .btn-outline:hover,
:root[data-theme='dark'] .teacher-detail-actions .share-btn:hover {
  background: rgba(125, 180, 255, 0.14);
  border-color: rgba(125, 180, 255, 0.6);
  color: #e6eefb;
}

/* Yangiliklar show sahifasidagi ulashish tugmasi */
.news-card .icon-link-actions .btn-outline,
.news-card .icon-link-actions .share-btn {
  border-color: rgba(21, 101, 192, 0.3);
  color: var(--primary, #1565c0);
  background: transparent;
}

.news-card .icon-link-actions .btn-outline:hover,
.news-card .icon-link-actions .share-btn:hover {
  background: rgba(21, 101, 192, 0.12);
  border-color: rgba(21, 101, 192, 0.5);
  color: var(--primary, #1565c0);
}

:root[data-theme='dark'] .news-card .icon-link-actions .btn-outline,
:root[data-theme='dark'] .news-card .icon-link-actions .share-btn {
  border-color: rgba(125, 180, 255, 0.35);
  color: #e6eefb;
  background: rgba(125, 180, 255, 0.06);
}

:root[data-theme='dark'] .news-card .icon-link-actions .btn-outline:hover,
:root[data-theme='dark'] .news-card .icon-link-actions .share-btn:hover {
  background: rgba(125, 180, 255, 0.14);
  border-color: rgba(125, 180, 255, 0.6);
  color: #e6eefb;
}

.teacher-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px 16px 0;
}

.teacher-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #0d3f78 0%, #1565c0 100%);
  flex-shrink: 0;
}

.avatar-green {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.avatar-purple {
  background: linear-gradient(135deg, #6b21a8 0%, #a855f7 100%);
}

.avatar-orange {
  background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%);
}

.avatar-cyan {
  background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
}

.avatar-pink {
  background: linear-gradient(135deg, #9f1239 0%, #ec4899 100%);
}

.teacher-top h3 {
  color: var(--primary);
  font-size: 19px;
  line-height: 1.2;
}

.teacher-role {
  color: var(--muted);
  font-size: 14px;
}

.teacher-desc {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 15px;
  padding-inline: 16px;
}

.teacher-meta {
  list-style: none;
  display: grid;
  gap: 8px;
  padding-inline: 16px;
  margin-bottom: 12px;
}

.teacher-meta li {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f7fbff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
}

.teacher-meta li i {
  color: var(--accent);
}

.teacher-achievements-preview {
  margin: 0 16px 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--primary);
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(202, 138, 4, 0.28);
  background: rgba(202, 138, 4, 0.08);
}

:root[data-theme='dark'] .teacher-achievements-preview {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.1);
}

.teacher-achievements-preview i {
  margin-right: 6px;
  color: #ca8a04;
}

.teacher-detail-lavozim {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.teacher-detail-summary {
  margin: 0 0 16px;
  line-height: 1.55;
  color: var(--muted);
}

.teacher-achievements-block {
  margin-top: 22px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(202, 138, 4, 0.35);
  background: linear-gradient(145deg, rgba(202, 138, 4, 0.1), rgba(13, 63, 120, 0.05));
  box-shadow: 0 10px 28px rgba(13, 63, 120, 0.08);
}

:root[data-theme='dark'] .teacher-achievements-block {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.12), rgba(15, 27, 46, 0.6));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.teacher-achievements-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.teacher-achievements-title i {
  margin-right: 8px;
  color: #ca8a04;
}

.teacher-achievements-list li i {
  color: #ca8a04;
}

.teaching-approach {
  margin-top: 70px;
  background: linear-gradient(135deg, #0a2f5e, #14559b 60%, #1f77cb);
  padding: 72px 0;
}

:root:not([data-theme='dark']) .teaching-approach {
  background: linear-gradient(135deg, #e8edf4 0%, #d6dfe8 50%, #e2e8f0 100%);
}

:root:not([data-theme='dark']) .approach-card {
  border-color: var(--border);
  background: var(--surface);
}

:root:not([data-theme='dark']) .approach-card h3,
:root:not([data-theme='dark']) .approach-card li {
  color: var(--text);
}

:root:not([data-theme='dark']) .approach-card p {
  color: var(--muted);
}

:root:not([data-theme='dark']) .approach-card li i {
  color: var(--primary, #3b82f6);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
}

.approach-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
}

.approach-card h3,
.approach-card p,
.approach-card li {
  color: #fff;
}

.approach-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.approach-card p {
  color: #d8e7ff;
  margin-bottom: 14px;
}

.approach-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.approach-card li {
  color: #e8f0ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.approach-card li i {
  color: #67e8f9;
}

.teachers-stats-section {
  padding: 72px 0;
}

.teachers-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.teachers-stat-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px 16px;
  box-shadow: 0 8px 24px rgba(13, 63, 120, 0.08);
}

.teachers-stat-item strong {
  display: block;
  font-size: clamp(33px, 4.8vw, 52px);
  line-height: 1;
  color: var(--primary);
  margin-bottom: 8px;
}

.teachers-stat-item span {
  color: var(--muted);
  font-weight: 600;
}

.teachers-cta-section {
  padding: 0 0 90px;
}

.teachers-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.teachers-cta h2 {
  color: var(--primary);
  margin-bottom: 8px;
}

.teachers-cta p {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .teachers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teachers-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .teachers-hero-content {
    padding: 132px 0 66px;
  }
}

@media (max-width: 620px) {

  .teachers-grid,
  .teachers-stats {
    grid-template-columns: 1fr;
  }
}

/* Shared Blade layout: prevent top gap above navbar */
.page-header {
  padding-top: 0 !important;
}

.page-header .header-main {
  top: 26px !important;
}

.page-header .header-main.scrolled {
  top: 18px !important;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Public posts page (post.blade.php) */
.post-filters {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.post-filter {
  min-width: 220px;
  flex: 1;
}

.post-filters .post-filter:first-child {
  flex: 2.2;
  min-width: 460px;
}

.post-filters .post-filter:first-child .comment-input {
  width: 100%;
}

@media (max-width: 980px) {
  .post-filters .post-filter:first-child {
    min-width: 100%;
  }
}

.post-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
  justify-items: stretch;
}

@media (min-width: 1050px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.post-card {
  width: 100%;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-3px);
}

/* Post detail: rasm yoki video (bir xil joyda) */
.post-detail-card .post-detail-media {
  width: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.post-detail-card .post-detail-media>img {
  width: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 2;
  height: auto;
}

.post-detail-card .post-detail-video-native {
  width: 100%;
  display: block;
  max-height: min(72vh, 720px);
  background: #0f172a;
  border-radius: 0;
}

.post-detail-card .post-video-embed--detail-hero {
  margin: 0;
  padding: 0;
}

.post-detail-card .post-detail-video-external {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 24px;
  background: rgba(13, 63, 120, 0.06);
  border: 1px dashed var(--border);
}

@media (max-width: 980px) {
  .post-detail-card .post-detail-media>img {
    height: auto;
  }
}

/* Post detail matni */
.post-detail-card .post-content {
  padding: 0 16px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.post-detail-card .badge {
  color: var(--primary);
  background: rgba(21, 101, 192, 0.12);
  border: 1px solid rgba(21, 101, 192, 0.28);
}

.post-admin-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.post-admin-actions form {
  margin: 0;
}

.post-admin-btn {
  min-width: 128px;
  min-height: 38px;
}

.post-admin-btn-edit {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.post-admin-btn-delete {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* Post kartasidagi kategoriyani ko'rinarli qilamiz */
.post-card .badge {
  color: var(--primary);
  background: rgba(21, 101, 192, 0.12);
  border: 1px solid rgba(21, 101, 192, 0.28);
}

.post-card .badge i {
  color: var(--accent);
}

.news-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.news-page-info {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.teachers-pagination {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.teachers-page-btn,
.teachers-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  transition: all 0.22s ease;
}

.teachers-page-btn {
  padding: 0 14px;
}

.teachers-page-number {
  min-width: 40px;
  padding: 0 10px;
}

.teachers-page-btn:hover,
.teachers-page-number:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.teachers-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.teachers-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.teachers-page-number.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 63, 120, 0.24);
}

.teachers-page-info {
  margin: 0 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

/* ============================================================
   TOAST NOTIFICATION — PRIME SENIOR DESIGN v2.0
   Glassmorphism + gradient accent + spring animation
   ============================================================ */

/* ---------- Container ---------- */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  pointer-events: none;
  /* safe area for phones */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base toast ---------- */
.toast {
  pointer-events: auto;
  position: relative;
  max-width: 400px;
  min-width: 300px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;

  /* Glass surface */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.65);

  /* Elevation */
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 10px 20px rgba(0, 0, 0, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  /* Spring-physics entrance */
  animation: toastSpringIn 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  will-change: transform, opacity;
}

/* Left gradient accent stripe */
.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: var(--toast-accent, #16a34a);
  z-index: 1;
}

/* Subtle inner glow on hover */
.toast::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  background: radial-gradient(ellipse at 20% 50%,
      var(--toast-glow, rgba(22, 163, 74, 0.06)),
      transparent 70%);
}

.toast:hover::after {
  opacity: 1;
}

.toast:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.06),
    0 16px 28px rgba(0, 0, 0, 0.11),
    0 40px 80px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
}

/* ---------- Inner layout ---------- */
.toast-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 44px 16px 18px;
}

/* ---------- Icon ---------- */
.toast-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  position: relative;
  /* shimmer ring */
  box-shadow: 0 0 0 0 var(--toast-ring, rgba(22, 163, 74, 0.3));
  animation: toastIconRing 2.2s ease-out 0.4s both;
}

@keyframes toastIconRing {
  0% {
    box-shadow: 0 0 0 0 var(--toast-ring, rgba(22, 163, 74, 0.4));
  }

  70% {
    box-shadow: 0 0 0 8px var(--toast-ring, rgba(22, 163, 74, 0));
  }

  100% {
    box-shadow: 0 0 0 0 var(--toast-ring, rgba(22, 163, 74, 0));
  }
}

/* Icon entrance bounce */
.toast-icon i {
  animation: toastIconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes toastIconBounce {
  from {
    transform: scale(0.4) rotate(-10deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ---------- Text ---------- */
.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
  line-height: 1.3;
}

.toast-msg {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

.toast-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.toast-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text, #0f172a);
  transition: all 0.2s;
  cursor: pointer;
}

.toast-action:hover {
  background: rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

:root[data-theme='dark'] .toast-action {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

:root[data-theme='dark'] .toast-action:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Close button ---------- */
.toast-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast:hover .toast-close {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.toast-close:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #475569;
  transform: translateY(-50%) rotate(90deg) scale(1.1);
}

/* ---------- Progress bar ---------- */
.toast-progress {
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.toast-progress-bar {
  height: 100%;
  border-radius: 0 3px 3px 0;
  animation: toastProgress var(--toast-duration, 3200ms) linear both;
  position: relative;
}

/* Moving shimmer on progress bar */
.toast-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: toastProgressShimmer 1.2s ease-in-out infinite;
}

@keyframes toastProgressShimmer {
  from {
    transform: translateX(-60px);
  }

  to {
    transform: translateX(60px);
  }
}

/* ---------- Type variants ---------- */
/* Success */
.toast-success {
  --toast-accent: #16a34a;
  --toast-glow: rgba(22, 163, 74, 0.08);
  --toast-ring: rgba(22, 163, 74, 0.35);
}

.toast-success .toast-icon {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
}

.toast-success .toast-title {
  color: #15803d;
}

.toast-success .toast-progress-bar {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

/* Error */
.toast-error {
  --toast-accent: #dc2626;
  --toast-glow: rgba(220, 38, 38, 0.08);
  --toast-ring: rgba(220, 38, 38, 0.35);
}

.toast-error .toast-icon {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
}

.toast-error .toast-title {
  color: #b91c1c;
}

.toast-error .toast-progress-bar {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

/* Warning */
.toast-warning {
  --toast-accent: #d97706;
  --toast-glow: rgba(217, 119, 6, 0.08);
  --toast-ring: rgba(245, 158, 11, 0.35);
}

.toast-warning .toast-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}

.toast-warning .toast-title {
  color: #92400e;
}

.toast-warning .toast-progress-bar {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

/* ---------- Exit animation ---------- */
.toast-out {
  animation: toastSpringOut 0.38s cubic-bezier(0.55, 0, 1, 0.45) both !important;
  pointer-events: none;
}

/* ---------- Keyframes ---------- */
@keyframes toastSpringIn {
  0% {
    opacity: 0;
    transform: translateX(calc(100% + 20px)) scale(0.88);
    filter: blur(4px);
  }

  45% {
    opacity: 1;
    filter: blur(0);
  }

  65% {
    transform: translateX(-8px) scale(1.02);
  }

  85% {
    transform: translateX(4px) scale(0.995);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes toastSpringOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }

  30% {
    transform: translateX(-6px) scale(1.01);
  }

  100% {
    opacity: 0;
    transform: translateX(calc(100% + 24px)) scale(0.9);
    filter: blur(3px);
  }
}

@keyframes toastProgress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* ---------- Dark mode ---------- */
:root[data-theme='dark'] .toast {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.35),
    0 32px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .toast:hover {
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.28),
    0 18px 32px rgba(0, 0, 0, 0.42),
    0 44px 88px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

:root[data-theme='dark'] .toast-msg {
  color: #94a3b8;
}

:root[data-theme='dark'] .toast-close {
  color: #64748b;
}

:root[data-theme='dark'] .toast-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

:root[data-theme='dark'] .toast-progress {
  background: rgba(255, 255, 255, 0.05);
}

/* Dark success */
:root[data-theme='dark'] .toast-success .toast-icon {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(74, 222, 128, 0.15));
  color: #4ade80;
}

:root[data-theme='dark'] .toast-success .toast-title {
  color: #4ade80;
}

:root[data-theme='dark'] .toast-success .toast-progress-bar {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

/* Dark error */
:root[data-theme='dark'] .toast-error .toast-icon {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(248, 113, 113, 0.15));
  color: #f87171;
}

:root[data-theme='dark'] .toast-error .toast-title {
  color: #f87171;
}

:root[data-theme='dark'] .toast-error .toast-progress-bar {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

/* Dark warning */
:root[data-theme='dark'] .toast-warning .toast-icon {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.22), rgba(251, 191, 36, 0.15));
  color: #fbbf24;
}

:root[data-theme='dark'] .toast-warning .toast-title {
  color: #fbbf24;
}

:root[data-theme='dark'] .toast-warning .toast-progress-bar {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .toast-container {
    right: 10px;
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 8px;
  }

  .toast {
    max-width: none;
    min-width: 0;
    border-radius: 16px;
  }

  .toast-body {
    padding: 14px 42px 14px 16px;
    gap: 12px;
  }

  .toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 15px;
  }
}

:root[data-theme='dark'] .page-header {
  background: transparent;
}

:root[data-theme='dark'] .header-main {
  background: rgba(7, 17, 31, 0.95);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(125, 180, 255, 0.1),
    0 8px 28px rgba(0, 0, 0, 0.45);
}

:root[data-theme='dark'] .header-main.scrolled {
  background: rgba(5, 12, 24, 0.97);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(125, 180, 255, 0.08),
    0 10px 32px rgba(0, 0, 0, 0.55);
}

@media (max-width: 980px) {
  :root[data-theme='dark'] #site-nav {
    background: rgba(8, 18, 32, 0.98);
  }
}

:root[data-theme='dark'] .btn-outline {
  border-color: rgba(125, 180, 255, 0.28);
  background: rgba(125, 180, 255, 0.08);
  color: #e6eefb;
}

:root[data-theme='dark'] .nav-link,
:root[data-theme='dark'] .nav-dropdown-toggle,
:root[data-theme='dark'] .theme-toggle,
:root[data-theme='dark'] .ai-header-toggle {
  background: transparent !important;
  background-color: transparent !important;
}

/* DARK MODE NAV-LINK PRIME FX */
:root[data-theme='dark'] .nav-link::before {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.05));
  border-color: rgba(14, 165, 233, 0.2);
}

:root[data-theme='dark'] .nav-link:hover::after,
:root[data-theme='dark'] .nav-link.active::after,
:root[data-theme='dark'] .nav-link:focus-visible::after {
  background: linear-gradient(90deg, transparent, #0ea5e9, #a855f7, transparent);
  box-shadow: 0 2px 18px rgba(14, 165, 233, 0.8), 0 -2px 10px rgba(168, 85, 247, 0.4);
}

:root[data-theme='dark'] .nav-link:hover,
:root[data-theme='dark'] .nav-link.active,
:root[data-theme='dark'] .nav-link:focus-visible {
  color: #fff;
  text-shadow: 0 0 14px rgba(14, 165, 233, 0.8), 0 0 24px rgba(168, 85, 247, 0.6);
}

:root[data-theme='dark'] .nav-dropdown-menu {
  background: rgba(8, 18, 32, 0.98);
  border-color: rgba(125, 180, 255, 0.18);
}

:root[data-theme='dark'] .news-card,
:root[data-theme='dark'] .about-card,
:root[data-theme='dark'] .about-info-card,
:root[data-theme='dark'] .milestone-card,
:root[data-theme='dark'] .contact-card,
:root[data-theme='dark'] .contact-form-wrap,
:root[data-theme='dark'] .course-card,
:root[data-theme='dark'] .detail-content,
:root[data-theme='dark'] .stat-card,
:root[data-theme='dark'] .comment-card,
:root[data-theme='dark'] .comment-form-box,
:root[data-theme='dark'] .teachers-stat-item,
:root[data-theme='dark'] .profile-activity-block,
:root[data-theme='dark'] .signin-card,
:root[data-theme='dark'] .register-card,
:root[data-theme='dark'] .glass-section {
  box-shadow: var(--shadow);
}

:root[data-theme='dark'] .fact-list li,
:root[data-theme='dark'] .teacher-meta li,
:root[data-theme='dark'] .course-meta li,
:root[data-theme='dark'] .filter-btn,
:root[data-theme='dark'] .mobile-courses-toggle,
:root[data-theme='dark'] .form-control,
:root[data-theme='dark'] .comment-modal-list li,
:root[data-theme='dark'] .profile-pending-email {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

:root[data-theme='dark'] .comment-panel,
:root[data-theme='dark'] .comment-modal-dialog,
:root[data-theme='dark'] .course-details-dialog,
:root[data-theme='dark'] .course-details-close {
  background: #0f1b2d;
  color: var(--text);
}

:root[data-theme='dark'] .post-detail-card .badge,
:root[data-theme='dark'] .post-card .badge,
:root[data-theme='dark'] .profile-role-badge:not(.comment-role-badge) {
  background: rgba(77, 148, 255, 0.14);
  border-color: rgba(77, 148, 255, 0.3);
  color: #9cc4ff;
}

:root[data-theme='dark'] .post-detail-card .post-detail-video-external {
  background: rgba(125, 180, 255, 0.08);
  border-color: rgba(125, 180, 255, 0.22);
}

:root[data-theme='dark'] .profile-tag {
  background: rgba(45, 212, 191, 0.14);
  color: #7ce8db;
}

:root[data-theme='dark'] .profile-course-status--published {
  color: #6ee7b7;
}

:root[data-theme='dark'] .profile-course-status--pending_verification {
  color: #fcd34d;
}

:root[data-theme='dark'] .profile-course-status--draft {
  color: #cbd5e1;
}

:root[data-theme='dark'] input,
:root[data-theme='dark'] textarea,
:root[data-theme='dark'] select,
:root[data-theme='dark'] .comment-input,
:root[data-theme='dark'] .signin-form input,
:root[data-theme='dark'] .register-form input,
:root[data-theme='dark'] .contact-form input,
:root[data-theme='dark'] .contact-form textarea,
:root[data-theme='dark'] .comment-form input,
:root[data-theme='dark'] .comment-form textarea {
  background: #0b1524;
  color: var(--text);
  border-color: var(--border);
  caret-color: var(--text);
}

:root[data-theme='dark'] input::placeholder,
:root[data-theme='dark'] textarea::placeholder,
:root[data-theme='dark'] .comment-input::placeholder {
  color: rgba(156, 177, 203, 0.72);
}

:root[data-theme='dark'] input:-webkit-autofill,
:root[data-theme='dark'] input:-webkit-autofill:hover,
:root[data-theme='dark'] input:-webkit-autofill:focus,
:root[data-theme='dark'] textarea:-webkit-autofill,
:root[data-theme='dark'] textarea:-webkit-autofill:hover,
:root[data-theme='dark'] textarea:-webkit-autofill:focus,
:root[data-theme='dark'] select:-webkit-autofill,
:root[data-theme='dark'] select:-webkit-autofill:hover,
:root[data-theme='dark'] select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  border-color: var(--border) !important;
  -webkit-box-shadow: 0 0 0 1000px #0b1524 inset !important;
  box-shadow: 0 0 0 1000px #0b1524 inset !important;
  transition: background-color 9999s ease-out 0s;
}

:root[data-theme='dark'] .profile-activity-link,
:root[data-theme='dark'] .teacher-top h3,
:root[data-theme='dark'] .course-body h3,
:root[data-theme='dark'] .cta-content h2,
:root[data-theme='dark'] .about-cta-box h2,
:root[data-theme='dark'] .contact-form-wrap h2,
:root[data-theme='dark'] .detail-content h2,
:root[data-theme='dark'] .profile-card h2,
:root[data-theme='dark'] .signin-card h2,
:root[data-theme='dark'] .register-card h2,
:root[data-theme='dark'] .about-info-card h3,
:root[data-theme='dark'] .milestone-card h3,
:root[data-theme='dark'] .contact-card-text h3,
:root[data-theme='dark'] .comment-panel h3,
:root[data-theme='dark'] .comment-form-box h3,
:root[data-theme='dark'] .teachers-cta h2,
:root[data-theme='dark'] .section-head h2,
:root[data-theme='dark'] .teacher h2 {
  color: #9cc4ff;
}

:root[data-theme='dark'] .about-highlight,
:root[data-theme='dark'] .teachers,
:root[data-theme='dark'] .teaching-approach,
:root[data-theme='dark'] .about-stats-section,
:root[data-theme='dark'] .courses-stats-section,
:root[data-theme='dark'] .teachers-hero,
:root[data-theme='dark'] .courses-hero,
:root[data-theme='dark'] .about-hero,
:root[data-theme='dark'] .contact-hero,
:root[data-theme='dark'] .signin-hero,
:root[data-theme='dark'] .register-hero {
  background: linear-gradient(145deg, #08111f 0%, #10233f 55%, #17365d 100%);
}

:root[data-theme='dark'] .glass-section {
  border-color: rgba(125, 180, 255, 0.14);
  background: linear-gradient(135deg,
      rgba(15, 27, 45, 0.96),
      rgba(9, 19, 33, 0.92)),
    radial-gradient(circle at 10% 8%, rgba(45, 212, 191, 0.08), transparent 45%);
}

:root[data-theme='dark'] .about-highlight h3,
:root[data-theme='dark'] .about-highlight p,
:root[data-theme='dark'] .about-stat-item,
:root[data-theme='dark'] .stat-item,
:root[data-theme='dark'] .teacher h2,
:root[data-theme='dark'] .teacher p,
:root[data-theme='dark'] .approach-card h3,
:root[data-theme='dark'] .approach-card p,
:root[data-theme='dark'] .approach-card li,
:root[data-theme='dark'] .approach-caption h3,
:root[data-theme='dark'] .approach-caption p,
:root[data-theme='dark'] .image-caption h3,
:root[data-theme='dark'] .image-caption p {
  color: #e6eefb;
}

:root[data-theme='dark'] .section-head p,
:root[data-theme='dark'] .about-card p,
:root[data-theme='dark'] .about-info-card p,
:root[data-theme='dark'] .milestone-card p,
:root[data-theme='dark'] .contact-card-text p,
:root[data-theme='dark'] .contact-card-text a,
:root[data-theme='dark'] .teacher-role,
:root[data-theme='dark'] .teacher-desc,
:root[data-theme='dark'] .news-card p,
:root[data-theme='dark'] .news-page-info,
:root[data-theme='dark'] .comment-date,
:root[data-theme='dark'] .comment-body,
:root[data-theme='dark'] .comment-body p,
:root[data-theme='dark'] .detail-content p,
:root[data-theme='dark'] .detail-list li,
:root[data-theme='dark'] .stat-label,
:root[data-theme='dark'] .teachers-cta p,
:root[data-theme='dark'] .cta-content p,
:root[data-theme='dark'] .about-cta-box p {
  color: var(--muted);
}

:root[data-theme='dark'] .comment-modal-list li,
:root[data-theme='dark'] .comment-list li.comment-item:not(.comment-card),
:root[data-theme='dark'] .teacher-photo-wrap,
:root[data-theme='dark'] .detail-image-card {
  border-color: var(--border);
}

:root[data-theme='dark'] .comment-list li.comment-item:not(.comment-card) {
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme='dark'] .comment-role-badge.role-user,
:root[data-theme='dark'] .comment-role-badge.role-guest {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
}

:root[data-theme='dark'] .comment-card.comment-card--super-admin .comment-meta strong {
  color: #fdba74;
  text-shadow: 0 0 14px rgba(251, 146, 60, 0.2);
}

:root[data-theme='dark'] .comment-card.comment-card--super-admin .comment-body p {
  color: #fed7aa;
}

:root[data-theme='dark'] .comment-card.comment-card--super-admin .comment-date {
  color: #fbbf24;
}

:root[data-theme='dark'] .comment-action-box summary,
:root[data-theme='dark'] .comment-delete-btn,
:root[data-theme='dark'] .comment-reply,
:root[data-theme='dark'] .icon-link .meta,
:root[data-theme='dark'] .comment-trigger {
  color: var(--muted) !important;
}

:root[data-theme='dark'] .like-btn:not(.liked),
:root[data-theme='dark'] .comment-like:not(.liked) {
  color: #94a3b8 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

:root[data-theme='dark'] .like-btn:hover:not(.liked),
:root[data-theme='dark'] .comment-like:hover:not(.liked) {
  color: #fda4af !important;
  border-color: rgba(251, 113, 133, 0.4) !important;
  background: rgba(251, 113, 133, 0.1) !important;
}

:root[data-theme='dark'] .like-btn.liked,
:root[data-theme='dark'] .comment-like.liked {
  color: #fda4af !important;
  border-color: rgba(251, 113, 133, 0.45) !important;
  background: linear-gradient(145deg, rgba(190, 24, 93, 0.35), rgba(157, 23, 77, 0.25)) !important;
  box-shadow: 0 2px 12px rgba(225, 29, 72, 0.2);
}

:root[data-theme='dark'] .like-btn.liked:hover,
:root[data-theme='dark'] .comment-like.liked:hover {
  color: #fecdd3 !important;
  border-color: rgba(254, 205, 211, 0.5) !important;
}

:root[data-theme='dark'] .bookmark-btn:not(.is-saved):not(.bookmark-btn--guest) {
  color: #94a3b8 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

:root[data-theme='dark'] .bookmark-btn:hover:not(.is-saved):not(.bookmark-btn--guest) {
  color: #93c5fd !important;
  border-color: rgba(147, 197, 253, 0.4) !important;
  background: rgba(59, 130, 246, 0.12) !important;
}

:root[data-theme='dark'] .bookmark-btn.is-saved {
  color: #bfdbfe !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.5), rgba(30, 64, 175, 0.32)) !important;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.18);
}

:root[data-theme='dark'] .bookmark-btn.is-saved:hover {
  color: #dbeafe !important;
  border-color: rgba(191, 219, 254, 0.5) !important;
}

:root[data-theme='dark'] a.bookmark-btn--guest {
  color: #94a3b8 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

:root[data-theme='dark'] a.bookmark-btn--guest:hover {
  color: #93c5fd !important;
}

:root[data-theme='dark'] .comment-action-box summary {
  background: rgba(77, 148, 255, 0.12);
  border-color: rgba(77, 148, 255, 0.22);
}

:root[data-theme='dark'] .badge,
:root[data-theme='dark'] select option {
  background-color: #0b1524 !important;
  color: #e6eefb !important;
}

:root[data-theme='dark'] .courses-hero-content .badge {
  background: rgba(77, 148, 255, 0.2) !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
  color: #eff6ff !important;
  padding: 10px 18px;
  min-height: 38px;
}

:root[data-theme='dark'] select {
  background-color: #0b1524 !important;
  color: #e6eefb !important;
}

/* Global Overrides for Inline Light Backgrounds */
:root[data-theme='dark'] [style*="background:#f8fafc"],
:root[data-theme='dark'] [style*="background:#f1f5f9"],
:root[data-theme='dark'] [style*="background:#ffffff"],
:root[data-theme='dark'] [style*="background: #f8fafc"],
:root[data-theme='dark'] [style*="background: #f1f5f9"],
:root[data-theme='dark'] [style*="background: #ffffff"],
:root[data-theme='dark'] [style*="background-color:#f8fafc"],
:root[data-theme='dark'] [style*="background-color:#f1f5f9"],
:root[data-theme='dark'] [style*="background-color:#ffffff"],
:root[data-theme='dark'] [style*="background-color: #f8fafc"],
:root[data-theme='dark'] [style*="background-color: #f1f5f9"],
:root[data-theme='dark'] [style*="background-color: #ffffff"] {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: #e6eefb !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

:root[data-theme='dark'] [style*="color:#475569"],
:root[data-theme='dark'] [style*="color: #475569"] {
  color: #94a3b8 !important;
}

/* Premium Button & Search Bar System */
.main-btn,
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.main-btn:hover,
.btn:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.main-btn:active,
.btn:active:not(.disabled) {
  transform: translateY(0) scale(0.96);
}

/* Light Mode Premium Buttons */
.primary-btn {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.2);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.admin-search-bar {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 63, 120, 0.08);
  padding: 15px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Dark Mode "Pro Max" Overrides */
:root[data-theme='dark'] .admin-search-bar {
  background: rgba(15, 27, 45, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

:root[data-theme='dark'] .primary-btn {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.2) !important;
  animation: btnGlowPulse 3s infinite ease-in-out;
}

:root[data-theme='dark'] .primary-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%) !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4) !important;
}

:root[data-theme='dark'] .dark-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

:root[data-theme='dark'] .dark-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

@keyframes btnGlowPulse {
  0% {
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  }

  100% {
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.2);
  }
}

:root[data-theme='dark'] .milestone-year,
:root[data-theme='dark'] .course-tag {
  color: #e6eefb;
}

/* Exam Page Layout Fixes (Header Overlap) */
.exam-page,
.exam-public-container {
  padding-top: 100px !important;
}

@media (max-width: 768px) {

  .exam-page,
  .exam-public-container {
    padding-top: 80px !important;
  }
}

:root[data-theme='dark'] .footer {
  background: #0f1b2d;
}

:root[data-theme='dark'] .footer-bottom {
  background: rgba(0, 0, 0, 0.3);
}

:root[data-theme='dark'] .footer-bottom::before {
  opacity: 0.7;
}

:root[data-theme='dark'] .footer-bottom-inner {
  color: #94a3b8;
}

:root[data-theme='dark'] .footer-bottom-links a {
  color: #94a3b8;
}

:root[data-theme='dark'] .footer-bottom-links a:hover {
  color: #fff;
}

/* Footer — reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer::before,
  .footer.active::before,
  .social-link,
  .footer-links a,
  .footer-links a::before,
  .footer-contact-list i,
  .footer-brand .footer-logo img,
  .footer-map-action .btn-outline-footer,
  .footer-map-action .btn-outline-footer::before {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Profil sahifasi */
.profile-hero {
  padding-bottom: 8px;
}

.profile-main {
  padding: 28px 0 56px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}

.profile-column-settings {
  position: sticky;
  top: 88px;
}

.profile-column-activity {
  min-width: 0;
}

/* Profil: chap kartochkalar to‘liq ustun bo‘yicha (signin-card max-width ni bekor qilish) */
.profile-main .profile-column-settings .signin-card.profile-card {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.profile-main .profile-column-settings .signin-card h2,
.profile-main .profile-column-settings .signin-card .signin-subtitle {
  text-align: left;
}

.profile-activity-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(13, 63, 120, 0.08);
  align-self: start;
}

.profile-activity-block:last-child {
  margin-bottom: 0;
}

.profile-activity-block h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-activity-block h3 i {
  opacity: 0.88;
}

.profile-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-activity-list li {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-activity-list li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.profile-activity-list.profile-activity-list-compact li {
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.profile-activity-list.profile-activity-list-compact li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.profile-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-meta-line {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 14px;
}

.profile-role-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(125, 180, 255, 0.1);
  color: var(--primary);
}

/* Profil: izohlardagi rollar bilan bir xil (super admin / admin animatsiya) */
.profile-meta-line .profile-role-badge.comment-role-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.profile-main .profile-column-settings .signin-card.profile-card.profile-card--super-admin {
  position: relative;
  overflow: hidden;
  border-color: rgba(251, 146, 60, 0.55);
  background: linear-gradient(145deg,
      rgba(255, 247, 237, 0.98) 0%,
      var(--surface) 45%,
      rgba(255, 251, 235, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(251, 146, 60, 0.35),
    0 8px 28px rgba(234, 88, 12, 0.18);
  animation: comment-super-fire-glow 2.4s ease-in-out infinite;
}

.profile-main .profile-column-settings .signin-card.profile-card.profile-card--super-admin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg,
      transparent 40%,
      rgba(251, 191, 36, 0.1) 50%,
      transparent 60%);
  background-size: 200% 100%;
  animation: comment-super-fire-sheen 2.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.profile-main .profile-column-settings .signin-card.profile-card.profile-card--super-admin>* {
  position: relative;
  z-index: 1;
}

.profile-main .profile-column-settings .signin-card.profile-card.profile-card--admin {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(145deg,
      rgba(239, 246, 255, 0.98) 0%,
      var(--surface) 45%,
      rgba(219, 234, 254, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.32),
    0 8px 28px rgba(29, 78, 216, 0.16);
  animation: comment-admin-glow 2.4s ease-in-out infinite;
}

.profile-main .profile-column-settings .signin-card.profile-card.profile-card--admin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg,
      transparent 40%,
      rgba(96, 165, 250, 0.14) 50%,
      transparent 60%);
  background-size: 200% 100%;
  animation: comment-super-fire-sheen 2.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.profile-main .profile-column-settings .signin-card.profile-card.profile-card--admin>* {
  position: relative;
  z-index: 1;
}

.profile-main .profile-column-settings .signin-card.profile-card.profile-card--moderator {
  position: relative;
  overflow: hidden;
  border-color: rgba(13, 148, 136, 0.55);
  background: linear-gradient(145deg,
      rgba(240, 253, 250, 0.98) 0%,
      var(--surface) 45%,
      rgba(204, 251, 241, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(13, 148, 136, 0.35),
    0 8px 28px rgba(15, 118, 110, 0.18);
  animation: profile-moderator-glow 2.4s ease-in-out infinite;
}

.profile-main .profile-column-settings .signin-card.profile-card.profile-card--moderator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg,
      transparent 40%,
      rgba(45, 212, 191, 0.12) 50%,
      transparent 60%);
  background-size: 200% 100%;
  animation: comment-super-fire-sheen 2.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.profile-main .profile-column-settings .signin-card.profile-card.profile-card--moderator>* {
  position: relative;
  z-index: 1;
}

@keyframes profile-moderator-glow {

  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(13, 148, 136, 0.4),
      0 8px 26px rgba(15, 118, 110, 0.14);
    border-color: rgba(20, 184, 166, 0.5);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(45, 212, 191, 0.5),
      0 10px 36px rgba(13, 148, 136, 0.22);
    border-color: rgba(13, 148, 136, 0.45);
  }
}

.profile-activity-body {
  margin: 0 0 8px;
  line-height: 1.5;
  color: var(--text);
}

.profile-activity-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--primary-2);
}

.profile-activity-link:hover {
  text-decoration: underline;
}

.profile-activity-date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.profile-activity-title {
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.profile-tag {
  display: inline-block;
  margin-top: 4px;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(45, 212, 191, 0.14);
  color: #0f766e;
}

.profile-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}

.profile-pending-email {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(125, 180, 255, 0.06);
  font-size: 14px;
}

.profile-pending-enrollment-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-pending-enrollment-item {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-pending-enrollment-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile-pending-enrollment-list {
  margin-bottom: 14px !important;
}

.profile-inline-form {
  display: inline-block;
}

.profile-reason-form {
  display: grid;
  gap: 10px;
  max-width: 620px;
}

.profile-reason-form label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.profile-reason-input {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 13px 15px;
  line-height: 1.55;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-reason-input:focus {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.profile-reason-input.is-invalid {
  border-color: rgba(239, 68, 68, 0.8);
}

.profile-field-error {
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
}

.profile-request-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

:root[data-theme='dark'] .profile-reason-input {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.26);
}

.profile-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Profil: imtihon natijalari statistika va kartalar */
.profile-exam-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.profile-exam-stat-card {
  text-align: center;
  padding: 16px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.profile-exam-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-exam-stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

.profile-exam-stat--primary .profile-exam-stat-num {
  color: var(--primary-2);
}

.profile-exam-stat--success .profile-exam-stat-num {
  color: #16a34a;
}

.profile-exam-stat--danger .profile-exam-stat-num {
  color: #dc2626;
}

.profile-exam-stat--info .profile-exam-stat-num {
  color: #0ea5e9;
}

.profile-results-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-exam-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-exam-result-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-exam-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 63, 120, 0.1);
}

.profile-exam-result-card.is-pass {
  border-left: 4px solid #16a34a;
}

.profile-exam-result-card.is-fail {
  border-left: 4px solid #dc2626;
}

.profile-exam-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}

.profile-exam-result-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.profile-exam-result-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-exam-result-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-pass {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.badge-fail {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.profile-exam-result-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.profile-exam-result-metric {
  text-align: center;
  padding: 12px 8px;
  background: var(--surface);
}

.profile-exam-result-metric-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.profile-exam-result-metric-val small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.profile-exam-result-metric-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}

:root[data-theme='dark'] .profile-exam-stat--success .profile-exam-stat-num {
  color: #4ade80;
}

:root[data-theme='dark'] .profile-exam-stat--danger .profile-exam-stat-num {
  color: #f87171;
}

:root[data-theme='dark'] .profile-exam-stat--info .profile-exam-stat-num {
  color: #38bdf8;
}

:root[data-theme='dark'] .badge-pass {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
}

:root[data-theme='dark'] .badge-fail {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
}

@media (max-width: 640px) {
  .profile-exam-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-exam-result-bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-exam-result-top {
    flex-direction: column;
  }
}

@media print {
  .profile-exam-result-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

.profile-toolbar {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-badge-pending {
  margin-left: 0;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.profile-success-message {
  color: #0f766e;
  font-weight: 600;
  margin-bottom: 16px;
}

.signin-card.profile-enrollments-card {
  max-width: 1200px !important;
  width: 100%;
}

.profile-enrollments-card {
  max-width: 1200px;
  width: 100%;
}

.profile-table-wrap {
  overflow-x: auto;
}

.profile-enrollments-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-enrollments-table thead tr {
  text-align: left;
  border-bottom: 1px solid var(--border-strong);
}

.profile-enrollments-table tbody tr {
  border-bottom: 1px solid var(--border-soft);
}

.profile-enrollments-table th,
.profile-enrollments-table td {
  padding: 10px;
  vertical-align: top;
}

.profile-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.profile-btn-danger {
  border-color: #dc2626;
  color: #b91c1c;
}

.profile-btn-danger:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: #dc2626;
  color: #991b1b;
}

/* Taqvim stillari: temp/css/calendar-public.css (umumiy) */

:root[data-theme='dark'] .profile-main .signin-card.profile-card,
:root[data-theme='dark'] .profile-main .profile-activity-block {
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.98), rgba(10, 19, 33, 0.98));
  border-color: rgba(125, 180, 255, 0.14);
}

:root[data-theme='dark'] .profile-activity-list li {
  border-bottom-color: rgba(125, 180, 255, 0.12);
}

:root[data-theme='dark'] .profile-pending-enrollment-item {
  border-bottom-color: rgba(125, 180, 255, 0.12);
}

:root[data-theme='dark'] .profile-badge-pending {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

:root[data-theme='dark'] .profile-success-message {
  color: #5eead4;
}

:root[data-theme='dark'] .profile-btn-danger {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

:root[data-theme='dark'] .profile-btn-danger:hover {
  background: rgba(220, 38, 38, 0.18);
  color: #fee2e2;
}

:root[data-theme='dark'] .profile-pending-email strong,
:root[data-theme='dark'] .profile-activity-title,
:root[data-theme='dark'] .profile-main label {
  color: var(--text);
}

.profile-course-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: capitalize;
}

.profile-course-status--published {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.profile-course-status--pending_verification {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.profile-course-status--draft {
  background: rgba(107, 114, 128, 0.2);
  color: #374151;
}

.profile-enroll-note {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-column-settings {
    position: static;
  }
}

/* ——— Onlayn imtihon (UI + anti-copy shell) ——— */
.exam-page {
  padding-bottom: 48px;
}

.exam-page-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

.exam-hero {
  text-align: center;
  padding: 28px 20px 8px;
}

.exam-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-2);
  background: rgba(21, 101, 192, 0.1);
  border: 1px solid rgba(21, 101, 192, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.exam-hero h1,
.exam-page h1.exam-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--text);
}

.exam-hero-lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 20px;
}

/* Imtihonlar: filtr (2 qator, sahifani yangilamasdan) */
.exam-filter-panel {
  margin-top: 12px;
  margin-bottom: 6px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--card-bg, rgba(255, 255, 255, 0.88));
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(13, 63, 120, 0.07);
}

.exam-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 14px;
}

.exam-filter-row:last-child {
  margin-bottom: 0;
}

.exam-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.exam-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.exam-filter-input,
.exam-filter-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg, #fff);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.exam-filter-input:focus,
.exam-filter-select:focus {
  outline: none;
  border-color: rgba(21, 101, 192, 0.45);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.exam-filter-count {
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.exam-filter-zero {
  margin-top: 16px;
  padding: 22px 18px;
  border-radius: 14px;
  text-align: center;
  border: 1px dashed var(--border);
  background: rgba(13, 63, 120, 0.04);
}

:root[data-theme='dark'] .exam-filter-panel {
  background: rgba(30, 41, 59, 0.75);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

:root[data-theme='dark'] .exam-filter-zero {
  background: rgba(15, 23, 42, 0.5);
}

@media (max-width: 640px) {
  .exam-filter-row {
    grid-template-columns: 1fr;
  }
}

.exam-grid {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.exam-card {
  position: relative;
  border-radius: 16px;
  padding: 22px 22px 20px;
  background: var(--card-bg, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(13, 63, 120, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-2), var(--accent, #0ea5e9));
  opacity: 0.95;
}

.exam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(13, 63, 120, 0.12);
}

/* Sinf tanlash (grade picker) — imtihon formasi */
.grade-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.grade-picker-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grade-picker-group:hover {
  border-color: var(--primary-2, #1565c0);
  box-shadow: 0 2px 10px rgba(21, 101, 192, 0.08);
}

.grade-picker-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0;
  margin: 0 0 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  font-family: inherit;
  transition: color 0.15s ease;
}

.grade-picker-group-btn:hover {
  color: var(--primary-2, #1565c0);
}

.grade-picker-group-btn i {
  transition: opacity 0.15s ease;
}

.grade-picker-group-btn:hover i {
  opacity: 1 !important;
}

.grade-picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.grade-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  min-width: 68px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.grade-picker-label:hover {
  color: var(--primary-2, #1565c0);
}

.grade-picker-label input[type="checkbox"] {
  accent-color: var(--primary-2, #1565c0);
  width: 16px;
  height: 16px;
}

:root[data-theme='dark'] .grade-picker-group {
  background: var(--surface, #0f1b2d);
  border-color: var(--border, #22334a);
}

:root[data-theme='dark'] .grade-picker-group:hover {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.1);
}

:root[data-theme='dark'] .grade-picker-group-btn {
  color: var(--text, #e6eefb);
}

:root[data-theme='dark'] .grade-picker-group-btn:hover {
  color: #93c5fd;
}

:root[data-theme='dark'] .grade-picker-label {
  color: var(--text, #e6eefb);
}

:root[data-theme='dark'] .grade-picker-label:hover {
  color: #93c5fd;
}

/* Sinf tanlash — jadval (imtihon: admin / ustoz) */
.exam-grade-field .exam-grade-help {
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.5;
}

.grade-matrix-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(13, 63, 120, 0.06);
}

.grade-matrix-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(21, 101, 192, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.grade-matrix-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.grade-matrix-hint i {
  margin-top: 2px;
  opacity: 0.75;
  color: var(--primary-2, #1565c0);
}

.grade-matrix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.grade-matrix-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.grade-matrix-btn:hover {
  border-color: var(--primary-2, #1565c0);
  color: var(--primary-2, #1565c0);
  background: rgba(21, 101, 192, 0.06);
}

.grade-matrix-btn--primary {
  background: linear-gradient(135deg, var(--primary-2, #1565c0), #0d47a1);
  color: #fff;
  border-color: transparent;
}

.grade-matrix-btn--primary:hover {
  color: #fff;
  filter: brightness(1.05);
  border-color: transparent;
}

.grade-matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.grade-matrix {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}

.grade-matrix thead th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text);
}

.grade-matrix th,
.grade-matrix td {
  border: 1px solid var(--border);
  padding: 0;
  vertical-align: middle;
  text-align: center;
}

.grade-matrix thead th.grade-matrix-corner {
  position: sticky;
  left: 0;
  z-index: 3;
  box-shadow: 4px 0 8px -4px rgba(13, 63, 120, 0.12);
}

.grade-matrix-corner {
  width: 56px;
  min-width: 56px;
  background: #f1f5f9 !important;
}

.grade-matrix-corner-inner {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 10px 6px;
}

.grade-matrix tbody th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 4px 0 8px -4px rgba(13, 63, 120, 0.12);
}

.grade-matrix-row-head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 6px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-2, #1565c0);
  font-family: inherit;
  transition: background 0.15s ease;
}

.grade-matrix-row-head:hover {
  background: rgba(21, 101, 192, 0.12);
}

.grade-matrix-col-head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-2, #1565c0);
  font-family: inherit;
  transition: background 0.15s ease;
}

.grade-matrix-col-head:hover {
  background: rgba(21, 101, 192, 0.08);
}

.grade-matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}

.grade-matrix-cell input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-2, #1565c0);
  cursor: pointer;
}

.grade-matrix-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root[data-theme='dark'] .grade-matrix-card {
  background: var(--surface, #0f1b2d);
  border-color: var(--border, #22334a);
  box-shadow: none;
}

:root[data-theme='dark'] .grade-matrix-toolbar {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.08) 0%, transparent 100%);
  border-bottom-color: var(--border, #22334a);
}

:root[data-theme='dark'] .grade-matrix thead th {
  background: rgba(15, 27, 45, 0.95);
}

:root[data-theme='dark'] .grade-matrix-corner,
:root[data-theme='dark'] .grade-matrix-row-head {
  background: rgba(15, 27, 45, 0.98) !important;
}

:root[data-theme='dark'] .grade-matrix-row-head:hover {
  background: rgba(96, 165, 250, 0.15) !important;
}

:root[data-theme='dark'] .grade-matrix-col-head:hover {
  background: rgba(96, 165, 250, 0.12);
}

:root[data-theme='dark'] .grade-matrix-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border, #22334a);
  color: var(--text, #e6eefb);
}

:root[data-theme='dark'] .grade-matrix-btn:hover {
  border-color: rgba(96, 165, 250, 0.45);
  color: #93c5fd;
}

.exam-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.35;
}

.exam-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.exam-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(13, 63, 120, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
}

.exam-card-grade-note {
  margin: -4px 0 16px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(13, 63, 120, 0.1);
  background: rgba(13, 63, 120, 0.04);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.exam-card-grade-note i {
  color: var(--primary-2);
}

.exam-card-grade-note strong {
  color: var(--text);
  font-weight: 700;
}

.exam-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.exam-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(21, 101, 192, 0.45);
  color: #fff;
}

.exam-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary-2);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.exam-btn-secondary:hover {
  background: rgba(21, 101, 192, 0.08);
  border-color: var(--primary-2);
  color: var(--primary-2);
}

.exam-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(13, 63, 120, 0.03);
}

.exam-tag-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

/* Session: sticky header + bitta savol (qadam) */
.exam-session-wrap {
  padding-bottom: 100px;
}

.exam-session-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -16px 20px;
  padding: 14px 16px 16px;
  border-radius: 0 0 16px 16px;
  border: 1px solid var(--border);
  border-top: none;
  background: #f1f5f9;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1);
}

.exam-session-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.exam-session-header-row--2 {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  align-items: center;
}

.exam-session-title-block {
  flex: 1;
  min-width: 0;
}

.exam-session-exam-name {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0d3f78;
}

.exam-session-step-line {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.exam-progress-block--full {
  flex: 1;
  min-width: 200px;
  max-width: none;
}

.exam-step-stack {
  min-height: 180px;
}

.exam-step[hidden] {
  display: none !important;
}

.exam-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.exam-btn-submit-final {
  width: 100%;
  justify-content: center;
}

@media (min-width: 601px) {
  .exam-btn-submit-final {
    width: auto;
    margin-left: auto;
  }
}

.exam-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.exam-card--locked {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.96), rgba(255, 244, 214, 0.92));
}

.exam-card--locked::before {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.exam-card--locked:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(180, 83, 9, 0.16);
}

.exam-card-lock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(255, 247, 237, 0.96);
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.14);
}

.exam-card-lock-badge i {
  animation: exam-lock-pulse 1.9s ease-in-out infinite;
}

.exam-card-locked-box {
  margin-top: 6px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(245, 158, 11, 0.38);
  background: rgba(255, 255, 255, 0.62);
}

.exam-card-locked-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #92400e;
  font-weight: 800;
  font-size: 14px;
}

.exam-card-locked-text {
  margin: 0;
  color: #7c5a18;
  font-size: 13px;
  line-height: 1.6;
}

.exam-btn-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(255, 255, 255, 0.82);
  color: #b45309;
  font-size: 14px;
  font-weight: 700;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.exam-hero-hint {
  color: var(--muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes exam-lock-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

:root[data-theme='dark'] .exam-session-header {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

:root[data-theme='dark'] .exam-session-header-row--2 {
  border-top-color: rgba(148, 163, 184, 0.22);
}

:root[data-theme='dark'] .exam-session-exam-name {
  color: #93c5fd;
}

:root[data-theme='dark'] .exam-session-step-line {
  color: #f1f5f9;
}

/* Eski bar (kerak bo‘lsa zaxira) */
.exam-session-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -16px 20px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.exam-timer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exam-timer-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  font-size: 18px;
}

.exam-timer-digits {
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  line-height: 1;
  transition: color 0.3s ease;
}

.exam-timer-digits.is-warning {
  color: #b45309;
}

.exam-timer-digits.is-critical {
  color: #dc2626;
  animation: examTimerPulse 1s ease-in-out infinite;
}

@keyframes examTimerPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

:root[data-theme='dark'] .exam-timer-digits {
  color: #f8fafc;
}

:root[data-theme='dark'] .exam-timer-digits.is-warning {
  color: #fbbf24;
}

:root[data-theme='dark'] .exam-timer-digits.is-critical {
  color: #fca5a5;
}

.exam-timer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 800;
}

:root[data-theme='dark'] .exam-timer-label {
  color: #94a3b8;
}

.exam-progress-block {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
}

.exam-progress-label {
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

:root[data-theme='dark'] .exam-progress-label {
  color: #e2e8f0;
}

.exam-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(13, 63, 120, 0.12);
  overflow: hidden;
}

.exam-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-2), #22c55e);
  transition: width 0.35s ease;
}

.exam-secure-note {
  font-size: 12px;
  color: #334155;
  max-width: 260px;
  line-height: 1.4;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.exam-secure-note i {
  color: #1565c0;
  margin-top: 2px;
  flex-shrink: 0;
}

.exam-secure-note span {
  color: #334155;
}

.exam-secure-stack {
  display: grid;
  gap: 10px;
  max-width: 320px;
}

.exam-violation-panel {
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(255, 251, 235, 0.85);
}

.exam-violation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
}

.exam-violation-head strong {
  color: #b45309;
  font-size: 13px;
}

.exam-violation-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(245, 158, 11, 0.14);
}

.exam-violation-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  transition: width 0.25s ease;
}

.exam-violation-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #9a3412;
  font-weight: 700;
}

.exam-violation-panel.is-warning {
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(255, 247, 237, 0.9);
}

.exam-violation-panel.is-danger {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(254, 242, 242, 0.92);
}

.exam-violation-panel.is-danger .exam-violation-head,
.exam-violation-panel.is-danger .exam-violation-head strong,
.exam-violation-panel.is-danger .exam-violation-note {
  color: #b91c1c;
}

:root[data-theme='dark'] .exam-secure-note,
:root[data-theme='dark'] .exam-secure-note span {
  color: #e2e8f0;
}

:root[data-theme='dark'] .exam-secure-note i {
  color: #7dd3fc;
}

:root[data-theme='dark'] .exam-violation-panel {
  background: rgba(69, 26, 3, 0.34);
  border-color: rgba(245, 158, 11, 0.18);
}

:root[data-theme='dark'] .exam-violation-head,
:root[data-theme='dark'] .exam-violation-head strong,
:root[data-theme='dark'] .exam-violation-note {
  color: #fde68a;
}

:root[data-theme='dark'] .exam-violation-track {
  background: rgba(245, 158, 11, 0.12);
}

:root[data-theme='dark'] .exam-violation-panel.is-warning {
  background: rgba(120, 53, 15, 0.3);
}

:root[data-theme='dark'] .exam-violation-panel.is-danger {
  background: rgba(69, 10, 10, 0.42);
  border-color: rgba(248, 113, 113, 0.24);
}

:root[data-theme='dark'] .exam-violation-panel.is-danger .exam-violation-head,
:root[data-theme='dark'] .exam-violation-panel.is-danger .exam-violation-head strong,
:root[data-theme='dark'] .exam-violation-panel.is-danger .exam-violation-note {
  color: #fecaca;
}

.exam-q-card {
  border-radius: 14px;
  padding: 20px 20px 18px;
  margin-bottom: 16px;
  background: var(--card-bg, rgba(255, 255, 255, 0.95));
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(13, 63, 120, 0.06);
}

.exam-q-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.exam-q-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
}

.exam-q-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.exam-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  margin: 0;
}

.exam-option:hover {
  border-color: rgba(21, 101, 192, 0.45);
  background: rgba(21, 101, 192, 0.04);
}

.exam-option:has(input:checked) {
  border-color: var(--primary-2);
  background: rgba(21, 101, 192, 0.1);
  box-shadow: 0 0 0 1px rgba(21, 101, 192, 0.2);
}

.exam-option input[type='radio'] {
  margin-top: 3px;
  accent-color: var(--primary-2);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.exam-option-body {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.exam-option-label {
  font-weight: 800;
  color: var(--primary-2);
  margin-right: 6px;
}

.exam-question-media {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.exam-question-media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
}

.exam-text-answer-block {
  display: grid;
  gap: 10px;
}

.exam-text-answer-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.exam-text-answer-field {
  width: 100%;
  min-height: 180px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.exam-text-answer-field:focus {
  outline: none;
  border-color: rgba(21, 101, 192, 0.55);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
}

.exam-answer-save-state {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.exam-answer-save-state.is-saving {
  color: #2563eb;
}

.exam-answer-save-state.is-saved {
  color: #059669;
}

.exam-answer-save-state.is-error {
  color: #dc2626;
}

.exam-submit-row {
  margin-top: 28px;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Anti-copy: matnni belgilash qiyin (to‘liq himoya yo‘q) */
.exam-anti-copy {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.exam-page-inner.is-obscured {
  filter: blur(18px) saturate(0.7);
  transform: scale(0.995);
  pointer-events: none;
}

.exam-watermark-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9vh 4vw;
  padding: 10vh 4vw;
  overflow: hidden;
  opacity: 0.13;
}

.exam-watermark-tile {
  display: block;
  transform: rotate(-24deg);
  transform-origin: center;
  color: rgba(13, 63, 120, 0.42);
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Exam modal open scroll locking */
html.exam-modal-open-lock,
body.exam-modal-open-lock {
  overflow: hidden !important;
  height: 100% !important;
  height: 100dvh !important;
  touch-action: none !important;
  -ms-touch-action: none !important;
  overscroll-behavior: contain !important;
}

.exam-focus-guard {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483640 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  margin: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.exam-focus-guard[hidden] {
  display: none !important;
}

.exam-focus-guard-backdrop {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(2, 6, 23, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

.exam-focus-guard-box {
  position: relative !important;
  z-index: 2 !important;
  width: min(100%, 430px) !important;
  max-height: calc(100vh - 40px) !important;
  max-height: calc(100dvh - 40px) !important;
  overflow-y: auto !important;
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.34);
  margin: auto !important;
}

.exam-focus-guard-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-focus-guard-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.exam-focus-guard-box h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
}

.exam-focus-guard-box p {
  margin: 0 0 20px;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
}

.exam-anti-copy input,
.exam-anti-copy button,
.exam-anti-copy textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

/* Natija sahifasi */
.exam-result-score {
  margin: 24px 0;
  padding: 28px 20px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(145deg, rgba(21, 101, 192, 0.12), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(21, 101, 192, 0.2);
}

.exam-result-score-num {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  background-clip: text;
  color: transparent;
}

.exam-result-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

:root[data-theme='dark'] .exam-card,
:root[data-theme='dark'] .exam-q-card {
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

:root[data-theme='dark'] .exam-watermark-tile {
  color: rgba(147, 197, 253, 0.22);
}

:root[data-theme='dark'] .exam-focus-guard-box {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(96, 165, 250, 0.18);
}

:root[data-theme='dark'] .exam-focus-guard-box h3 {
  color: #e2e8f0;
}

:root[data-theme='dark'] .exam-focus-guard-box p {
  color: #cbd5e1;
}

:root[data-theme='dark'] .exam-focus-guard-badge {
  background: rgba(56, 189, 248, 0.14);
  color: #dbeafe;
}

:root[data-theme='dark'] .exam-question-media {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
}

:root[data-theme='dark'] .exam-question-media img {
  background: rgba(15, 23, 42, 0.92);
}

:root[data-theme='dark'] .exam-text-answer-field {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
}

:root[data-theme='dark'] .exam-text-answer-field:focus {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

:root[data-theme='dark'] .exam-card--locked {
  border-color: rgba(251, 191, 36, 0.18);
  background: linear-gradient(180deg, rgba(56, 37, 8, 0.94), rgba(36, 24, 6, 0.96));
}

:root[data-theme='dark'] .exam-card-grade-note {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.4);
  color: #cbd5e1;
}

:root[data-theme='dark'] .exam-card-grade-note strong {
  color: #f8fafc;
}

:root[data-theme='dark'] .exam-card-lock-badge {
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(57, 39, 11, 0.96);
  color: #fcd34d;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

:root[data-theme='dark'] .exam-card-locked-box {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(15, 23, 42, 0.28);
}

:root[data-theme='dark'] .exam-card-locked-title {
  color: #fcd34d;
}

:root[data-theme='dark'] .exam-card-locked-text {
  color: #fde68a;
}

:root[data-theme='dark'] .exam-btn-locked {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(17, 24, 39, 0.7);
  color: #fbbf24;
  box-shadow: none;
}

:root[data-theme='dark'] .exam-session-bar {
  background: #0f172a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .exam-session-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .exam-progress-block {
    max-width: none;
  }

  .exam-secure-stack {
    max-width: none;
  }

  .exam-secure-note {
    max-width: none;
  }

  .exam-session-header-row--2 {
    flex-direction: column;
    align-items: stretch;
  }

  .exam-watermark-layer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8vh 6vw;
    padding: 12vh 5vw;
    opacity: 0.11;
  }

  .exam-focus-guard-box {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

/* Imtihon: qoida / skrinshot ogohlantirish modali */
.exam-rule-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483642 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  margin: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

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

.exam-rule-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

.exam-rule-modal-box {
  position: relative !important;
  z-index: 2 !important;
  max-width: 440px;
  width: 100%;
  max-height: calc(100vh - 40px) !important;
  max-height: calc(100dvh - 40px) !important;
  overflow-y: auto !important;
  padding: 24px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  color: #0f172a;
}

.exam-rule-modal-box h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d3f78;
}

.exam-rule-modal-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

:root[data-theme='dark'] .exam-rule-modal-box {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

:root[data-theme='dark'] .exam-rule-modal-box h3 {
  color: #93c5fd;
}

:root[data-theme='dark'] .exam-rule-modal-box p {
  color: #cbd5e1;
}

/* Imtihon: yakunlash tasdiq modali (qoidalar modali ustida) */
.exam-finish-confirm-modal {
  z-index: 10050;
}

.exam-finish-confirm-box {
  text-align: center;
  max-width: 420px;
  animation: examFinishModalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes examFinishModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.exam-finish-confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(21, 101, 192, 0.14), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(21, 101, 192, 0.22);
  color: var(--primary-2);
  font-size: 1.45rem;
}

:root[data-theme='dark'] .exam-finish-confirm-icon {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.12));
  border-color: rgba(96, 165, 250, 0.28);
  color: #93c5fd;
}

.exam-rule-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.exam-rule-modal-actions .exam-btn-secondary,
.exam-rule-modal-actions .exam-btn-primary {
  flex: 1 1 140px;
  justify-content: center;
  min-height: 44px;
}

/* Imtihon: chop etishda asosiy kontent chiqmasin (brauzer bosqichida) */
@media print {
  body.exam-session-print-lock * {
    visibility: hidden !important;
  }

  body.exam-session-print-lock::before {
    content: "Bu sahifani chop etish imtihon qoidalariga zid.";
    visibility: visible !important;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 24px;
    font-size: 14pt;
    font-family: system-ui, sans-serif;
    color: #000;
    background: #fff;
    z-index: 99999;
  }

  /* Profil natijalar jadvali: faqat jadval chiqsin */
  body:not(.exam-session-print-lock) .page-header,
  body:not(.exam-session-print-lock) .footer,
  body:not(.exam-session-print-lock) .scroll-top,
  body:not(.exam-session-print-lock) .profile-results-actions,
  body:not(.exam-session-print-lock) .profile-hero,
  body:not(.exam-session-print-lock) .profile-overview-panel,
  body:not(.exam-session-print-lock) .profile-activity-block:not(#exam-results-section) {
    display: none !important;
  }

  body:not(.exam-session-print-lock) #exam-results-section {
    border: none !important;
    box-shadow: none !important;
  }

  body:not(.exam-session-print-lock) .profile-results-table {
    font-size: 11pt;
  }
}

.exam-result-pass {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
}

.exam-result-pass.is-pass {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.exam-result-pass.is-fail {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.exam-result-pass.is-pending {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

:root[data-theme='dark'] .exam-result-pass.is-pass {
  color: #6ee7b7;
}

:root[data-theme='dark'] .exam-result-pass.is-fail {
  color: #fca5a5;
}

:root[data-theme='dark'] .exam-result-pass.is-pending {
  color: #fcd34d;
}

/* Sayt qoidalari (dialog) */
.site-rules-inline {
  display: inline-flex;
  align-items: center;
}

.site-rules-dialog {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: none;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.site-rules-dialog[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.site-rules-dialog-shell {
  width: min(720px, 100%);
  max-height: min(84vh, 760px);
  pointer-events: none;
}

.site-rules-dialog-inner {
  position: relative;
  width: 100%;
  max-height: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(141, 175, 218, 0.28);
  border-radius: 28px;
  padding: 0;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
  box-shadow: 0 32px 90px rgba(4, 23, 47, 0.28);
  pointer-events: auto;
}

.site-rules-dialog::backdrop {
  background: rgba(8, 18, 33, 0.56);
  backdrop-filter: blur(9px);
}

.site-rules-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 28px 24px;
  background: linear-gradient(135deg, rgba(8, 40, 77, 0.98), rgba(21, 101, 192, 0.92));
  color: #fff;
}

.site-rules-dialog-head-copy {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.site-rules-dialog-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.site-rules-dialog-head strong {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
}

.site-rules-dialog-head p {
  margin: 0;
  color: rgba(232, 242, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.site-rules-close {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-rules-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.site-rules-dialog-body {
  padding: 24px 28px 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-height: min(54vh, 460px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 63, 120, 0.34) transparent;
}

.post-video-embed-inner {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.post-video-embed-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.nav-notify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #dc2626;
  color: #fff;
}

.site-rules-main-btn {
  flex-shrink: 0;
  gap: 8px;
  border-color: rgba(21, 101, 192, 0.25);
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary, #1565c0);
  box-shadow: 0 10px 24px rgba(13, 63, 120, 0.08);
}

.site-rules-main-btn:hover {
  background: rgba(21, 101, 192, 0.08);
  border-color: rgba(21, 101, 192, 0.4);
  color: var(--primary, #1565c0);
}

.site-rules-main-btn[data-area='contact'] {
  border-color: rgba(20, 184, 166, 0.24);
  color: #0f766e;
  background: rgba(236, 253, 245, 0.88);
}

.site-rules-main-btn[data-area='contact']:hover {
  background: rgba(220, 252, 231, 0.98);
}

.site-rules-dialog[data-area='contact'] .site-rules-dialog-head {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.98), rgba(20, 184, 166, 0.92));
}

.site-rules-dialog[data-area='contact'] .site-rule-block-index {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.site-rules-dialog[data-area='contact'] .site-rule-block-icon {
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
}

.site-rules-dialog-body--stack {
  padding-top: 24px;
  display: grid;
  gap: 14px;
}

.site-rule-block {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(180, 203, 233, 0.58);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.96));
  box-shadow: 0 18px 38px rgba(13, 63, 120, 0.08);
}

.site-rule-block:last-child {
  margin-bottom: 0;
}

.site-rule-block-index {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(21, 101, 192, 0.24);
}

.site-rule-block-content {
  min-width: 0;
}

.site-rule-block-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}

.site-rule-block-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(21, 101, 192, 0.1);
  color: var(--primary-2);
  font-size: 15px;
}

.site-rule-block-text {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

:root[data-theme='dark'] .site-rule-block {
  border-color: rgba(125, 180, 255, 0.12);
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.98), rgba(10, 22, 38, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

:root[data-theme='dark'] .site-rules-dialog-inner {
  border-color: rgba(125, 180, 255, 0.14);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(15, 27, 45, 0.98), rgba(7, 17, 31, 0.98));
}

:root[data-theme='dark'] .site-rule-block-icon {
  background: rgba(125, 180, 255, 0.12);
}

:root[data-theme='dark'] .site-rules-main-btn {
  background: rgba(15, 27, 45, 0.92);
  border-color: rgba(125, 180, 255, 0.18);
  color: #bcd7ff;
}

:root[data-theme='dark'] .site-rules-main-btn:hover {
  background: rgba(125, 180, 255, 0.12);
  border-color: rgba(125, 180, 255, 0.4);
  color: #bcd7ff;
}

:root[data-theme='dark'] .site-rules-main-btn[data-area='contact'] {
  border-color: rgba(45, 212, 191, 0.2);
  color: #7ce8db;
  background: rgba(7, 29, 31, 0.95);
}

:root[data-theme='dark'] .site-rules-dialog[data-area='contact'] .site-rule-block-icon {
  background: rgba(45, 212, 191, 0.14);
  color: #7ce8db;
}

.site-rules-dialog-foot {
  display: flex;
  justify-content: flex-end;
  padding: 18px 28px 28px;
  background: linear-gradient(180deg, rgba(243, 248, 255, 0), rgba(243, 248, 255, 0.92));
}

.site-rules-close-btn {
  width: auto;
  min-width: 132px;
  height: auto;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 12px 28px rgba(13, 63, 120, 0.22);
}

.site-rules-close-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

:root[data-theme='dark'] .site-rules-dialog-foot {
  background: linear-gradient(180deg, rgba(15, 27, 45, 0), rgba(15, 27, 45, 0.92));
}

@media (max-width: 640px) {
  .site-rules-dialog {
    padding: 9px;
  }

  .site-rules-dialog-shell {
    width: 100%;
    max-height: calc(100vh - 18px);
  }

  .site-rules-dialog-head {
    padding: 20px 18px 18px;
  }

  .site-rules-dialog-head strong {
    font-size: 22px;
  }

  .site-rules-dialog-body {
    padding: 18px 18px 10px;
    max-height: calc(100vh - 220px);
  }

  .site-rules-dialog-foot {
    padding: 14px 18px 20px;
  }

  .site-rule-block {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .site-rule-block-index {
    width: 42px;
    height: 42px;
  }
}

.error-page {
  padding: max(var(--fixed-header-clearance, 118px), 150px) 0 92px;
}

.error-page .reveal,
.error-shell.reveal {
  opacity: 1;
  transform: none;
}

.error-shell {
  max-width: 900px;
  margin: 0 auto;
}

.error-card {
  --error-accent: var(--primary-2);
  --error-accent-soft: rgba(21, 101, 192, 0.1);
  --error-code-color: rgba(13, 63, 120, 0.16);
  --error-icon-bg: rgba(21, 101, 192, 0.1);
  --error-icon-color: var(--primary-2);
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 247, 255, 0.9));
  box-shadow: 0 24px 60px rgba(13, 63, 120, 0.12);
}

.error-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 34px;
  width: 84px;
  height: 4px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, var(--error-accent), var(--accent));
}

.error-card--forbidden {
  --error-accent: #d97706;
  --error-accent-soft: rgba(217, 119, 6, 0.12);
  --error-code-color: rgba(180, 83, 9, 0.18);
  --error-icon-bg: rgba(245, 158, 11, 0.16);
  --error-icon-color: #b45309;
}

.error-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--error-accent-soft);
  color: var(--error-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.error-code {
  margin: 0;
  font-size: clamp(58px, 11vw, 92px);
  line-height: 0.84;
  letter-spacing: -0.06em;
  color: var(--error-code-color);
}

.error-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}

.error-icon {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--error-icon-bg);
  color: var(--error-icon-color);
  font-size: 30px;
  flex-shrink: 0;
}

.error-copy {
  min-width: 0;
}

.error-title {
  margin: 4px 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  color: var(--text);
}

.error-text {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.error-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-back-btn {
  min-width: 190px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.error-link-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.error-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 101, 192, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(13, 63, 120, 0.08);
}

.error-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(13, 63, 120, 0.08);
  color: var(--primary-2);
  font-size: 18px;
}

.error-link-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

.error-link-card span:last-child {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

:root[data-theme='dark'] .error-card {
  background: linear-gradient(135deg, rgba(15, 27, 45, 0.96), rgba(10, 19, 34, 0.94));
  border-color: rgba(156, 177, 203, 0.16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

:root[data-theme='dark'] .error-code {
  color: rgba(125, 180, 255, 0.18);
}

:root[data-theme='dark'] .error-card--forbidden .error-code {
  color: rgba(251, 191, 36, 0.22);
}

:root[data-theme='dark'] .error-link-card {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(156, 177, 203, 0.16);
}

:root[data-theme='dark'] .error-link-card:hover {
  border-color: rgba(125, 180, 255, 0.24);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: none;
}

:root[data-theme='dark'] .error-link-icon {
  background: rgba(125, 180, 255, 0.12);
  color: #8fc0ff;
}

@media (max-width: 820px) {
  .error-page {
    padding: max(var(--fixed-header-clearance, 110px), 130px) 0 74px;
  }

  .error-card {
    padding: 26px 20px 22px;
    border-radius: 22px;
  }

  .error-card::before {
    left: 20px;
  }

  .error-head,
  .error-main {
    display: grid;
    grid-template-columns: 1fr;
  }

  .error-head {
    justify-content: flex-start;
  }

  .error-code {
    font-size: 56px;
  }

  .error-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    font-size: 26px;
  }

  .error-links {
    grid-template-columns: 1fr;
  }
}

.post-video-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* ===== Public Mobile Polish ===== */
.home-about-section,
.home-news-section {
  margin-top: 50px;
  padding-bottom: 50px;
}

.home-news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.home-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px;
  margin-top: 10px;
}

.badge-soft-primary,
.badge-soft-secondary,
.badge-soft-danger {
  margin-bottom: 0;
}

.badge-soft-primary {
  background: rgba(21, 101, 192, 0.12);
  border: 1px solid rgba(21, 101, 192, 0.28);
  color: var(--primary);
}

.badge-soft-secondary {
  background: rgba(21, 101, 192, 0.1);
  color: var(--primary-2);
}

.badge-soft-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.home-featured-teacher-meta {
  margin-top: 8px;
}

.icon-link-actions,
.teacher-img-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.teacher-content,
.home-content {
  min-width: 0;
}

@media (max-width: 980px) {

  .home-about-section,
  .home-news-section {
    margin-top: 30px !important;
    padding-bottom: 36px !important;
  }

  .card-home {
    min-height: auto;
    padding-top: 128px;
    padding-bottom: 42px;
  }

  .home-content {
    width: 100%;
  }

  .home-content p {
    max-width: 100%;
  }

  .home-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .section-head {
    margin-top: 0;
  }

  .icon-links {
    align-items: flex-start;
  }

  .teacher {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
  }

  .card-home {
    gap: 20px;
    padding-top: 120px;
    padding-bottom: 34px;
  }

  .hero-title {
    margin-bottom: 14px;
  }

  .home-content p {
    font-size: 16px;
    line-height: 1.7;
  }

  .home-btn a {
    width: 44px;
    height: 44px;
  }

  .glass-section {
    border-radius: 18px;
    padding: 28px 18px;
  }

  .glass-section::before {
    left: 18px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-head p {
    font-size: 14px;
  }

  .home-news-head {
    align-items: stretch;
  }

  .news-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #news .news-card img {
    height: 190px;
  }

  .news-card h3 {
    font-size: 18px;
  }

  .news-card p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .icon-links {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
  }

  .icon-link {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .icon-link-actions,
  .teacher-img-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .icon-link-actions .btn,
  .teacher-img-actions .btn,
  .teacher-img-actions .btn1 {
    width: 100%;
  }

  .teacher-img {
    padding: 14px;
  }

  .teacher-img img {
    height: 220px;
  }

  .teacher-photo {
    height: 240px;
  }

  .detail-image-card img {
    height: 250px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-top: 40px;
  }

  .footer-brand {
    grid-column: span 2;
    text-align: center;
    align-items: center;
  }

  .footer-brand .footer-logo {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .card-home {
    padding-top: 114px;
    padding-bottom: 28px;
  }

  .hero-title {
    font-size: clamp(30px, 11vw, 42px);
    line-height: 1.02;
  }

  .hero-title span {
    font-size: clamp(22px, 9vw, 30px);
  }

  .home-btn {
    gap: 10px;
  }

  .glass-section {
    padding: 24px 16px;
  }

  .home-about-section,
  .home-news-section {
    margin-top: 24px !important;
    padding-bottom: 28px !important;
  }

  .teacher-img img {
    height: 180px;
  }

  .teacher-photo {
    height: 210px;
  }

  .detail-image-card img {
    height: 220px;
  }

  .footer-bottom {
    padding-inline: 16px;
  }
}

/* ===== Dark Input Autofill Final Override ===== */
:root[data-theme='dark'] .signin-form input,
:root[data-theme='dark'] .register-form input,
:root[data-theme='dark'] .register-form select,
:root[data-theme='dark'] .comment-input,
:root[data-theme='dark'] .comment-form input,
:root[data-theme='dark'] .comment-form textarea,
:root[data-theme='dark'] .contact-form input,
:root[data-theme='dark'] .contact-form textarea,
:root[data-theme='dark'] .course-create-form .comment-input,
:root[data-theme='dark'] .course-create-form select.form-control,
:root[data-theme='dark'] .exam-filter-input,
:root[data-theme='dark'] .exam-filter-select,
:root[data-theme='dark'] .pw-wrap input {
  color-scheme: dark;
}

:root[data-theme='dark'] .signin-form input:-webkit-autofill,
:root[data-theme='dark'] .signin-form input:-webkit-autofill:hover,
:root[data-theme='dark'] .signin-form input:-webkit-autofill:focus,
:root[data-theme='dark'] .register-form input:-webkit-autofill,
:root[data-theme='dark'] .register-form input:-webkit-autofill:hover,
:root[data-theme='dark'] .register-form input:-webkit-autofill:focus,
:root[data-theme='dark'] .comment-input:-webkit-autofill,
:root[data-theme='dark'] .comment-input:-webkit-autofill:hover,
:root[data-theme='dark'] .comment-input:-webkit-autofill:focus,
:root[data-theme='dark'] .pw-wrap input:-webkit-autofill,
:root[data-theme='dark'] .pw-wrap input:-webkit-autofill:hover,
:root[data-theme='dark'] .pw-wrap input:-webkit-autofill:focus,
:root[data-theme='dark'] .contact-form input:-webkit-autofill,
:root[data-theme='dark'] .contact-form input:-webkit-autofill:hover,
:root[data-theme='dark'] .contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  background-color: #0b1524 !important;
  -webkit-box-shadow: 0 0 0 1000px #0b1524 inset !important;
  box-shadow: 0 0 0 1000px #0b1524 inset !important;
  -webkit-background-clip: padding-box !important;
  border-color: var(--border) !important;
  transition: background-color 999999s ease-out 0s, color 999999s ease-out 0s;
}


/* --- Prime Like Animation --- */
.like-btn.prime-like-trigger i {
  animation: primeHeartPulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.like-btn.prime-like-trigger {
  position: relative;
}

.like-btn.prime-like-trigger::after {
  content: " ";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 2px solid var(--primary-2);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: primeHeartSparks 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes primeHeartPulse {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.4);
    filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.5));
  }

  100% {
    transform: scale(1);
  }
}

@keyframes primeHeartSparks {
  0% {
    transform: scale(0.2);
    opacity: 0.8;
    border-width: 4px;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
    border-width: 1px;
  }
}

/* --- Prime Audio Toggle --- */
.prime-audio-toggle {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary);
  font-size: 18px;
}

.prime-audio-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.prime-audio-toggle:active {
  transform: scale(0.95);
}

.prime-audio-toggle.is-muted {
  color: #94a3b8;
  background: rgba(241, 245, 249, 0.8);
}

.prime-audio-toggle i {
  transition: transform 0.3s ease;
}

.prime-audio-toggle:hover i {
  transform: rotate(12deg);
}

:root[data-theme='dark'] .prime-audio-toggle {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

:root[data-theme='dark'] .prime-audio-toggle.is-muted {
  color: #64748b;
  background: rgba(15, 23, 42, 0.8);
}

/* Joylashuv: mehmon — past o‘ng; tizimga kirgan — chat/AI tugmalari ustida */
.prime-audio-toggle {
  position: fixed !important;
  right: var(--dock-edge, 16px) !important;
  bottom: var(--dock-bottom, 16px) !important;
  width: var(--dock-audio-bubble, 48px) !important;
  height: var(--dock-audio-bubble, 48px) !important;
  border-radius: 50% !important;
  z-index: 10060 !important;
}

body.has-chat-widget .prime-audio-toggle,
body:has(#chat-widget) .prime-audio-toggle {
  right: var(--dock-edge, 16px) !important;
  bottom: calc(var(--dock-bottom, 16px) + var(--dock-chat-bubble, 52px) + 16px) !important;
}

body.has-chat-widget.has-ai-widget .prime-audio-toggle,
body:has(#chat-widget):has(#ai-widget:not([hidden])) .prime-audio-toggle {
  right: var(--dock-edge, 16px) !important;
  bottom: calc(var(--dock-bottom, 16px) + var(--dock-chat-bubble, 52px) + var(--dock-ai-bubble, 52px) + 32px) !important;
}

@media (max-width: 768px) {
  .chat-widget {
    bottom: 12px !important;
    right: 14px !important;
  }
  .chat-bubble {
    width: 48px !important;
    height: 48px !important;
  }
  .ai-widget {
    bottom: 74px !important;
    right: 14px !important;
  }
  .ai-bubble {
    width: 48px !important;
    height: 48px !important;
  }
  .prime-audio-toggle {
    right: 14px !important;
    bottom: 12px !important;
    width: 44px !important;
    height: 44px !important;
  }
  body.has-chat-widget .prime-audio-toggle,
  body:has(#chat-widget) .prime-audio-toggle {
    bottom: 74px !important;
  }
  body.has-chat-widget.has-ai-widget .prime-audio-toggle,
  body:has(#chat-widget):has(#ai-widget:not([hidden])) .prime-audio-toggle {
    bottom: 136px !important;
  }
}

/* --- Senior Prime Bomba Animations --- */
.prime-particle {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  animation: primeParticleFade 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes primeParticleFade {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

.prime-shimmer {
  position: relative;
  overflow: hidden;
}

.prime-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%);
  animation: primeShimmerMove 2s infinite;
}

:root[data-theme='dark'] .prime-shimmer::after {
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 100%);
}

@keyframes primeShimmerMove {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.prime-3d-target {
  transition: transform 0.2s ease;
}

.prime-magnetic-target {
  display: inline-block;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.prime-scramble-active {
  opacity: 1 !important;
}

/* --- Prime Profile Preview Royale --- */
#chat-user-preview-dialog {
  padding: 0;
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 420px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

#chat-user-preview-dialog[open] {
  animation: primeProfileFocus 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#chat-user-preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

@keyframes primeProfileFocus {
  0% {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    filter: blur(10px);
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

.chat-user-preview-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 30px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.chat-user-preview-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: #f1f5f9;
}

.chat-user-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-user-preview-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.chat-user-preview-body {
  padding: 24px;
  color: var(--text);
}

.chat-user-preview-section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 600;
}

:root[data-theme='dark'] #chat-user-preview-dialog {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme='dark'] .chat-user-preview-body {
  color: #cbd5e1;
}

/* --- Exam Result Royale --- */
.prime-exam-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.prime-exam-loader.is-active {
  opacity: 1;
  pointer-events: auto;
}

.prime-grading-container {
  width: 320px;
  text-align: center;
}

.prime-grading-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.prime-grading-bar-wrap {
  height: 8px;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prime-grading-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--primary));
  background-size: 200% 100%;
  animation: primeGradingMove 2.5s infinite linear;
}

@keyframes primeGradingMove {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.prime-success-glow {
  animation: primeSuccessPulse 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes primeSuccessPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    background: white;
  }

  50% {
    box-shadow: 0 0 100px 50px rgba(245, 158, 11, 0.2);
    background: #fffcf0;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    background: white;
  }
}

.prime-failure-shake {
  animation: primeShake 0.6s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes primeShake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.prime-particle.is-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

:root[data-theme='dark'] .prime-exam-loader {
  background: rgba(15, 23, 42, 0.88);
}

:root[data-theme='dark'] .prime-grading-bar-wrap {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Senior Animation Architecture --- */
.prime-3d-target,
.news-card,
.teacher-card,
.course-card,
.card-style {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prime-3d-target:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.prime-scramble-active {
  opacity: 1;
  transition: opacity 0.5s ease;
}

[data-scrambled='true'] {
  color: inherit;
}

/* Simple hover grow on content cards only (no 3D) */
@media (hover: hover) and (pointer: fine) {

  .news-card,
  #news .news-card,
  .teacher-card,
  .course-card,
  .card-style,
  .about-card,
  .detail-image-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center center;
  }

  .news-card:hover,
  #news .news-card:hover,
  .teacher-card:hover,
  .course-card:hover,
  .card-style:hover,
  .about-card:hover,
  .detail-image-card:hover {
    transform: scale(1.02) !important;
  }
}

/*
 * Hero sarlavha: background-clip:text + -webkit-text-fill-color:transparent
 * split .letter (opacity/transform) bilan birga ko‘pincha matnni butunlay yo‘qotadi.
 * Gradient o‘rniga ochiq rang + soyalar — matn har doim ko‘rinadi.
 */
.hero-title {
  display: inline-block;
  font-weight: 800;
  color: #f2f7ff;
  background: none;
  -webkit-text-fill-color: unset;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow:
    0 2px 24px rgba(0, 14, 40, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.1);
}

/* --- GLOBAL DAY MODE INPUT ACCESSIBILITY FIX --- */
:root:not([data-theme='dark']) input,
:root:not([data-theme='dark']) textarea,
:root:not([data-theme='dark']) select {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

:root:not([data-theme='dark']) input::placeholder,
:root:not([data-theme='dark']) textarea::placeholder {
  color: var(--muted) !important;
  opacity: 1 !important;
}

/* AI Chat input override for day mode — uses surface variable */
:root:not([data-theme='dark']) .chat-input {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

:root:not([data-theme='dark']) .chat-input::placeholder {
  color: var(--muted) !important;
}

/* --- INNER PAGE NAVBAR PREMIUM DESIGN --- */
:root[data-theme='dark'] .page-inner .header-main:not(.scrolled) {
  background: rgba(5, 24, 48, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 8px 30px rgba(0, 5, 16, 0.25);
}

/* ============================================================
   PRIME AI TYPEWRITER v2.0 — "Holographic Spring" Engine
   Skill 1: Physics-based per-character spring-pop reveal
   Skill 2: Holographic gradient cursor with glow trail
   ============================================================ */

/* --- Keyframe: Character fade-in (no movement) --- */
@keyframes aiCharSpring {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* --- Keyframe: Word fade-in (no movement) --- */
@keyframes aiWordWave {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* --- Keyframe: Holographic cursor hue rotation --- */
@keyframes aiCursorHolo {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.9), 0 0 18px rgba(99, 102, 241, 0.5);
  }

  33% {
    background-position: 100% 0%;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.9), 0 0 18px rgba(139, 92, 246, 0.5);
  }

  66% {
    background-position: 0% 100%;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.9), 0 0 18px rgba(16, 185, 129, 0.5);
  }

  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.9), 0 0 18px rgba(99, 102, 241, 0.5);
  }
}

/* --- Keyframe: Cursor blink (used inside holographic loop) --- */
@keyframes aiCursorBlink {

  0%,
  45% {
    opacity: 1;
  }

  50%,
  95% {
    opacity: 0.1;
  }

  100% {
    opacity: 1;
  }
}

/* --- Keyframe: Post-render shimmer sweep on completed message --- */
@keyframes aiMessageShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 300% center;
  }
}

/* --- Keyframe: Message entrance pulse (the whole bubble pops in) --- */
@keyframes aiMessageEntrance {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===================
   HOLOGRAPHIC CURSOR
   =================== */
.ai-holo-cursor {
  display: inline-block;
  width: 2.5px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  border-radius: 3px;
  background: linear-gradient(180deg,
      #a855f7 0%,
      #6366f1 35%,
      #3b82f6 65%,
      #10b981 100%);
  background-size: 100% 300%;
  animation:
    aiCursorHolo 1.4s ease infinite,
    aiCursorBlink 0.9s steps(1, end) infinite;
  will-change: opacity, box-shadow, background-position;
  flex-shrink: 0;
}

/* Dark mode cursor — more vivid glow */
:root[data-theme='dark'] .ai-holo-cursor {
  background: linear-gradient(180deg,
      #c084fc 0%,
      #818cf8 35%,
      #60a5fa 65%,
      #34d399 100%);
  background-size: 100% 300%;
}

/* ===================
   PER-CHARACTER SPANS
   =================== */
.ai-msg-char {
  display: inline-block;
  opacity: 0;
  will-change: opacity;
  animation: aiCharSpring 0.22s ease-out forwards;
}

/* Space characters: no animation, just visible */
.ai-msg-char--space {
  display: inline;
  opacity: 1;
  animation: none;
  white-space: pre;
}

/* Word wrapper for wave mode */
.ai-msg-word {
  display: inline-block;
  opacity: 0;
  will-change: opacity;
  animation: aiWordWave 0.2s ease-out forwards;
}

/* ===================
   COMPLETED MESSAGE SHIMMER
   =================== */
.ai-msg-done {
  animation: aiMessageEntrance 0.32s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

/* The shimmer runs on the content wrapper after text is fully rendered */
.ai-msg-done .chat-msg-content {
  position: relative;
  overflow: hidden;
}

.ai-msg-done .chat-msg-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.22) 50%,
      transparent 70%);
  background-size: 250% 100%;
  animation: aiMessageShimmer 0.9s ease-out 0.1s 1 both;
  pointer-events: none;
  border-radius: inherit;
}

:root[data-theme='dark'] .ai-msg-done .chat-msg-content::after {
  background: linear-gradient(105deg,
      transparent 30%,
      rgba(139, 92, 246, 0.18) 50%,
      transparent 70%);
  background-size: 250% 100%;
}

/* ===================
   "THINKING" STATUS — enhanced pulse dots
   =================== */
.ai-thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-thinking-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  display: inline-block;
  animation: aiDotBounce 1.1s ease-in-out infinite;
  will-change: transform, opacity;
}

.ai-thinking-dots span:nth-child(1) {
  animation-delay: 0s;
}

.ai-thinking-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.ai-thinking-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes aiDotBounce {

  0%,
  80%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }

  40% {
    transform: translateY(-7px) scale(1.2);
    opacity: 1;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.55);
  }
}

/* Dark mode dots */
:root[data-theme='dark'] .ai-thinking-dots span {
  background: linear-gradient(135deg, #c084fc, #818cf8);
}

/* Reduce motion: skip all AI typewriter animations */
@media (prefers-reduced-motion: reduce) {

  .ai-msg-char,
  .ai-msg-word {
    opacity: 1 !important;
    animation: none !important;
  }

  .ai-holo-cursor {
    animation: aiCursorBlink 0.9s steps(1, end) infinite !important;
    background: currentColor !important;
    box-shadow: none !important;
  }

  .ai-msg-done .chat-msg-content::after {
    display: none;
  }
}

/* ==================================================
   PRIME PRO MAX ULTRA IMPROVEMENTS
   ================================================== */

/* 4. AI Widget Enhancements: Pro Max Glassmorphism */

.chat-panel {
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: var(--bg-panel-light, rgba(255, 255, 255, 0.72)) !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 10px 20px rgba(255, 255, 255, 0.1) !important;
  border-radius: 28px !important;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

:root[data-theme='dark'] .chat-panel {
  background: rgba(13, 25, 48, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

.chat-panel-header {
  background: var(--surface) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft) !important;
  padding: 18px 20px !important;
  color: var(--text) !important;
}
.chat-panel-header .chat-panel-btn {
  color: var(--text) !important;
  background: rgba(148, 163, 184, 0.15) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

.chat-input-wrap {
  background: rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
}

.chat-bubble {
  width: 60px !important;
  height: 60px !important;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(139, 92, 246, 0.9)) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.45) !important;
  animation: floatBubble 4s infinite ease-in-out;
}

@keyframes floatBubble {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* 6. Home Page Link & Button Enhancements */

/* Hero Social Links - Magnetic Float Effect */
.home-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 12px;
}

.home-btn a:hover {
  transform: translateY(-8px) scale(1.15);
  background: var(--primary);
  border-color: var(--primary-2);
  box-shadow: 0 15px 30px rgba(13, 63, 120, 0.4), 0 0 15px var(--primary-2);
  color: #fff;
}

/* Global Button Prime Upgrade */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: none;
  z-index: -1;
}

.btn:hover::after {
  left: 100%;
  transition: left 0.7s ease-in-out;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0) scale(0.96);
}

/* Prime Button (Primary) */
.btn-prime {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  border: none !important;
  color: #fff !important;
}

.btn-prime:hover {
  box-shadow: 0 10px 25px rgba(13, 63, 120, 0.35), 0 0 15px rgba(13, 63, 120, 0.2) !important;
}

/* News Card Links */
.news-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* 7. Sound Toggle Prime Design */
.prime-audio-toggle {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  z-index: 10060;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.prime-audio-toggle:hover {
  transform: scale(1.1) rotate(12deg);
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 15px rgba(13, 63, 120, 0.2);
}

.prime-audio-toggle.is-muted {
  color: var(--muted);
  opacity: 0.6;
}

.prime-audio-toggle i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* Audio Wave Animation when NOT muted */
.prime-audio-toggle:not(.is-muted)::before,
.prime-audio-toggle:not(.is-muted)::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  animation: audioWave 2s infinite;
}

/* AI Response Links */
.ai-response-link {
  color: var(--primary-2);
  text-decoration: underline dotted;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0 2px;
  border-radius: 4px;
}

.ai-response-link:hover {
  background: rgba(21, 101, 192, 0.1);
  color: var(--accent);
  text-decoration: underline;
}

:root[data-theme='dark'] .ai-response-link:hover {
  background: rgba(125, 180, 255, 0.15);
}


.prime-audio-toggle:not(.is-muted)::after {
  animation-delay: 1s;
}

@keyframes audioWave {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* 8. Global Search Results Prime Design */
#global-search-modal {
  backdrop-filter: blur(14px) !important;
  background: rgba(13, 31, 58, 0.4) !important;
}

.global-search-input-wrap {
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden;
}

:root[data-theme='dark'] .global-search-input-wrap {
  background: rgba(15, 27, 45, 0.98) !important;
}

.global-search-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  margin: 8px 12px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid transparent;
  animation: searchItemIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Staggered animation handled by JS index */
.global-search-item:nth-child(1) {
  animation-delay: 0.05s;
}

.global-search-item:nth-child(2) {
  animation-delay: 0.1s;
}

.global-search-item:nth-child(3) {
  animation-delay: 0.15s;
}

.global-search-item:nth-child(4) {
  animation-delay: 0.2s;
}

.global-search-item:nth-child(5) {
  animation-delay: 0.25s;
}

.global-search-item:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes searchItemIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.global-search-item:hover,
.global-search-item.is-active {
  background: var(--surface);
  border-color: var(--primary-2);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.global-search-item-media {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  border: 1px solid var(--border-soft);
}

.global-search-item-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.global-search-item-desc {
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.global-search-item-type {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}

@media (min-width: 1200px) {
  .header-main {
    max-width: 1160px !important;
  }
}

@media (max-width: 767px) {

  .prime-audio-toggle:not(.is-muted)::before,
  .prime-audio-toggle:not(.is-muted)::after {
    content: none !important;
    animation: none !important;
  }
}


/* 9. Exam Session Premium Navigation Grid */
.exam-nav-grid-container {
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.exam-nav-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.exam-nav-grid-title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exam-nav-grid-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.exam-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 10px;
}

.exam-grid-item {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exam-grid-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 63, 120, 0.1);
}

.exam-grid-item.is-answered {
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.exam-grid-item.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(13, 63, 120, 0.25);
  z-index: 1;
}

.exam-grid-item.is-answered.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Exam Buttons States */
.exam-btn-secondary:disabled,
.exam-btn-primary:disabled {
  filter: grayscale(1);
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

@media (max-width: 576px) {
  .exam-nav-grid {
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 6px;
  }

  .exam-nav-grid-container {
    padding: 15px;
  }
}

/* 10. Exam Result Motivation — Prime Pro Max Ultra "Bomba" Design */
.exam-result-motivation {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);

  /* Advanced Spring Entrance */
  animation: motivationBombaReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes motivationBombaReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Holographic Border Accent */
.exam-result-motivation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  z-index: 1;
}

.exam-result-motivation.is-pass::before {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 2px 0 15px rgba(16, 185, 129, 0.3);
}

.exam-result-motivation.is-fail::before {
  background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  box-shadow: 2px 0 15px rgba(244, 63, 94, 0.3);
}

.motivation-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--border-soft);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exam-result-motivation:hover .motivation-icon {
  transform: scale(1.1) rotate(8deg);
}

/* Pulsing Glow for Icon */
.exam-result-motivation.is-pass .motivation-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.exam-result-motivation.is-fail .motivation-icon {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.15);
}

.motivation-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 2px solid currentColor;
  opacity: 0.2;
  animation: motivationIconPulse 2.5s infinite;
}

@keyframes motivationIconPulse {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0.2;
  }
}

.motivation-text {
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  font-size: 1.05rem;
  flex-grow: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.exam-result-motivation.is-pass .motivation-text {
  background: linear-gradient(90deg, var(--text), #059669);
  -webkit-background-clip: text;
  background-clip: text;
}

.exam-result-motivation.is-fail .motivation-text {
  background: linear-gradient(90deg, var(--text), #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 576px) {
  .exam-result-motivation {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .exam-result-motivation::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }
}

/* ==================================================
   BOMBA LOCALE DROPDOWN — Pro Max Ultra
   ================================================== */

.nav-dropdown--bomba-locale {
  margin-right: 15px;
}

.nav-dropdown--bomba-locale .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

:root:not([data-theme='dark']) .nav-dropdown--bomba-locale .nav-dropdown-toggle {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
  color: #334155;
}

:root:not([data-theme='dark']) .nav-dropdown--bomba-locale .nav-dropdown-toggle:hover {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.35);
}

.nav-dropdown--bomba-locale .nav-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nav-dropdown--bomba-locale .nav-dropdown-toggle i:first-child {
  font-size: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-dropdown--bomba-locale .nav-dropdown-toggle .fa-chevron-down {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-dropdown--bomba-locale .nav-dropdown-details[open] .fa-chevron-down {
  transform: rotate(180deg);
}

.nav-dropdown--bomba-locale .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  z-index: 1000;
  animation: bombaDropdownIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes bombaDropdownIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.92);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.nav-dropdown--bomba-locale .nav-dropdown-inner {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

:root[data-theme='dark'] .nav-dropdown--bomba-locale .nav-dropdown-inner {
  background: rgba(13, 25, 48, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.nav-dropdown--bomba-locale .nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-dropdown--bomba-locale .nav-dropdown-item .locale-code {
  font-size: 11px;
  font-weight: 800;
  background: rgba(13, 63, 120, 0.06);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 38px;
  text-align: center;
}

:root[data-theme='dark'] .nav-dropdown--bomba-locale .nav-dropdown-item .locale-code {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-dropdown--bomba-locale .nav-dropdown-item .locale-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

:root[data-theme='dark'] .nav-dropdown--bomba-locale .nav-dropdown-item .locale-name {
  color: rgba(255, 255, 255, 0.8);
}

.nav-dropdown--bomba-locale .nav-dropdown-item .active-indicator {
  font-size: 16px;
  color: var(--primary-2);
  animation: bombaCheckPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes bombaCheckPop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.nav-dropdown--bomba-locale .nav-dropdown-item:hover {
  background: rgba(13, 63, 120, 0.04);
  transform: translateX(5px);
}

:root[data-theme='dark'] .nav-dropdown--bomba-locale .nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.nav-dropdown--bomba-locale .nav-dropdown-item.active {
  background: rgba(13, 63, 120, 0.08);
}

:root[data-theme='dark'] .nav-dropdown--bomba-locale .nav-dropdown-item.active {
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
  .nav-dropdown--bomba-locale {
    margin: 20px 0;
    width: 100%;
  }

  .nav-dropdown--bomba-locale .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(13, 63, 120, 0.04);
    border-color: rgba(13, 63, 120, 0.1);
    color: var(--text);
  }

  .nav-dropdown--bomba-locale .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
    animation: none;
  }

  .nav-dropdown--bomba-locale .nav-dropdown-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* ==================================================
   BOMBA WELCOME OVERLAY — Pro Max Ultra
   ================================================== */

.bomba-welcome {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (max-width: 768px) {
  .bomba-welcome {
    display: none !important;
  }
}

.bomba-welcome__inner {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 60px 80px;
  border-radius: 60px;
  text-align: center;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: scale(0.9) translateY(40px);
  transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1);
  max-width: 650px;
  width: 90%;
  position: relative;
  overflow: hidden;
}

/* Noise Texture Overlay */
.bomba-welcome__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Shimmer Effect */
.bomba-welcome__inner::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg,
      transparent 45%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 55%);
  animation: bombaWelcomeShimmer 8s infinite linear;
  pointer-events: none;
}

@keyframes bombaWelcomeShimmer {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(30%, 30%);
  }
}

:root[data-theme='dark'] .bomba-welcome__inner {
  background: rgba(15, 23, 42, 0.25);
  border-color: rgba(255, 255, 255, 0.08);
}

.bomba-welcome.is-active .bomba-welcome__inner {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.bomba-welcome__icon {
  font-size: 80px;
  margin-bottom: 30px;
  filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.4));
  animation: bombaWelcomeFloat 4s infinite ease-in-out;
}

@keyframes bombaWelcomeFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.bomba-welcome__title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-theme='light'] .bomba-welcome__title {
  background: linear-gradient(135deg, var(--primary), #1e3a8a);
  -webkit-background-clip: text;
  background-clip: text;
}

.bomba-welcome__text {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  line-height: 1.6;
  max-width: 450px;
  margin: 0 auto;
}

:root[data-theme='light'] .bomba-welcome__text {
  color: #64748b;
}

/* ==================================================
   BOMBA MESH — Global Animated Background
   ================================================== */
.bomba-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(45, 212, 191, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, transparent 0%, var(--bg) 100%);
  animation: bombaMeshMove 25s infinite alternate ease-in-out;
}

@keyframes bombaMeshMove {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
  }

  100% {
    transform: scale(1.1) translate(1%, 2%) rotate(2deg);
  }
}

:root[data-theme='dark'] .bomba-mesh {
  background:
    radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(13, 27, 45, 0.3) 0%, var(--bg) 100%);
}

/* ==================================================
   BOMBA NOTIFICATIONS & SEARCH CARDS
   ================================================== */

.notification-card,
.search-result-item {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

:root[data-theme='dark'] .notification-card,
:root[data-theme='dark'] .search-result-item {
  background: rgba(30, 41, 59, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.notification-card:hover,
.search-result-item:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
  border-color: var(--primary) !important;
}

:root[data-theme='dark'] .notification-card:hover,
:root[data-theme='dark'] .search-result-item:hover {
  background: rgba(30, 41, 59, 0.7) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
}

.search-result-media img,
.search-result-fallback {
  border-radius: 18px !important;
}

.notification-card-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
}

.notification-card-icon--success {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #22c55e !important;
}

.notification-card-icon--error {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

.notification-card-icon--warning {
  background: rgba(245, 158, 11, 0.1) !important;
  color: #f59e0b !important;
}

.notification-card-icon--info {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #3b82f6 !important;
}

/* Empty States */
.notification-empty,
.search-empty-state {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border: 2px dashed rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  padding: 60px 20px;
}

:root[data-theme='dark'] .notification-empty,
:root[data-theme='dark'] .search-empty-state {
  background: rgba(30, 41, 59, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   BOMBA PRO MAX ULTRA � FINAL FOOTER DESIGN
   ========================================================================== */
.footer {
  position: relative;
  background: rgba(7, 27, 50, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #d2e1f5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding-bottom: 0;
}

:root[data-theme='dark'] .footer {
  background: rgba(5, 12, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.05);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.4), transparent);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 80px 20px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(8px);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.4);
  border-color: var(--accent);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-contact-list i {
  color: var(--accent);
  margin-top: 4px;
  font-size: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
    padding: 60px 20px 30px;
    gap: 35px;
  }
}

/* ==========================================================================
   BOMBA PRO MAX ULTRA � FINAL FOOTER DESIGN (OVERRIDE)
   ========================================================================== */
.footer {
  background: var(--surface) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-top: 1px solid var(--border-soft) !important;
  padding: 0 !important;
}

.footer-container {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr !important;
  gap: 40px !important;
  padding: 80px 20px 40px !important;
}

.footer-logo span {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #fff !important;
}

.footer-links a:hover {
  color: var(--accent) !important;
  transform: translateX(10px) !important;
}

.social-link:hover {
  background: var(--accent) !important;
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.5) !important;
}

/* ==========================================================================
   BOMBA FOOTER - SPACE OPTIMIZATION
   ========================================================================== */
.footer-container {
  padding: 40px 20px 30px !important;
  /* Reduced from 80px */
  gap: 30px !important;
  /* Reduced from 40px */
}

.footer-logo img {
  width: 44px !important;
  /* Slightly smaller */
  height: 44px !important;
}

.footer-title {
  margin-bottom: 16px !important;
  /* Reduced from 24px */
}

.footer-links li {
  margin-bottom: 8px !important;
  /* Reduced from 12px */
}

.footer-desc {
  margin-bottom: 16px !important;
  font-size: 13.5px !important;
}

.home-btn {
  padding: 12px !important;
  gap: 12px !important;
}

.home-btn a {
  width: 38px !important;
  height: 38px !important;
  font-size: 18px !important;
}

/* ==========================================================================
   BOMBA HEADER - WIDTH OPTIMIZATION
   ========================================================================== */
.header-main {
  width: calc(100% - 60px) !important;
  /* More side margin */
  max-width: 1100px !important;
  /* Narrower width */
  padding: 8px 18px !important;
  /* More horizontal padding inside */
}

@media (max-width: 768px) {
  .header-main {
    width: calc(100% - 20px) !important;
  }
}

/* ==========================================================================
   BOMBA HEADER - WIDTH OPTIMIZATION (UPDATED)
   ========================================================================== */
.header-main {
  width: calc(100% - 40px) !important;
  /* Balanced side margin */
  max-width: 1150px !important;
  /* Slightly larger but still compact */
  padding: 10px 20px !important;
}

/* ==========================================================================
   BOMBA RESPONSIVE ENGINE � PRO MAX ULTRA
   Unified responsive logic for all Bomba components
   ========================================================================== */

/* 1. Header Responsive */
@media (max-width: 991px) {
  .header-main {
    width: calc(100% - 30px) !important;
    padding: 8px 12px !important;
  }

  .logo img {
    height: 38px !important;
  }
}

@media (max-width: 576px) {
  .header-main {
    top: 10px !important;
    width: calc(100% - 16px) !important;
    border-radius: 14px !important;
  }


}

/* 2. Hero & About Sections */
@media (max-width: 991px) {

  .about-modern,
  .news-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    text-align: center !important;
  }

  .hero-title .js-split-text {
    width: 100% !important;
  }

  .hero-text-fade {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .home-primary-actions {
    justify-content: center !important;
  }

  .card-home {
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    padding-top: 60px !important;
  }
}

@media (max-width: 640px) {

  .about-modern,
  .news-container {
    grid-template-columns: 1fr !important;
  }

  .about-card,
  .news-card {
    padding: 20px !important;
  }

  .section-head {
    text-align: center !important;
  }
}

/* 3. Section Navigation (Horizontal Scroll on Mobile) */
@media (max-width: 768px) {
  .site-section-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 10px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    /* Hide scrollbar Firefox */
  }

  .site-section-nav::-webkit-scrollbar {
    display: none !important;
    /* Hide scrollbar Chrome/Safari */
  }

  .site-section-nav-link {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

/* 4. Footer Column Adjustments */
@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .footer-logo,
  .footer-socials {
    justify-content: center !important;
  }

  .footer-contact-list li {
    justify-content: center !important;
  }

  .footer-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* 5. Buttons scale on small screens */
@media (max-width: 480px) {
  .btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
    width: 100% !important;
    /* Full width buttons on tiny screens */
  }

  .home-primary-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
}


/* 4. Footer Column Adjustments */
@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .footer-logo,
  .footer-socials {
    justify-content: center !important;
  }

  .footer-contact-list li {
    justify-content: center !important;
  }

  .footer-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* 5. Buttons scale on small screens */
@media (max-width: 480px) {
  .btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
    width: 100% !important;
    /* Full width buttons on tiny screens */
  }

  .home-primary-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
}

#chat-messages[hidden],
#chat-form[hidden],
.chat-input-wrap[hidden] {
  display: none !important;
}

/* Donor: Supporter — kuk rang */
.comment-card.comment-card--donor {
  position: relative;
  background: var(--surface);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.comment-card.comment-card--donor::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.comment-card.comment-card--donor .comment-meta strong {
  font-weight: 700;
}

/* Dark mode donor base */
:root[data-theme='dark'] .comment-card.comment-card--donor {
  background: var(--surface);
}
:root[data-theme='dark'] .comment-card.comment-card--donor .comment-meta strong {
  color: inherit;
}
:root[data-theme='dark'] .comment-card.comment-card--donor .comment-body p {
  color: inherit;
}
:root[data-theme='dark'] .comment-card.comment-card--donor .comment-body p {
  color: #bfdbfe;
}

/* ====== DONOR PROFILE OVERVIEW ====== */

.profile-overview-panel.profile-overview--donor {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(239,246,255,0.98) 0%, var(--surface) 45%, rgba(219,234,254,0.94) 100%);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.35), 0 8px 28px rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.5);
  transition: box-shadow 0.3s;
}
.profile-overview-panel.profile-overview--donor::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 40%, rgba(59,130,246,0.08) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: comment-super-fire-sheen 2.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 0;
}
.profile-overview-panel.profile-overview--donor > * {
  position: relative;
  z-index: 1;
}

.profile-overview-panel.profile-overview--donor-premium {
  background: linear-gradient(145deg, rgba(245,243,255,0.98) 0%, var(--surface) 45%, rgba(237,233,254,0.94) 100%);
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.35), 0 8px 28px rgba(139,92,246,0.12);
}
.profile-overview-panel.profile-overview--donor-premium::after {
  background: linear-gradient(110deg, transparent 40%, rgba(139,92,246,0.08) 50%, transparent 60%);
}

.profile-overview-panel.profile-overview--donor-vip {
  background: linear-gradient(145deg, rgba(255,251,235,0.98) 0%, var(--surface) 45%, rgba(254,243,199,0.94) 100%);
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.35), 0 8px 28px rgba(245,158,11,0.12);
}
.profile-overview-panel.profile-overview--donor-vip::after {
  background: linear-gradient(110deg, transparent 40%, rgba(245,158,11,0.08) 50%, transparent 60%);
}

/* Donor overview panel effect */
.profile-theme-supporter { --donor-glow: rgba(59,130,246,0.08); }
.profile-theme-premium { --donor-glow: rgba(139,92,246,0.08); }
.profile-theme-vip { --donor-glow: rgba(245,158,11,0.08); }
/* Super admin temalari */
.profile-theme-admin-gold   { --donor-glow: rgba(234,179,8,0.10); }
.profile-theme-admin-royal   { --donor-glow: rgba(220,38,38,0.10); }
.profile-theme-admin-phoenix { --donor-glow: rgba(234,88,12,0.10); }
/* Oddiy (plain) — effektsiz */
.profile-theme-plain { --donor-glow: transparent; }
/* .donor-badge--plain — Oddiy foydalanuvchilar uchun badge rangi */
.donor-badge--plain { --db-color: #64748b; }
/* ====== DONOR BADGE (yagona tizim) ====== */
.donor-badge {
  --db-color: #6366f1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--db-color);
  background: color-mix(in srgb, var(--db-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--db-color) 30%, transparent);
}
.donor-badge > i { font-size: 0.7rem; }
.donor-badge-days {
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0.8;
  margin-left: 0.1rem;
}
/* Rank ranglari */
.donor-badge--supporter { --db-color: #3b82f6; }
.donor-badge--premium   { --db-color: #8b5cf6; }
.donor-badge--vip       { --db-color: #f59e0b; }
/* Super admin tema badge'lari */
.donor-badge--admin-gold   { --db-color: #eab308; }
.donor-badge--admin-royal   { --db-color: #dc2626; }
.donor-badge--admin-phoenix { --db-color: #ea580c; }
/* Qulflangan (donor emas) */
.donor-badge--locked {
  --db-color: #94a3b8;
  cursor: help;
}
/* Badge stili variantlari (appearance sozlamasi) */
.donor-badge--pill { padding: 0.2rem 0.85rem; font-size: 0.8rem; }
.donor-badge--icon { padding: 0.25rem 0.4rem; gap: 0; }
.donor-badge--icon > i { font-size: 0.8rem; }
/* Profile fact kartasida kichikroq */
.profile-fact-value .donor-badge { font-size: 0.7rem; padding: 0.12rem 0.5rem; }
/* Chat badge kichikroq */
.chat-msg-name + .donor-badge,
.chat-msg .donor-badge { font-size: 0.6rem; padding: 0.08rem 0.4rem; gap: 0.2rem; }
.chat-msg .donor-badge > i { font-size: 0.55rem; }
/* Dark theme */
:root[data-theme='dark'] .donor-badge {
  background: color-mix(in srgb, var(--db-color) 20%, transparent);
}

/* ====== DONOR COMMENT STYLE VARIANTLARI ====== */
/* comment-style--filled: fon bilan to'liq ajratish (default: border) */
.comment-card.comment-card--donor-supporter.comment-style--filled {
  background: linear-gradient(145deg, rgba(239,246,255,0.95) 0%, var(--surface) 50%, rgba(219,234,254,0.9) 100%);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.25), 0 6px 24px rgba(59,130,246,0.12);
}
.comment-card.comment-card--donor-premium.comment-style--filled {
  background: linear-gradient(145deg, rgba(245,243,255,0.95) 0%, var(--surface) 50%, rgba(237,233,254,0.9) 100%);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.25), 0 6px 24px rgba(139,92,246,0.12);
}
.comment-card.comment-card--donor-vip.comment-style--filled {
  background: linear-gradient(145deg, rgba(255,251,235,0.95) 0%, var(--surface) 50%, rgba(254,243,199,0.9) 100%);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.25), 0 6px 24px rgba(245,158,11,0.12);
}
/* comment-style--border (default): faqat chap chiziq, mavjud CSS ishlaydi */

/* Donor chat messages */
.chat-msg .donor-badge {
  display: inline-flex;
  vertical-align: middle;
}
/* ====== DONOR PREVIEW DIALOG ====== */
.chat-user-preview-dialog.is-donor-supporter[open],
.chat-user-preview-dialog.is-donor-supporter:modal {
  padding: 2px;
  overflow: visible;
  box-shadow: 0 24px 64px rgba(59, 130, 246, 0.15), 0 0 0 2px rgba(59, 130, 246, 0.25);
  border: 2px solid rgba(59, 130, 246, 0.3);
}
.chat-user-preview-dialog.is-donor-premium[open],
.chat-user-preview-dialog.is-donor-premium:modal {
  padding: 2px;
  overflow: visible;
  box-shadow: 0 24px 64px rgba(139, 92, 246, 0.15), 0 0 0 2px rgba(139, 92, 246, 0.25);
  border: 2px solid rgba(139, 92, 246, 0.3);
}
.chat-user-preview-dialog.is-donor-vip[open],
.chat-user-preview-dialog.is-donor-vip:modal {
  padding: 2px;
  overflow: visible;
  box-shadow: 0 24px 64px rgba(245, 158, 11, 0.15), 0 0 0 2px rgba(245, 158, 11, 0.25);
  border: 2px solid rgba(245, 158, 11, 0.3);
}

/* Donor name colors */
.chat-user-preview-dialog.is-donor-supporter .chat-user-preview-name { color: #2563eb; }
.chat-user-preview-dialog.is-donor-premium .chat-user-preview-name { color: #7c3aed; }
.chat-user-preview-dialog.is-donor-vip .chat-user-preview-name { color: #d97706; }

/* Donor details */
.chat-user-preview-dialog.is-donor-supporter .chat-user-preview-details li { border-top-color: rgba(59, 130, 246, 0.15); }
.chat-user-preview-dialog.is-donor-premium .chat-user-preview-details li { border-top-color: rgba(139, 92, 246, 0.15); }
.chat-user-preview-dialog.is-donor-vip .chat-user-preview-details li { border-top-color: rgba(245, 158, 11, 0.15); }

/* Donor section titles */
.chat-user-preview-dialog.is-donor-supporter .chat-user-preview-section-title { color: #2563eb; }
.chat-user-preview-dialog.is-donor-premium .chat-user-preview-section-title { color: #7c3aed; }
.chat-user-preview-dialog.is-donor-vip .chat-user-preview-section-title { color: #d97706; }

/* Donor avatar */
.chat-user-preview-dialog.is-donor-supporter .chat-user-preview-avatar { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%); box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2); }
.chat-user-preview-dialog.is-donor-premium .chat-user-preview-avatar { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%); box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2); }
.chat-user-preview-dialog.is-donor-vip .chat-user-preview-avatar { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2); }

/* ====== DONOR CHAT MESSAGES ====== */
.chat-msg.is-donor { border-left: 3px solid; padding-left: 2px; }
.chat-msg.is-donor-supporter { border-left-color: #3b82f6; background: rgba(59,130,246,0.04); }
.chat-msg.is-donor-premium { border-left-color: #8b5cf6; background: rgba(139,92,246,0.04); }
.chat-msg.is-donor-vip { border-left-color: #f59e0b; background: rgba(245,158,11,0.04); }

/* ====== DONOR COMMENT STYLES ====== */
.comment-card.comment-card--donor-supporter {
  border-color: rgba(59,130,246,0.45);
  border-left: 4px solid #3b82f6;
  background: linear-gradient(145deg, rgba(239,246,255,0.95) 0%, var(--surface) 50%, rgba(219,234,254,0.9) 100%);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.25), 0 6px 24px rgba(59,130,246,0.12);
}
.comment-card.comment-card--donor-supporter::before { background: linear-gradient(to bottom, #3b82f6, #60a5fa, #93c5fd); }
.comment-card.comment-card--donor-supporter .comment-meta strong { color: #1d4ed8; }
.comment-card.comment-card--donor-supporter .comment-body p { color: #1e3a5f; }

.comment-card.comment-card--donor-premium {
  border-color: rgba(139,92,246,0.45);
  border-left: 4px solid #8b5cf6;
  background: linear-gradient(145deg, rgba(245,243,255,0.95) 0%, var(--surface) 50%, rgba(237,233,254,0.9) 100%);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.25), 0 6px 24px rgba(139,92,246,0.12);
}
.comment-card.comment-card--donor-premium::before { background: linear-gradient(to bottom, #8b5cf6, #a78bfa, #c4b5fd); }
.comment-card.comment-card--donor-premium .comment-meta strong { color: #6d28d9; }
.comment-card.comment-card--donor-premium .comment-body p { color: #3b0764; }

.comment-card.comment-card--donor-vip {
  border-color: rgba(245,158,11,0.45);
  border-left: 4px solid #f59e0b;
  background: linear-gradient(145deg, rgba(255,251,235,0.95) 0%, var(--surface) 50%, rgba(254,243,199,0.9) 100%);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.25), 0 6px 24px rgba(245,158,11,0.12);
}
.comment-card.comment-card--donor-vip::before { background: linear-gradient(to bottom, #f59e0b, #fbbf24, #fcd34d); }
.comment-card.comment-card--donor-vip .comment-meta strong { color: #b45309; }
.comment-card.comment-card--donor-vip .comment-body p { color: #78350f; }

/* Dark mode rank-specific */
:root[data-theme='dark'] .comment-card.comment-card--donor-supporter {
  background: linear-gradient(145deg, rgba(30,58,95,0.5) 0%, var(--surface) 50%, rgba(30,64,105,0.4) 100%);
  border-color: rgba(59,130,246,0.35);
}
:root[data-theme='dark'] .comment-card.comment-card--donor-supporter .comment-meta strong { color: #93c5fd; }

:root[data-theme='dark'] .comment-card.comment-card--donor-premium {
  background: linear-gradient(145deg, rgba(67,56,202,0.4) 0%, var(--surface) 50%, rgba(76,29,149,0.35) 100%);
  border-color: rgba(139,92,246,0.35);
}
:root[data-theme='dark'] .comment-card.comment-card--donor-premium .comment-meta strong { color: #c4b5fd; }

:root[data-theme='dark'] .comment-card.comment-card--donor-vip {
  background: linear-gradient(145deg, rgba(120,53,15,0.4) 0%, var(--surface) 50%, rgba(146,64,14,0.35) 100%);
  border-color: rgba(245,158,11,0.35);
}
:root[data-theme='dark'] .comment-card.comment-card--donor-vip .comment-meta strong { color: #fcd34d; }
/* Donor chat messages - enhanced */
.chat-msg.is-donor { position: relative; border-radius: 12px; margin: 4px 0; padding: 6px 8px 6px 12px; }
.chat-msg.is-donor-supporter {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, transparent 50%);
}
.chat-msg.is-donor-premium {
  border-left: 4px solid #8b5cf6;
  background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, transparent 50%);
}
.chat-msg.is-donor-vip {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, transparent 50%);
}
.chat-msg.is-donor .chat-msg-name { font-weight: 700; }
.chat-msg.is-donor .chat-msg-text { font-weight: 500; letter-spacing: 0.01em; }
.chat-msg.is-donor-supporter .chat-msg-text { color: #fff; background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); border-radius: 14px 14px 14px 4px; }
.chat-msg.is-donor-premium .chat-msg-text { color: #fff; background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); border-radius: 14px 14px 14px 4px; }
.chat-msg.is-donor-vip .chat-msg-text { color: #fff; background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); border-radius: 14px 14px 14px 4px; }

/* Dark mode */
:root[data-theme="dark"] .chat-msg.is-donor-supporter { background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, transparent 50%); }
:root[data-theme="dark"] .chat-msg.is-donor-premium { background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, transparent 50%); }
:root[data-theme="dark"] .chat-msg.is-donor-vip { background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, transparent 50%); }
:root[data-theme="dark"] .chat-msg.is-donor-supporter .chat-msg-text { color: #fff; background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }
:root[data-theme="dark"] .chat-msg.is-donor-premium .chat-msg-text { color: #fff; background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); }
:root[data-theme="dark"] .chat-msg.is-donor-vip .chat-msg-text { color: #fff; background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }

/* ====== DONOR PROFILE THEMES ====== */

/* Supporter theme - blue accent */
body:not([data-theme="dark"]) .profile-theme-supporter .profile-overview-panel {
  box-shadow: 0 0 0 1px rgba(59,130,246,0.15), 0 8px 32px rgba(59,130,246,0.08);
}
body:not([data-theme="dark"]) .profile-theme-supporter .profile-overview-name {
  color: #1d4ed8;
}
.profile-theme-supporter .profile-overview-name::after {
  content: ' Supporter';
  font-size: 0.65rem;
  font-weight: 600;
  color: #3b82f6;
  background: rgba(59,130,246,0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Premium theme - purple with gradient border */
body:not([data-theme="dark"]) .profile-theme-premium .profile-overview-panel {
  box-shadow: 0 0 0 1px rgba(139,92,246,0.2), 0 8px 32px rgba(139,92,246,0.1);
  position: relative;
  overflow: hidden;
}
body:not([data-theme="dark"]) .profile-theme-premium .profile-overview-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd, #8b5cf6);
  background-size: 200% 100%;
  animation: sa-border-rotate 3s linear infinite;
}
body:not([data-theme="dark"]) .profile-theme-premium .profile-overview-name {
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* VIP theme - gold with glow */
body:not([data-theme="dark"]) .profile-theme-vip .profile-overview-panel {
  box-shadow: 0 0 0 1px rgba(245,158,11,0.25), 0 8px 32px rgba(245,158,11,0.12);
  position: relative;
  overflow: hidden;
}
body:not([data-theme="dark"]) .profile-theme-vip .profile-overview-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d, #f59e0b);
  background-size: 200% 100%;
  animation: sa-border-rotate 3s linear infinite;
}
body:not([data-theme="dark"]) .profile-theme-vip .profile-overview-name {
  background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.profile-theme-vip .profile-overview-panel::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ====== SUPER ADMIN THEMES ====== */

/* Admin Gold theme */
body:not([data-theme="dark"]) .profile-theme-admin-gold .profile-overview-panel {
  box-shadow: 0 0 0 1px rgba(234,179,8,0.25), 0 8px 32px rgba(234,179,8,0.12);
  position: relative;
  overflow: hidden;
}
body:not([data-theme="dark"]) .profile-theme-admin-gold .profile-overview-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ca8a04, #eab308, #facc15, #eab308);
  background-size: 200% 100%;
  animation: sa-border-rotate 3s linear infinite;
}
body:not([data-theme="dark"]) .profile-theme-admin-gold .profile-overview-name {
  background: linear-gradient(90deg, #a16207, #eab308, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.profile-theme-admin-gold .profile-overview-panel::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,179,8,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Admin Royal theme */
body:not([data-theme="dark"]) .profile-theme-admin-royal .profile-overview-panel {
  box-shadow: 0 0 0 1px rgba(220,38,38,0.25), 0 8px 32px rgba(220,38,38,0.12);
  position: relative;
  overflow: hidden;
}
body:not([data-theme="dark"]) .profile-theme-admin-royal .profile-overview-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #991b1b, #dc2626, #ef4444, #dc2626);
  background-size: 200% 100%;
  animation: sa-border-rotate 3s linear infinite;
}
body:not([data-theme="dark"]) .profile-theme-admin-royal .profile-overview-name {
  background: linear-gradient(90deg, #991b1b, #dc2626, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.profile-theme-admin-royal .profile-overview-panel::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,38,38,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Admin Phoenix theme */
body:not([data-theme="dark"]) .profile-theme-admin-phoenix .profile-overview-panel {
  box-shadow: 0 0 0 1px rgba(234,88,12,0.25), 0 8px 32px rgba(234,88,12,0.12);
  position: relative;
  overflow: hidden;
}
body:not([data-theme="dark"]) .profile-theme-admin-phoenix .profile-overview-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9a3412, #ea580c, #f97316, #ea580c);
  background-size: 200% 100%;
  animation: sa-border-rotate 3s linear infinite;
}
body:not([data-theme="dark"]) .profile-theme-admin-phoenix .profile-overview-name {
  background: linear-gradient(90deg, #9a3412, #ea580c, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.profile-theme-admin-phoenix .profile-overview-panel::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,88,12,0.08) 0%, transparent 70%);
  pointer-events: none;
}


/* ====== GLOBAL DONOR THEMES ====== */
/* Applied to body[data-donor-theme] for site-wide cascade */

/* Comment colors are applied per comment author, not from body[data-donor-theme]. */

.chat-msg-donor-badge {
  display: inline-flex;
  align-items: center;
}

/* Profile tags with donor theme */
[data-donor-theme="supporter"] .profile-chip { border-color: rgba(59,130,246,0.3); }
[data-donor-theme="premium"] .profile-chip { border-color: rgba(139,92,246,0.3); }
[data-donor-theme="vip"] .profile-chip { border-color: rgba(245,158,11,0.3); }
[data-donor-theme="admin-gold"] .profile-chip { border-color: rgba(234,179,8,0.3); }
[data-donor-theme="admin-royal"] .profile-chip { border-color: rgba(220,38,38,0.3); }
[data-donor-theme="admin-phoenix"] .profile-chip { border-color: rgba(234,88,12,0.3); }

/* Username color applied from user setting */

/* ====================================================================
   DONOR CURSOR — Premium Smooth Cursor
   ==================================================================== */

body[data-cursor-animation="1"],
body[data-cursor-animation="1"] * {
  cursor: none !important;
}

#d-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.2s;
}

#d-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  will-change: left, top, width, height;
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              background 0.35s, opacity 0.35s, border-color 0.35s;
  border: 1.5px solid rgba(255, 45, 120, 0.8);
  background: transparent;
  box-shadow: 0 0 10px rgba(255, 45, 120, 0.3), inset 0 0 10px rgba(168, 85, 247, 0.05);
}

/* Hover holati */
body[data-cursor-animation="1"].cursor-hovering #d-cursor-dot {
  width: 6px; height: 6px;
  opacity: 0.5;
}

body[data-cursor-animation="1"].cursor-hovering #d-cursor-ring {
  width: 56px; height: 56px;
  background: rgba(255, 45, 120, 0.06);
  border-color: rgba(168, 85, 247, 0.9);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), 0 0 40px rgba(255, 45, 120, 0.15);
}

/* Click holati */
body[data-cursor-animation="1"].cursor-clicking #d-cursor-dot {
  width: 5px; height: 5px;
  background: #ff2d78;
}

body[data-cursor-animation="1"].cursor-clicking #d-cursor-ring {
  width: 28px; height: 28px;
  border-color: #ff2d78;
  box-shadow: 0 0 16px rgba(255, 45, 120, 0.6);
}

/* ====================================================================
   DONOR EXTRA STYLES: Profile BG styles and Banner animations
   ==================================================================== */

/* 1. Profile BG styles */
.profile-overview-panel.profile-bg-gradient {
  background: linear-gradient(135deg, var(--surface, #1e293b) 0%, rgba(255, 45, 120, 0.12) 50%, rgba(168, 85, 247, 0.12) 100%) !important;
  border: 1px solid rgba(255, 45, 120, 0.15) !important;
}
.profile-overview-panel.profile-bg-mesh {
  background: var(--surface, #1e293b) !important;
  background-image:
    radial-gradient(at 0% 0%, rgba(255, 45, 120, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(245, 158, 11, 0.08) 0px, transparent 50%) !important;
  border: 1px solid rgba(168, 85, 247, 0.15) !important;
}
.profile-overview-panel.profile-bg-aurora {
  position: relative;
  overflow: hidden;
  background: var(--surface, #1e293b) !important;
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
}
.profile-overview-panel.profile-bg-aurora::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 45, 120, 0.08) 0%, rgba(168, 85, 247, 0.08) 35%, rgba(59, 130, 246, 0.04) 70%, transparent 100%);
  animation: auroraFlow 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.profile-overview-panel.profile-bg-aurora > * {
  position: relative;
  z-index: 1;
}

@keyframes auroraFlow {
  0% { transform: rotate(0deg) translate(0, 0); }
  50% { transform: rotate(180deg) translate(-5%, -5%); }
  100% { transform: rotate(360deg) translate(0, 0); }
}

/* 2. Banner Animations */

/* --- donor-banner base --- */
.donor-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  will-change: transform, filter, opacity;
}
.profile-hero,
.news-hero {
  position: relative;
  overflow: hidden !important;
}
.profile-hero .container,
.news-hero .container {
  position: relative;
  z-index: 2;
}

/* --- PULSE --- */
.banner-anim-pulse .donor-banner {
  animation: bannerPulse 3s ease-in-out infinite alternate;
}
.banner-anim-pulse.profile-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.4) 0%, rgba(168,85,247,0.3) 40%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

/* --- WAVE --- */
.banner-anim-wave .donor-banner {
  animation: bannerWave 5s ease-in-out infinite;
}
.banner-anim-wave.profile-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.25) 0%, rgba(168,85,247,0.25) 50%, rgba(251,191,36,0.15) 100%);
  animation: waveShimmer 5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* --- SLIDE --- */
.banner-anim-slide .donor-banner {
  width: 120% !important;
  max-width: none !important;
  left: -10%;
  animation: bannerSlide 10s ease-in-out infinite alternate;
}
.banner-anim-slide.profile-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.55) 0%, transparent 35%, transparent 65%, rgba(15,23,42,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* --- KEYFRAMES --- */
@keyframes bannerPulse {
  0%   { opacity: 0.75; filter: brightness(0.85) saturate(0.9); transform: scale(1); }
  50%  { opacity: 0.95; filter: brightness(1.1) saturate(1.2); transform: scale(1.03); }
  100% { opacity: 1;    filter: brightness(1.2) saturate(1.3) contrast(1.05); transform: scale(1.06); }
}
@keyframes pulseGlow {
  0%   { opacity: 0.25; transform: scale(0.94); }
  100% { opacity: 0.75; transform: scale(1.06); }
}
@keyframes bannerWave {
  0%   { transform: scale(1.04) translateY(0px) rotate(0deg);     filter: brightness(0.9) hue-rotate(0deg); }
  25%  { transform: scale(1.06) translateY(-6px) rotate(0.3deg);  filter: brightness(1.05) hue-rotate(8deg); }
  50%  { transform: scale(1.08) translateY(-10px) rotate(0deg);   filter: brightness(1.15) hue-rotate(15deg) saturate(1.2); }
  75%  { transform: scale(1.06) translateY(-6px) rotate(-0.3deg); filter: brightness(1.05) hue-rotate(8deg); }
  100% { transform: scale(1.04) translateY(0px) rotate(0deg);     filter: brightness(0.9) hue-rotate(0deg); }
}
@keyframes waveShimmer {
  0%, 100% { opacity: 0.35; transform: translateX(-6%); }
  50%       { opacity: 0.75; transform: translateX(6%); }
}
@keyframes bannerSlide {
  0%   { transform: scale(1.08) translateX(0%);  filter: brightness(0.9) saturate(1.1); }
  50%  { transform: scale(1.1)  translateX(-4%); filter: brightness(1.1) saturate(1.3); }
  100% { transform: scale(1.08) translateX(-8%); filter: brightness(0.95) saturate(1.1); }
}

/* ====================================================================
   DONOR & THEMED USER PREVIEW DIALOG STYLES
   ==================================================================== */
.chat-user-preview-dialog[class*="is-themed-"] {
  border: none !important;
  padding: 2px;
  overflow: visible;
  border-radius: 18px;
}

/* Custom background for the dialog itself */
.chat-user-preview-dialog[class*="is-themed-"]::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  z-index: 0;
  background: var(--theme-preview-border, linear-gradient(120deg, #6366f1, #a855f7));
  background-size: 200% 200%;
  animation: sa-border-rotate 4s linear infinite;
}

.chat-user-preview-dialog[class*="is-themed-"] .chat-user-preview-shell {
  position: relative;
  z-index: 1;
  background: var(--theme-preview-bg, #0d1526);
  border-radius: 16px;
  overflow: hidden;
}

/* Subtle top aurora stripe */
.chat-user-preview-dialog[class*="is-themed-"] .chat-user-preview-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--theme-preview-border, linear-gradient(90deg, #6366f1, #a855f7));
  background-size: 200% 100%;
  animation: sa-border-rotate 3s linear infinite;
  border-radius: 16px 16px 0 0;
}

/* Radial glow behind avatar */
.chat-user-preview-dialog[class*="is-themed-"] .chat-user-preview-shell::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--theme-preview-glow, rgba(99, 102, 241, 0.2)) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.chat-user-preview-dialog[class*="is-themed-"] .chat-user-preview-body {
  position: relative;
  z-index: 1;
}

.chat-user-preview-dialog[class*="is-themed-"] .chat-user-preview-name {
  color: var(--theme-preview-name-color, #fff) !important;
  text-shadow: 0 0 10px var(--theme-preview-glow-strong, rgba(99, 102, 241, 0.5)) !important;
}

/* Specific theme definitions */

/* Supporter (Blue) */
.chat-user-preview-dialog.is-themed-supporter {
  --theme-preview-border: linear-gradient(120deg, #3b82f6, #1d4ed8, #3b82f6);
  --theme-preview-bg: linear-gradient(160deg, #091220 0%, #0d1b30 60%, #08111e 100%);
  --theme-preview-glow: rgba(59, 130, 246, 0.25);
  --theme-preview-glow-strong: rgba(59, 130, 246, 0.5);
  --theme-preview-name-color: #93c5fd;
}

/* Premium (Purple) */
.chat-user-preview-dialog.is-themed-premium {
  --theme-preview-border: linear-gradient(120deg, #8b5cf6, #6d28d9, #8b5cf6);
  --theme-preview-bg: linear-gradient(160deg, #100b20 0%, #170f30 60%, #0e0a1e 100%);
  --theme-preview-glow: rgba(139, 92, 246, 0.25);
  --theme-preview-glow-strong: rgba(139, 92, 246, 0.5);
  --theme-preview-name-color: #c084fc;
}

/* VIP (Gold/Amber) */
.chat-user-preview-dialog.is-themed-vip {
  --theme-preview-border: linear-gradient(120deg, #f59e0b, #b45309, #f59e0b);
  --theme-preview-bg: linear-gradient(160deg, #181005 0%, #241808 60%, #150e04 100%);
  --theme-preview-glow: rgba(245, 158, 11, 0.25);
  --theme-preview-glow-strong: rgba(245, 158, 11, 0.5);
  --theme-preview-name-color: #fcd34d;
}

/* Admin Gold */
.chat-user-preview-dialog.is-themed-admin-gold {
  --theme-preview-border: linear-gradient(120deg, #eab308, #ca8a04, #eab308);
  --theme-preview-bg: linear-gradient(160deg, #1c1904 0%, #292506 60%, #171503 100%);
  --theme-preview-glow: rgba(234, 179, 8, 0.3);
  --theme-preview-glow-strong: rgba(234, 179, 8, 0.6);
  --theme-preview-name-color: #fef08a;
  animation: sa-glow-pulse 3s ease infinite;
}

/* Admin Royal (Red) */
.chat-user-preview-dialog.is-themed-admin-royal {
  --theme-preview-border: linear-gradient(120deg, #dc2626, #991b1b, #dc2626);
  --theme-preview-bg: linear-gradient(160deg, #1a0505 0%, #2b0808 60%, #180505 100%);
  --theme-preview-glow: rgba(220, 38, 38, 0.3);
  --theme-preview-glow-strong: rgba(220, 38, 38, 0.6);
  --theme-preview-name-color: #fca5a5;
  animation: sa-glow-pulse 3s ease infinite;
}

/* Admin Phoenix (Orange/Flame) */
.chat-user-preview-dialog.is-themed-admin-phoenix {
  --theme-preview-border: linear-gradient(120deg, #ea580c, #9a3412, #ea580c);
  --theme-preview-bg: linear-gradient(160deg, #1c0b03 0%, #2c1206 60%, #1a0a03 100%);
  --theme-preview-glow: rgba(234, 88, 12, 0.3);
  --theme-preview-glow-strong: rgba(234, 88, 12, 0.6);
  --theme-preview-name-color: #fed7aa;
  animation: sa-glow-pulse 3s ease infinite;
}



:root[data-theme='dark'] .news-hero {
  background: linear-gradient(135deg, #020617, #1e0a3c, #0c1a3a, #2d0a6e, #020617);
  background-size: 400% 400%;
  animation: heroBgMove 8s ease infinite;
}

:root[data-theme='dark'] .banner-anim-pulse.profile-hero::after {
  background: radial-gradient(ellipse at 50% 50%, rgba(139,92,246,0.5) 0%, rgba(59,130,246,0.35) 40%, transparent 70%);
}
:root[data-theme='dark'] .banner-anim-wave.profile-hero::after {
  background: linear-gradient(135deg, rgba(14,165,233,0.3) 0%, rgba(139,92,246,0.3) 50%, rgba(45,212,191,0.2) 100%);
}
:root[data-theme='dark'] .banner-anim-slide.profile-hero::after {
  background: linear-gradient(90deg, rgba(2,6,23,0.7) 0%, transparent 35%, transparent 65%, rgba(2,6,23,0.7) 100%);
}
:root[data-theme='dark'] .banner-anim-pulse .donor-banner { filter: brightness(0.8) saturate(1.1); }
:root[data-theme='dark'] .banner-anim-wave .donor-banner { filter: brightness(0.75) saturate(1.2); }
:root[data-theme='dark'] .banner-anim-slide .donor-banner { filter: brightness(0.7) saturate(1.1); }


/* =====================================================================
   AI ANIMATSIYA OVERRIDE — Bomba Spring Physics
   ===================================================================== */
@keyframes aiCharSpring {
  0%   { opacity: 0; transform: translateY(6px) scale(0.7); filter: blur(3px); }
  55%  { opacity: 1; transform: translateY(-2px) scale(1.08); filter: blur(0); }
  80%  { transform: translateY(1px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes aiWordWave {
  0%   { opacity: 0; transform: translateY(8px) scale(0.92); filter: blur(2px); }
  60%  { opacity: 1; transform: translateY(-1px) scale(1.03); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes aiMessageEntrance {
  0%   { opacity: 0; transform: translateY(14px) scale(0.93); filter: blur(4px); }
  55%  { opacity: 1; transform: translateY(-3px) scale(1.02); filter: blur(0); }
  75%  { transform: translateY(1px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.ai-msg-char {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: aiCharSpring 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.ai-msg-word {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: aiWordWave 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.ai-msg-done {
  animation: aiMessageEntrance 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}


/* =====================================================================
   KABINET DROPDOWN — PRIME BOMBA DESIGN
   Light + Dark mode, silliq animatsiya, glassmorphism
   ===================================================================== */

/* Dropdown wrapper */
.nav-dropdown-details {
  position: relative;
}

/* Toggle chevron animatsiyasi */
.nav-dropdown-toggle .fa-chevron-down {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 11px;
  opacity: 0.75;
}
.nav-dropdown-details[open] .nav-dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

/* ── MENU SHELL ── */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: 20px;
  z-index: 9999;

  /* Light mode */
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 48px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255,255,255,0.6) inset;

  /* Animatsiya */
  animation: dropdownIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: top right;
}

/* ── MENU ITEMS ── */
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
}

.nav-dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

/* Shimmer effect */
.nav-dropdown-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.06));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-dropdown-item:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  transform: translateX(3px);
}

.nav-dropdown-item:hover::before {
  opacity: 1;
}

.nav-dropdown-item:hover i {
  color: #3b82f6;
  transform: scale(1.15);
}

.nav-dropdown-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-weight: 600;
}

.nav-dropdown-item.active i {
  color: #3b82f6;
}

/* Divider before logout */
.nav-dropdown-form {
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-dropdown-form .nav-dropdown-item {
  color: #ef4444;
}

.nav-dropdown-form .nav-dropdown-item i {
  color: #ef4444;
}

.nav-dropdown-form .nav-dropdown-item:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.nav-dropdown-form .nav-dropdown-item:hover i {
  color: #dc2626;
}

/* Stagger animatsiya — har item ketma-ket chiqadi */
.nav-dropdown-menu .nav-dropdown-item:nth-child(1),
.nav-dropdown-menu a:nth-child(1) { animation: dropdownItemIn 0.28s cubic-bezier(0.34,1.56,0.64,1) 0.04s both; }
.nav-dropdown-menu .nav-dropdown-item:nth-child(2),
.nav-dropdown-menu a:nth-child(2) { animation: dropdownItemIn 0.28s cubic-bezier(0.34,1.56,0.64,1) 0.08s both; }
.nav-dropdown-menu .nav-dropdown-item:nth-child(3),
.nav-dropdown-menu a:nth-child(3) { animation: dropdownItemIn 0.28s cubic-bezier(0.34,1.56,0.64,1) 0.12s both; }
.nav-dropdown-menu .nav-dropdown-item:nth-child(4),
.nav-dropdown-menu a:nth-child(4) { animation: dropdownItemIn 0.28s cubic-bezier(0.34,1.56,0.64,1) 0.16s both; }
.nav-dropdown-menu .nav-dropdown-item:nth-child(5),
.nav-dropdown-menu a:nth-child(5) { animation: dropdownItemIn 0.28s cubic-bezier(0.34,1.56,0.64,1) 0.20s both; }
.nav-dropdown-menu .nav-dropdown-item:nth-child(n+6),
.nav-dropdown-menu a:nth-child(n+6) { animation: dropdownItemIn 0.28s cubic-bezier(0.34,1.56,0.64,1) 0.24s both; }

/* ── DARK MODE ── */
:root[data-theme='dark'] .nav-dropdown-menu {
  background: rgba(10, 18, 32, 0.92);
  border-color: rgba(125, 180, 255, 0.14);
  box-shadow:
    0 4px 6px rgba(0,0,0,0.2),
    0 24px 56px rgba(0,0,0,0.45),
    0 0 0 1px rgba(125,180,255,0.08) inset;
}

:root[data-theme='dark'] .nav-dropdown-item {
  color: #e2e8f0;
}

:root[data-theme='dark'] .nav-dropdown-item i {
  color: #7db4ff;
}

:root[data-theme='dark'] .nav-dropdown-item:hover {
  background: rgba(125, 180, 255, 0.1);
  color: #93c5fd;
}

:root[data-theme='dark'] .nav-dropdown-item:hover i {
  color: #60a5fa;
}

:root[data-theme='dark'] .nav-dropdown-item.active {
  background: rgba(125, 180, 255, 0.12);
  color: #93c5fd;
}

:root[data-theme='dark'] .nav-dropdown-item.active i {
  color: #60a5fa;
}

:root[data-theme='dark'] .nav-dropdown-form {
  border-top-color: rgba(125, 180, 255, 0.1);
}

:root[data-theme='dark'] .nav-dropdown-form .nav-dropdown-item {
  color: #f87171;
}

:root[data-theme='dark'] .nav-dropdown-form .nav-dropdown-item i {
  color: #f87171;
}

:root[data-theme='dark'] .nav-dropdown-form .nav-dropdown-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

/* ── KEYFRAMES ── */
@keyframes dropdownIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.94);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes dropdownItemIn {
  0% {
    opacity: 0;
    transform: translateX(-8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── MOBILE ── */
@media (max-width: 980px) {
  .nav-dropdown-menu {
    position: static;
    background: rgba(255,255,255,0.06);
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 12px;
    padding: 4px 0;
    animation: none;
  }

  :root[data-theme='dark'] .nav-dropdown-menu {
    background: rgba(255,255,255,0.04);
  }

  .nav-dropdown-item {
    color: #fff;
    padding: 9px 12px;
  }

  .nav-dropdown-item i {
    color: rgba(255,255,255,0.6);
  }

  .nav-dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: none;
  }

  .nav-dropdown-item:hover i {
    color: #fff;
  }

  .nav-dropdown-form .nav-dropdown-item {
    color: #fca5a5;
  }
}


/* =====================================================================
   DROPDOWN — HAR MARTA ANIMATSIYA (is-open / is-closing)
   ===================================================================== */

/* Default holat — yashirin */
.nav-dropdown-menu {
  display: grid !important;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: none;
}

/* Ochilish */
.nav-dropdown-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  animation: ddOpen 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Yopilish */
.nav-dropdown-menu.is-closing {
  visibility: visible;
  pointer-events: none;
  animation: ddClose 0.22s cubic-bezier(0.55, 0, 0.9, 0.4) both;
}

@keyframes ddOpen {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.93);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes ddClose {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    filter: blur(3px);
  }
}

/* Item stagger — is-open da */
.nav-dropdown-menu.is-open > *:nth-child(1) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.04s both; }
.nav-dropdown-menu.is-open > *:nth-child(2) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.08s both; }
.nav-dropdown-menu.is-open > *:nth-child(3) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.12s both; }
.nav-dropdown-menu.is-open > *:nth-child(4) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.16s both; }
.nav-dropdown-menu.is-open > *:nth-child(5) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.20s both; }
.nav-dropdown-menu.is-open > *:nth-child(n+6) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.24s both; }

@keyframes ddItemIn {
  0%   { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ── KABINET ICON ── */
.prime-dd-toggle {
  gap: 8px;
}

.nav-dd-chevron {
  font-size: 11px !important;
  opacity: 0.7;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease !important;
}

.nav-dropdown-details[open] .nav-dd-chevron {
  transform: rotate(180deg) !important;
  opacity: 1;
}

/* Toggle hover effekti */
.prime-dd-toggle:hover .nav-dd-chevron {
  opacity: 1;
}

/* ── MOBILE: animatsiyasiz ── */
@media (max-width: 980px) {
  .nav-dropdown-menu {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .nav-dropdown-menu.is-open,
  .nav-dropdown-menu.is-closing {
    animation: none !important;
  }
  .nav-dropdown-menu.is-closing {
    display: none !important;
  }
}


/* =====================================================================
   DROPDOWN — HAR MARTA ANIMATSIYA (is-open / is-closing)
   ===================================================================== */
.nav-dropdown-menu {
  display: grid !important;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
}

.nav-dropdown-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  animation: ddOpen 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.nav-dropdown-menu.is-closing {
  visibility: visible;
  pointer-events: none;
  animation: ddClose 0.22s cubic-bezier(0.55, 0, 0.9, 0.4) both;
}

@keyframes ddOpen {
  0%   { opacity: 0; transform: translateY(-12px) scale(0.93); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes ddClose {
  0%   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-8px) scale(0.95); filter: blur(3px); }
}

.nav-dropdown-menu.is-open > *:nth-child(1) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.04s both; }
.nav-dropdown-menu.is-open > *:nth-child(2) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.08s both; }
.nav-dropdown-menu.is-open > *:nth-child(3) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.12s both; }
.nav-dropdown-menu.is-open > *:nth-child(4) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.16s both; }
.nav-dropdown-menu.is-open > *:nth-child(5) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.20s both; }
.nav-dropdown-menu.is-open > *:nth-child(n+6) { animation: ddItemIn 0.26s cubic-bezier(0.34,1.56,0.64,1) 0.24s both; }

@keyframes ddItemIn {
  0%   { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Chevron */
.nav-dd-chevron {
  font-size: 11px !important;
  opacity: 0.7;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease !important;
}
.nav-dropdown-details[open] .nav-dd-chevron {
  transform: rotate(180deg) !important;
  opacity: 1;
}

/* Mobile */
@media (max-width: 980px) {
  .nav-dropdown-menu,
  .nav-dropdown-menu.is-open,
  .nav-dropdown-menu.is-closing {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .nav-dropdown-menu.is-closing {
    display: none !important;
  }
}


/* details[open] bo'lsa nav-dropdown-menu ko'rinsin */
.nav-dropdown-details[open] .nav-dropdown-menu {
  display: grid !important;
}

/* is-open bo'lmasa ham details[open] da ko'rinsin (fallback) */
.nav-dropdown-details[open] .nav-dropdown-menu:not(.is-open):not(.is-closing) {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}


/* ============================================================
   SCROLL-TOP BLAST ANIMATION
   ============================================================ */

@keyframes stBlastRing {
  0%   { transform: translate(-50%,-50%) scale(0.4); opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(3.2); opacity: 0; }
}

@keyframes stIconLaunch {
  0%   { transform: scale(1)   translateY(0);    opacity: 1; filter: blur(0); }
  18%  { transform: scale(1.55) translateY(0);   opacity: 1; filter: blur(0); }
  55%  { transform: scale(2.8) translateY(-38px); opacity: 0.7; filter: blur(2px); }
  100% { transform: scale(0.1) translateY(-90px); opacity: 0; filter: blur(6px); }
}

@keyframes stIconReturn {
  0%   { transform: scale(0.1) translateY(20px); opacity: 0; filter: blur(4px); }
  60%  { transform: scale(1.18) translateY(-4px); opacity: 1; filter: blur(0); }
  80%  { transform: scale(0.92) translateY(2px);  opacity: 1; }
  100% { transform: scale(1)   translateY(0);    opacity: 1; }
}

@keyframes stParticle {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--st-px), var(--st-py)) scale(0); opacity: 0; }
}

@keyframes stGlow {
  0%   { box-shadow: 0 0 0 0 rgba(99,102,241,0.7), 0 8px 24px rgba(13,63,120,0.12); }
  40%  { box-shadow: 0 0 0 18px rgba(99,102,241,0), 0 0 40px rgba(99,102,241,0.5); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0), 0 8px 24px rgba(13,63,120,0.12); }
}

.scroll-top.is-blasting {
  animation: stGlow 0.55s ease-out forwards;
  pointer-events: none;
}

.scroll-top.is-blasting i {
  animation: stIconLaunch 0.52s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scroll-top.is-returning i {
  animation: stIconReturn 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Blast ring overlay */
.st-blast-ring {
  position: fixed;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid rgba(99,102,241,0.8);
  pointer-events: none;
  z-index: 9999;
  animation: stBlastRing 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}

.st-blast-ring--2 {
  animation-delay: 0.07s;
  border-color: rgba(139,92,246,0.6);
}

/* Particles */
.st-particle {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: stParticle 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}

:root[data-theme='dark'] .st-blast-ring {
  border-color: rgba(14,165,233,0.9);
}
:root[data-theme='dark'] .st-blast-ring--2 {
  border-color: rgba(168,85,247,0.7);
}

/* Final override: clean standalone light/dark switch with bulletproof perfect centering. */
.theme-toggle.js-theme-toggle {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.theme-toggle.js-theme-toggle i {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 18px !important;
  text-align: center !important;
  transition: opacity .18s ease, transform .18s ease !important;
}

.theme-toggle.js-theme-toggle .theme-toggle-dark-icon {
  display: inline-flex !important;
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(.72) rotate(-35deg) !important;
  pointer-events: none !important;
}

.theme-toggle.js-theme-toggle .theme-toggle-light-icon {
  display: inline-flex !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
  pointer-events: none !important;
}

:root[data-theme='dark'] .theme-toggle.js-theme-toggle .theme-toggle-light-icon,
body[data-theme='dark'] .theme-toggle.js-theme-toggle .theme-toggle-light-icon {
  display: inline-flex !important;
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(.72) rotate(35deg) !important;
}

:root[data-theme='dark'] .theme-toggle.js-theme-toggle .theme-toggle-dark-icon,
body[data-theme='dark'] .theme-toggle.js-theme-toggle .theme-toggle-dark-icon {
  display: inline-flex !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
}

/* Final theme fix: admin themes must color chat bubbles and comment cards too. */
.chat-msg.is-admin-theme,
.comment-card.comment-card--theme {
  --admin-theme-color: #64748b;
  --admin-theme-soft: rgba(100, 116, 139, 0.12);
  --admin-theme-mid: rgba(100, 116, 139, 0.22);
  --admin-theme-dark: rgba(100, 116, 139, 0.32);
}

.chat-msg.is-theme-admin-gold,
.comment-card.comment-card--theme-admin-gold {
  --admin-theme-color: #eab308;
  --admin-theme-soft: rgba(234, 179, 8, 0.10);
  --admin-theme-mid: rgba(234, 179, 8, 0.22);
  --admin-theme-dark: rgba(234, 179, 8, 0.36);
}

.chat-msg.is-theme-admin-royal,
.comment-card.comment-card--theme-admin-royal {
  --admin-theme-color: #dc2626;
  --admin-theme-soft: rgba(220, 38, 38, 0.10);
  --admin-theme-mid: rgba(220, 38, 38, 0.24);
  --admin-theme-dark: rgba(220, 38, 38, 0.38);
}

.chat-msg.is-theme-admin-phoenix,
.comment-card.comment-card--theme-admin-phoenix {
  --admin-theme-color: #ea580c;
  --admin-theme-soft: rgba(234, 88, 12, 0.10);
  --admin-theme-mid: rgba(234, 88, 12, 0.24);
  --admin-theme-dark: rgba(234, 88, 12, 0.38);
}

.chat-msg.is-admin-theme {
  position: relative;
  border-left: 4px solid var(--admin-theme-color) !important;
  border-radius: 12px;
  margin: 4px 0;
  padding: 6px 8px 6px 12px;
  background: linear-gradient(135deg, var(--admin-theme-soft), transparent 58%) !important;
}

.chat-msg.is-admin-theme .chat-msg-name {
  color: var(--admin-theme-color) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

.chat-msg.is-admin-theme .chat-msg-text,
.chat-msg.is-admin-theme.is-mine .chat-msg-text,
.chat-msg.is-admin-theme:not(.is-mine) .chat-msg-text,
.chat-msg.is-admin-theme.is-super-admin.is-mine .chat-msg-text,
.chat-msg.is-admin-theme.is-super-admin:not(.is-mine) .chat-msg-text {
  color: #fff !important;
  border: 1px solid var(--admin-theme-mid) !important;
  background: linear-gradient(135deg, var(--admin-theme-color), color-mix(in srgb, var(--admin-theme-color) 72%, #111827)) !important;
}

.comment-card.comment-card--theme {
  position: relative;
  border-color: var(--admin-theme-dark) !important;
  border-left: 4px solid var(--admin-theme-color) !important;
  background: linear-gradient(145deg, var(--admin-theme-soft) 0%, var(--surface) 52%, var(--admin-theme-mid) 100%) !important;
  box-shadow: 0 0 0 1px var(--admin-theme-mid), 0 8px 28px var(--admin-theme-soft) !important;
}

.comment-card.comment-card--theme::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(to bottom, var(--admin-theme-color), color-mix(in srgb, var(--admin-theme-color) 62%, #ffffff));
}

.comment-card.comment-card--theme .comment-meta strong {
  color: var(--admin-theme-color) !important;
}

:root[data-theme="dark"] .chat-msg.is-admin-theme {
  background: linear-gradient(135deg, var(--admin-theme-soft), transparent 60%) !important;
}

:root[data-theme="dark"] .chat-msg.is-admin-theme .chat-msg-text,
:root[data-theme="dark"] .chat-msg.is-admin-theme.is-mine .chat-msg-text,
:root[data-theme="dark"] .chat-msg.is-admin-theme:not(.is-mine) .chat-msg-text,
:root[data-theme="dark"] .chat-msg.is-admin-theme.is-super-admin.is-mine .chat-msg-text,
:root[data-theme="dark"] .chat-msg.is-admin-theme.is-super-admin:not(.is-mine) .chat-msg-text {
  color: #f8fafc !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--admin-theme-color) 40%, #111827), color-mix(in srgb, var(--admin-theme-color) 22%, #0f172a)) !important;
}

:root[data-theme="dark"] .comment-card.comment-card--theme {
  background: linear-gradient(145deg, color-mix(in srgb, var(--admin-theme-color) 18%, #0f172a) 0%, var(--surface) 52%, color-mix(in srgb, var(--admin-theme-color) 12%, #020617) 100%) !important;
}

/* Taste pass: replace flat glued side bars with an integrated premium ring. */
.comment-card.comment-card--donor-supporter { --rank-theme-color: #3b82f6; }
.comment-card.comment-card--donor-premium { --rank-theme-color: #8b5cf6; }
.comment-card.comment-card--donor-vip { --rank-theme-color: #f59e0b; }
.comment-card.comment-card--theme { --rank-theme-color: var(--admin-theme-color); }

.comment-card.comment-card--donor,
.comment-card.comment-card--theme {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rank-theme-color) 42%, transparent) !important;
  border-left: 1px solid color-mix(in srgb, var(--rank-theme-color) 42%, transparent) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--rank-theme-color) 18%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--rank-theme-color) 9%, var(--surface)) 0%, var(--surface) 55%, color-mix(in srgb, var(--rank-theme-color) 12%, var(--surface)) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 36px color-mix(in srgb, var(--rank-theme-color) 12%, transparent) !important;
}

.comment-card.comment-card--donor::before,
.comment-card.comment-card--theme::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 1px !important;
  border-radius: inherit !important;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--rank-theme-color) 96%, #ffffff) 0%,
      color-mix(in srgb, var(--rank-theme-color) 36%, transparent) 18%,
      rgba(255, 255, 255, 0.08) 48%,
      color-mix(in srgb, var(--rank-theme-color) 56%, transparent) 100%) !important;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.comment-card.comment-card--donor > *,
.comment-card.comment-card--theme > * {
  position: relative;
  z-index: 1;
}

:root[data-theme="dark"] .comment-card.comment-card--donor,
:root[data-theme="dark"] .comment-card.comment-card--theme {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--rank-theme-color) 24%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--rank-theme-color) 13%, #0f172a) 0%, var(--surface) 55%, color-mix(in srgb, var(--rank-theme-color) 10%, #020617) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 16px 44px color-mix(in srgb, var(--rank-theme-color) 18%, transparent) !important;
}

.user-status-emoji {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  font-style: normal;
}

/* Diamond Icon / Emoji Color */
.donor-badge--vip .fa-gem,
.donor-badge--premium .fa-gem,
.chat-user-preview-dialog .fa-gem {
  color: #38bdf8 !important;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

/* ====================================================================
   HERO PARALLAX SCROLL PERFORMANCE OPTIMIZATIONS
   ==================================================================== */
.news-hero,
.profile-hero {
  position: relative;
  overflow: hidden !important;
  will-change: transform;
}
.news-hero-content {
  will-change: transform, opacity;
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}
.donor-banner {
  will-change: transform;
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ====================================================================
   HIGH-END AGENCY DROPDOWN AESTHETICS (Language & Cabinet)
   ==================================================================== */

/* Double-Bezel Glassmorphism Dropdown Menu */
.nav-dropdown-menu {
  padding: 10px !important;
  border-radius: 22px !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease !important;
}

:root[data-theme="dark"] .nav-dropdown-menu {
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

/* User Card Badge inside Cabinet Dropdown */
.nav-dropdown-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
:root[data-theme="dark"] .nav-dropdown-user-badge {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.nav-dropdown-user-badge:hover {
  transform: translateY(-1px);
}
.nav-dd-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}
.nav-dd-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 2px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-dd-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nav-dd-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dd-role {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
  margin: 6px 4px 8px;
}
:root[data-theme="dark"] .nav-dropdown-divider {
  background: rgba(255, 255, 255, 0.08);
}

/* Micro-Interaction items */
.nav-dropdown-item {
  border-radius: 14px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.nav-dropdown-item i {
  font-size: 15px !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease !important;
}
.nav-dropdown-item:hover i {
  transform: scale(1.22) rotate(-4deg) !important;
}

/* Language Code Pills inside Locale Switcher Dropdown */
.nav-dropdown--bomba-locale .locale-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-right: 8px;
}
.nav-dropdown--bomba-locale .active-indicator {
  margin-left: auto;
  color: #10b981;
  font-size: 14px;
}





/* ====================================================================
   DONOR CURSOR ANIMATIONS — Keyframes
   ==================================================================== */

@keyframes cursorOrbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes cursorPulsePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

@keyframes cursorColorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cursorTrailingGlow {
  0%, 100% { box-shadow: 0 0 12px #f59e0b, 0 0 24px #f59e0b; }
  50% { box-shadow: 0 0 20px #f59e0b, 0 0 40px #f59e0b; }
}

@keyframes cursorArrowRotate {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg); }
  25% { transform: translate(-50%, -50%) rotate(135deg); }
  50% { transform: translate(-50%, -50%) rotate(225deg); }
  75% { transform: translate(-50%, -50%) rotate(315deg); }
}

/* Glass lens special effect */
body[data-cursor-animation="1"][data-cursor-type="glass"] #d-cursor-ring {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body[data-cursor-animation="1"][data-cursor-type="glass"].cursor-hovering #d-cursor-ring {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Trailing particle effect */
body[data-cursor-animation="1"][data-cursor-type="trailing"] #d-cursor-ring::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: #fbbf24;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cursorTrailingGlow 1s ease-in-out infinite;
}

/* Color shifter animation */
body[data-cursor-animation="1"][data-cursor-type="color_shifter"] #d-cursor-ring {
  background-size: 300% 300%;
  animation: cursorColorShift 4s ease infinite;
}

/* Arrow special styling */
body[data-cursor-animation="1"][data-cursor-type="arrow"] #d-cursor-dot {
  clip-path: polygon(50% 0%, 100% 100%, 50% 70%, 0% 100%);
  border-radius: 0;
  animation: cursorArrowRotate 4s ease-in-out infinite;
}

/* Mobile: disable custom cursor */
@media (max-width: 768px) {
  body[data-cursor-animation="1"],
  body[data-cursor-animation="1"] * {
    cursor: auto !important;
  }
  #d-cursor-dot, #d-cursor-ring {
    display: none !important;
  }
}

/* Arrow rotation animation */
@keyframes cursorArrowRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Color spinner animation */
@keyframes cursorColorSpin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

/* Glass lens magnifier effect */
body[data-cursor-animation="1"][data-cursor-type="glass"] #d-cursor-ring::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  border: 1.5px solid rgba(168,85,247,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Trailing particles extra */
body[data-cursor-animation="1"][data-cursor-type="trailing"] #d-cursor-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: rgba(251,191,36,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cursorTrailingParticle 0.8s ease-out infinite;
}

@keyframes cursorTrailingParticle {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-80%, -30%) scale(0.3); }
}

/* ═══ View Transition — tezkor sahifa o'tish animatsiyasi (Premium/VIP) ═══ */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.18s;
}

/* =====================================================================
   BLOCKED USER LIVE COUNTDOWN & LOCK BAR (GLOBAL CHAT & AI)
   ===================================================================== */
.chat-user-blocked-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(245, 158, 11, 0.05));
  border-top: 1px solid rgba(239, 68, 68, 0.22);
  position: relative;
  overflow: hidden;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.chat-user-blocked-bar[hidden],
.chat-blocked-timer-digits[hidden],
.chat-blocked-permanent[hidden] {
  display: none !important;
}

:root[data-theme='dark'] .chat-user-blocked-bar {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(245, 158, 11, 0.08));
  border-top-color: rgba(239, 68, 68, 0.35);
}

.chat-blocked-inline-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.chat-blocked-lock-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  animation: lockPulseGlow 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes lockPulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.6), 0 0 22px rgba(245, 158, 11, 0.35);
  }
}

.chat-blocked-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.chat-blocked-top-row {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  line-height: 1.2;
}

.chat-blocked-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ef4444;
  white-space: nowrap;
}

:root[data-theme='dark'] .chat-blocked-label {
  color: #fca5a5;
}

.chat-blocked-dot {
  color: var(--muted, #94a3b8);
  font-size: 0.7rem;
}

.chat-blocked-reason {
  font-size: 0.72rem;
  color: var(--muted, #64748b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-blocked-timer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.chat-blocked-timer-digits {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 8px;
  padding: 2px 7px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

:root[data-theme='dark'] .chat-blocked-timer-digits {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(239, 68, 68, 0.32);
}

.chat-timer-icon {
  color: #f59e0b;
  font-size: 10px;
  margin-right: 3px;
}

.timer-unit-group {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.timer-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  color: #ef4444;
  letter-spacing: -0.02em;
}

:root[data-theme='dark'] .timer-num {
  color: #f87171;
}

.timer-num--sec {
  color: #f59e0b !important;
  animation: secondTickAnim 1s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes secondTickAnim {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

.timer-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--muted, #94a3b8);
}

.timer-sep {
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(239, 68, 68, 0.45);
  margin: 0 1px;
}

.chat-blocked-permanent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #ef4444;
  font-size: 0.74rem;
  font-weight: 700;
}

:root[data-theme='dark'] .chat-blocked-permanent {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}


