:root {
  --site-panel: rgba(238, 241, 247, 0.78);
  --site-panel-strong: rgba(241, 244, 249, 0.9);
  --site-stroke: rgba(120, 140, 170, 0.14);
  --site-muted-surface: rgba(59, 130, 246, 0.05);
  --site-shadow-lg: 0 24px 60px rgba(50, 70, 100, 0.08);
  --site-shadow-md: 0 16px 40px rgba(50, 70, 100, 0.06);
}

:root[data-theme='dark'] {
  --site-panel: rgba(12, 22, 37, 0.84);
  --site-panel-strong: rgba(9, 17, 29, 0.92);
  --site-stroke: rgba(148, 163, 184, 0.18);
  --site-muted-surface: rgba(125, 180, 255, 0.09);
  --site-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.36);
  --site-shadow-md: 0 16px 40px rgba(0, 0, 0, 0.28);
}

body {
  text-rendering: optimizeLegibility;
}

.desktop-header-tools {
  gap: 10px;
}

.header-tool-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}



.header-notification-link {
  position: relative;
  text-decoration: none;
  color: var(--primary, #0d3f78) !important; /* Ensure brand color in light mode */
}

.header-notification-link.has-unread {
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

:root[data-theme='dark'] .header-notification-link {
  border-color: rgba(125, 180, 255, 0.26) !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(76, 29, 149, 0.18)) !important;
  color: #e6f1ff !important;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
}

:root[data-theme='dark'] .header-notification-link:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(99, 102, 241, 0.24)) !important;
  border-color: rgba(125, 180, 255, 0.42) !important;
}

:root[data-theme='dark'] .header-notification-link.has-unread {
  border-color: rgba(45, 212, 191, 0.52) !important;
  box-shadow:
    0 0 0 3px rgba(45, 212, 191, 0.18),
    0 16px 30px rgba(8, 47, 73, 0.34);
}

.header-notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(239, 68, 68, 0.3);
}

.home-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.site-section-nav-wrap {
  position: relative;
  z-index: 12;
  margin-top: -28px;
  padding-bottom: 14px;
}

.site-section-nav {
  position: sticky;
  top: calc(var(--fixed-header-clearance, 108px) - 12px);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px; /* Slightly reduced padding */
  border: 1px solid rgba(255, 255, 255, 0.4); /* Stronger white border for light mode over video */
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45); /* More transparent for better glass effect */
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}

:root[data-theme='dark'] .site-section-nav {
  background: var(--site-panel);
  border-color: var(--site-stroke);
}

.site-section-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-section-nav-link:hover,
.site-section-nav-link.is-active {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(21, 101, 192, 0.24);
}

[data-sticky-filter] {
  position: sticky;
  top: calc(var(--fixed-header-clearance, 108px) + 8px);
  z-index: 20;
}

/* Exam page filter should scroll naturally with content */
.exam-page [data-sticky-filter] {
  position: static;
  top: auto;
}

/* Courses page filter should also scroll with content */
.courses-page [data-sticky-filter] {
  position: static;
  top: auto;
}

.filter-shell {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--site-stroke);
  background: var(--site-panel);
  box-shadow: var(--site-shadow-md);
  backdrop-filter: blur(18px);
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.filter-active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tag,
.filter-reset-link {cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--site-stroke);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
}

.filter-tag {
  cursor: pointer;
}

.filter-reset-link {
  color: var(--primary);
}

:root[data-theme='dark'] .filter-tag,
:root[data-theme='dark'] .filter-reset-link {
  background: rgba(255, 255, 255, 0.05);
}

.filter-empty-copy {
  color: var(--muted);
  font-size: 13px;
}

.courses-page-summary,
.notifications-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.filter-meta-card,
.notifications-stat {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--site-stroke);
  background: var(--site-panel);
  box-shadow: var(--site-shadow-md);
}

.notifications-stat {
  position: relative;
}

.notifications-stat--accent {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), var(--site-panel));
}

.notifications-stat-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
}

.filter-meta-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.filter-meta-card strong,
.notifications-stat strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.filter-meta-card p,
.notifications-stat span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.course-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.course-card-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-card-summary {
  min-height: 72px;
}

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

.course-card-manage-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.course-enroll-panel {
  margin-top: 14px;
  border: 1px solid var(--site-stroke);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  overflow: hidden;
}

.course-enroll-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
}

.course-enroll-summary::-webkit-details-marker {
  display: none;
}

.course-enroll-body {
  padding: 0 16px 16px;
}

.course-enrolled-pill--pending {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.course-enrolled-pill--rejected,
.course-form-message {
  color: #b91c1c;
}

.course-form-message {
  font-size: 13px;
}

:root[data-theme='dark'] .course-enroll-panel,
:root[data-theme='dark'] .course-details-kpi,
:root[data-theme='dark'] .course-story-card {
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme='dark'] .course-enrolled-pill--pending {
  color: #fbbf24;
}

:root[data-theme='dark'] .course-enrolled-pill--rejected,
:root[data-theme='dark'] .course-form-message {
  color: #fca5a5;
}

.exam-hero-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.95rem;
}

.exam-hero-hint i {
  opacity: 0.85;
}

.exam-parent-alert {
  padding: 28px 22px;
  text-align: center;
}

.exam-parent-alert-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.exam-parent-alert-title i {
  margin-right: 6px;
  opacity: 0.7;
}

.exam-parent-alert-text,
.exam-card-note,
.exam-empty-message {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.exam-empty-message {
  font-size: 16px;
}

.exam-empty-message i {
  opacity: 0.55;
}

.exam-hero-badge--scheduled {
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.search-results-page {
  padding-bottom: 60px;
}

.search-results-form {
  margin-top: 16px;
}

.search-results-field {
  flex: 1 1 100%;
}

.search-results-input-row {
  display: flex;
  gap: 12px;
}

.search-results-submit {
  min-width: 130px;
}

.search-results-head {
  margin-bottom: 26px;
  text-align: left;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--site-stroke);
  border-radius: 24px;
  background: var(--site-panel);
  box-shadow: var(--site-shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--site-shadow-lg);
}

.search-result-media img,
.search-result-fallback {
  display: block;
  width: 132px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
}

.search-result-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--site-muted-surface);
  color: var(--primary);
  font-size: 1.7rem;
}

.search-result-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.search-result-type {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result-type--post { background: rgba(16, 185, 129, 0.12); color: #059669; }
.search-result-type--teacher { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.search-result-type--course { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.search-result-type--exam { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }

.search-result-title {
  font-size: 18px;
  color: var(--text);
}

.search-result-desc {
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.search-result-arrow {
  color: var(--primary);
  font-size: 1rem;
}

.notifications-page {
  padding-bottom: 80px;
}

.notifications-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.notifications-filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notifications-filter {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--site-stroke);
  background: var(--site-panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.notifications-filter.is-active {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notification-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--site-stroke);
  background: var(--site-panel);
  box-shadow: var(--site-shadow-md);
}

.notification-card.is-unread {
  border-color: rgba(20, 184, 166, 0.3);
}

.notification-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--site-muted-surface);
  color: var(--primary);
}

.notification-card-icon--success { color: #059669; background: rgba(16, 185, 129, 0.12); }
.notification-card-icon--warning { color: #d97706; background: rgba(245, 158, 11, 0.12); }
.notification-card-icon--error { color: #dc2626; background: rgba(239, 68, 68, 0.12); }

.notification-card-head,
.notification-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-card h2 {
  margin: 0;
  font-size: 18px;
}

.notification-card p,
.notification-card-date {
  color: var(--muted);
}

.notification-card-meta {
  margin-top: 12px;
}

.notification-card-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notification-card-state.is-unread { color: #0f766e; }
.notification-card-state.is-read { color: var(--muted); }

.notification-empty {
  padding: 40px 24px;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed var(--site-stroke);
  background: var(--site-panel);
  color: var(--muted);
}

.notification-empty i {
  margin-bottom: 12px;
  font-size: 2rem;
  color: var(--primary);
}

.course-details-hero-strip,
.course-details-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.course-details-hero-strip {
  margin-bottom: 18px;
}

.course-details-kpi,
.course-story-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--site-stroke);
  background: rgba(255, 255, 255, 0.52);
}

.course-details-kpi span,
.course-story-card h3 {
  display: block;
  margin-bottom: 8px;
}

.course-details-kpi strong {
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
}

.course-story-card h3 {
  font-size: 1rem;
}

.course-story-card p {
  margin: 0;
  color: var(--muted);
}

.profile-panel-switcher {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--site-stroke);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.02), rgba(11, 120, 155, 0.06)),
    var(--site-panel);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.profile-panel-switcher-head {
  display: grid;
  gap: 4px;
}

.profile-panel-switcher-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.profile-panel-switcher-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 120, 155, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-panel-switcher-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(11, 120, 155, 0.12);
}

.profile-panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.profile-panel-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid var(--site-stroke);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.profile-panel-tab span {
  line-height: 1.2;
}

.profile-panel-tab.is-active,
.profile-panel-tab:hover {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(11, 120, 155, 0.16);
  color: #fff;
}

.profile-panel-tab--link {
  margin-left: 0;
}

:root[data-theme='dark'] .profile-panel-switcher {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
}

:root[data-theme='dark'] .profile-panel-switcher-head p {
  color: #94a3b8;
}

:root[data-theme='dark'] .profile-panel-switcher-kicker {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
}

:root[data-theme='dark'] .profile-panel-switcher-kicker::before {
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.15);
}

:root[data-theme='dark'] .profile-panel-tab {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
}

:root[data-theme='dark'] .profile-panel-tab:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(168, 85, 247, 0.35);
  color: #f1f5f9;
}

:root[data-theme='dark'] .profile-panel-tab.is-active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.38);
}

.profile-panel-aside-note {
  background: var(--site-panel) !important;
}

.profile-form-grid--settings {
  margin-top: 15px;
}

.profile-field-hint--spaced {
  margin-bottom: 10px;
}

/* ── Chat Username Font Families ── */
.chat-msg-name.font-orbitron { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.04em; }
.chat-msg-name.font-caveat { font-family: 'Caveat', cursive; font-size: 16px; font-weight: 700; }
.chat-msg-name.font-press-start { font-family: 'Press Start 2P', monospace; font-size: 9px; letter-spacing: 0.02em; }
.chat-msg-name.font-pacifico { font-family: 'Pacifico', cursive; font-size: 14px; }
.chat-msg-name.font-righteous { font-family: 'Righteous', sans-serif; font-size: 13px; letter-spacing: 0.02em; }
.chat-msg-name.font-bungee { font-family: 'Bungee', sans-serif; font-size: 12px; letter-spacing: 0.03em; }
.chat-msg-name.font-permanent-marker { font-family: 'Permanent Marker', cursive; font-size: 14px; }

/* Comment author font families */
.comment-meta strong.font-orbitron { font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 0.04em; }
.comment-meta strong.font-caveat { font-family: 'Caveat', cursive; font-size: 16px; font-weight: 700; }
.comment-meta strong.font-press-start { font-family: 'Press Start 2P', monospace; font-size: 9px; letter-spacing: 0.02em; }
.comment-meta strong.font-pacifico { font-family: 'Pacifico', cursive; font-size: 14px; }
.comment-meta strong.font-righteous { font-family: 'Righteous', sans-serif; font-size: 13px; letter-spacing: 0.02em; }
.comment-meta strong.font-bungee { font-family: 'Bungee', sans-serif; font-size: 12px; letter-spacing: 0.03em; }
.comment-meta strong.font-permanent-marker { font-family: 'Permanent Marker', cursive; font-size: 14px; }

/* Profile header font families */
.profile-overview-name.font-orbitron { font-family: 'Orbitron', sans-serif; letter-spacing: 0.04em; }
.profile-overview-name.font-caveat { font-family: 'Caveat', cursive; font-size: 1.6em; font-weight: 700; }
.profile-overview-name.font-press-start { font-family: 'Press Start 2P', monospace; font-size: 0.9em; letter-spacing: 0.02em; }
.profile-overview-name.font-pacifico { font-family: 'Pacifico', cursive; font-size: 1.3em; }
.profile-overview-name.font-righteous { font-family: 'Righteous', sans-serif; letter-spacing: 0.02em; }
.profile-overview-name.font-bungee { font-family: 'Bungee', sans-serif; letter-spacing: 0.03em; }
.profile-overview-name.font-permanent-marker { font-family: 'Permanent Marker', cursive; font-size: 1.2em; }

/* Badge va emoji rangini tiklash — asl rangida qoldirish */
.chat-user-preview-name .donor-badge { color: var(--db-color, #6366f1) !important; }
.chat-user-preview-name .user-status-emoji { color: initial !important; }
.chat-user-preview-name img { color: initial !important; }
.chat-msg-name .donor-badge { color: var(--db-color, #6366f1) !important; }
.chat-msg-name .user-status-emoji { color: initial !important; }
.comment-meta strong .donor-badge { color: var(--db-color, #6366f1) !important; }

/* Preview dialog font families */
.chat-user-preview-name.font-orbitron { font-family: 'Orbitron', sans-serif; font-size: 20px !important; letter-spacing: 0.04em; }
.chat-user-preview-name.font-caveat { font-family: 'Caveat', cursive; font-size: 28px !important; font-weight: 700; }
.chat-user-preview-name.font-press-start { font-family: 'Press Start 2P', monospace; font-size: 14px !important; letter-spacing: 0.02em; }
.chat-user-preview-name.font-pacifico { font-family: 'Pacifico', cursive; font-size: 24px !important; }
.chat-user-preview-name.font-righteous { font-family: 'Righteous', sans-serif; font-size: 22px !important; letter-spacing: 0.02em; }
.chat-user-preview-name.font-bungee { font-family: 'Bungee', sans-serif; font-size: 20px !important; letter-spacing: 0.03em; }
.chat-user-preview-name.font-permanent-marker { font-family: 'Permanent Marker', cursive; font-size: 24px !important; }

/* ── Hero Grid (home hero) ── */
.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-side-card {
  position: relative;
  width: 100%;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding-inline: 24px;
  }

  .page-header .container {
    padding-inline: 12px;
  }

  .header-main {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    padding: 10px 16px !important;
    gap: 12px;
  }

  .menu-toggle {
    display: none !important;
  }

  .login.desktop-header-tools {
    display: inline-flex !important;
    flex-shrink: 0;
    gap: 8px;
  }

  .desktop-header-tools .btn,
  .desktop-header-tools .btn-outline {
    padding: 8px 14px;
    font-size: 13px;
  }


  #site-nav {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  #site-nav ul {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  #site-nav ul::-webkit-scrollbar {
    display: none;
  }

  #site-nav .nav-link {
    font-size: 13px;
    padding: 6px 8px;
  }

  .mobile-theme-toggle-wrap,
  .mobile-ai-toggle-wrap,
  .mobile-nav-extras {
    display: none !important;
  }

  .card-home {
    position: relative;
    min-height: 100svh;
    height: auto;
    padding-top: clamp(108px, 13vw, 136px);
    padding-bottom: clamp(88px, 12vw, 120px);
    display: flex;
    align-items: center;
    align-content: center;
    gap: 24px;
    padding-right: 96px;
  }

  .home-content,
  .hero-content {
    width: 100%;
    max-width: min(100%, 56ch);
    align-self: center;
  }

  .hero-grid {
    position: relative;
    min-height: 100svh;
    height: auto;
    padding-top: clamp(108px, 13vw, 136px);
    padding-bottom: clamp(88px, 12vw, 120px);
    grid-template-columns: 1fr;
    gap: 40px;
    padding-right: 96px;
  }

  .hero-title {
    font-size: clamp(42px, 6.2vw, 62px);
    margin-bottom: 18px;
    display: grid;
    gap: 6px;
  }

  .home-content p,
  .hero-content p {
    max-width: 100%;
    font-size: clamp(17px, 2vw, 20px);
  }

  .hero-title .js-split-text {
    width: auto !important;
    display: block;
    max-width: 100%;
  }

  .hero-title span {
    font-size: clamp(27px, 3.7vw, 34px);
    white-space: nowrap;
  }

  .hero-title strong {
    font-size: clamp(38px, 5.4vw, 58px);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .hero-title.hero-title-3d {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 0 0 0 22px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .hero-title.hero-title-3d .hero-title-top {
    font-size: 0.92rem !important;
    letter-spacing: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .hero-title.hero-title-3d .hero-title-main {
    font-size: 4.2rem !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
  }

  .hero-title.hero-title-3d .word-3d,
  .hero-title.hero-title-3d .char-3d {
    font-size: inherit !important;
  }

  .home-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    align-self: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px;
    gap: 12px;
  }

  .site-section-nav {
    top: calc(var(--fixed-header-clearance, 104px) + 4px);
    justify-content: center;
  }

  .site-section-nav-link,
  .home-primary-actions .btn {
    white-space: nowrap;
  }

  .news-hero-content,
  .teachers-hero-content,
  .about-hero-content,
  .contact-hero-content,
  .courses-hero-content,
  .sow-hero-content {
    max-width: min(100%, 62ch);
  }

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

  .about-highlight {
    grid-column: 1 / -1;
  }

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

  .teacher {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
  }

  .teacher-img {
    width: min(100%, 360px);
    margin-left: auto;
  }

  .teacher-img img {
    height: clamp(320px, 42vw, 420px);
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 22px !important;
  }

  .footer-brand {
    grid-column: auto !important;
  }

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

  .footer-desc {
    max-width: none;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .home-primary-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .header-main {
    gap: 10px;
  }

  .desktop-header-tools .btn,
  .desktop-header-tools .btn-outline {
    padding-inline: 12px;
  }

  .card-home,
  .hero-grid {
    padding-top: 104px;
    padding-bottom: 96px;
    padding-right: 84px;
  }

  .home-content,
  .hero-content {
    max-width: min(100%, 50ch);
  }
}

@media (max-width: 920px) {
  .search-result-item,
  .notification-card {
    grid-template-columns: 1fr;
  }

  .search-result-media img,
  .search-result-fallback {
    width: 100%;
    height: 180px;
  }

  .search-result-arrow {
    display: none;
  }

  .notifications-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-panel-switcher {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  .profile-panel-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-section-nav {
    top: calc(var(--fixed-header-clearance, 108px) + 2px);
    padding: 12px;
  }

  .search-results-input-row {
    flex-direction: column;
  }

  .search-results-submit {
    width: 100%;
  }

  .filter-shell {
    padding: 18px;
  }

  .course-meta--grid {
    grid-template-columns: 1fr;
  }

  .profile-panel-switcher {
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
  }

  .profile-panel-tabs {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SUPREME BOMBA FOOTER (SITE-REFRESH OVERRIDE)
   ========================================================================== */
.footer {
  position: relative !important;
  background: var(--surface) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  color: var(--text) !important;
  border-top: 1px solid var(--border-soft) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

:root[data-theme='dark'] .footer {
  background: rgba(5, 12, 24, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.footer::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.4), transparent) !important;
  z-index: 1 !important;
}

.footer::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 4px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(20, 184, 166, 0.18) 10%, rgba(168, 85, 247, 0.95) 45%, rgba(20, 184, 166, 0.18) 90%, transparent 100%) !important;
  background-size: 220% 100% !important;
  filter: blur(1px) !important;
  animation: footerBorderGlow 4s ease-in-out infinite !important;
  pointer-events: none !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

.footer-container {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr !important;
  gap: 40px !important;
  padding: 60px 20px 40px !important;
  max-width: 1300px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
}

@keyframes footerBorderGlow {
  0%, 100% { background-position: 0% 50% !important; }
  50% { background-position: 100% 50% !important; }
}

@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .footer::after {
    display: none !important;
    animation: none !important;
  }
}

.footer-logo span {
  font-family: 'Outfit', sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
}

.footer-desc {
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: var(--muted) !important;
}

.footer-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 24px !important;
}

.footer-links a {
  color: var(--muted) !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.footer-links a:hover {
  color: var(--primary) !important;
  transform: translateX(10px) !important;
}

.social-link {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.social-link:hover {
  background: var(--accent) !important;
  transform: translateY(-5px) rotate(8deg) !important;
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.4) !important;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft) !important;
  padding: 30px 20px !important;
  text-align: center !important;
}

@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr !important;
    padding: 50px 20px 30px !important;
    gap: 30px !important;
  }
  .footer-logo, .footer-socials, .footer-title, .footer-bottom {
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   BOMBA AUTH PAGES (SITE-REFRESH OVERRIDE)
   ========================================================================== */
.signin-section, .register-section {
  padding: 60px 0 !important;
}

.signin-card, .register-card {
  max-width: 480px !important;
  background: var(--surface-strong) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 32px !important;
  padding: 50px !important;
  box-shadow: var(--shadow) !important;
  animation: authFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) both !important;
}

:root[data-theme='dark'] .signin-card,
:root[data-theme='dark'] .register-card {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.signin-form input, .register-form input, .register-form select {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 16px !important;
  padding: 14px 20px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

:root[data-theme='dark'] .signin-form input,
:root[data-theme='dark'] .register-form input,
:root[data-theme='dark'] .register-form select {
  background: rgba(30, 41, 59, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.signin-form input:focus, .register-form input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15) !important;
  background: var(--input-bg) !important;
  color: var(--text) !important;
}

:root[data-theme='dark'] .signin-form input:focus,
:root[data-theme='dark'] .register-form input:focus {
  background: rgba(30, 41, 59, 0.8) !important;
}

.signin-card-icon, .register-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  width: 70px !important;
  height: 70px !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 35px rgba(13, 63, 120, 0.2) !important;
}

.register-card {
  max-width: 800px !important; /* Register needs more width for grid */
}

.register-field-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
}

@media (max-width: 640px) {
  .register-field-grid {
    grid-template-columns: 1fr !important;
  }
  .signin-card, .register-card {
    padding: 30px 20px !important;
  }
}
/* ═══════════════════════════════════════════════════════════════
   BURGER MENU ANIMATION (hamburger → X)
   ═══════════════════════════════════════════════════════════════ */
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

.burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease;
  transform-origin: center;
}

/* Light mode overrides for menu-toggle & burger-bar */
:root:not([data-theme='dark']) .menu-toggle {
  color: #1e293b !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  background: rgba(148, 163, 184, 0.08) !important;
}

:root:not([data-theme='dark']) .menu-toggle:hover {
  background: rgba(148, 163, 184, 0.18) !important;
  border-color: rgba(148, 163, 184, 0.5) !important;
}

:root:not([data-theme='dark']) .burger-bar {
  background: #1e293b !important;
}

/* Open state: hamburger → X */
.menu-toggle.is-open .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .burger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle.is-open .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hover effect */
.menu-toggle:hover .burger-bar {
  opacity: 0.75;
}

.menu-toggle.is-open:hover .burger-bar {
  opacity: 1;
}

/* Mobile search button in header */
.mobile-search-btn {
  display: none;
}

@media (max-width: 767px) {
  .mobile-search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 14px !important;
  }
}

/* Locale flags */
.mobile-header-locale {
  display: none;
}

.mobile-header-actions {
  display: none;
}

@media (max-width: 767px) {
  .mobile-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
  }

  .mobile-header-locale {
    display: inline-flex;
    align-items: center;
  }

  .mobile-header-locale .nav-dropdown-toggle {
    min-height: 38px;
    padding: 6px 8px;
    border-radius: 12px;
    gap: 4px;
  }

  .mobile-header-locale .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 160px;
    z-index: 1400;
  }

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

.locale-flags-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.locale-flag {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.5;
}

.locale-flag.is-current {
  opacity: 1;
  transform: scale(1.15);
}

.nav-dropdown--bomba-locale .nav-dropdown-item .locale-flag {
  font-size: 22px;
  margin-right: 8px;
  opacity: 1;
  transform: none;
}

.nav-dropdown--bomba-locale summary .locale-flags-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown--bomba-locale summary .locale-flag {
  font-size: 20px;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown--bomba-locale summary .locale-flag.is-current {
  opacity: 1;
  transform: scale(1.2);
}

.nav-dropdown--bomba-locale summary:hover .locale-flag {
  opacity: 0.7;
}

.nav-dropdown--bomba-locale summary:hover .locale-flag.is-current {
  opacity: 1;
}

.footer-container {
  min-height: 300px !important;
  align-content: start !important;
}
.footer-links li {
  margin-bottom: 10px !important;
}
.signin-hero, .register-hero {
  padding-top: 130px !important;
  padding-bottom: 60px !important;
  background: linear-gradient(135deg, #08284d 0%, #0f172a 60%, #1e293b 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.signin-hero::before, .register-hero::before {
  content: "" !important;
  position: absolute !important;
  top: -20% !important;
  left: -10% !important;
  width: 60% !important;
  height: 80% !important;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%) !important;
  filter: blur(100px) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.signin-hero::after, .register-hero::after {
  content: "" !important;
  position: absolute !important;
  bottom: -10% !important;
  right: -5% !important;
  width: 50% !important;
  height: 60% !important;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%) !important;
  filter: blur(100px) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.signin-hero h1, .register-hero h1 {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(32px, 5vw, 42px) !important;
  color: #ffffff !important;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.22) !important;
}

.signin-hero p, .register-hero p {
  color: rgba(219, 233, 255, 0.95) !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
}

.signin-hero .container, .register-hero .container {
  max-width: 720px !important;
}

.signin-hero .container h1,
.register-hero .container h1,
.signin-hero .container p,
.register-hero .container p {
  position: relative !important;
  z-index: 1 !important;
}

.signin-forgot-link {
  color: var(--accent) !important;
  background: rgba(20, 184, 166, 0.1) !important;
  border: 1px solid rgba(20, 184, 166, 0.2) !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
}

.signin-forgot-link:hover {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3) !important;
}

/* Final tablet layout layer: this lives at the end so older Bomba overrides cannot re-break iPad. */
@media (min-width: 768px) and (max-width: 1180px) {
  .page-header .container {
    max-width: none !important;
    padding-inline: 12px !important;
  }

  .header-main {
    width: calc(100vw - 28px) !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 9px 12px !important;
  }

  .logo img {
    width: 42px !important;
    height: 42px !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    order: 4 !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
  }

  #site-nav {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 12px !important;
    background:
      linear-gradient(135deg, rgba(8, 21, 39, 0.98), rgba(10, 35, 62, 0.96)) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 22px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
    z-index: 1300 !important;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease !important;
  }

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

  #site-nav ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 0 !important;
    max-height: min(70vh, 560px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
    scrollbar-width: thin;
  }

  #site-nav ul::-webkit-scrollbar {
    display: none;
  }

  #site-nav ul li {
    display: block !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  #site-nav .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
  }

  #site-nav .nav-link.active,
  #site-nav .nav-link:hover {
    background: rgba(77, 166, 255, 0.18) !important;
    border-color: rgba(77, 166, 255, 0.32) !important;
  }

  #site-nav .nav-dropdown,
  #site-nav .nav-dropdown-details {
    display: block !important;
    width: 100% !important;
  }

  #site-nav .nav-dropdown--offset {
    margin-top: 0 !important;
  }

  #site-nav .nav-dropdown-toggle {
    justify-content: space-between !important;
  }

    #site-nav .nav-dropdown-menu {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 100% !important;
    margin-top: 8px !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  /* Light mode for tablet/mobile #site-nav */
  :root:not([data-theme='dark']) #site-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-radius: 16px !important;
  }

  :root:not([data-theme='dark']) #site-nav .nav-link {
    color: #1e293b !important;
    background: transparent !important;
    border: none !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
  }

  :root:not([data-theme='dark']) #site-nav .nav-link::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(139, 92, 246, 0.08)) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: 10px !important;
  }

  :root:not([data-theme='dark']) #site-nav .nav-link::after {
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent) !important;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.5) !important;
  }

  :root:not([data-theme='dark']) #site-nav .nav-link:hover,
  :root:not([data-theme='dark']) #site-nav .nav-link.active {
    color: #1d4ed8 !important;
    background: transparent !important;
    border: none !important;
  }

  :root:not([data-theme='dark']) #site-nav .nav-link:hover::before,
  :root:not([data-theme='dark']) #site-nav .nav-link.active::before {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }

  :root:not([data-theme='dark']) #site-nav .nav-link:hover::after,
  :root:not([data-theme='dark']) #site-nav .nav-link.active::after {
    width: 85% !important;
    opacity: 1 !important;
  }

  :root:not([data-theme='dark']) #site-nav .nav-dropdown-menu {
    background: rgba(248, 250, 252, 0.96) !important;
    border: 1px solid rgba(203, 213, 225, 0.85) !important;
  }

  :root:not([data-theme='dark']) #site-nav .nav-dropdown-item {
    color: #334155 !important;
  }

  :root:not([data-theme='dark']) #site-nav .nav-dropdown-item:hover,
  :root:not([data-theme='dark']) #site-nav .nav-dropdown-item.active {
    background: rgba(224, 231, 255, 0.75) !important;
    color: #1d4ed8 !important;
  }

  /* Mobile Nav User Card & Extras */
  :root:not([data-theme='dark']) .mobile-nav-user {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(224, 231, 255, 0.6)) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
  }

  :root:not([data-theme='dark']) .mobile-nav-user-name {
    color: #0f172a !important;
    font-weight: 800 !important;
  }

  :root:not([data-theme='dark']) .mobile-nav-user-role {
    color: #2563eb !important;
    font-weight: 700 !important;
  }

  :root:not([data-theme='dark']) .mobile-nav-note {
    color: #64748b !important;
  }

  :root:not([data-theme='dark']) .mobile-nav-actions .btn-outline {
    color: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
    background: rgba(255, 255, 255, 0.8) !important;
  }

  :root:not([data-theme='dark']) .mobile-nav-actions .btn-outline:hover {
    background: rgba(224, 231, 255, 0.9) !important;
    color: #1d4ed8 !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
  }

  .mobile-theme-toggle-wrap,
  .mobile-ai-toggle-wrap,
  .mobile-nav-extras {
    display: none !important;
  }

  .mobile-header-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .mobile-header-actions .mobile-header-locale {
    display: none !important;
  }

  .login.desktop-header-tools {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 6px !important;
    order: 3 !important;
    margin-left: auto !important;
  }

  .desktop-only {
    display: block !important;
  }

  .desktop-header-tools .theme-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  .desktop-header-tools .btn,
  .desktop-header-tools .btn-outline {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
  }



  .card-home,
  .hero-grid {
    min-height: 100svh !important;
    height: auto !important;
    position: relative !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding-top: 112px !important;
    padding-right: 88px !important;
    padding-bottom: 96px !important;
    text-align: left !important;
  }

  .home-content,
  .hero-content {
    width: min(100%, 54ch) !important;
    max-width: 54ch !important;
  }

  .hero-title {
    display: grid !important;
    gap: 4px !important;
    margin-bottom: 14px !important;
    text-align: left !important;
  }

  .hero-title .js-split-text {
    width: auto !important;
    display: block !important;
  }

  .hero-title span {
    font-size: 28px !important;
    white-space: nowrap !important;
  }

  .hero-title strong {
    font-size: clamp(42px, 5.4vw, 58px) !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  .hero-title.hero-title-3d {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 0 0 0 22px !important;
    margin-bottom: 18px !important;
    text-align: left !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .hero-title.hero-title-3d .hero-title-top {
    font-size: 0.92rem !important;
    letter-spacing: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .hero-title.hero-title-3d .hero-title-main {
    font-size: 4rem !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
  }

  .hero-title.hero-title-3d .word-3d,
  .hero-title.hero-title-3d .char-3d {
    font-size: inherit !important;
  }

  .home-content p,
  .hero-content p {
    max-width: 52ch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    font-size: 17px !important;
    line-height: 1.62 !important;
  }

  .home-primary-actions {
    justify-content: flex-start !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .home-btn {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 18px !important;
  }

  .home-btn a {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 24px !important;
    padding: 42px 24px 30px !important;
  }

  .footer-brand {
    grid-column: auto !important;
  }

  .footer-column,
  .footer-brand {
    min-width: 0 !important;
  }

  .footer-desc {
    max-width: none !important;
  }
}

@media (min-width: 768px) and (max-width: 860px) {
  .header-main {
    gap: 8px !important;
    padding-inline: 10px !important;
  }

  #site-nav .nav-link {
    font-size: 13.5px !important;
    padding-inline: 12px !important;
  }

  .desktop-header-tools .btn,
  .desktop-header-tools .btn-outline {
    padding-inline: 8px !important;
  }

  .card-home,
  .hero-grid {
    padding-right: 78px !important;
  }

  .home-content,
  .hero-content {
    width: min(100%, 48ch) !important;
    max-width: 48ch !important;
  }

  .hero-title span {
    font-size: 24px !important;
  }

  .hero-title strong {
    font-size: clamp(36px, 5vw, 46px) !important;
  }

  .hero-title.hero-title-3d {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 0 0 0 18px !important;
    margin-bottom: 16px !important;
    text-align: left !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .hero-title.hero-title-3d .hero-title-top {
    font-size: 0.86rem !important;
    letter-spacing: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .hero-title.hero-title-3d .hero-title-main {
    font-size: 2.8rem !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
  }

  .hero-title.hero-title-3d .word-3d,
  .hero-title.hero-title-3d .char-3d {
    font-size: inherit !important;
  }

  .home-content p,
  .hero-content p {
    max-width: 46ch !important;
    font-size: 15.5px !important;
  }
}


/* ===== Skeleton loading ===== */
.skeleton-loader {
  display: inline-block;
  width: 100%;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(15,23,42,0.06) 25%, rgba(15,23,42,0.12) 50%, rgba(15,23,42,0.06) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
}

.skeleton-loader.skeleton-circle {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.skeleton-loader.skeleton-card {
  height: 180px;
  border-radius: 14px;
}

.skeleton-loader.skeleton-line-sm { height: 12px; width: 60%; }
.skeleton-loader.skeleton-line-md { height: 16px; width: 80%; }
.skeleton-loader.skeleton-line-lg { height: 24px; width: 100%; }

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

:root[data-theme='dark'] .skeleton-loader {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
}

.list-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.list-skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#courses-grid.is-loading,
[data-post-results].is-loading {
  min-height: 220px;
}

@supports (view-transition-name: none) {
  @view-transition {
    navigation: auto;
  }
}

/* ===== Button loading state ===== */
.btn.is-loading,
button.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn.is-loading::after,
button.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}


/* ===== Mobile bottom nav ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 990;
  padding: 6px 4px;
  background: var(--surface-strong);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  justify-content: space-around;
  align-items: center;
  gap: 2px;
}

:root[data-theme='dark'] .mobile-bottom-nav {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.mobile-bottom-nav .mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted, #64748b);
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.18s;
  min-width: 0;
}

.mobile-bottom-nav .mbn-item i {
  font-size: 17px;
  transition: transform 0.18s;
}

.mobile-bottom-nav .mbn-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mobile-bottom-nav .mbn-item.is-active {
  color: var(--primary, #1565c0);
  background: rgba(59, 130, 246, 0.12);
}

.mobile-bottom-nav .mbn-item.is-active i {
  transform: scale(1.12);
}

.mobile-bottom-nav .mbn-item:hover {
  color: var(--primary, #1565c0);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 76px;
  }

  .scroll-top {
    bottom: 30px !important;
  }

  #chat-widget,
  .chat-widget {
    bottom: 12px !important;
  }

  /* Audio tugmasi chat tugmasidan yetarli bo'shliq bilan yuqorida tursin */
  .prime-audio-toggle {
    bottom: 12px !important;
    right: 14px !important;
  }

  body.has-chat-widget .prime-audio-toggle,
  body:has(#chat-widget) .prime-audio-toggle {
    bottom: 76px !important;
    right: 14px !important;
  }

  body.has-chat-widget.has-ai-widget .prime-audio-toggle,
  body:has(#chat-widget):has(#ai-widget:not([hidden])) .prime-audio-toggle {
    bottom: 100px !important;
    right: 16px !important;
  }
}


/* ===== Empty state ===== */
.site-empty-state {
  text-align: center;
  padding: 56px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

:root[data-theme='dark'] .site-empty-state {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.site-empty-state-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary, #1565c0);
}

.site-empty-state-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.site-empty-state-msg {
  margin: 0 auto 18px;
  max-width: 420px;
  color: var(--muted, #64748b);
  font-size: 14px;
  line-height: 1.6;
}

.site-empty-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Locked grade-selection modal ===== */
.grade-lock-active {
  overflow: hidden !important;
}

.grade-lock-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  isolation: isolate;
}

.grade-lock-modal__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 34%),
    radial-gradient(circle at 78% 14%, rgba(99, 102, 241, 0.22), transparent 30%),
    rgba(4, 10, 24, 0.78);
  backdrop-filter: blur(26px) saturate(150%);
}

.grade-lock-modal__aurora {
  position: absolute;
  width: min(46vw, 680px);
  height: min(46vw, 680px);
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.72;
  pointer-events: none;
  animation: gradeLockFloat 16s ease-in-out infinite;
}

.grade-lock-modal__aurora--one {
  top: -14%;
  left: -8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.36), rgba(37, 99, 235, 0.02) 68%);
}

.grade-lock-modal__aurora--two {
  right: -10%;
  bottom: -22%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.34), rgba(236, 72, 153, 0.03) 70%);
  animation-delay: -7s;
}

.grade-lock-modal__panel {
  position: relative;
  width: min(100%, 760px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(28px, 4vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92)),
    radial-gradient(circle at 92% 0%, rgba(59, 130, 246, 0.16), transparent 34%);
  box-shadow:
    0 32px 100px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(0);
  animation: gradeLockArrive 520ms cubic-bezier(.2,.9,.2,1) both;
}

:root[data-theme='dark'] .grade-lock-modal__panel {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(145deg, rgba(7, 16, 35, 0.96), rgba(15, 23, 42, 0.94)),
    radial-gradient(circle at 88% 0%, rgba(96, 165, 250, 0.22), transparent 36%);
  box-shadow:
    0 32px 120px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.grade-lock-modal__panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

:root[data-theme='dark'] .grade-lock-modal__panel::before {
  border-color: rgba(255, 255, 255, 0.06);
}

.grade-lock-modal__crest {
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, #0ea5e9, #2563eb 58%, #7c3aed);
  box-shadow: 0 20px 38px rgba(37, 99, 235, 0.28);
}

.grade-lock-modal__crest span {
  width: 32px;
  height: 38px;
  clip-path: polygon(50% 0, 88% 14%, 88% 57%, 50% 100%, 12% 57%, 12% 14%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 -8px 0 rgba(191, 219, 254, 0.84);
}

.grade-lock-modal__eyebrow {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

:root[data-theme='dark'] .grade-lock-modal__eyebrow {
  color: #7dd3fc;
}

.grade-lock-modal__copy h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(32px, 5vw, 58px);
  line-height: .96;
  letter-spacing: -.055em;
}

:root[data-theme='dark'] .grade-lock-modal__copy h2 {
  color: #f8fafc;
}

.grade-lock-modal__copy p:last-child {
  max-width: 58ch;
  margin: 18px 0 0;
  color: #475569;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
}

:root[data-theme='dark'] .grade-lock-modal__copy p:last-child {
  color: #cbd5e1;
}

.grade-lock-modal__error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 15px 17px;
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 18px;
  background: rgba(254, 226, 226, 0.92);
}

:root[data-theme='dark'] .grade-lock-modal__error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.34);
}

.grade-lock-modal__form {
  margin-top: 28px;
}

.grade-lock-modal__form label {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

:root[data-theme='dark'] .grade-lock-modal__form label {
  color: #e2e8f0;
}

/* Native select shell */
.grade-lock-modal__select-shell {
  position: relative;
  width: 100%;
}

.grade-lock-modal__select-shell select {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #f1f5f9;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.grade-lock-modal__select-shell select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.3);
}

.grade-lock-modal__select-shell select option {
  background: #1e293b;
  color: #f1f5f9;
  padding: 8px;
}

.grade-lock-modal__select-shell select optgroup {
  background: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  font-style: normal;
}

.grade-lock-modal__select-shell > i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ===== GLM CUSTOM SELECT ===== */
.glm-custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.glm-cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 0 22px;
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(226,232,240,0.85));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 18px 44px rgba(37, 99, 235, 0.12);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
:root[data-theme='dark'] .glm-cs-trigger {
  background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(30,41,59,0.94));
  border-color: rgba(125, 211, 252, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 44px rgba(0,0,0,0.28);
}
.glm-custom-select[aria-expanded='true'] .glm-cs-trigger {
  border-radius: 18px 18px 0 0;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 8px 24px rgba(37, 99, 235, 0.15);
}
:root[data-theme='dark'] .glm-custom-select[aria-expanded='true'] .glm-cs-trigger {
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.18);
}

.glm-cs-value {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
}
:root[data-theme='dark'] .glm-cs-value {
  color: #f8fafc;
}
.glm-cs-value.is-placeholder {
  color: #94a3b8;
  font-weight: 500;
}
:root[data-theme='dark'] .glm-cs-value.is-placeholder {
  color: #64748b;
}

.glm-cs-arrow {
  color: #2563eb;
  font-size: 14px;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
}
:root[data-theme='dark'] .glm-cs-arrow { color: #7dd3fc; }
.glm-custom-select[aria-expanded='true'] .glm-cs-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.glm-cs-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-top: none;
  border-radius: 0 0 22px 22px;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(37, 99, 235, 0.18), 0 8px 20px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(-8px) scaleY(0.96);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(.34,1.56,.64,1);
}
:root[data-theme='dark'] .glm-cs-dropdown {
  background: #0f172a;
  border-color: rgba(125, 211, 252, 0.22);
  box-shadow: 0 28px 60px rgba(0,0,0,0.55), 0 8px 20px rgba(0,0,0,0.3);
}
.glm-custom-select[aria-expanded='true'] .glm-cs-dropdown {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
}

/* Scrollbar */
.glm-cs-dropdown::-webkit-scrollbar { width: 5px; }
.glm-cs-dropdown::-webkit-scrollbar-track { background: transparent; }
.glm-cs-dropdown::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.3);
  border-radius: 10px;
}
:root[data-theme='dark'] .glm-cs-dropdown::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.3);
}

/* Group label */
.glm-cs-group-label {
  padding: 10px 20px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}
:root[data-theme='dark'] .glm-cs-group-label {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.07);
  border-bottom-color: rgba(125, 211, 252, 0.1);
}

/* Option item */
.glm-cs-option {
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
:root[data-theme='dark'] .glm-cs-option {
  color: #e2e8f0;
}
.glm-cs-option:hover,
.glm-cs-option.is-focused {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}
:root[data-theme='dark'] .glm-cs-option:hover,
:root[data-theme='dark'] .glm-cs-option.is-focused {
  background: rgba(125, 211, 252, 0.1);
  color: #7dd3fc;
}
.glm-cs-option.is-selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.08));
  color: #2563eb;
  font-weight: 800;
}
:root[data-theme='dark'] .glm-cs-option.is-selected {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.14), rgba(167, 139, 250, 0.1));
  color: #7dd3fc;
}
.glm-cs-option:last-child { border-radius: 0 0 20px 20px; }

/* Submit button — disabled state */
.grade-lock-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.grade-lock-modal__actions {
  margin-top: 18px;
}

.grade-lock-modal__submit {
  min-height: 62px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .01em;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb 54%, #7c3aed);
  box-shadow: 0 24px 52px rgba(37, 99, 235, 0.32);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.grade-lock-modal__submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 28px 64px rgba(37, 99, 235, 0.4);
}

.grade-lock-modal__submit.is-loading {
  pointer-events: none;
}

.grade-lock-modal__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.grade-lock-modal__note i {
  color: #2563eb;
}

:root[data-theme='dark'] .grade-lock-modal__note {
  color: #cbd5e1;
}

:root[data-theme='dark'] .grade-lock-modal__note i {
  color: #7dd3fc;
}

@keyframes gradeLockArrive {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gradeLockFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -14px, 0) scale(1.06);
  }
}

@media (max-width: 640px) {
  .grade-lock-modal {
    padding: 14px;
  }

  .grade-lock-modal__panel {
    padding: 22px 18px;
    border-radius: 28px;
  }

  .grade-lock-modal__crest {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .grade-lock-modal__copy h2 {
    font-size: clamp(30px, 11vw, 44px);
  }

  .grade-lock-modal__copy p:last-child {
    font-size: 15px;
    line-height: 1.65;
  }
}

/* ===== About Hero V2 — Two-column with 3D School Building ===== */
.about-hero-v2 {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero-text {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.about-hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-hero-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: #fff;
}

.about-hero-text h1 strong {
  background: linear-gradient(135deg, #38bdf8, #a855f7, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.about-hero-text p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: #c3d9f5;
  margin-bottom: 28px;
  max-width: 520px;
}

.about-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.about-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, #6366f1, #38bdf8);
}

/* 3D Scene */
/* 3D Visual Container */
.about-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  perspective: 1200px;
  padding: 10px;
}

.about-hero-3d-scene {
  position: relative;
  width: 100%;
  max-width: 440px;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1);
}

/* 3D Orbiting Neon Rings */
.hero-3d-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform-style: preserve-3d;
}

.hero-3d-orbit--1 {
  width: 360px;
  height: 360px;
  margin-top: -180px;
  margin-left: -180px;
  border: 1.5px dashed rgba(56, 189, 248, 0.35);
  animation: orbitRotate1 20s linear infinite;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.1), inset 0 0 30px rgba(56, 189, 248, 0.05);
}

.hero-3d-orbit--2 {
  width: 440px;
  height: 440px;
  margin-top: -220px;
  margin-left: -220px;
  border: 1px dashed rgba(168, 85, 247, 0.3);
  animation: orbitRotate2 28s linear infinite reverse;
}

@keyframes orbitRotate1 {
  0% { transform: rotateX(65deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes orbitRotate2 {
  0% { transform: rotateX(55deg) rotateY(20deg) rotateZ(0deg); }
  100% { transform: rotateX(55deg) rotateY(20deg) rotateZ(360deg); }
}

/* Holographic Laser Beam Scanner */
.hero-laser-beam {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.8) 50%, transparent 100%);
  box-shadow: 0 0 15px #38bdf8, 0 0 30px #38bdf8;
  z-index: 5;
  pointer-events: none;
  opacity: 0.7;
  animation: laserScan 4s ease-in-out infinite;
}

@keyframes laserScan {
  0% { top: 10%; opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { top: 90%; opacity: 0; }
}

.school-building {
  position: relative;
  filter: drop-shadow(0 20px 60px rgba(56, 189, 248, 0.25));
  animation: floatBuilding 6s ease-in-out infinite;
}

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

.school-svg {
  width: 100%;
  height: auto;
}

/* Floating Glass Badges */
.hero-glass-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.15);
  z-index: 6;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s;
  pointer-events: auto;
}

.hero-glass-badge:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.3);
}

.hero-glass-badge--top-left {
  top: -12px;
  left: -24px;
  animation: badgeFloat1 5s ease-in-out infinite;
}

.hero-glass-badge--top-right {
  top: 25px;
  right: -28px;
  animation: badgeFloat2 6s ease-in-out infinite 1s;
}

.hero-glass-badge--bottom-right {
  bottom: 8px;
  right: -18px;
  animation: badgeFloat3 5.5s ease-in-out infinite 0.5s;
}

@keyframes badgeFloat1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes badgeFloat2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes badgeFloat3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.hgb-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 15px;
  flex-shrink: 0;
}

.hgb-icon--gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.hgb-icon--cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.2));
  border-color: rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

.hgb-content {
  display: flex;
  flex-direction: column;
}

.hgb-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hgb-sub {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.hgb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.about-hero-glow {
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.18) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 70%);
  filter: blur(45px);
  z-index: -1;
  pointer-events: none;
}

/* Light Mode Overrides for 3D badges */
:root:not([data-theme='dark']) .hero-glass-badge {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.12);
}

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

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

:root:not([data-theme='dark']) .hero-3d-orbit--1 {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.08);
}

:root:not([data-theme='dark']) .hero-3d-orbit--2 {
  border-color: rgba(124, 58, 237, 0.2);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .about-hero-text {
    max-width: 100%;
  }

  .about-hero-text p {
    max-width: 100%;
  }

  .about-hero-visual {
    order: -1;
  }

  .about-hero-3d-scene {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .about-hero-v2 {
    padding-top: 120px;
    padding-bottom: 50px;
    min-height: auto;
  }

  .about-hero-text h1 {
    font-size: 28px;
  }

  .about-hero-cta {
    padding: 12px 24px;
    font-size: 14px;
  }

  .about-hero-3d-scene {
    max-width: 240px;
  }
}

/* ===== News Hero V2 — Reusable two-column with 3D SVG ===== */
.news-hero-v2 {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.news-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.news-hero-text {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.news-hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.news-hero-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: #fff;
}

.news-hero-text h1 strong {
  background: linear-gradient(135deg, #38bdf8, #a855f7, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite;
}

.news-hero-text p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: #c3d9f5;
  margin-bottom: 28px;
  max-width: 520px;
}

.news-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.news-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, #6366f1, #38bdf8);
}

/* 3D Scene */
.news-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.news-hero-3d-scene {
  position: relative;
  width: 100%;
  max-width: 400px;
  animation: floatHeroIcon 6s ease-in-out infinite;
}

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

.news-hero-3d-scene svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(56, 189, 248, 0.2));
}

.news-hero-glow {
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.15) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* ===== Light-mode hero-v2 overrides ===== */
:root:not([data-theme='dark']) .news-hero-v2 {
  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-text .badge {
  background: rgba(13, 63, 120, 0.08);
  border-color: rgba(13, 63, 120, 0.15);
  color: var(--primary, #3b82f6);
}

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

:root:not([data-theme='dark']) .news-hero-text h1 strong {
  background: linear-gradient(135deg, #3b82f6, #6366f1, #3b82f6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root:not([data-theme='dark']) .news-hero-text p {
  color: #1e293b;
  font-weight: 500;
}

:root:not([data-theme='dark']) .news-hero-cta {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

:root:not([data-theme='dark']) .news-hero-cta:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

:root:not([data-theme='dark']) .news-hero-glow {
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
}

:root:not([data-theme='dark']) .news-hero-3d-scene svg,
:root:not([data-theme='dark']) .about-hero-3d-scene svg {
  filter: brightness(1.4) saturate(0.85) drop-shadow(0 20px 60px rgba(59, 130, 246, 0.12));
}

:root:not([data-theme='dark']) .news-hero-3d-scene svg .bomba-dark-only {
  display: none;
}

:root[data-theme='dark'] .news-hero-3d-scene svg .bomba-light-only {
  display: none;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .news-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .news-hero-text {
    max-width: 100%;
  }
  .news-hero-text p {
    max-width: 100%;
  }
  .news-hero-visual {
    order: -1;
  }
  .news-hero-3d-scene {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .news-hero-v2 {
    padding-top: 120px;
    padding-bottom: 50px;
    min-height: auto;
  }
  .news-hero-text h1 {
    font-size: 28px;
  }
  .news-hero-cta {
    padding: 12px 24px;
    font-size: 14px;
  }
  .news-hero-3d-scene {
    max-width: 220px;
  }
}

/* ===== PREMIUM TOAST NOTIFICATION V2 ===== */
/* Reading this as: micro-UI component for school platform, with glassmorphism language, leaning toward native CSS + dark-mode first. */

/* Container */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base toast — premium glassmorphism */
.toast {
  pointer-events: auto;
  position: relative;
  max-width: 420px;
  min-width: 320px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;

  /* Premium glass surface */
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px) saturate(1.8) brightness(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.8) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.12);

  /* Premium elevation */
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 12px 28px rgba(0, 0, 0, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);

  /* Spring-physics entrance */
  animation: toastPremiumIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

@keyframes toastPremiumIn {
  0% {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Left accent stripe — gradient glow */
.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, var(--toast-accent, #10b981), var(--toast-accent-end, #059669));
  z-index: 1;
  box-shadow: 0 0 12px var(--toast-ring, rgba(16, 185, 129, 0.4));
}

/* Inner glow on hover */
.toast::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: radial-gradient(ellipse at 20% 50%,
      var(--toast-glow, rgba(16, 185, 129, 0.08)),
      transparent 70%);
}

.toast:hover::after {
  opacity: 1;
}

.toast:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.2),
    0 16px 36px rgba(0, 0, 0, 0.25),
    0 48px 96px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}

/* Inner layout */
.toast-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 48px 16px 18px;
}

/* Icon — premium glow circle */
.toast-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg,
      rgba(16, 185, 129, 0.2),
      rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.25);
  /* shimmer ring */
  box-shadow: 0 0 0 0 var(--toast-ring, rgba(16, 185, 129, 0.3));
  animation: toastIconGlow 2.5s ease-out 0.5s both;
}

@keyframes toastIconGlow {
  0% {
    box-shadow: 0 0 0 0 var(--toast-ring, rgba(16, 185, 129, 0.4));
  }
  70% {
    box-shadow: 0 0 0 10px var(--toast-ring, rgba(16, 185, 129, 0));
  }
  100% {
    box-shadow: 0 0 0 0 var(--toast-ring, rgba(16, 185, 129, 0));
  }
}

/* Icon entrance bounce */
.toast-icon i {
  animation: toastIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  color: var(--toast-accent, #10b981);
}

@keyframes toastIconPop {
  from {
    transform: scale(0.3) rotate(-15deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Text */
.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
  line-height: 1.3;
  color: #f1f5f9;
}

.toast-msg {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

/* Actions */
.toast-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.toast-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.toast-action:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Close button */
.toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
}

.toast:hover .toast-close {
  opacity: 1;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  transform: rotate(90deg) scale(1.1);
}

/* Progress bar */
.toast-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.toast-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--toast-accent, #10b981), var(--toast-accent-end, #059669));
  border-radius: 0 3px 3px 0;
  transition: width linear;
  box-shadow: 0 0 8px var(--toast-ring, rgba(16, 185, 129, 0.4));
}

/* ===== TOAST VARIANTS ===== */

/* Success */
.toast-success {
  --toast-accent: #10b981;
  --toast-accent-end: #059669;
  --toast-ring: rgba(16, 185, 129, 0.35);
  --toast-glow: rgba(16, 185, 129, 0.08);
}

/* Error / Danger */
.toast-error,
.toast-danger {
  --toast-accent: #ef4444;
  --toast-accent-end: #dc2626;
  --toast-ring: rgba(239, 68, 68, 0.35);
  --toast-glow: rgba(239, 68, 68, 0.08);
}

.toast-error .toast-icon,
.toast-danger .toast-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
  border-color: rgba(239, 68, 68, 0.25);
}

.toast-error .toast-icon i,
.toast-danger .toast-icon i {
  color: #ef4444;
}

/* Warning */
.toast-warning {
  --toast-accent: #f59e0b;
  --toast-accent-end: #d97706;
  --toast-ring: rgba(245, 158, 11, 0.35);
  --toast-glow: rgba(245, 158, 11, 0.08);
}

.toast-warning .toast-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.25);
}

.toast-warning .toast-icon i {
  color: #f59e0b;
}

/* Info */
.toast-info {
  --toast-accent: #3b82f6;
  --toast-accent-end: #2563eb;
  --toast-ring: rgba(59, 130, 246, 0.35);
  --toast-glow: rgba(59, 130, 246, 0.08);
}

.toast-info .toast-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.08));
  border-color: rgba(59, 130, 246, 0.25);
}

.toast-info .toast-icon i {
  color: #3b82f6;
}

/* ===== LIGHT MODE ===== */
:root[data-theme='light'] .toast {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.1),
    0 32px 64px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

:root[data-theme='light'] .toast:hover {
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.14),
    0 48px 96px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

:root[data-theme='light'] .toast-title {
  color: #0f172a;
}

:root[data-theme='light'] .toast-msg {
  color: #64748b;
}

:root[data-theme='light'] .toast-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border-color: rgba(16, 185, 129, 0.2);
}

:root[data-theme='light'] .toast-icon i {
  color: #059669;
}

:root[data-theme='light'] .toast-error .toast-icon,
:root[data-theme='light'] .toast-danger .toast-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05))

/* ====================================================================
   MOBILE OPTIMIZATIONS — 3D Icons & Cursor
   ==================================================================== */

/* 3D SVG illyustratsiyalarni mobile'da yashirish */
@media (max-width: 768px) {
  .news-hero-visual,
  .about-hero-visual,
  .news-hero-3d-scene,
  .about-hero-3d-scene {
    display: none !important;
  }

  /* Hero layout'ni 1 ustunli qilish */
  .news-hero-content,
  .about-hero-text {
    text-align: center;
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* Cursor dropdown'ni mobile'da yashirish — touch screen'da ishlamaydi */
@media (max-width: 768px) {
  /* Sichqoncha (Cursor) sozlamasi */
  .ap-setting-row--cursor {
    display: none !important;
  }

  /* Yoki aniqroq — cursor_label bor qatorni yashirish */
  .ap-setting-row .asr-label:has(+ .asr-desc) {
    /* Cursor section only */
  }
}

/* Touch qurilmalar uchun qo'shimcha yaxshiliklar */
@media (max-width: 768px) {
  /* Katta kartochkalarni kichraytirish */
  .ap-theme-card {
    padding: 0.5rem 0.4rem;
  }

  .ap-theme-card .atc-icon {
    font-size: 1.2rem;
  }

  .ap-theme-card .atc-name {
    font-size: 0.7rem;
  }

  /* Preview qismini yashirish — joy tejash */
  .ap-preview {
    display: none;
  }

  /* Settings grid'ni 1 ustunli qilish */
  .ap-settings-grid {
    grid-template-columns: 1fr;
  }

  /* Saqlash tugmasini kattaroq qilish — touch uchun */
  .ap-btn-save {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* ====================================================================
   LOCALE SELECTOR — Flag + Code
   ==================================================================== */

.locale-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.locale-current .locale-flag {
  font-size: 18px;
  line-height: 1;
}

.locale-current .locale-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* Dropdown items */
.locale-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.locale-flag {
  font-size: 20px;
  margin-right: 8px;
}

/* Desktop locale selector */
@media (min-width: 769px) {
  .desktop-header-locale .locale-current .locale-flag {
    font-size: 20px;
  }

  .desktop-header-locale .locale-current .locale-code {
    font-size: 15px;
  }
}

/* Mobile locale selector */
@media (max-width: 768px) {
  .mobile-header-locale .locale-current .locale-flag {
    font-size: 22px;
  }

  .mobile-header-locale .locale-current .locale-code {
    font-size: 16px;
  }

  .nav-dropdown--bomba-locale .nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
  }

  .nav-dropdown--bomba-locale .nav-dropdown-item .locale-flag {
    font-size: 24px;
    margin-right: 12px;
  }

  .nav-dropdown--bomba-locale .nav-dropdown-item .locale-name {
    font-size: 16px;
    font-weight: 600;
  }
}

/* ============================================================
   ENTITY HIGHLIGHT — Yillar, maktab nomlari, ko'cha nomlari
   ============================================================ */
.entity-highlight {
  display: inline;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92em;
  transition: all 0.2s ease;
  cursor: default;
}

.entity-highlight:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Yillar — ko'k fon */
.entity-year {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.entity-year:hover {
  background: rgba(59, 130, 246, 0.18);
}

/* Maktab nomlari — yashil fon */
.entity-school {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.entity-school:hover {
  background: rgba(16, 185, 129, 0.18);
}

/* Ko'cha nomlari — binafsha fon */
.entity-street {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.entity-street:hover {
  background: rgba(139, 92, 246, 0.18);
}

/* Shahar nomlari — sariq fon */
.entity-city {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.entity-city:hover {
  background: rgba(245, 158, 11, 0.18);
}

/* Telefon raqamlari — qizil fon */
.entity-phone {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.entity-phone:hover {
  background: rgba(239, 68, 68, 0.18);
}

/* Dark mode */
:root[data-theme='dark'] .entity-highlight {
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme='dark'] .entity-year {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.25);
}

:root[data-theme='dark'] .entity-school {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.25);
}

:root[data-theme='dark'] .entity-street {
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.25);
}

:root[data-theme='dark'] .entity-city {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.25);
}

:root[data-theme='dark'] .entity-phone {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.25);
}

/* ============================================================
   GLOBAL SEARCH — Premium Animations & Design
   ============================================================ */

/* Modal backdrop — enhanced glassmorphism */
.global-search-modal {
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.12), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08), transparent 60%),
    rgba(3, 8, 20, 0.8) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
}

/* Shell — premium glass effect */
.global-search-shell {
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px !important;
  padding: 32px !important;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset !important;
  position: relative;
  overflow: hidden;
}

/* Shell glow effect */
.global-search-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(147, 197, 253, 0.5),
    rgba(99, 102, 241, 0.5),
    transparent);
  opacity: 0.8;
}

/* Label — refined typography */
.global-search-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #94a3b8 !important;
  margin-bottom: 16px !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

.global-search-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* Input wrapper — premium focus states */
.global-search-input-wrap {
  border: 2px solid rgba(148, 163, 184, 0.2) !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border-radius: 20px !important;
  padding: 0 24px !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
}

/* Search icon */
.global-search-input-wrap > i {
  color: #64748b !important;
  font-size: 20px !important;
  transition: color 0.3s ease, transform 0.3s ease !important;
}

.global-search-input-wrap:focus-within > i {
  color: #3b82f6 !important;
  transform: scale(1.1) !important;
}

/* Focus state */
.global-search-input-wrap:focus-within {
  border-color: rgba(59, 130, 246, 0.5) !important;
  background: rgba(15, 23, 42, 0.8) !important;
  box-shadow:
    0 12px 40px rgba(59, 130, 246, 0.2),
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
}

/* Input */
#global-search-input {
  height: 64px !important;
  font-size: clamp(18px, 2.5vw, 28px) !important;
  font-weight: 500 !important;
  color: #f1f5f9 !important;
  caret-color: #3b82f6 !important;
}

#global-search-input::placeholder {
  color: #475569 !important;
  font-weight: 400 !important;
}

/* Keyboard shortcut hint */
.global-search-shortcut {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: #64748b;
  font-family: 'Fira Code', monospace;
  pointer-events: none;
}

/* Search results container */
.global-search-results {
  margin-top: 16px !important;
  max-height: calc(100vh - 220px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.global-search-results::-webkit-scrollbar {
  width: 6px;
}

.global-search-results::-webkit-scrollbar-track {
  background: transparent;
}

.global-search-results::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}

/* Search result items — premium cards */
.global-search-item {
  display: grid !important;
  grid-template-columns: 72px 1fr auto !important;
  gap: 16px !important;
  align-items: center;
  text-decoration: none !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  background: rgba(30, 41, 59, 0.5) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

/* Item hover — glow effect */
.global-search-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.08),
    rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.global-search-item:hover::before {
  opacity: 1;
}

.global-search-item:hover {
  transform: translateY(-3px) scale(1.01) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  background: rgba(30, 41, 59, 0.7) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(59, 130, 246, 0.2) inset !important;
}

/* Item media — image container */
.global-search-item-media {
  width: 72px !important;
  height: 56px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: rgba(15, 23, 42, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(148, 163, 184, 0.1);
  flex-shrink: 0;
}

.global-search-item-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.global-search-item:hover .global-search-item-media img {
  transform: scale(1.05);
}

/* Item type badge */
.global-search-item-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #3b82f6 !important;
  font-weight: 700 !important;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  width: fit-content;
}

.global-search-item-type i {
  font-size: 10px;
}

/* Item title */
.global-search-item-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #f1f5f9 !important;
}

/* Item description */
.global-search-item-desc {
  font-size: 13px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4;
}

/* Item arrow */
.global-search-item-arrow {
  color: #475569;
  font-size: 14px;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateX(-4px);
}

.global-search-item:hover .global-search-item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #3b82f6;
}

/* Empty state — premium styling */
.global-search-empty {
  padding: 48px 24px !important;
  border: none !important;
  border-radius: 20px !important;
  color: #64748b !important;
  background: transparent !important;
  text-align: center !important;
  animation: searchEmptyFadeIn 0.4s cubic-bezier(0.23,1,0.32,1) both !important;
}

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

.global-search-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  margin-bottom: 20px;
  animation: searchEmptyFloat 3s ease-in-out infinite;
}

.global-search-empty-icon i {
  font-size: 32px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes searchEmptyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.global-search-empty-text {
  margin: 0 0 20px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.01em !important;
}

.global-search-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.global-search-hint-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: default;
}

.global-search-hint-tag:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: #94a3b8;
  transform: translateY(-1px);
}

.global-search-hint-tag i {
  font-size: 12px;
  opacity: 0.7;
}

/* Loading state */
.global-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.search-loading-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.search-loading-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  animation: searchDotBounce 1.4s ease-in-out infinite;
}

.search-loading-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.search-loading-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes searchDotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   EXAM SHIELD — Full Protection
   ============================================================ */
#exam-screenshot-shield {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: #050d1a !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.shield-active,
html.shield-active {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: unset !important;
}

body.shield-active .news,
body.shield-active .exam-page,
body.shield-active .exam-page-inner,
body.shield-active main,
body.shield-active .exam-anti-copy {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed !important;
  inset: 0 !important;
}
