/* Quizzalo CSS Module: 02_auth_i18n_responsive.css - Authentication Pages, Quick Settings, Multi-Language Bar, AdSense & Responsive Breakpoints */

/* ========================================================= */
/* ENHANCED FULL-FEATURE AUTHENTICATION PAGE & TAB STYLING   */
/* ========================================================= */
.auth-page-wrapper {
  max-width: 1040px;
  margin: 1.5rem auto 3.5rem;
  padding: 0 1rem;
}

.auth-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.25rem;
  align-items: stretch;
}

@media (max-width: 880px) {
  .auth-page-wrapper {
    margin: 0.75rem auto 5.25rem;
    padding: 0 0.75rem;
  }

  .auth-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Show Sign In / Create Account immediately at top on mobile (perks card below) */
  .auth-form-card {
    order: -1;
    padding: 1.45rem 1.15rem;
    border-radius: 18px;
  }

  .auth-perks-sidebar {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }
}

/* Left Column: Academic Perks & Trust Card */
.auth-perks-sidebar {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 60%, #311042 100%);
  color: white;
  border: 1.5px solid #3730a3;
  border-radius: 24px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.4);
  position: relative;
  overflow: hidden;
}

.auth-perks-sidebar::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.perks-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid #ca8a04;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1.25rem;
}

.perks-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.perks-title span {
  background: linear-gradient(120deg, #fef08a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.perks-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.perk-icon-bubble {
  width: 2.4rem;
  height: 2.4rem;
  min-width: 2.4rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.perk-text-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.perk-text-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.perks-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.perk-stat-box {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.perk-stat-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fef08a;
  line-height: 1.1;
}

.perk-stat-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 0.25rem;
  letter-spacing: 0.4px;
}

/* Right Column: Interactive Form Box */
.auth-form-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.auth-tabs-nav {
  display: flex;
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 0.35rem;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-tab-btn:hover:not(.active) {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.03);
}

.auth-tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(201, 24, 43, 0.35);
}

.auth-pane-header {
  margin-bottom: 1.5rem;
}

.auth-pane-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.auth-pane-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.portal-two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-required-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.input-group {
  margin-bottom: 1.15rem;
}

.input-label {
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin-bottom: 0.45rem;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

div.input-label {
  justify-content: space-between;
  gap: 0.5rem;
}

.required-star {
  color: #dc2626;
  font-weight: 800;
  font-size: 0.95em;
  line-height: 1;
  display: inline-block;
}

body.hotseat-mode .required-star {
  color: #f87171;
}

.optional-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.15rem;
}

.auth-input,
.form-input {
  width: 100%;
  font-family: var(--font-family);
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 0.93rem;
  line-height: 1.45;
  min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

body.hotseat-mode .auth-input,
body.hotseat-mode .form-input {
  border-color: var(--border-color);
}

.auth-input::placeholder,
.form-input::placeholder {
  color: #94a3b8;
  font-family: var(--font-family);
  opacity: 0.85;
}

.auth-input:hover,
.form-input:hover {
  border-color: #94a3b8;
}

.auth-input:focus,
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(201, 24, 43, 0.14);
}

#sponsor-inquiry-box .auth-input:focus,
#sponsor-inquiry-box .form-input:focus {
  border-color: #ca8a04;
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.18);
}

textarea.auth-input,
textarea.form-input {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

select.auth-input,
select.form-input {
  cursor: pointer;
  font-weight: 500;
}

select.auth-input optgroup,
select.form-input optgroup,
select#profile-grade-select optgroup {
  font-weight: 700;
  color: var(--primary);
  background-color: var(--bg-card);
  padding: 6px 4px;
}

select.auth-input option,
select.form-input option,
select#profile-grade-select option {
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--bg-card);
  padding: 6px 10px;
}

.input-with-btn {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-btn input {
  padding-right: 3rem;
}

.pwd-toggle-btn {
  position: absolute;
  right: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.pwd-toggle-btn:hover {
  color: var(--text-main);
}

.pwd-rules-box {
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.6rem 0 1.1rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pwd-rule-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.pwd-rule-item.valid {
  color: #16a34a;
  font-weight: 700;
}

.username-status {
  font-size: 0.78rem;
  font-weight: 700;
}

.username-status.available {
  color: #16a34a;
}

.username-status.taken {
  color: #dc2626;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider:not(:empty)::before {
  margin-right: 0.85rem;
}

.auth-divider:not(:empty)::after {
  margin-left: 0.85rem;
}

.auth-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@keyframes quickPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ========================================================= */
/* RIGHT-SIDE SHOW/HIDE SLIDE-OVER QUICK SETTINGS DRAWER     */
/* ========================================================= */
.quick-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.quick-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quick-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 88vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1.5px solid var(--border-color);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transform: translateX(105%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.3s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.quick-drawer.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Left-Side Widget Mode (when toggled to left) */
.quick-drawer.drawer-left {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1.5px solid var(--border-color);
  box-shadow: 15px 0 35px rgba(0, 0, 0, 0.25);
  transform: translateX(-105%);
}

.quick-drawer.drawer-left.active {
  transform: translateX(0);
}

.quick-drawer-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-main);
  position: sticky;
  top: 0;
  z-index: 2;
}

.quick-drawer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.quick-drawer-close {
  background: transparent;
  border: 1px solid transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-drawer-close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  transform: scale(1.06);
}

.quick-drawer-close:active {
  transform: scale(0.92);
  background: rgba(239, 68, 68, 0.22);
}

.quick-drawer-close:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.quick-drawer-body {
  padding: 1.05rem 1.15rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  flex: 1;
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.drawer-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drawer-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.drawer-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(-2px);
}

.drawer-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.05);
}

/* Floating Quick Controls Toggle Widget (Discreet bottom pill widget) */
.quick-widget-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  z-index: 150;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.quick-widget-bubble:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(201, 24, 43, 0.35);
  transform: translateY(-2px);
}

.quick-widget-bubble.bubble-left {
  right: auto;
  left: 1.5rem;
}




/* Question Readout Phase & Option Reveal Animations */
@keyframes fadeInOptions {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.options-grid.revealed {
  animation: fadeInOptions 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#kbc-timer-count.reading {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #ca8a04;
  color: #fef08a;
  font-size: 2.2rem;
  box-shadow: 0 0 15px rgba(202, 138, 4, 0.3);
}


/* -------------------------------------------------------------
   NAVBAR USER PROFILE DROPDOWN MENU
   ------------------------------------------------------------- */
.nav-auth-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-user-dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-user-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.75);
  border: 2px solid #ca8a04;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-user-btn:hover,
.nav-user-btn:focus-visible,
.nav-user-dropdown-container.open .nav-user-btn {
  background: rgba(30, 41, 59, 0.95);
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(202, 138, 4, 0.55);
  transform: scale(1.06);
  outline: none;
}

.nav-user-name,
.nav-dropdown-chevron {
  display: none !important;
}

.nav-user-avatar {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9182b, #830b17);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  overflow: hidden;
  padding: 0;
  line-height: 1;
}

.nav-user-avatar img,
.profile-credentials-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.profile-security-box {
  background: var(--bg-card);
  border-radius: 12px;
  transition: all 0.2s ease;
}

@media (max-width: 580px) {
  .change-pwd-grid {
    grid-template-columns: 1fr !important;
  }
}

.profile-credentials-avatar {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.profile-photo-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.nav-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-dropdown-chevron {
  font-size: 0.65rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.nav-user-dropdown-container.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 275px;
  max-width: calc(100vw - 1.5rem);
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid rgba(202, 138, 4, 0.4);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(202, 138, 4, 0.15);
  padding: 0.6rem 0;
  display: none;
  z-index: 1000;
  backdrop-filter: blur(12px);
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-user-dropdown-container.open .nav-user-dropdown-menu,
.nav-user-dropdown-menu.show {
  display: block;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-header {
  padding: 0.6rem 1rem 0.5rem;
}

.dropdown-user-fullname {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-user-meta {
  font-size: 0.78rem;
  color: #ca8a04;
  font-weight: 600;
  margin-top: 0.2rem;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.4rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding-left: 1.15rem;
}

.dropdown-item .dropdown-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.dropdown-item.admin-item {
  color: #38bdf8;
}

.dropdown-item.admin-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

.dropdown-item.logout-item {
  color: #f87171;
}

.dropdown-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}


/* -------------------------------------------------------------
   LANGUAGE SELECTOR DROPDOWN MENU
   ------------------------------------------------------------- */
.nav-lang-dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1.5px solid rgba(202, 138, 4, 0.5);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  color: #f8fafc;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-lang:hover,
.btn-lang:focus-visible {
  background: rgba(30, 41, 59, 1);
  border-color: #ca8a04;
  box-shadow: 0 0 14px rgba(202, 138, 4, 0.4);
  outline: none;
}

.lang-globe-icon {
  font-size: 1rem;
}

.lang-current-label {
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-lang-dropdown-container.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 200px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid rgba(202, 138, 4, 0.5);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 18px rgba(202, 138, 4, 0.15);
  padding: 0.5rem 0;
  display: none;
  z-index: 1050;
  backdrop-filter: blur(12px);
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-lang-dropdown-container.open .nav-lang-dropdown-menu,
.nav-lang-dropdown-menu.show {
  display: block;
}

.lang-dropdown-header {
  padding: 0.4rem 0.85rem 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  width: 100%;
  border: none;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.15s ease;
}

.lang-dropdown-item:hover {
  background: rgba(202, 138, 4, 0.15);
  color: #ffffff;
  padding-left: 1.05rem;
}

.lang-dropdown-item.active {
  background: rgba(202, 138, 4, 0.22);
  color: #fef08a;
  font-weight: 800;
}

.lang-flag {
  font-size: 1.25rem;
}

.lang-text-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.2;
}

.lang-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.lang-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.lang-dropdown-item.active .lang-sub {
  color: #fde047;
}

.lang-check {
  font-size: 0.95rem;
  font-weight: 900;
  color: #22c55e;
}


/* -------------------------------------------------------------
   LANGUAGE SELECTOR MODAL & MULTI-LANGUAGE ENGINE
   ------------------------------------------------------------- */
.lang-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lang-card:hover {
  transform: translateY(-2px);
  border-color: #ca8a04 !important;
  box-shadow: 0 8px 20px rgba(202, 138, 4, 0.2);
}

.lang-card.active {
  box-shadow: 0 0 16px rgba(202, 138, 4, 0.35);
}

/* =============================================================
   TOP MULTI-LANGUAGE GOOGLE TRANSLATE BAR (STACKED ABOVE NAVBAR)
   ============================================================= */
.top-multilang-bar {
  background: #0b1329;
  border-bottom: 1.5px solid rgba(202, 138, 4, 0.45);
  color: #f8fafc;
  padding: 0.35rem 1rem;
  position: relative;
  z-index: 1050;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.multilang-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.multilang-bar-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fef08a;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.multilang-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.multilang-icon:hover {
  transform: scale(1.12);
}

.multilang-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multilang-line-1 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.tag-gold-shimmer {
  background: linear-gradient(90deg, #fde047 0%, #f59e0b 35%, #ffffff 50%, #f59e0b 65%, #fde047 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: 0.02em;
  animation: goldTextShimmer 4s ease-in-out infinite;
  display: inline-block;
}

@keyframes goldTextShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.tag-text-bold {
  color: #f8fafc;
  font-weight: 800;
}

.multilang-line-2 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-cbt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.tag-live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: pulseDot 1.5s infinite ease-in-out;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.tag-cbt-icon {
  font-size: 0.78rem;
  line-height: 1;
}

.tag-cbt-text {
  color: #7dd3fc;
  font-weight: 800;
}

.multilang-bar-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


/* Custom Clean Language Selector Dropdown */
.custom-lang-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.custom-lang-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #1e293b !important;
  color: #ffffff !important;
  border: 1.5px solid #ca8a04 !important;
  border-radius: 9999px !important;
  padding: 0.32rem 2.1rem 0.32rem 0.85rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  outline: none !important;
  min-height: 32px;
  line-height: normal;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s ease !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fef08a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 11px;
}

.custom-lang-dropdown:hover,
.custom-lang-dropdown:focus {
  border-color: #fde047 !important;
  box-shadow: 0 0 10px rgba(202, 138, 4, 0.5) !important;
}

.custom-lang-dropdown option {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  padding: 0.5rem !important;
}

/* Google Translate Official Multi-Language Gadget in Top Bar */
.google-translate-gadget-wrapper,
#google_translate_element {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
}

.goog-te-gadget {
  font-family: inherit !important;
  font-size: 0px !important;
  color: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: normal !important;
  margin: 0 !important;
  padding: 0 !important;
}

.goog-te-gadget span,
.goog-te-gadget a,
.goog-logo-link {
  display: none !important;
}

.goog-te-combo {
  background-color: #1e293b !important;
  color: #fef08a !important;
  border: 1.5px solid #ca8a04 !important;
  border-radius: 9999px !important;
  padding: 0.24rem 1.7rem 0.24rem 0.75rem !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  outline: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s ease !important;
  min-height: 28px !important;
  line-height: normal !important;
  font-family: inherit !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23fef08a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.55rem center !important;
  background-size: 10px !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.goog-te-combo:hover,
.goog-te-combo:focus {
  border-color: #fde047 !important;
  box-shadow: 0 0 10px rgba(202, 138, 4, 0.5) !important;
}

.goog-te-combo option {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  padding: 0.4rem !important;
}

/* 1-Click Bilingual Language Toggle Button (CBT Mock Engine Pattern) */
.site-lang-toggle-btn {
  background: rgba(30, 41, 59, 0.95);
  color: #fef08a;
  border: 1.5px solid #ca8a04;
  border-radius: 9999px;
  padding: 0.28rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.site-lang-toggle-btn:hover {
  background: #ca8a04;
  color: #0f172a;
  border-color: #fde047;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(202, 138, 4, 0.4);
}

.nav-lang-toggle-btn {
  background: rgba(202, 138, 4, 0.12);
  color: #854d0e;
  border: 1.5px solid #ca8a04;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  font-family: inherit;
  user-select: none;
}

.nav-lang-toggle-btn:hover {
  background: #ca8a04;
  color: #ffffff;
  border-color: #fde047;
}

body.hotseat-mode .nav-lang-toggle-btn {
  background: rgba(30, 41, 59, 0.9);
  color: #fef08a;
  border-color: #ca8a04;
}

body.hotseat-mode .nav-lang-toggle-btn:hover {
  background: #ca8a04;
  color: #0f172a;
}

/* Quick switch pills in top bar */
.multilang-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* Latest Language Selector / Translator Tab & Popover */
.lang-switcher-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-translator-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.72rem 0 0.38rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(56, 189, 248, 0.48);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 58, 138, 0.78) 100%);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  height: 32px;
  min-height: 32px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.22);
  transition: all 0.2s ease;
}

.lang-translator-btn:hover,
.lang-translator-btn[aria-expanded="true"] {
  border-color: #fde047;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.lang-translator-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 2px;
  flex-shrink: 0;
}

.lang-trigger-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
}

.lang-trigger-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7dd3fc;
  padding-right: 0.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.lang-trigger-value {
  color: #fef08a;
  font-weight: 800;
  white-space: nowrap;
}

.lang-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  flex-shrink: 0;
  display: none;
}

.lang-status-dot.is-translating {
  display: inline-block;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: langPulse 0.9s infinite ease-in-out;
}

.lang-status-dot.is-active {
  display: inline-block;
}

@keyframes langPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.lang-chevron {
  display: none !important;
}

.lang-selector-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22), 0 4px 10px rgba(2, 132, 199, 0.1);
  z-index: 2200;
  overflow: hidden;
  text-align: left;
  animation: langPopoverIn 0.16s ease-out;
}

.lang-selector-popover.open {
  display: block;
}

@keyframes langPopoverIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.hotseat-mode .lang-selector-popover {
  background: #0f172a;
  color: #f8fafc;
  border-color: #334155;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
}

.lang-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 0.95rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-bottom: 1px solid #e2e8f0;
}

body.hotseat-mode .lang-popover-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom-color: #1e293b;
}

.lang-popover-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.lang-popover-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lang-popover-close {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-popover-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.45);
  transform: scale(1.06);
}

.lang-popover-close:active {
  transform: scale(0.92);
  background: rgba(239, 68, 68, 0.22);
}

.lang-popover-close:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.lang-options-list {
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lang-option-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  background: #0284c7;
  color: #ffffff;
  flex-shrink: 0;
}

.lang-option-badge.is-hi {
  background: #eab308;
  color: #0f172a;
}

.lang-option-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.52rem 0.65rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lang-option-item:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.22);
}

.lang-option-item.active {
  background: rgba(2, 132, 199, 0.14);
  border-color: rgba(2, 132, 199, 0.4);
  font-weight: 800;
  color: #0284c7;
}

body.hotseat-mode .lang-option-item.active {
  color: #7dd3fc;
}

.lang-option-native {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.lang-option-check {
  font-size: 0.8rem;
  font-weight: 900;
  color: #16a34a;
}

.lang-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.58rem 0.85rem;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  font-size: 0.71rem;
  color: #475569;
}

body.hotseat-mode .lang-popover-footer {
  background: #0b1120;
  border-top-color: #1e293b;
  color: #94a3b8;
}

.lang-popover-status {
  font-weight: 800;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
}

.btn-top-lang {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(202, 138, 4, 0.5);
  border-radius: 9999px;
  padding: 0 0.78rem;
  height: 32px;
  min-height: 32px;
  box-sizing: border-box;
  line-height: 1;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-top-lang:hover {
  background: #ca8a04;
  color: #0f172a;
  border-color: #fde047;
}

.btn-top-lang.active {
  background: #ca8a04;
  color: #0f172a;
  border-color: #fde047;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.5);
}

.btn-top-more {
  background: rgba(202, 138, 4, 0.2);
  border-color: #ca8a04;
  color: #fef08a;
}

.btn-top-more:hover {
  background: #ca8a04;
  color: #0f172a;
}

/* Suppress Google Translate Top Banner Overlay so it CANNOT hide or push the navbar */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

body {
  top: 0px !important;
  position: static !important;
}

body > .skiptranslate {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .top-multilang-bar {
    padding: 0.35rem 0.65rem;
  }
  .multilang-bar-content {
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
  }
  .multilang-bar-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
  }
  .multilang-icon {
    padding: 0 !important;
  }
  .multilang-title {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    gap: 0.12rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .multilang-line-1 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.22rem !important;
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .multilang-line-2 {
    display: inline-flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .tag-cbt-badge {
    padding: 0.04rem 0.38rem !important;
    font-size: 0.62rem !important;
    gap: 0.2rem !important;
    line-height: 1.2 !important;
    background: rgba(2, 132, 199, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
  }
  .tag-cbt-text {
    font-size: 0.62rem !important;
  }
  .tag-live-pulse {
    width: 5px !important;
    height: 5px !important;
  }
  .custom-lang-dropdown {
    font-size: 0.76rem !important;
    padding: 0.25rem 1.7rem 0.25rem 0.65rem !important;
    min-height: 28px;
  }
  .btn-top-lang {
    padding: 0 0.62rem;
    height: 30px;
    min-height: 30px;
    font-size: 0.73rem;
  }
  .lang-trigger-label,
  .lang-status-dot,
  .lang-trigger-eyebrow,
  .lang-chevron {
    display: none !important;
  }
  .lang-translator-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .btn-top-qc {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
  }
  .btn-top-qc .qc-btn-text {
    display: none !important;
  }
  .lang-selector-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    transform: none;
    width: 210px;
    max-width: calc(100vw - 24px);
    margin: 0;
  }
}


/* Login/Sign up button in navbar between Daily Sprint and Quick Controls */
#nav-login-btn {
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #0f172a;
  border: 1.5px solid #fef08a;
  border-radius: 9999px;
  padding: 0 0.88rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

#nav-login-btn:hover {
  background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.55);
  transform: translateY(-1px);
}

/* =============================================================
   GOOGLE ADSENSE & DIRECT SPONSORSHIP MODULE (COMPLIANT STYLES)
   ============================================================= */
.quizzalo-ad-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quizzalo-ad-wrapper:hover {
  border-color: rgba(202, 138, 4, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.ad-disclosure-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.35rem;
}

.ad-partner-link {
  color: #ca8a04;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}

.ad-partner-link:hover {
  color: #eab308;
  text-decoration: underline;
}

.direct-sponsor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.5rem 0.25rem;
  flex-wrap: wrap;
}

.sponsor-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 260px;
}

.sponsor-logo-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  background: var(--bg-main);
  border: 1.5px solid #ca8a04;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.sponsor-info {
  flex: 1;
}

.sponsor-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.sponsor-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.sponsor-cta-btn {
  white-space: nowrap;
  font-weight: 800;
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
}

.sponsor-tier-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sponsor-tier-card:hover {
  transform: translateY(-4px);
  border-color: #ca8a04;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

@media (max-width: 640px) {
  .direct-sponsor-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .sponsor-card-right {
    width: 100%;
  }
  .sponsor-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==============================================================================
   UNIVERSAL RESPONSIVE ENGINE: MOBILE WEB-APP, TABLET, DESKTOP, TV & 4K SCREENS
   ============================================================================== */

/* Base touch & smooth behavior */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

/* TV & Remote Focus Engine: High-Visibility Golden Focus Ring for 10-foot Viewing */
:focus-visible {
  outline: 3.5px solid #fde047 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.75) !important;
}

/* -------------------------------------------------------------
   MOBILE WEB-APP BOTTOM NAVIGATION BAR
   ------------------------------------------------------------- */
.mobile-bottom-nav {
  display: none; /* Hidden on Desktop & Tablet */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid rgba(202, 138, 4, 0.45);
  height: calc(60px + env(safe-area-inset-bottom, 8px));
  padding-bottom: env(safe-area-inset-bottom, 8px);
  z-index: 9990;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
  background: transparent;
  border: none;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 76px;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item .bottom-nav-icon {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: #fef08a;
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6));
}

.bottom-nav-item.active .bottom-nav-label {
  color: #fde047;
  font-weight: 800;
}

/* PWA App Install Banner */
.pwa-install-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 2px solid #ca8a04;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: white;
  z-index: 9995;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease;
}

.pwa-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-close-btn:hover {
  background: rgba(239, 68, 68, 0.24);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  transform: scale(1.06);
}

.pwa-close-btn:active {
  transform: scale(0.92);
  background: rgba(239, 68, 68, 0.35);
}

.pwa-close-btn:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* -------------------------------------------------------------
   BREAKPOINT 1: MOBILE & TABLETS (WEB-APP MODE) (<= 992px)
   ------------------------------------------------------------- */
@media (max-width: 992px) {
  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 8px));
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-hamburger-btn {
    display: inline-flex !important;
  }

  #nav-daily-sprint-btn,
  .nav-actions .btn-primary,
  #nav-login-btn,
  #quick-settings-toggle-btn,
  .coin-badge {
    height: 35px;
    min-height: 35px;
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }
  .nav-user-btn {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
}

/* Mobile specific screen adjustments (<= 768px) */
@media (max-width: 768px) {

  .nav-content {
    height: 3.75rem;
    padding: 0 0.65rem;
    gap: 0.45rem;
  }

  .brand-logo {
    font-size: 1.12rem;
    gap: 0.35rem;
  }

  .mobile-hamburger-btn {
    width: 33px;
    height: 33px;
    min-width: 33px;
  }

  .brand-badge {
    display: none;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  #nav-daily-sprint-btn,
  .nav-actions .btn-primary,
  #nav-login-btn,
  #quick-settings-toggle-btn,
  .coin-badge {
    height: 33px;
    min-height: 33px;
    padding: 0 0.55rem;
    font-size: 0.72rem;
    white-space: nowrap;
    border-radius: 9999px;
  }
  .nav-user-btn {
    width: 33px !important;
    height: 33px !important;
    min-width: 33px !important;
    min-height: 33px !important;
    max-width: 33px !important;
    max-height: 33px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  /* Hotseat Arena Mobile Layout */
  .arena-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .question-box {
    padding: 1.25rem 1rem;
    font-size: 1.1rem;
    border-radius: 14px;
    min-height: auto;
  }

  .options-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
  }

  .option-btn {
    padding: 0.85rem 1rem;
    min-height: 52px;
    font-size: 0.95rem;
  }

  .lifelines-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem;
  }

  .lifeline-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Readout Card Mobile */
  .readout-card {
    padding: 1.25rem 1rem;
  }

  /* Hero & Home Mobile */
  .hero-banner-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .cat-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Articles Grid Mobile */
  .articles-grid {
    grid-template-columns: 1fr;
  }

  /* Store Grid Mobile */
  .store-grid {
    grid-template-columns: 1fr;
  }

  /* Forms & Legal Portals Mobile */
  .portal-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer Mobile — Sleek App-Style Compact Card Grid */
  .footer {
    padding: 1.5rem 0 1.25rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
  }

  .footer-brand-col {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 0.9rem;
    text-align: center;
  }

  .footer-brand-col .brand-logo {
    justify-content: center;
    margin-bottom: 0.45rem !important;
  }

  .footer-brand-col p {
    max-width: 100% !important;
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  .footer-brand-col .footer-badge-strip {
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.7rem;
  }

  .footer-brand-col .footer-mini-pill {
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
  }

  .footer-links-card,
  .footer-rewards-col {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.85rem;
  }

  .footer-links-card .footer-col-title,
  .footer-rewards-col .footer-col-title {
    font-size: 0.84rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-color);
  }

  .footer-links-card .footer-link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .footer-links-card .footer-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.5rem;
    border-radius: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .footer-links-card .footer-link:hover {
    transform: none;
  }

  .footer-links-card .footer-link-icon {
    width: 1.05rem;
    min-width: 1.05rem;
    font-size: 0.82rem;
  }

  .footer-rewards-col .footer-store-cta {
    margin-top: 0.65rem;
  }

  .footer-rewards-col .footer-jackpot-widget {
    margin-top: 0.75rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding-top: 1rem;
    font-size: 0.72rem;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .nav-content {
    padding: 0 0.5rem;
    gap: 0.3rem;
  }

  .nav-brand-group {
    gap: 0.35rem;
  }

  .mobile-hamburger-btn {
    width: 31px;
    height: 31px;
    min-width: 31px;
    border-radius: 8px;
  }

  .brand-logo {
    font-size: 1.02rem;
    gap: 0.25rem;
  }

  .nav-sprint-full,
  .nav-login-extra {
    display: none;
  }

  #nav-daily-sprint-btn,
  .nav-actions .btn-primary,
  #nav-login-btn {
    height: 31px;
    min-height: 31px;
    padding: 0 0.55rem;
    font-size: 0.72rem;
  }
  .nav-user-btn {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    min-height: 31px !important;
    max-width: 31px !important;
    max-height: 31px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
}

/* -------------------------------------------------------------
   BREAKPOINT 2: TABLETS & IPADS (769px to 1024px)
   ------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 960px;
    padding: 0 1.25rem;
  }

  .arena-layout {
    grid-template-columns: 1fr 240px;
    gap: 1.25rem;
  }

  .cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------
   BREAKPOINT 3: LARGE SCREENS, SMART TVS & 4K (>= 1441px)
   ------------------------------------------------------------- */
@media (min-width: 1441px) {
  .container {
    max-width: 1560px;
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 3.4rem;
  }

  .hero-lead {
    font-size: 1.2rem;
  }

  .question-box {
    padding: 2.5rem 2rem;
    font-size: 1.65rem;
    line-height: 1.5;
  }

  .option-btn {
    min-height: 64px;
    font-size: 1.15rem;
    padding: 1.15rem 1.75rem;
  }

  .arena-layout {
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
  }

  .cat-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4K ULTRA HD SCREENS (>= 1920px - Smart TVs & 4K Displays) */
@media (min-width: 1920px) {
  .container {
    max-width: 1820px;
    padding: 0 2.5rem;
  }

  body {
    font-size: 18px;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .brand-logo {
    font-size: 1.85rem;
  }

  .nav-link {
    font-size: 1.05rem;
  }

  .question-box {
    padding: 3rem 2.5rem;
    font-size: 2rem;
    line-height: 1.6;
  }

  .option-btn {
    min-height: 74px;
    font-size: 1.28rem;
    padding: 1.35rem 2rem;
  }

  .readout-card {
    padding: 2.5rem 2rem;
  }
}


/* =============================================================
   GOOGLE / GMAIL AUTHENTICATION & SINGLE SIGN-ON (SSO) STYLES
   ============================================================= */
.btn-google-auth {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #1f2937;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}

.btn-google-auth:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.google-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider-or::before,
.auth-divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid var(--border-color);
}

.auth-divider-or span {
  padding: 0 0.75rem;
}

/* Google Auth Modal Dialog */
.google-auth-card {
  background: #ffffff;
  color: #111827;
  border-radius: 20px;
  max-width: 440px;
  width: 92%;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1.5px solid #e5e7eb;
  animation: zoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.google-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.google-modal-close {
  background: transparent;
  border: 1px solid transparent;
  font-size: 1.15rem;
  color: #6b7280;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.google-modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #dc2626;
  transform: scale(1.06);
}

.google-modal-close:active {
  transform: scale(0.92);
  background: rgba(239, 68, 68, 0.18);
}

.google-modal-close:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.google-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
}

.google-account-item:hover {
  background: #f3f4f6;
  border-color: #4285f4;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(66, 133, 244, 0.15);
}

.google-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-account-details {
  flex: 1;
  min-width: 0;
}

.google-account-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-account-email {
  font-size: 0.78rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-check-icon {
  color: #2563eb;
  font-weight: 800;
  font-size: 1rem;
}

/* ========================================================= */
/* TARGET ALL COMPETITIVE EXAMS PREPARATION & REWARDS HUB    */
/* ========================================================= */
.aspirants-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(202, 138, 4, 0.12);
  border: 1.5px solid #ca8a04;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #854d0e; /* Deep rich amber-brown for high WCAG AAA contrast in light mode */
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.hotseat-mode .aspirants-badge {
  background: rgba(202, 138, 4, 0.22);
  border-color: #eab308;
  color: #fef08a; /* High contrast bright gold in dark hotseat mode */
}

.exam-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.exam-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ca8a04, var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exam-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.15), 0 0 15px rgba(99, 102, 241, 0.15);
}

.exam-card:hover::before {
  opacity: 1;
}

.exam-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.exam-icon-circle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
}

.exam-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.exam-post-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #d97706;
  letter-spacing: 0.35px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.1);
}

body.hotseat-mode .exam-post-badge,
[data-theme="dark"] .exam-post-badge {
  background: rgba(202, 138, 4, 0.25);
  color: #fef08a;
  border-color: #ca8a04;
}

.exam-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  color: var(--text-main);
  line-height: 1.3;
}

.exam-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.exam-syllabus-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-main);
}

body.hotseat-mode .exam-syllabus-box,
[data-theme="dark"] .exam-syllabus-box {
  background: rgba(255, 255, 255, 0.03);
}

.exam-reward-incentive {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ca8a04;
  margin-bottom: 1.25rem;
  background: rgba(202, 138, 4, 0.08);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px dashed rgba(202, 138, 4, 0.4);
}

.exam-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: auto;
}

@media (max-width: 480px) {
  .exam-card-actions {
    grid-template-columns: 1fr;
  }
}

/* Exam Article Tabs Pill Styling */
.exam-article-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0.25rem 0 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* pill-count span: visible on desktop, hidden on mobile */
.pill-count {
  display: inline;
}

.article-cat-pill,
button.article-cat-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.05rem !important;
  height: 38px !important;
  box-sizing: border-box !important;
  border-radius: 9999px !important;
  border: 1.5px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  line-height: 1.25 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  outline: none !important;
  transform: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.article-cat-pill:hover,
button.article-cat-pill:hover {
  border-color: #c9182b !important;
  color: #c9182b !important;
  background: var(--bg-card) !important;
  transform: none !important;
  box-shadow: 0 2px 6px rgba(201, 24, 43, 0.15) !important;
}

.article-cat-pill.active,
button.article-cat-pill.active {
  background: #c9182b !important;
  background-color: #c9182b !important;
  background-image: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(201, 24, 43, 0.45) !important;
  transform: none !important;
}

.article-cat-pill:active,
button.article-cat-pill:active {
  transform: none !important;
}

.article-cat-pill:focus,
.article-cat-pill:focus-visible,
button.article-cat-pill:focus,
button.article-cat-pill:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  transform: none !important;
}

/* Quiz Arena Filter Tabs (Multi-row Wrap Tabs Layout matching Articles Hub) */
.arena-filter-carousel,
.exam-arena-tabs-container {
  display: flex !important;
  gap: 0.55rem !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  padding: 0.35rem 0 0.85rem 0 !important;
  border-bottom: 1px solid var(--border-color) !important;
  margin-bottom: 1.5rem !important;
  overflow-x: visible !important;
}

.arena-filter-carousel::-webkit-scrollbar,
.exam-arena-tabs-container::-webkit-scrollbar {
  display: none !important;
  height: 0px !important;
}

.arena-filter-pill,
button.arena-filter-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.05rem !important;
  height: 38px !important;
  box-sizing: border-box !important;
  border-radius: 9999px !important;
  border: 1.5px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  line-height: 1.25 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  outline: none !important;
  outline-offset: 0 !important;
  transform: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.arena-filter-pill:hover,
button.arena-filter-pill:hover {
  border-color: #c9182b !important;
  color: #c9182b !important;
  background: var(--bg-card) !important;
  transform: none !important;
  box-shadow: 0 2px 6px rgba(201, 24, 43, 0.15) !important;
}

.arena-filter-pill.active,
button.arena-filter-pill.active {
  background: #c9182b !important;
  background-color: #c9182b !important;
  background-image: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(201, 24, 43, 0.45) !important;
  transform: none !important;
}

.arena-filter-pill:active,
button.arena-filter-pill:active {
  transform: none !important;
}

.arena-filter-pill:focus,
.arena-filter-pill:focus-visible,
button.arena-filter-pill:focus,
button.arena-filter-pill:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .mobile-swipe-hint {
    display: inline-flex !important;
  }
  .arena-filter-carousel,
  .exam-arena-tabs-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
    gap: 0.45rem !important;
    padding: 0.3rem 0 0.75rem 0 !important;
    scrollbar-width: none !important;
  }
  .arena-filter-carousel::-webkit-scrollbar,
  .exam-arena-tabs-container::-webkit-scrollbar {
    display: none !important;
  }
  .arena-filter-pill,
  button.arena-filter-pill {
    white-space: normal !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 0.45rem 0.4rem !important;
    gap: 0.25rem !important;
    font-size: 0.69rem !important;
    letter-spacing: -0.015em !important;
    height: 100% !important;
    min-height: 40px !important;
    flex-shrink: 1 !important;
    line-height: 1.3 !important;
  }
  .arena-filter-pill[data-category="all"],
  button.arena-filter-pill[data-category="all"] {
    grid-column: 1 / -1 !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.84rem !important;
    letter-spacing: normal !important;
    padding: 0.5rem 0.75rem !important;
  }
}

/* === MOBILE: Study Notes Pills → 2-col Grid === */
@media (max-width: 768px) {
  .exam-article-tabs-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
    gap: 0.45rem !important;
    padding: 0.3rem 0 0.75rem 0 !important;
    scrollbar-width: none !important;
  }
  .exam-article-tabs-container::-webkit-scrollbar {
    display: none !important;
  }
  .article-cat-pill,
  button.article-cat-pill {
    white-space: normal !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 0.45rem 0.4rem !important;
    gap: 0.25rem !important;
    font-size: 0.69rem !important;
    letter-spacing: -0.015em !important;
    height: 100% !important;
    min-height: 40px !important;
    flex-shrink: 1 !important;
    line-height: 1.3 !important;
  }
  .article-cat-pill[data-category="all"],
  button.article-cat-pill[data-category="all"] {
    grid-column: 1 / -1 !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.84rem !important;
    letter-spacing: normal !important;
    padding: 0.5rem 0.75rem !important;
  }
  .pill-count {
    display: none !important;
  }
}

/* Responsive adjustments for all screen sizes */
@media (max-width: 767px) {
  .exam-hub-grid {
    grid-template-columns: 1fr;
  }
  .exam-card {
    padding: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .exam-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .exam-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1920px) {
  .exam-hub-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}



