/* Open English Design System - Authentic Mobile & Desktop UI */
:root {
  --oe-blue: #0072ce;
  --oe-blue-light: #0088ff;
  --oe-blue-dark: #00569e;
  --oe-blue-gradient: linear-gradient(135deg, #0072ce 0%, #0099ff 100%);
  --oe-banner-gradient: linear-gradient(90deg, #0072ce 0%, #00b4d8 60%, #10b981 100%);
  --oe-orange: #ff6a00;
  --oe-orange-hover: #e55e00;
  --oe-green: #10b981;
  --oe-pink: #ec4899;
  --oe-bg: #f4f6fa;
  --oe-card-bg: #ffffff;
  --oe-border: #e2e8f0;
  --oe-text-main: #0f172a;
  --oe-text-muted: #64748b;
  --oe-text-light: #94a3b8;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 8px 24px rgba(0, 114, 206, 0.22);
}

/* ═══════════════════════════════════════════════════════════════
   THEMES SAZONAIS DA PLATAFORMA (CORES E AMBIENTAÇÃO GERAL)
   ═══════════════════════════════════════════════════════════════ */
body[data-theme="october_pink"] {
  --oe-bg: #fff1f5;
  --oe-blue: #db2777;
  --oe-blue-light: #f43f5e;
  --oe-blue-dark: #be185d;
  --oe-blue-gradient: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  --oe-banner-gradient: linear-gradient(90deg, #ec4899 0%, #f43f5e 60%, #fb7185 100%);
  --oe-orange: #e11d48;
  --oe-orange-hover: #be123c;
  --shadow-blue: 0 8px 24px rgba(219, 39, 119, 0.28);
}

body[data-theme="november_blue"] {
  --oe-bg: #f0f7ff;
  --oe-blue: #0284c7;
  --oe-blue-light: #38bdf8;
  --oe-blue-dark: #0369a1;
  --oe-blue-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --oe-banner-gradient: linear-gradient(90deg, #0284c7 0%, #0ea5e9 60%, #38bdf8 100%);
  --oe-orange: #0284c7;
  --oe-orange-hover: #0369a1;
  --shadow-blue: 0 8px 24px rgba(2, 132, 199, 0.28);
}

body[data-theme="christmas"] {
  --oe-bg: #f4fbf6;
  --oe-blue: #15803d;
  --oe-blue-light: #22c55e;
  --oe-blue-dark: #166534;
  --oe-blue-gradient: linear-gradient(135deg, #15803d 0%, #166534 100%);
  --oe-banner-gradient: linear-gradient(90deg, #15803d 0%, #dc2626 60%, #f59e0b 100%);
  --oe-orange: #dc2626;
  --oe-orange-hover: #b91c1c;
  --shadow-blue: 0 8px 24px rgba(21, 128, 61, 0.28);
}

body[data-theme="carnival"] {
  --oe-bg: #faf5ff;
  --oe-blue: #7c3aed;
  --oe-blue-light: #a855f7;
  --oe-blue-dark: #6d28d9;
  --oe-blue-gradient: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  --oe-banner-gradient: linear-gradient(90deg, #7c3aed 0%, #f59e0b 60%, #10b981 100%);
  --oe-orange: #f59e0b;
  --oe-orange-hover: #d97706;
  --shadow-blue: 0 8px 24px rgba(124, 58, 237, 0.28);
}

body[data-theme="easter"] {
  --oe-bg: #f7f4ff;
  --oe-blue: #8b5cf6;
  --oe-blue-light: #a78bfa;
  --oe-blue-dark: #7c3aed;
  --oe-blue-gradient: linear-gradient(135deg, #8b5cf6 0%, #10b981 100%);
  --oe-banner-gradient: linear-gradient(90deg, #8b5cf6 0%, #34d399 60%, #f472b6 100%);
  --oe-orange: #10b981;
  --oe-orange-hover: #059669;
  --shadow-blue: 0 8px 24px rgba(139, 92, 246, 0.28);
}

body[data-theme="summer"] {
  --oe-bg: #fffbeb;
  --oe-blue: #ea580c;
  --oe-blue-light: #f97316;
  --oe-blue-dark: #c2410c;
  --oe-blue-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --oe-banner-gradient: linear-gradient(90deg, #f59e0b 0%, #ea580c 60%, #06b6d4 100%);
  --oe-orange: #f59e0b;
  --oe-orange-hover: #d97706;
  --shadow-blue: 0 8px 24px rgba(234, 88, 12, 0.28);
}

body[data-theme="halloween"] {
  --oe-bg: #1e1b2e;
  --oe-card-bg: #28243d;
  --oe-border: #3b3558;
  --oe-text-main: #f8fafc;
  --oe-text-muted: #cbd5e1;
  --oe-blue: #f97316;
  --oe-blue-light: #fb923c;
  --oe-blue-dark: #c2410c;
  --oe-blue-gradient: linear-gradient(135deg, #ea580c 0%, #7c3aed 100%);
  --oe-banner-gradient: linear-gradient(90deg, #ea580c 0%, #7c3aed 60%, #a855f7 100%);
  --oe-orange: #f97316;
  --oe-orange-hover: #ea580c;
  --shadow-blue: 0 8px 24px rgba(234, 88, 12, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   100% IMMERSIVE COMPONENT OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
/* OUTUBRO ROSA */
body[data-theme="october_pink"] .oe-navbar {
  border-top: 3.5px solid #ec4899;
  border-bottom: 1.5px solid #fbcfe8;
  background: #ffffff;
}
body[data-theme="october_pink"] .oe-bottom-tools {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  box-shadow: 0 -4px 20px rgba(219, 39, 119, 0.35) !important;
}
body[data-theme="october_pink"] .oe-tool-center-btn {
  border-color: #f43f5e !important;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.45) !important;
}
body[data-theme="october_pink"] .oe-dashboard-card {
  border: 1.5px solid #fbcfe8 !important;
  box-shadow: 0 6px 24px rgba(219, 39, 119, 0.08) !important;
}
body[data-theme="october_pink"] .oe-card-tab-left {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
}
body[data-theme="october_pink"] .oe-card-tab-right {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%) !important;
}
body[data-theme="october_pink"] #gam-tab-ribbon {
  background: #fce7f3 !important;
  color: #db2777 !important;
}
body[data-theme="october_pink"] #gam-xp-fill {
  background: linear-gradient(90deg, #ec4899, #f43f5e) !important;
}
body[data-theme="october_pink"] .oe-level-bar-wrap .oe-track-segment.completed {
  background: #f472b6 !important;
}
body[data-theme="october_pink"] .oe-level-bar-wrap .oe-track-segment.active {
  background: linear-gradient(90deg, #f472b6 50%, #db2777 100%) !important;
}
body[data-theme="october_pink"] .oe-level-percent-badge {
  background: #db2777 !important;
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.3) !important;
}
body[data-theme="october_pink"] .oe-ranking-card {
  border-top: 3.5px solid #ec4899 !important;
  border-color: #fbcfe8 !important;
}
body[data-theme="october_pink"] .oe-ranking-badge {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
}
body[data-theme="october_pink"] .oe-unit-card:hover {
  border-color: #f472b6 !important;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.22) !important;
}
body[data-theme="october_pink"] .oe-unit-footer {
  color: #db2777 !important;
}

/* NOVEMBRO AZUL */
body[data-theme="november_blue"] .oe-navbar {
  border-top: 3.5px solid #0284c7;
  border-bottom: 1.5px solid #bae6fd;
}
body[data-theme="november_blue"] .oe-bottom-tools {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 -4px 20px rgba(2, 132, 199, 0.35) !important;
}
body[data-theme="november_blue"] .oe-tool-center-btn {
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.45) !important;
}
body[data-theme="november_blue"] .oe-dashboard-card {
  border: 1.5px solid #bae6fd !important;
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.08) !important;
}
body[data-theme="november_blue"] .oe-card-tab-left {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
}
body[data-theme="november_blue"] .oe-card-tab-right {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
}
body[data-theme="november_blue"] #gam-tab-ribbon {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}
body[data-theme="november_blue"] #gam-xp-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
}
body[data-theme="november_blue"] .oe-level-percent-badge {
  background: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
}
body[data-theme="november_blue"] .oe-ranking-card {
  border-top: 3.5px solid #0284c7 !important;
  border-color: #bae6fd !important;
}
body[data-theme="november_blue"] .oe-ranking-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
}
body[data-theme="november_blue"] .oe-unit-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.22) !important;
}
body[data-theme="november_blue"] .oe-unit-footer {
  color: #0284c7 !important;
}

/* NATAL */
body[data-theme="christmas"] .oe-navbar {
  border-top: 3.5px solid #dc2626;
  border-bottom: 1.5px solid #bbf7d0;
}
body[data-theme="christmas"] .oe-bottom-tools {
  background: linear-gradient(135deg, #15803d 0%, #166534 50%, #991b1b 100%) !important;
  box-shadow: 0 -4px 20px rgba(21, 128, 61, 0.35) !important;
}
body[data-theme="christmas"] .oe-tool-center-btn {
  border-color: #f59e0b !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45) !important;
}
body[data-theme="christmas"] .oe-dashboard-card {
  border: 1.5px solid #bbf7d0 !important;
  box-shadow: 0 6px 24px rgba(21, 128, 61, 0.08) !important;
}
body[data-theme="christmas"] .oe-card-tab-left {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
}
body[data-theme="christmas"] .oe-card-tab-right {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}
body[data-theme="christmas"] #gam-tab-ribbon {
  background: #dcfce7 !important;
  color: #15803d !important;
}
body[data-theme="christmas"] #gam-xp-fill {
  background: linear-gradient(90deg, #15803d, #dc2626) !important;
}
body[data-theme="christmas"] .oe-ranking-card {
  border-top: 3.5px solid #dc2626 !important;
  border-color: #bbf7d0 !important;
}
body[data-theme="christmas"] .oe-ranking-badge {
  background: linear-gradient(135deg, #15803d 0%, #dc2626 100%) !important;
}
body[data-theme="christmas"] .oe-unit-card:hover {
  border-color: #22c55e !important;
  box-shadow: 0 10px 28px rgba(21, 128, 61, 0.22) !important;
}
body[data-theme="christmas"] .oe-unit-footer {
  color: #15803d !important;
}

/* CARNAVAL */
body[data-theme="carnival"] .oe-navbar {
  border-top: 3.5px solid #7c3aed;
  border-bottom: 1.5px solid #ddd6fe;
}
body[data-theme="carnival"] .oe-bottom-tools {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%) !important;
}
body[data-theme="carnival"] .oe-dashboard-card {
  border: 1.5px solid #ddd6fe !important;
}

/* PASCOA */
body[data-theme="easter"] .oe-navbar {
  border-top: 3.5px solid #8b5cf6;
  border-bottom: 1.5px solid #e9d5ff;
}
body[data-theme="easter"] .oe-bottom-tools {
  background: linear-gradient(135deg, #8b5cf6 0%, #10b981 100%) !important;
}
body[data-theme="easter"] .oe-dashboard-card {
  border: 1.5px solid #e9d5ff !important;
}

/* SUMMER */
body[data-theme="summer"] .oe-navbar {
  border-top: 3.5px solid #ea580c;
  border-bottom: 1.5px solid #fed7aa;
}
body[data-theme="summer"] .oe-bottom-tools {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
}

/* HALLOWEEN */
body[data-theme="halloween"] .oe-navbar {
  border-top: 3.5px solid #f97316;
  border-bottom: 1.5px solid #4c1d95;
  background: #28243d;
}
body[data-theme="halloween"] .oe-bottom-tools {
  background: linear-gradient(135deg, #ea580c 0%, #7c3aed 100%) !important;
}

/* ═══════════════════════════════════════════════════════════════
   BANNERS DE CAMPANHA SAZONAIS & ANIMAÇÕES REFINADAS
   ═══════════════════════════════════════════════════════════════ */
.oe-campaign-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s ease;
}

.oe-campaign-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: bannerSheen 7s infinite ease-in-out;
  pointer-events: none;
}

@keyframes bannerSheen {
  0%, 75% { left: -150%; }
  100% { left: 220%; }
}

.oe-campaign-banner.october_pink {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  border: 1.5px solid rgba(251, 113, 133, 0.4);
}
.oe-campaign-banner.november_blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
}
.oe-campaign-banner.christmas {
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #7f1d1d 100%);
  border: 1.5px solid rgba(234, 179, 8, 0.35);
}
.oe-campaign-banner.carnival {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #b45309 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
}
.oe-campaign-banner.easter {
  background: linear-gradient(135deg, #7c3aed 0%, #059669 100%);
  border: 1.5px solid rgba(167, 139, 250, 0.4);
}
.oe-campaign-banner.summer {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  border: 1.5px solid rgba(253, 186, 116, 0.4);
}
.oe-campaign-banner.halloween {
  background: linear-gradient(135deg, #c2410c 0%, #581c87 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.4);
}

.oe-campaign-banner-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  display: inline-block;
  animation: ribbonFloat 3.2s ease-in-out infinite;
}

@keyframes ribbonFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.08);
  }
}

.oe-campaign-banner-text {
  flex: 1;
  position: relative;
  z-index: 1;
}
.oe-campaign-banner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.oe-campaign-banner-sub {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.4;
}
.oe-campaign-banner-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Floating Decorative Particles in Banner (Suave, sem exageros) */
.oe-campaign-particles {
  position: absolute;
  right: 18px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.35;
  pointer-events: none;
  font-size: 1.35rem;
}
.oe-campaign-particles span {
  display: inline-block;
  animation: particleFloat 4s ease-in-out infinite;
}
.oe-campaign-particles span:nth-child(2) {
  animation-delay: 1.3s;
  font-size: 1rem;
}
.oe-campaign-particles span:nth-child(3) {
  animation-delay: 2.6s;
  font-size: 1.45rem;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.35; }
  50% { transform: translateY(-7px) scale(1.15) rotate(12deg); opacity: 0.75; }
}

@media (max-width: 600px) {
  .oe-campaign-banner {
    padding: 12px 14px;
    gap: 12px;
  }
  .oe-campaign-banner-icon {
    font-size: 1.8rem;
  }
  .oe-campaign-banner-title {
    font-size: 0.95rem;
  }
  .oe-campaign-banner-sub {
    font-size: 0.8rem;
  }
  .oe-campaign-particles {
    display: none; /* Mantém limpo no mobile pequeno */
  }
}

/* Themed overlays para os cards de lição */
body[data-theme="october_pink"] .oe-unit-card-overlay {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
}
body[data-theme="november_blue"] .oe-unit-card-overlay {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
}
body[data-theme="christmas"] .oe-unit-card-overlay {
  background: linear-gradient(180deg, rgba(22, 101, 52, 0.35) 0%, rgba(15, 23, 42, 0.8) 100%);
}
body[data-theme="carnival"] .oe-unit-card-overlay {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
}
body[data-theme="easter"] .oe-unit-card-overlay {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
}
body[data-theme="summer"] .oe-unit-card-overlay {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
}
body[data-theme="halloween"] .oe-unit-card-overlay {
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.35) 0%, rgba(30, 27, 46, 0.9) 100%);
}

.oe-unit-campaign-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
body[data-theme="october_pink"] .oe-unit-campaign-tag {
  background: rgba(190, 24, 93, 0.9);
  border-color: rgba(251, 113, 133, 0.4);
}
body[data-theme="november_blue"] .oe-unit-campaign-tag {
  background: rgba(3, 105, 161, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
}
body[data-theme="christmas"] .oe-unit-campaign-tag {
  background: rgba(185, 28, 28, 0.9);
  border-color: rgba(234, 179, 8, 0.4);
}
body[data-theme="carnival"] .oe-unit-campaign-tag {
  background: rgba(109, 40, 217, 0.9);
  border-color: rgba(245, 158, 11, 0.4);
}
body[data-theme="easter"] .oe-unit-campaign-tag {
  background: rgba(109, 40, 217, 0.9);
  border-color: rgba(52, 211, 153, 0.4);
}
body[data-theme="summer"] .oe-unit-campaign-tag {
  background: rgba(234, 88, 12, 0.9);
  border-color: rgba(253, 186, 116, 0.4);
}
body[data-theme="halloween"] .oe-unit-campaign-tag {
  background: rgba(124, 58, 237, 0.9);
  border-color: rgba(249, 115, 22, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--oe-bg);
  color: var(--oe-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 75px; /* Space for fixed bottom toolbar */
}

/* Open English Top Navbar */
.oe-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--oe-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.oe-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oe-nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.oe-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.oe-logo span {
  color: var(--oe-blue);
}

.oe-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.oe-nav-link {
  color: var(--oe-text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.oe-nav-link:hover, .oe-nav-link.active {
  color: var(--oe-blue);
}

.oe-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--oe-blue);
  border-radius: 3px 3px 0 0;
}

.oe-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oe-nav-icon-btn {
  background: transparent;
  border: none;
  color: var(--oe-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oe-nav-icon-btn:hover {
  background: var(--oe-bg);
  color: var(--oe-blue);
}

.oe-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--oe-blue);
  cursor: pointer;
  object-fit: cover;
  flex-shrink: 0;
}

/* User Profile Menu & Dropdown */
.oe-user-menu-wrap {
  position: relative;
}

.oe-user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 12px;
  transition: background 0.2s;
  user-select: none;
}

.oe-user-menu-btn:hover {
  background: rgba(0, 114, 206, 0.08);
}

.oe-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  padding: 8px;
  z-index: 2500;
  animation: modalSlideUp 0.15s ease-out;
}

.oe-user-dropdown.active {
  display: block;
}

.oe-user-dropdown-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.oe-user-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.oe-user-dropdown-item.danger {
  color: #ef4444;
}

.oe-user-dropdown-item.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Page Container */
.oe-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 80px 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Hero AI Assistant Banner */
.oe-ai-banner {
  background: var(--oe-banner-gradient);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #ffffff;
  box-shadow: var(--shadow-blue);
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.oe-ai-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.oe-ai-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.oe-ai-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.oe-ai-desc {
  font-size: 0.88rem;
  opacity: 0.95;
  line-height: 1.4;
  max-width: 650px;
}

.oe-ai-btn {
  background: #ffffff;
  color: var(--oe-blue);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s;
  flex-shrink: 0;
}

.oe-ai-btn:hover {
  transform: translateY(-2px);
}

/* Iconic Level Objectives Card (The Notebook / Ticket Style) */
.oe-dashboard-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--oe-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 28px;
  width: 100%;
}

.oe-card-header-bar {
  display: grid;
  grid-template-columns: 1fr 24px 320px;
  background: #ffffff;
}

.oe-card-tab-left {
  background: var(--oe-blue);
  color: #ffffff;
  padding: 12px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oe-card-tab-right {
  background: var(--oe-blue);
  color: #ffffff;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.oe-card-body-split {
  display: grid;
  grid-template-columns: 1fr 24px 320px;
  position: relative;
}

.oe-split-left {
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Perforation Divider with Notebook Holes */
.oe-perforation-divider {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 14px 0;
  border-left: 1px dashed #cbd5e1;
  border-right: 1px dashed #cbd5e1;
}

.oe-hole {
  width: 12px;
  height: 12px;
  background: var(--oe-bg);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.oe-split-right {
  padding: 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.oe-split-right .oe-btn-orange {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: block;
}

/* Airplane Level Progress Bar */
.oe-level-bar-wrap {
  margin-bottom: 24px;
  width: 100%;
}

.oe-level-percent-badge {
  background: var(--oe-blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 114, 206, 0.25);
}

.oe-airplane-track {
  display: flex;
  align-items: center;
  position: relative;
  margin: 12px 0 8px;
  width: 100%;
}

.oe-track-segment {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  margin: 0 2px;
  border-radius: 4px;
  position: relative;
}

.oe-track-segment.completed {
  background: var(--oe-orange);
}

.oe-track-segment.active {
  background: linear-gradient(90deg, var(--oe-orange) 50%, var(--oe-blue) 100%);
}

.oe-airplane-icon {
  position: absolute;
  top: -11px;
  font-size: 20px;
  transform: translateX(-50%);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.oe-track-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--oe-text-muted);
  font-weight: 700;
  width: 100%;
}

/* 3 Circular Donut Rings */
.oe-rings-row {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.oe-ring-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.oe-donut-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
  padding: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.oe-donut-circle.blue {
  background: conic-gradient(var(--oe-blue) 25%, #e2e8f0 0);
}

.oe-donut-circle.green {
  background: conic-gradient(var(--oe-green) 25%, #e2e8f0 0);
}

.oe-donut-circle.pink {
  background: conic-gradient(var(--oe-pink) 98%, #e2e8f0 0);
}

.oe-donut-inner {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.oe-donut-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.oe-donut-sub {
  font-size: 0.72rem;
  color: var(--oe-text-muted);
  font-weight: 700;
  margin-top: 3px;
}

.oe-ring-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--oe-text-main, #0f172a);
  margin-bottom: 3px;
  white-space: nowrap;
}

.oe-ring-link {
  color: var(--oe-orange);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.15s;
}

.oe-ring-link:hover {
  text-decoration: underline;
  color: var(--oe-orange-hover);
}

/* Right League Ticket */
.oe-league-art {
  width: 85px;
  height: 95px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.oe-league-wings {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  clip-path: polygon(50% 0%, 100% 80%, 80% 100%, 50% 80%, 20% 100%, 0% 80%);
  border-radius: 4px;
}

.oe-league-ribbon {
  position: relative;
  z-index: 2;
  background: var(--oe-blue);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 10px 8px;
  border-radius: 6px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 114, 206, 0.3);
}

.oe-league-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--oe-text-main, #0f172a);
  margin-bottom: 6px;
}

.oe-league-desc {
  font-size: 0.84rem;
  color: var(--oe-text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  max-width: 270px;
}

.oe-btn-orange {
  background: var(--oe-orange);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  max-width: 240px;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.35);
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.oe-btn-orange:hover {
  background: var(--oe-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.45);
}

/* Unit Cards Section (Learning Tracks) */
.oe-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═════════════════════════════════════════════════════════════════
   SWIPEABLE TRACK NAV (Fluid Horizontal Touch + Arrow Buttons)
   ═════════════════════════════════════════════════════════════════ */
.oe-track-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 18px;
}

.oe-track-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth;
  touch-action: pan-x !important;
  padding: 6px 4px 10px 4px;
  width: 100%;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.oe-track-nav.grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
}
.oe-track-nav::-webkit-scrollbar {
  display: none;
}

.oe-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: var(--oe-blue);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}
.oe-scroll-arrow.left {
  left: -12px;
}
.oe-scroll-arrow.right {
  right: -12px;
}
.oe-scroll-arrow:hover {
  background: var(--oe-blue);
  color: #ffffff;
  border-color: var(--oe-blue);
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.35);
}

.oe-track-pill {
  flex-shrink: 0;
  white-space: nowrap;
  background: #ffffff;
  border: 1.5px solid var(--oe-border);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--oe-text-muted);
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.oe-track-pill:hover {
  border-color: var(--oe-blue);
  color: var(--oe-blue);
}

.oe-track-pill.active {
  background: var(--oe-blue);
  color: #ffffff;
  border-color: var(--oe-blue);
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.3);
}

.oe-track-pill.lvl-locked {
  opacity: 0.55;
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: pointer;
}

.oe-track-pill.lvl-locked:hover {
  opacity: 0.8;
  border-color: #94a3b8;
  color: #334155;
}

/* Units Grid */
.oe-units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.oe-unit-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--oe-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.oe-unit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--oe-blue);
}

.oe-unit-card-thumb {
  height: 125px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background-color: #0f172a;
}

.oe-unit-card:hover .oe-unit-card-thumb {
  filter: brightness(1.05);
}

.oe-unit-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.75) 100%);
  pointer-events: none;
}

.oe-unit-card-chip {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.oe-unit-badge-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.oe-unit-badge-tag.completed {
  background: rgba(16, 185, 129, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.oe-unit-badge-tag.in-progress {
  background: rgba(245, 158, 11, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.oe-unit-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.oe-unit-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.oe-unit-subtitle {
  font-size: 0.8rem;
  color: var(--oe-text-muted);
  margin-bottom: 10px;
}

.oe-unit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--oe-blue);
}

/* Bottom Quick Tools Bar (Authentic Native Tabbar) */
.oe-bottom-tools {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--oe-blue);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.oe-tool-item {
  flex: 1;
  max-width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.15s;
  cursor: pointer;
}

.oe-tool-item:last-child {
  border-right: none;
}

.oe-tool-item:hover, .oe-tool-item:active {
  background: var(--oe-blue-dark);
}

.oe-tool-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.oe-tool-label {
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Floating AI Chat Button */
.oe-floating-ai {
  position: fixed;
  bottom: 70px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--oe-blue);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 55;
  transition: transform 0.2s;
}

.oe-floating-ai:hover {
  transform: scale(1.08);
}

/* ═════════════════════════════════════════════════════════════════
   OPEN ENGLISH AUTHENTIC MODALS (Dictionary & Grammar Guide)
   ═════════════════════════════════════════════════════════════════ */
.oe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.oe-modal-overlay.active {
  display: flex;
}

.oe-modal-sheet {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.2s ease-out;
}

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

.oe-modal-header {
  background: var(--oe-blue);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
}

.oe-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s;
}
.oe-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.oe-modal-body {
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Dedicated Grammar & Dictionary Item Layouts (Zero Flex Crushing) */
.oe-grammar-example-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 8px;
}

.oe-grammar-example-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.oe-grammar-en {
  font-weight: 800;
  font-size: 0.95rem;
  color: #1e293b;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.oe-grammar-pt {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.oe-audio-btn-sm {
  background: #ff6a00 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  width: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.3) !important;
  transition: transform 0.15s !important;
}

.oe-audio-btn-sm:active {
  transform: scale(0.96) !important;
}

/* Toast Notifications */
.oe-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.oe-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ═════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS (< 768px and < 480px)
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .oe-card-header-bar {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .oe-card-tab-right {
    display: none;
  }
  .oe-card-body-split {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .oe-perforation-divider {
    display: none !important;
  }
  .oe-split-right {
    border-top: 2px dashed #cbd5e1;
    padding: 20px 16px;
  }
}

@media (max-width: 768px) {
  .oe-page-wrap {
    padding: 12px 12px 80px 12px;
  }

  /* Compact Navbar */
  .oe-nav-container {
    padding: 8px 12px;
  }
  .oe-logo {
    font-size: 1.15rem;
  }
  .oe-logo span[style*="font-size"] {
    display: none; /* Hide PRO tag on mobile */
  }
  .oe-nav-links {
    display: none; /* In navbar, hide on mobile */
  }
  .oe-nav-right {
    gap: 6px;
  }
  #role-action-btn a, .oe-role-btn {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
  }
  #user-display-name {
    font-size: 0.78rem !important;
  }
  #user-display-level {
    display: none; /* Hide level on tiny screen to save space */
  }

  /* Hero AI Banner Stacking */
  .oe-ai-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
    border-radius: 14px;
    margin-bottom: 16px;
  }
  .oe-ai-left {
    gap: 12px;
  }
  .oe-ai-avatar {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .oe-ai-title {
    font-size: 1rem;
  }
  .oe-ai-desc {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .oe-ai-btn {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  /* Split Left Content */
  .oe-split-left {
    padding: 16px 10px;
  }

  /* Airplane Track Mobile */
  .oe-track-labels {
    font-size: 0.65rem;
  }
  .oe-airplane-icon {
    font-size: 17px;
    top: -9px;
  }

  /* 3 Circular Rings (100% Fit with ZERO Overflow) */
  .oe-rings-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    justify-items: center;
  }

  .oe-ring-col {
    width: 100%;
  }

  .oe-donut-circle {
    width: 72px !important;
    height: 72px !important;
    padding: 4px !important;
    margin-bottom: 6px !important;
  }

  .oe-donut-val {
    font-size: 1.15rem !important;
  }

  .oe-donut-sub {
    font-size: 0.62rem !important;
  }

  .oe-ring-title {
    font-size: 0.72rem !important;
    margin-bottom: 2px !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.1;
  }

  .oe-ring-link {
    font-size: 0.65rem !important;
    text-align: center;
  }

  /* League Ticket Mobile */
  .oe-league-title {
    font-size: 1.05rem;
  }
  .oe-league-desc {
    font-size: 0.78rem;
  }
  .oe-split-right .oe-btn-orange,
  .oe-ai-banner .oe-btn-orange,
  #auth-modal .oe-btn-orange,
  .oe-btn-orange.block {
    max-width: 100%;
    width: 100%;
    padding: 11px;
    font-size: 0.9rem;
  }

  /* Scroll Arrows Mobile - hidden so thumb swipe is 100% natural and zero overflow */
  .oe-scroll-arrow {
    display: none !important;
  }

  /* Units Grid 1-column on mobile */
  .oe-units-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .oe-unit-card-thumb {
    height: 115px;
  }
}

@media (max-width: 480px) {
  .oe-page-wrap {
    padding: 10px 8px 80px 8px;
  }
  .oe-nav-icon-btn {
    display: none; /* Hide bell on extra narrow phones */
  }
  .oe-track-pill {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
}

/* ═════════════════════════════════════════════════════════════════
   RANKING SEMANAL DOS ALUNOS & LIGAS
   ═════════════════════════════════════════════════════════════════ */
.oe-ranking-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.oe-ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.oe-ranking-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #0072ce;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.oe-ranking-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.oe-ranking-stat-card {
  text-align: center;
  padding: 14px 12px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.oe-ranking-stat-card.blue {
  background: rgba(0, 114, 206, 0.06);
  border: 1.5px solid rgba(0, 114, 206, 0.2);
}
.oe-ranking-stat-card.purple {
  background: rgba(147, 51, 234, 0.06);
  border: 1.5px solid rgba(147, 51, 234, 0.2);
}
.oe-ranking-stat-card.green {
  background: rgba(16, 185, 129, 0.06);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
}
.oe-ranking-stat-card.orange {
  background: rgba(249, 115, 22, 0.06);
  border: 1.5px solid rgba(249, 115, 22, 0.2);
}

.oe-ranking-boards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .oe-ranking-boards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .oe-ranking-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .oe-ranking-card {
    padding: 16px 14px;
  }
  .oe-ranking-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}


/* Smart PWA Install Banner */
.oe-install-banner {
  background: linear-gradient(90deg, #eff6ff 0%, #e0f2fe 100%);
  border-bottom: 1.5px solid #bae6fd;
  padding: 10px 16px;
  position: relative;
  z-index: 999;
  animation: modalSlideUp 0.2s ease-out;
}
.oe-install-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.oe-btn-install-banner {
  background: #0072ce;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 114, 206, 0.3);
  transition: transform 0.15s, background 0.15s;
}
.oe-btn-install-banner:hover {
  transform: scale(1.04);
  background: #005bb5;
}
.oe-btn-dismiss-banner {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}
.oe-btn-dismiss-banner:hover {
  color: #0f172a;
}


/* ═══════════════════════════════════════════════════════════════
   OPEN ENGLISH 2.0 - UNIVERSAL DARK MODE SYSTEM
   Harmonized with all Seasonal Campaigns (Outubro Rosa, etc.)
   ═══════════════════════════════════════════════════════════════ */

/* ── Toggle Button Styling ── */
.oe-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--oe-border);
  background: var(--oe-card-bg);
  color: var(--oe-text-main);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  user-select: none;
  white-space: nowrap;
}

.oe-theme-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: var(--oe-blue);
  color: var(--oe-blue);
}

.oe-theme-toggle-btn .oe-toggle-icon,
.oe-theme-toggle-btn .toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.4s ease;
}

.oe-theme-toggle-btn:hover .oe-toggle-icon,
.oe-theme-toggle-btn:hover .toggle-icon {
  transform: rotate(20deg) scale(1.15);
}

@media (max-width: 640px) {
  .oe-theme-toggle-btn {
    padding: 7px 10px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  .oe-theme-toggle-btn .oe-toggle-text,
  .oe-theme-toggle-btn .toggle-text {
    display: none;
  }
}

/* ── Global Dark Mode Variables ── */
[data-color-mode="dark"],
html[data-color-mode="dark"],
body[data-color-mode="dark"] {
  --oe-bg: #0b1120;
  --oe-card-bg: #161e2e;
  --oe-card-bg-secondary: #1c2638;
  --oe-border: #26334d;
  --oe-border-subtle: #1e293b;
  --oe-text-main: #f8fafc;
  --oe-text-muted: #94a3b8;
  --oe-text-light: #64748b;
  --oe-nav-bg: #0b1120;
  --oe-bottom-tools-bg: rgba(11, 17, 32, 0.95);
  --oe-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --oe-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);

  /* Legacy variable fallbacks */
  --bg: #0b1120 !important;
  --sur: #161e2e !important;
  --sur2: #1c2638 !important;
  --bdr: #26334d !important;
  --text: #f8fafc !important;
  --muted: #94a3b8 !important;
}

/* ── Seasonal Themes Harmonized in Dark Mode ── */
/* 1. OUTUBRO ROSA (DARK) */
body[data-theme="october_pink"][data-color-mode="dark"],
html[data-color-mode="dark"] body[data-theme="october_pink"] {
  --oe-bg: #0d0c15;
  --oe-card-bg: #161524;
  --oe-card-bg-secondary: #201d32;
  --oe-border: #3b2844;
  --oe-border-subtle: #291d30;
  --oe-nav-bg: #0d0c15;
  --oe-bottom-tools-bg: rgba(13, 12, 21, 0.95);
  --oe-blue: #db2777;
  --oe-blue-light: #f43f5e;
  --oe-blue-dark: #be185d;
  --oe-blue-gradient: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  --oe-banner-gradient: linear-gradient(90deg, #ec4899 0%, #f43f5e 60%, #fb7185 100%);
  --oe-orange: #f43f5e;
  --oe-orange-hover: #e11d48;
}

body[data-theme="october_pink"][data-color-mode="dark"] .oe-navbar {
  background: #0d0c15 !important;
  border-top: 3.5px solid #ec4899 !important;
  border-bottom: 1.5px solid #3b2844 !important;
}

body[data-theme="october_pink"][data-color-mode="dark"] .oe-dashboard-card {
  border: 1.5px solid #3b2844 !important;
  box-shadow: 0 6px 24px rgba(219, 39, 119, 0.15) !important;
}

body[data-theme="october_pink"][data-color-mode="dark"] .oe-card-tab-left,
body[data-theme="october_pink"][data-color-mode="dark"] .oe-card-tab-right {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%) !important;
}

/* 2. NOVEMBRO AZUL (DARK) */
body[data-theme="november_blue"][data-color-mode="dark"],
html[data-color-mode="dark"] body[data-theme="november_blue"] {
  --oe-bg: #07131d;
  --oe-card-bg: #0e1e2d;
  --oe-card-bg-secondary: #14293c;
  --oe-border: #1e3a52;
  --oe-border-subtle: #142838;
  --oe-nav-bg: #07131d;
  --oe-bottom-tools-bg: rgba(7, 19, 29, 0.95);
  --oe-blue: #0284c7;
  --oe-blue-light: #38bdf8;
  --oe-blue-dark: #0369a1;
}

body[data-theme="november_blue"][data-color-mode="dark"] .oe-navbar {
  background: #07131d !important;
  border-top: 3.5px solid #0284c7 !important;
  border-bottom: 1.5px solid #1e3a52 !important;
}

/* 3. NATAL (DARK) */
body[data-theme="christmas"][data-color-mode="dark"],
html[data-color-mode="dark"] body[data-theme="christmas"] {
  --oe-bg: #08140e;
  --oe-card-bg: #0e2017;
  --oe-card-bg-secondary: #152c20;
  --oe-border: #1e3d2c;
  --oe-border-subtle: #14281c;
  --oe-nav-bg: #08140e;
  --oe-bottom-tools-bg: rgba(8, 20, 14, 0.95);
  --oe-blue: #10b981;
  --oe-blue-light: #22c55e;
  --oe-blue-dark: #15803d;
  --oe-orange: #ef4444;
}

body[data-theme="christmas"][data-color-mode="dark"] .oe-navbar {
  background: #08140e !important;
  border-top: 3.5px solid #10b981 !important;
  border-bottom: 1.5px solid #1e3d2c !important;
}

/* 4. CARNAVAL (DARK) */
body[data-theme="carnival"][data-color-mode="dark"],
html[data-color-mode="dark"] body[data-theme="carnival"] {
  --oe-bg: #0f0a1c;
  --oe-card-bg: #18122c;
  --oe-card-bg-secondary: #221a3e;
  --oe-border: #34245c;
  --oe-border-subtle: #251a42;
  --oe-nav-bg: #0f0a1c;
  --oe-bottom-tools-bg: rgba(15, 10, 28, 0.95);
  --oe-blue: #a855f7;
  --oe-blue-light: #c084fc;
  --oe-blue-dark: #7c3aed;
  --oe-orange: #f59e0b;
}

body[data-theme="carnival"][data-color-mode="dark"] .oe-navbar {
  background: #0f0a1c !important;
  border-top: 3.5px solid #a855f7 !important;
  border-bottom: 1.5px solid #34245c !important;
}

/* 5. PÁSCOA (DARK) */
body[data-theme="easter"][data-color-mode="dark"],
html[data-color-mode="dark"] body[data-theme="easter"] {
  --oe-bg: #0e0a1a;
  --oe-card-bg: #17122a;
  --oe-card-bg-secondary: #211a3b;
  --oe-border: #322558;
  --oe-border-subtle: #22193e;
  --oe-nav-bg: #0e0a1a;
  --oe-bottom-tools-bg: rgba(14, 10, 26, 0.95);
  --oe-blue: #8b5cf6;
  --oe-blue-light: #a78bfa;
  --oe-orange: #10b981;
}

body[data-theme="easter"][data-color-mode="dark"] .oe-navbar {
  background: #0e0a1a !important;
  border-top: 3.5px solid #8b5cf6 !important;
  border-bottom: 1.5px solid #322558 !important;
}

/* 6. VERÃO (DARK) */
body[data-theme="summer"][data-color-mode="dark"],
html[data-color-mode="dark"] body[data-theme="summer"] {
  --oe-bg: #140d07;
  --oe-card-bg: #20150d;
  --oe-card-bg-secondary: #2c1e14;
  --oe-border: #422a1b;
  --oe-border-subtle: #2e1d13;
  --oe-nav-bg: #140d07;
  --oe-bottom-tools-bg: rgba(20, 13, 7, 0.95);
  --oe-blue: #f97316;
  --oe-blue-light: #fb923c;
  --oe-orange: #f59e0b;
}

body[data-theme="summer"][data-color-mode="dark"] .oe-navbar {
  background: #140d07 !important;
  border-top: 3.5px solid #f97316 !important;
  border-bottom: 1.5px solid #422a1b !important;
}

/* 7. HALLOWEEN (DARK) */
body[data-theme="halloween"][data-color-mode="dark"],
html[data-color-mode="dark"] body[data-theme="halloween"] {
  --oe-bg: #151322;
  --oe-card-bg: #1f1b32;
  --oe-card-bg-secondary: #292442;
  --oe-border: #3f365e;
  --oe-border-subtle: #2e2848;
  --oe-nav-bg: #151322;
  --oe-bottom-tools-bg: rgba(21, 19, 34, 0.95);
  --oe-blue: #f97316;
  --oe-blue-light: #fb923c;
  --oe-orange: #a855f7;
}

body[data-theme="halloween"][data-color-mode="dark"] .oe-navbar {
  background: #151322 !important;
  border-top: 3.5px solid #f97316 !important;
  border-bottom: 1.5px solid #3f365e !important;
}

/* ── Component Overrides in Dark Mode ── */

/* 1. Navbar & Top Navigation */
[data-color-mode="dark"] .oe-navbar {
  background: var(--oe-nav-bg) !important;
  border-bottom: 1px solid var(--oe-border) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45) !important;
}

[data-color-mode="dark"] .oe-logo {
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-nav-link {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-nav-link:hover {
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-nav-link.active {
  color: var(--oe-blue) !important;
}

[data-color-mode="dark"] .oe-nav-icon-btn {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-nav-icon-btn:hover {
  background: var(--oe-card-bg-secondary) !important;
  color: #ffffff !important;
}

[data-color-mode="dark"] #user-display-name {
  color: #ffffff !important;
}

[data-color-mode="dark"] #user-display-level {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-user-dropdown {
  background: var(--oe-card-bg) !important;
  border: 1.5px solid var(--oe-border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

[data-color-mode="dark"] .oe-user-dropdown > div {
  border-bottom-color: var(--oe-border) !important;
}

[data-color-mode="dark"] #dropdown-user-name {
  color: #ffffff !important;
}

[data-color-mode="dark"] #dropdown-user-email {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-user-dropdown-item {
  color: #cbd5e1 !important;
}

[data-color-mode="dark"] .oe-user-dropdown-item:hover {
  background: var(--oe-card-bg-secondary) !important;
  color: #ffffff !important;
}

/* 2. Objectives Card (Notebook Ticket) */
[data-color-mode="dark"] .oe-dashboard-card {
  background: var(--oe-card-bg) !important;
  border: 1px solid var(--oe-border) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-color-mode="dark"] .oe-card-header-bar {
  background: var(--oe-card-bg) !important;
}

[data-color-mode="dark"] .oe-card-body-split {
  background: var(--oe-card-bg) !important;
}

[data-color-mode="dark"] .oe-split-left,
[data-color-mode="dark"] .oe-split-right {
  background: var(--oe-card-bg) !important;
}

[data-color-mode="dark"] .oe-perforation-divider {
  background: var(--oe-card-bg) !important;
  border-left-color: var(--oe-border) !important;
  border-right-color: var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-hole {
  background: var(--oe-bg) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65) !important;
}

[data-color-mode="dark"] .oe-airplane-track::before {
  background: #243048 !important;
}

[data-color-mode="dark"] .oe-track-segment {
  background: #243048 !important;
}

[data-color-mode="dark"] .oe-track-station {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-track-station.active,
[data-color-mode="dark"] .oe-track-station.completed {
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-stat-box {
  background: var(--oe-card-bg-secondary) !important;
  border: 1px solid var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-stat-num {
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-stat-lbl {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-circle-bg {
  stroke: #243048 !important;
}

[data-color-mode="dark"] .oe-gam-box {
  background: var(--oe-card-bg-secondary) !important;
  border-color: var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-streak-badge {
  color: #cbd5e1 !important;
}

/* 3. Ranking Weekly Card */
[data-color-mode="dark"] .oe-ranking-card {
  background: var(--oe-card-bg) !important;
  border: 1px solid var(--oe-border) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-color-mode="dark"] .oe-ranking-hdr {
  border-bottom-color: var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-ranking-title {
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-ranking-sub {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-ranking-stat-card {
  background: var(--oe-card-bg-secondary) !important;
  border: 1px solid var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-ranking-stat-val {
  color: #ffffff;
}

[data-color-mode="dark"] .oe-ranking-stat-lbl {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-ranking-podium-box {
  background: var(--oe-card-bg-secondary) !important;
  border: 1px solid var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-ranking-row {
  color: #f8fafc !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-color-mode="dark"] .oe-ranking-row:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

[data-color-mode="dark"] .oe-ranking-tip-box {
  background: var(--oe-card-bg-secondary) !important;
  border: 1px solid var(--oe-border) !important;
  color: #cbd5e1 !important;
}

/* 4. Unit Carousel & Filter Pills */
[data-color-mode="dark"] .oe-filter-pill {
  background: var(--oe-card-bg-secondary) !important;
  border: 1.5px solid var(--oe-border) !important;
  color: #cbd5e1 !important;
}

[data-color-mode="dark"] .oe-filter-pill:hover {
  background: #243048 !important;
  color: #ffffff !important;
  border-color: var(--oe-blue) !important;
}

[data-color-mode="dark"] .oe-filter-pill.active {
  background: var(--oe-blue) !important;
  color: #ffffff !important;
  border-color: var(--oe-blue) !important;
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.35) !important;
}

[data-color-mode="dark"] .oe-unit-card {
  background: var(--oe-card-bg) !important;
  border: 1px solid var(--oe-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

[data-color-mode="dark"] .oe-unit-card:hover {
  border-color: var(--oe-blue) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
}

[data-color-mode="dark"] .oe-unit-footer {
  background: var(--oe-card-bg-secondary) !important;
  border-top: 1px solid var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-unit-title {
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-unit-sub {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-unit-lock-overlay {
  background: rgba(11, 17, 32, 0.88) !important;
  color: #cbd5e1 !important;
}

/* 5. Bottom Floating Tools Toolbar */
[data-color-mode="dark"] .oe-bottom-tools {
  background: var(--oe-bottom-tools-bg) !important;
  border: 1px solid var(--oe-border) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
}

[data-color-mode="dark"] .oe-tool-btn {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-tool-btn:hover {
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-tool-label {
  color: #94a3b8 !important;
}

/* 6. Modals, Inputs & Drawers */
[data-color-mode="dark"] .oe-unit-modal-content,
[data-color-mode="dark"] .oe-modal-content,
[data-color-mode="dark"] .oe-unit-drawer {
  background: var(--oe-card-bg) !important;
  border: 1.5px solid var(--oe-border) !important;
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-drawer-header {
  border-bottom-color: var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-tab-item {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-tab-item.active {
  color: var(--oe-blue) !important;
}

[data-color-mode="dark"] .oe-vocab-item,
[data-color-mode="dark"] .oe-dialogue-line {
  background: var(--oe-card-bg-secondary) !important;
  border: 1px solid var(--oe-border) !important;
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-input,
[data-color-mode="dark"] .oe-textarea,
[data-color-mode="dark"] input[type="text"],
[data-color-mode="dark"] input[type="password"],
[data-color-mode="dark"] textarea {
  background: var(--oe-card-bg-secondary) !important;
  border: 1.5px solid var(--oe-border) !important;
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-input:focus,
[data-color-mode="dark"] .oe-textarea:focus {
  border-color: var(--oe-blue) !important;
}

/* 7. Pronúncia & Minhas Correções */
[data-color-mode="dark"] .oe-stat-card {
  background: var(--oe-card-bg) !important;
  border-color: var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-stat-lbl {
  color: var(--oe-text-muted) !important;
}

[data-color-mode="dark"] .oe-tab-nav {
  background: var(--oe-card-bg) !important;
  border-color: var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-tab-btn {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-tab-btn:hover {
  background: var(--oe-card-bg-secondary) !important;
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-tab-btn.active {
  background: var(--oe-blue) !important;
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-tab-badge {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

[data-color-mode="dark"] .oe-hw-card,
[data-color-mode="dark"] .oe-rec-card {
  background: var(--oe-card-bg) !important;
  border-color: var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-hw-card-hdr {
  background: var(--oe-card-bg) !important;
}

[data-color-mode="dark"] .oe-hw-card-hdr:hover {
  background: var(--oe-card-bg-secondary) !important;
}

[data-color-mode="dark"] .oe-hw-title,
[data-color-mode="dark"] .oe-rec-word {
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-hw-meta,
[data-color-mode="dark"] .oe-rec-pt {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-hw-body {
  border-top-color: var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-qa-item {
  background: var(--oe-card-bg-secondary) !important;
  border-color: var(--oe-border) !important;
}

[data-color-mode="dark"] .oe-qa-question {
  background: #131d2e !important;
  color: #e2e8f0 !important;
}

[data-color-mode="dark"] .oe-qa-answer {
  background: #0f172a !important;
  border-color: var(--oe-border) !important;
  color: #f8fafc !important;
}

[data-color-mode="dark"] .oe-feedback-box {
  background: #082f49 !important;
  border-color: #0284c7 !important;
  color: #bae6fd !important;
}

/* 8. Install PWA Banner in Dark Mode */
[data-color-mode="dark"] .oe-install-banner {
  background: linear-gradient(90deg, #161e2e 0%, #1e293b 100%) !important;
  border-bottom-color: var(--oe-border) !important;
  color: #ffffff !important;
}

[data-color-mode="dark"] .oe-btn-dismiss-banner {
  color: #94a3b8 !important;
}

[data-color-mode="dark"] .oe-btn-dismiss-banner:hover {
  color: #ffffff !important;
}


/* ═══════════════════════════════════════════════════════════════
   DASHBOARD DARK MODE TEXT VISIBILITY & RANKING TIP FIXES
   ═══════════════════════════════════════════════════════════════ */
.oe-ranking-tip-card {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0, 114, 206, 0.05) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1.5px dashed rgba(0, 114, 206, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.oe-ranking-tip-title {
  font-size: 11.5px;
  font-weight: 900;
  color: var(--oe-blue);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.oe-ranking-tip-desc {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
  font-weight: 600;
}
.oe-ranking-tip-desc b {
  color: #0f172a;
}
.oe-ranking-tip-desc .oe-tip-blue {
  color: var(--oe-blue);
}

/* Dark Mode Fixes for Dashboard Elements */
html[data-color-mode="dark"] .oe-ring-title,
body[data-color-mode="dark"] .oe-ring-title {
  color: #ffffff !important;
}

html[data-color-mode="dark"] .oe-league-title,
body[data-color-mode="dark"] .oe-league-title,
html[data-color-mode="dark"] #gam-title,
body[data-color-mode="dark"] #gam-title {
  color: #ffffff !important;
}

html[data-color-mode="dark"] #gam-xp-label,
body[data-color-mode="dark"] #gam-xp-label {
  color: #f1f5f9 !important;
}

html[data-color-mode="dark"] .oe-section-title,
body[data-color-mode="dark"] .oe-section-title {
  color: #ffffff !important;
}

html[data-color-mode="dark"] .oe-ranking-tip-card,
body[data-color-mode="dark"] .oe-ranking-tip-card {
  background: rgba(22, 30, 46, 0.75) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}
html[data-color-mode="dark"] .oe-ranking-tip-title,
body[data-color-mode="dark"] .oe-ranking-tip-title {
  color: #38bdf8 !important;
}
html[data-color-mode="dark"] .oe-ranking-tip-desc,
body[data-color-mode="dark"] .oe-ranking-tip-desc {
  color: #cbd5e1 !important;
}
html[data-color-mode="dark"] .oe-ranking-tip-desc b,
body[data-color-mode="dark"] .oe-ranking-tip-desc b {
  color: #ffffff !important;
}

body[data-theme="october_pink"][data-color-mode="dark"] .oe-ranking-tip-card {
  background: rgba(32, 29, 50, 0.8) !important;
  border-color: rgba(236, 72, 153, 0.4) !important;
}
body[data-theme="october_pink"][data-color-mode="dark"] .oe-ranking-tip-title {
  color: #ec4899 !important;
}
body[data-theme="october_pink"][data-color-mode="dark"] .oe-ranking-tip-desc .oe-tip-blue {
  color: #f472b6 !important;
}

/* Universal Dark Mode Protectors for hardcoded dark inline colors */
html[data-color-mode="dark"] [style*="color:#0f172a"],
html[data-color-mode="dark"] [style*="color: #0f172a"],
html[data-color-mode="dark"] [style*="color:#1e293b"],
html[data-color-mode="dark"] [style*="color: #1e293b"],
html[data-color-mode="dark"] [style*="color:#334155"],
html[data-color-mode="dark"] [style*="color: #334155"],
body[data-color-mode="dark"] [style*="color:#0f172a"],
body[data-color-mode="dark"] [style*="color: #0f172a"],
body[data-color-mode="dark"] [style*="color:#1e293b"],
body[data-color-mode="dark"] [style*="color: #1e293b"],
body[data-color-mode="dark"] [style*="color:#334155"],
body[data-color-mode="dark"] [style*="color: #334155"] {
  color: #ffffff !important;
}

html[data-color-mode="dark"] [style*="color:#475569"],
html[data-color-mode="dark"] [style*="color: #475569"],
body[data-color-mode="dark"] [style*="color:#475569"],
body[data-color-mode="dark"] [style*="color: #475569"] {
  color: #cbd5e1 !important;
}



/* ═══════════════════════════════════════════════════════════════
   STUDENT RANKING: PREMIUM OPEN ENGLISH DESIGN & FULL DARK MODE
   ═══════════════════════════════════════════════════════════════ */
.oe-ranking-stat-lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  margin-top: 4px;
}
.oe-ranking-stat-sub {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  margin-top: 4px;
}
.oe-ranking-stat-badge {
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}
.oe-ranking-stat-badge.blue {
  color: #0072ce;
  background: #e0f2fe;
}
.oe-ranking-stat-badge.purple {
  color: #9333ea;
  background: #f3e8ff;
}

.oe-ranking-board-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s ease;
}
.oe-ranking-board-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.oe-ranking-board-title {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.oe-ranking-board-title.audio {
  color: #0072ce;
}
.oe-ranking-board-title.quiz {
  color: #9333ea;
}
.oe-ranking-board-count {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.oe-ranking-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.oe-ranking-item-row:last-child {
  border-bottom: none;
}
.oe-ranking-item-row.is-me {
  background: #e0f2fe;
  border: 1.5px solid #bae6fd;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 3px 0;
}
.oe-ranking-item-row.is-me.quiz-me {
  background: #f3e8ff;
  border: 1.5px solid #e9d5ff;
}

.oe-ranking-student-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}
.oe-ranking-student-name.is-me {
  color: #0072ce;
  font-weight: 900;
}
.oe-ranking-student-name.is-me.quiz-me {
  color: #9333ea;
  font-weight: 900;
}
.oe-me-tag {
  color: #0072ce;
  font-weight: 900;
}
.oe-me-tag.quiz {
  color: #9333ea;
}

.oe-ranking-cnt {
  font-size: 11px;
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── RANKING DARK MODE STYLING ── */
html[data-color-mode="dark"] .oe-ranking-stat-lbl,
body[data-color-mode="dark"] .oe-ranking-stat-lbl,
html[data-color-mode="dark"] .oe-ranking-stat-sub,
body[data-color-mode="dark"] .oe-ranking-stat-sub {
  color: #94a3b8 !important;
}
html[data-color-mode="dark"] .oe-ranking-stat-badge.blue,
body[data-color-mode="dark"] .oe-ranking-stat-badge.blue {
  background: rgba(0, 114, 206, 0.25) !important;
  color: #38bdf8 !important;
}
html[data-color-mode="dark"] .oe-ranking-stat-badge.purple,
body[data-color-mode="dark"] .oe-ranking-stat-badge.purple {
  background: rgba(147, 51, 234, 0.25) !important;
  color: #c084fc !important;
}

html[data-color-mode="dark"] .oe-ranking-board-box,
body[data-color-mode="dark"] .oe-ranking-board-box {
  background: #161e2e !important;
  border-color: #26334d !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}
html[data-color-mode="dark"] .oe-ranking-board-hdr,
body[data-color-mode="dark"] .oe-ranking-board-hdr {
  border-bottom-color: #26334d !important;
}
html[data-color-mode="dark"] .oe-ranking-board-title.audio,
body[data-color-mode="dark"] .oe-ranking-board-title.audio {
  color: #38bdf8 !important;
}
html[data-color-mode="dark"] .oe-ranking-board-title.quiz,
body[data-color-mode="dark"] .oe-ranking-board-title.quiz {
  color: #c084fc !important;
}
html[data-color-mode="dark"] .oe-ranking-board-count,
body[data-color-mode="dark"] .oe-ranking-board-count {
  color: #64748b !important;
}

html[data-color-mode="dark"] .oe-ranking-item-row,
body[data-color-mode="dark"] .oe-ranking-item-row {
  border-bottom-color: #1e293b !important;
}
html[data-color-mode="dark"] .oe-ranking-item-row.is-me,
body[data-color-mode="dark"] .oe-ranking-item-row.is-me {
  background: rgba(0, 114, 206, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}
html[data-color-mode="dark"] .oe-ranking-item-row.is-me.quiz-me,
body[data-color-mode="dark"] .oe-ranking-item-row.is-me.quiz-me {
  background: rgba(147, 51, 234, 0.2) !important;
  border-color: rgba(192, 132, 252, 0.4) !important;
}

html[data-color-mode="dark"] .oe-ranking-student-name,
body[data-color-mode="dark"] .oe-ranking-student-name {
  color: #ffffff !important;
}
html[data-color-mode="dark"] .oe-ranking-student-name.is-me,
body[data-color-mode="dark"] .oe-ranking-student-name.is-me {
  color: #38bdf8 !important;
}
html[data-color-mode="dark"] .oe-ranking-student-name.is-me.quiz-me,
body[data-color-mode="dark"] .oe-ranking-student-name.is-me.quiz-me {
  color: #c084fc !important;
}
html[data-color-mode="dark"] .oe-me-tag,
body[data-color-mode="dark"] .oe-me-tag {
  color: #38bdf8 !important;
}
html[data-color-mode="dark"] .oe-me-tag.quiz,
body[data-color-mode="dark"] .oe-me-tag.quiz {
  color: #c084fc !important;
}
html[data-color-mode="dark"] .oe-ranking-cnt,
body[data-color-mode="dark"] .oe-ranking-cnt {
  color: #94a3b8 !important;
}

/* Outubro Rosa in Dark Mode for Ranking */
body[data-theme="october_pink"][data-color-mode="dark"] .oe-ranking-board-box {
  background: #201d32 !important;
  border-color: #382d4a !important;
}
body[data-theme="october_pink"][data-color-mode="dark"] .oe-ranking-board-hdr {
  border-bottom-color: #382d4a !important;
}
body[data-theme="october_pink"][data-color-mode="dark"] .oe-ranking-board-title.audio,
body[data-theme="october_pink"][data-color-mode="dark"] .oe-ranking-board-title.quiz {
  color: #ec4899 !important;
}
body[data-theme="october_pink"][data-color-mode="dark"] .oe-ranking-item-row.is-me {
  background: rgba(236, 72, 153, 0.18) !important;
  border-color: rgba(236, 72, 153, 0.45) !important;
}
body[data-theme="october_pink"][data-color-mode="dark"] .oe-ranking-student-name.is-me {
  color: #f472b6 !important;
}
body[data-theme="october_pink"][data-color-mode="dark"] .oe-me-tag {
  color: #f472b6 !important;
}

/* Universal Dark Mode Catch-All for any lingering dark inline styles */
html[data-color-mode="dark"] [style*="color:#64748b"],
html[data-color-mode="dark"] [style*="color: #64748b"],
body[data-color-mode="dark"] [style*="color:#64748b"],
body[data-color-mode="dark"] [style*="color: #64748b"] {
  color: #94a3b8 !important;
}
html[data-color-mode="dark"] [style*="color:#1e293b"],
html[data-color-mode="dark"] [style*="color: #1e293b"],
body[data-color-mode="dark"] [style*="color:#1e293b"],
body[data-color-mode="dark"] [style*="color: #1e293b"],
html[data-color-mode="dark"] [style*="color:#0f172a"],
html[data-color-mode="dark"] [style*="color: #0f172a"],
body[data-color-mode="dark"] [style*="color:#0f172a"],
body[data-color-mode="dark"] [style*="color: #0f172a"] {
  color: #ffffff !important;
}

/* ── PWA Install Modal Dark Mode Harmonization ── */
[data-color-mode="dark"] #modal-install-app .oe-modal-sheet {
  background: #161e2e !important;
  border: 1px solid #26334d !important;
  color: #f8fafc !important;
}
[data-color-mode="dark"] #modal-install-app .pwa-step-card {
  background: #1c2638 !important;
  border-color: #26334d !important;
}
[data-color-mode="dark"] #modal-install-app .pwa-step-title {
  color: #f8fafc !important;
}
[data-color-mode="dark"] #modal-install-app .pwa-step-desc {
  color: #94a3b8 !important;
}
[data-color-mode="dark"] #modal-install-app .pwa-guide-tip {
  background: rgba(0, 114, 206, 0.15) !important;
  border-color: rgba(0, 114, 206, 0.35) !important;
  color: #93c5fd !important;
}
[data-color-mode="dark"] #modal-install-app .tab-pwa-btn {
  color: #cbd5e1 !important;
}
[data-color-mode="dark"] #modal-install-app .tab-pwa-btn.active {
  background: #0072ce !important;
  color: #ffffff !important;
}
