/* ==========================================================================
   SPEAK & TRAVEL • DESIGN SYSTEM & STYLESHEET (V3.1 FLAGSHIP)
   dp idiomas • Blumenau/SC (Diretriz H: Airport Signage & VIP Dark Slate)
   100% Sincronizado entre index.html, app.js e Mockups Oficiais 1 a 8
   ========================================================================== */

:root {
  /* Base Soberana Passaporte Diplomático & Sala VIP */
  --vip-bg-deep: #060E1A;
  --vip-navy: #0A192F;
  --vip-slate: #0F1E36;
  --vip-card: #132644;
  --vip-card-elevated: #193156;
  --vip-surface-soft: rgba(255, 255, 255, 0.05);
  --vip-border: rgba(148, 163, 184, 0.18);
  --vip-border-strong: rgba(148, 163, 184, 0.30);

  /* Acentos Nobres B2B & Sinalização Aeroportuária */
  --pan-blue: #0284C7;
  --pan-blue-deep: #004B87;
  --pan-sky: #38BDF8;
  --pan-gold: #F59E0B;
  --pan-gold-deep: #D97706;
  --pan-gold-soft: rgba(245, 158, 11, 0.14);
  --pan-gold-border: rgba(245, 158, 11, 0.45);
  --pan-orange: #E85D04;
  --pan-red: #E11D48;
  --pan-green: #10B981;
  --pan-green-soft: rgba(16, 185, 129, 0.15);

  /* Tokens Oficiais Seção 7 (Smart Glassmorphism, Sunlight WCAG AAA 14.8:1 & SOS 3D) */
  --bg-main: #0A192F;
  --card-surface: rgba(22, 58, 96, 0.72);
  --accent-gold: #D7B779;
  --phonetic-gold: #E2C785;
  --sos-glow: rgba(232, 93, 4, 0.5);
  --sos-gradient: linear-gradient(180deg, #FF6B1A 0%, #E85D04 60%, #BA2D0B 100%);

  /* Textos de Alto Contraste WCAG AAA (14.8:1) */
  --text-primary: #F5F7FA;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  /* Tipografia Editorial & Fonética Natural */
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-phonetic: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;

  /* Sombras e Raios */
  --shadow-card: 0 10px 25px -5px rgba(2, 8, 23, 0.55), 0 4px 10px -2px rgba(2, 8, 23, 0.35);
  --shadow-float: 0 18px 36px -6px rgba(2, 8, 23, 0.75);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-card: 18px;
  --radius-pill: 9999px;
  --touch-min: 48px;
  --app-max-width: 680px;
}

/* Modo Alto Contraste Diurno (Opcional via botão no Header) */
body.light-mode {
  --vip-bg-deep: #F1F5F9;
  --vip-navy: #F8FAFC;
  --vip-slate: #FFFFFF;
  --vip-card: #FFFFFF;
  --vip-card-elevated: #F8FAFC;
  --vip-surface-soft: #F1F5F9;
  --vip-border: #CBD5E1;
  --vip-border-strong: #94A3B8;
  --text-primary: #0A192F;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --shadow-card: 0 4px 12px rgba(10, 25, 47, 0.08);
}

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

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at 50% 0%, #12284C 0%, var(--vip-navy) 45%, var(--vip-bg-deep) 100%);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
  padding-bottom: 92px;
  min-height: 100vh;
}

body.light-mode {
  background: var(--vip-bg-deep);
}

/* Utilitários Soberanos */
.hidden, [hidden],
.modal-panic-fullscreen.hidden,
.modal-180-overlay.hidden,
.modal-util-overlay.hidden,
.modal-doc-fullscreen.hidden {
  display: none !important;
}

.text-orange { color: #FB923C !important; }
.text-green { color: #34D399 !important; }
.text-gold { color: var(--pan-gold) !important; }

/* Ícones Vetoriais SVG (Swiss Airport Signage — Stroke 2px) */
.svg-badge {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.svg-nav {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.svg-inline {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: middle;
}

/* ==========================================================================
   1. CABEÇALHO NOBRE BILATERAL (SPEAK & TRAVEL • INCOMUM VIAGENS)
   ========================================================================== */
.app-header-single {
  position: sticky;
  top: 0;
  z-index: 950;
  background: rgba(10, 25, 47, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  width: 100%;
}

body.light-mode .app-header-single {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.header-line {
  width: 100%;
  max-width: var(--app-max-width, 680px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Canto Superior Esquerdo: Logomarca Oficial Speak & Travel */
.brand-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  min-height: 48px;
  padding: 2px 4px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.brand-title-wrap:active {
  transform: scale(0.98);
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
  transition: transform 160ms ease;
}

.brand-title-wrap:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  font-family: var(--font-main);
}

body.light-mode .brand-name {
  color: #0A192F;
}

/* Canto Superior Direito: Logomarca Oficial Incomum Viagens */
.header-partner-badge-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.incomum-header-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 6px;
  min-height: 36px;
  transition: all 160ms ease;
}

body.light-mode .incomum-header-brand {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.incomum-header-logo-img {
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
  transition: all 160ms ease;
}

body.light-mode .incomum-header-logo-img {
  content: url('./assets/icons/incomum-logo.png') !important;
  filter: none !important;
}

body.light-mode .gate-partner-logo[src*="incomum"] {
  content: url('./assets/icons/incomum-logo.png') !important;
}

body.light-mode .voucher-incomum-logo-img {
  content: url('./assets/icons/incomum-logo.png') !important;
}

/* BARRA DE PESQUISA NOBRE ABAIXO DO HEADER (LARGURA TOTAL + RESULTADOS AO VIVO) */
.hero-search-bar-wrap {
  position: sticky;
  top: 50px;
  z-index: 940;
  width: 100%;
  max-width: var(--app-max-width, 680px);
  margin: 0 auto;
  padding: 8px 16px 6px 16px;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.96) 0%, rgba(10, 25, 47, 0.88) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}

body.light-mode .hero-search-bar-wrap {
  background: rgba(248, 250, 252, 0.96);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.hero-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  background: rgba(15, 30, 54, 0.92);
  border: 1.5px solid rgba(56, 189, 248, 0.34);
  border-radius: 12px;
  padding: 0 32px 0 12px;
  box-shadow: 0 6px 18px rgba(2, 8, 20, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 150ms ease;
}

body.light-mode .hero-search-box {
  background: #FFFFFF;
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.hero-search-box:focus-within {
  border-color: var(--pan-sky);
  background: rgba(17, 34, 64, 1);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.22), 0 8px 20px rgba(2, 8, 20, 0.5);
}

body.light-mode .hero-search-box:focus-within {
  background: #FFFFFF;
}

.hero-search-box .search-icon {
  color: #38BDF8;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  width: 100%;
}

.hero-search-box input::placeholder {
  color: var(--text-secondary);
  font-weight: 500;
  opacity: 0.85;
}

/* Painel Dropdown de Resultados Unificados (117 Cenas My Trip + 500 Termos Glossário) */
.global-search-results {
  margin-top: 6px;
  background: rgba(13, 28, 52, 0.98);
  border: 1.5px solid rgba(56, 189, 248, 0.38);
  border-radius: 12px;
  max-height: 60dvh;
  overflow-y: auto;
  box-shadow: 0 16px 38px rgba(2, 8, 20, 0.82);
  padding: 8px;
}

body.light-mode .global-search-results {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.search-res-section-title {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38BDF8;
  padding: 4px 6px 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-res-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 5px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

body.light-mode .search-res-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.search-res-item:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
}

.search-res-main {
  flex: 1;
  min-width: 0;
}

.search-res-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.search-res-badge {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.search-res-badge.badge-scene {
  background: rgba(56, 189, 248, 0.18);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.search-res-badge.badge-term {
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.search-res-en {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.search-res-pt {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.search-res-phon {
  font-size: 10px;
  font-weight: 700;
  color: #38BDF8;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.search-res-audio-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(2, 132, 199, 0.2);
  color: #E0F2FE;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

body.light-mode .search-res-audio-btn {
  background: #0284C7;
  color: #FFFFFF;
}

.search-res-footer-btn {
  width: 100%;
  margin-top: 3px;
  padding: 8px;
  border-radius: 8px;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

body.light-mode .search-res-footer-btn {
  color: #B45309;
  background: rgba(245, 158, 11, 0.1);
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
}

.partner-header-pill {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #060E1A;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.brand-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.search-compact-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-compact-wrap .search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-compact-wrap input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--vip-border);
  background: rgba(15, 30, 54, 0.75);
  border-radius: var(--radius-pill);
  padding: 0 28px 0 32px;
  font-size: 12px;
  color: var(--text-primary);
  font-family: var(--font-main);
  outline: none;
  transition: all 150ms ease;
}

body.light-mode .search-compact-wrap input {
  background: #F1F5F9;
}

.search-compact-wrap input::placeholder {
  color: var(--text-muted);
}

.search-compact-wrap input:focus {
  border-color: var(--pan-gold);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.offline-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-pill);
  padding: 5px 9px;
  flex-shrink: 0;
}

.offline-pill .status-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
}

.offline-pill .status-label {
  font-size: 9px;
  font-weight: 800;
  color: #34D399;
  letter-spacing: 0.6px;
}

body.light-mode .offline-pill .status-label {
  color: #047857;
}

.btn-theme-toggle {
  background: var(--vip-surface-soft);
  border: 1px solid var(--vip-border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================================
   2. MAIN CONTENT & BARRA DISCRETA DE TEMPORADA (24PX)
   ========================================================================== */
.main-content {
  width: 100%;
  max-width: var(--app-max-width, 680px);
  margin: 0 auto;
  padding: 12px 16px;
}

@media (min-width: 1024px) {
  .main-content {
    padding: 16px 20px;
  }
}

.tab-view {
  animation: fadeIn 180ms ease forwards;
}

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

.season-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.season-pill-btn {
  height: 26px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--pan-gold-border);
  color: #FBBF24;
  border-radius: var(--radius-pill);
  padding: 0 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

body.light-mode .season-pill-btn {
  color: #92400E;
  background: #FEF3C7;
}

.season-sub-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.section-title-wrap {
  margin-bottom: 14px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ==========================================================================
   3. TELA 1, 5 & 6: HUB FULL-VIEWPORT CENTRALIZADO & DIFERENCIAÇÃO DE MODO
   ========================================================================== */
.hub-viewport-fill {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100dvh - 188px);
  gap: 8px;
}

/* Barra Sutil de Progresso na Base Interna dos 9 Cubos (My Trip, Practice e Glossary) */
.cube-progress-wrap {
  width: 84%;
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cube-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

body.light-mode .cube-progress-track {
  background: rgba(15, 23, 42, 0.10);
}

.cube-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--cube-cat-color, #38BDF8);
  box-shadow: 0 0 8px var(--cube-cat-color, rgba(56, 189, 248, 0.6));
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card de Temporada Realocado para o My Space */
.myspace-season-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(17, 34, 64, 0.78);
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: var(--radius-card);
  padding: 11px 14px;
  margin-bottom: 14px;
}

body.light-mode .myspace-season-card {
  background: #FFFFFF;
  border-color: rgba(147, 51, 234, 0.28);
}

.myspace-season-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.myspace-season-eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C084FC;
}

body.light-mode .myspace-season-eyebrow {
  color: #7E22CE;
}

.myspace-season-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.myspace-season-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
}

/* Botão compacto do Método Replay no topo do Practice (sem banner pesado) */
.practice-compact-top-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2px;
}

/* Barra Superior Explicativa de Contexto (Acima de Temporada 1 • Rota Europa) */
.hub-context-banner {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid var(--vip-border-strong);
  border-left-width: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.hub-banner-mytrip {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22) 0%, rgba(15, 30, 54, 0.94) 100%);
  border-color: rgba(56, 189, 248, 0.35);
  border-left-color: #38BDF8;
}

.hub-banner-practice {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.20) 0%, rgba(15, 30, 54, 0.94) 100%);
  border-color: rgba(16, 185, 129, 0.38);
  border-left-color: #10B981;
}

.hub-banner-glossary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.20) 0%, rgba(15, 30, 54, 0.94) 100%);
  border-color: rgba(245, 158, 11, 0.42);
  border-left-color: #F59E0B;
}

body.light-mode .hub-banner-mytrip { background: #E0F2FE; border-color: #38BDF8; }
body.light-mode .hub-banner-practice { background: #ECFDF5; border-color: #10B981; }
body.light-mode .hub-banner-glossary { background: #FFFBEB; border-color: #F59E0B; }

.hub-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.hub-mode-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hub-banner-mytrip .hub-mode-eyebrow { color: #38BDF8; }
.hub-banner-practice .hub-mode-eyebrow { color: #34D399; }
.hub-banner-glossary .hub-mode-eyebrow { color: #FBBF24; }

body.light-mode .hub-banner-mytrip .hub-mode-eyebrow { color: #0369A1; }
body.light-mode .hub-banner-practice .hub-mode-eyebrow { color: #047857; }
body.light-mode .hub-banner-glossary .hub-mode-eyebrow { color: #B45309; }

.hub-mode-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  text-transform: uppercase;
}

.hub-banner-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.38;
}

/* ==========================================================================
   3. EVOLUÇÃO VISUAL DOS 9 CUBOS 3x3 (BACKGROUNDS IMERSIVOS & PROGRESSO)
   ========================================================================== */

/* Mapeamento das 9 Fotografias de Alta Definição dos Territórios Turísticos */
.cube-card[data-mod="aeroporto"]   { --cube-img: url('./assets/cubes/cube_aeroporto.jpg?v=4.0'); }
.cube-card[data-mod="voo"]         { --cube-img: url('./assets/cubes/cube_voo.jpg?v=4.0'); }
.cube-card[data-mod="imigracao"]   { --cube-img: url('./assets/cubes/cube_imigracao.jpg?v=4.0'); }
.cube-card[data-mod="hotel"]       { --cube-img: url('./assets/cubes/cube_hotel.jpg?v=4.0'); }
.cube-card[data-mod="locadora"]    { --cube-img: url('./assets/cubes/cube_locadora.jpg?v=4.0'); }
.cube-card[data-mod="mobilidade"]  { --cube-img: url('./assets/cubes/cube_mobilidade.jpg?v=4.0'); }
.cube-card[data-mod="restaurante"] { --cube-img: url('./assets/cubes/cube_restaurante.jpg?v=4.0'); }
.cube-card[data-mod="compras"]     { --cube-img: url('./assets/cubes/cube_compras.jpg?v=4.0'); }
.cube-card[data-mod="sos"]         { --cube-img: url('./assets/cubes/cube_sos.jpg?v=4.1'); }

/* Grade 3x3 Elástica e Ergonômica (Aproveita a tela útil do S23 Ultra e tablets) */
.cubes-grid-3x3 {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  padding: 4px 0 10px 0;
  align-content: stretch;
  width: 100%;
}

@media (min-width: 1024px) {
  .cubes-grid-3x3 {
    gap: 12px;
  }
}

/* Base do Cubo: Fotografia de fundo perfeitamente centralizada + Scrim Gradient na base */
.cube-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  padding: 10px 8px 14px 8px;
  min-height: 0 !important;
  background-color: #0B192E !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  cursor: pointer;
  background-image: 
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.0) 32%, rgba(2, 6, 23, 0.62) 65%, rgba(2, 6, 23, 0.94) 100%),
    var(--cube-img) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 180ms ease;
  user-select: none;
}

.cube-card:hover {
  transform: translateY(-3px) scale(1.02);
}

.cube-card:active {
  transform: scale(0.96);
}

/* Diferenciação de Seção 1: My Trip (Contorno Azul Ciano #38BDF8) */
#tab-mytrip .cube-card {
  border: 2px solid #38BDF8 !important;
  box-shadow: 0 8px 22px -4px rgba(2, 132, 199, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

#tab-mytrip .cube-card:hover {
  border-color: #7DD3FC !important;
  box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.65) !important;
}

#tab-mytrip .cube-card .cube-icon-box {
  background: rgba(10, 25, 47, 0.78);
  border: 1.5px solid #38BDF8;
  color: #38BDF8;
}

/* Diferenciação de Seção 2: Travel Hacks (Contorno Verde Esmeralda Tático #10B981) */
#tab-hacks .cube-card {
  border: 2px solid #10B981 !important;
  box-shadow: 0 8px 22px -4px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(16, 185, 129, 0.25) !important;
}

#tab-hacks .cube-card:hover {
  border-color: #34D399 !important;
  box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.65) !important;
}

#tab-hacks .cube-card .cube-icon-box {
  background: rgba(4, 30, 20, 0.82);
  border: 1.5px solid #10B981;
  color: #34D399;
}

/* Diferenciação de Seção 3: Glossary (Contorno Ouro Âmbar Nobre #FBBF24) */
#tab-glossary .cube-card {
  border: 2px solid #FBBF24 !important;
  box-shadow: 0 8px 22px -4px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(245, 158, 11, 0.25) !important;
}

#tab-glossary .cube-card:hover {
  border-color: #FDE68A !important;
  box-shadow: 0 12px 28px -4px rgba(245, 158, 11, 0.65) !important;
}

#tab-glossary .cube-card .cube-icon-box {
  background: rgba(28, 18, 8, 0.82);
  border: 1.5px solid #FBBF24;
  color: #FBBF24;
}

/* Diferenciação de Seção 4: Practice (Contorno Verde Esmeralda #10B981) */
#tab-practice .cube-card {
  border: 2px solid #10B981 !important;
  box-shadow: 0 8px 22px -4px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(16, 185, 129, 0.25) !important;
}

#tab-practice .cube-card:hover {
  border-color: #34D399 !important;
  box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.65) !important;
}

#tab-practice .cube-card .cube-icon-box {
  background: rgba(4, 30, 20, 0.82);
  border: 1.5px solid #10B981;
  color: #34D399;
}

/* Ícone Glassmorphism Flutuante no Topo do Cubo */
.cube-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  margin-bottom: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 160ms ease;
  z-index: 2;
}

.cube-card:hover .cube-icon-box {
  transform: scale(1.08);
}

/* Legibilidade e Tipografia do Nome do Módulo sobre Scrim Gradient (Padrão Airbnb/Booking) */
.cube-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.15px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.7);
  z-index: 2;
  margin-top: auto;
  margin-bottom: 7px;
  max-width: 98%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Indicador de Evolução no Bloco (Gamificação de Estudo na base do cubo) */
.cube-progress-wrap {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.cube-progress-track {
  width: 100%;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.cube-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38BDF8, #FBBF24);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
  border-radius: 0 3px 3px 0;
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

#tab-hacks .cube-progress-fill {
  background: linear-gradient(90deg, #10B981, #6EE7B7);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

#tab-glossary .cube-progress-fill {
  background: linear-gradient(90deg, #F59E0B, #FDE68A);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

#tab-practice .cube-progress-fill {
  background: linear-gradient(90deg, #10B981, #6EE7B7);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* Símbolo da cruz no módulo SOS avermelhado (mantendo o botão e contorno na cor uniforme da seção) */
.cube-card[data-mod="sos"] .cube-icon-box svg {
  color: #EF4444 !important;
  stroke: #EF4444 !important;
}
.cube-card[data-mod="sos"] .cube-icon-box svg path {
  stroke: #EF4444 !important;
}
.cube-card[data-mod="sos"] .cube-icon-box svg rect {
  fill: #EF4444 !important;
  fill-opacity: 0.22 !important;
}

/* ==========================================================================
   4. TELA 2: MÓDULO ABERTO COM ESTEIRA DE 15 EPISÓDIOS & FRASE ATIVA
   ========================================================================== */
.module-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.btn-back-hub {
  background: var(--vip-card);
  border: 1px solid var(--vip-border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 120ms ease;
}

.btn-back-hub:hover {
  border-color: var(--pan-sky);
}

.module-title-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38BDF8;
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.light-mode .module-title-badge {
  color: #0369A1;
  background: #E0F2FE;
}

/* Tracejado ocultado: substituído pelas 15 bolinhas compactas em visão total no topo */
.stories-progress-bar {
  display: none !important;
}

/* Grade Compacta de 15 Bolinhas no Topo (Todos os 15 itens 100% visíveis sem rolagem) */
.stories-icons-strip {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 3px;
  padding: 4px 0;
  margin-bottom: 8px;
  align-items: center;
  justify-items: center;
  overflow: visible;
}

.story-icon-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  transition: transform 150ms ease;
}

.story-icon-bubble:active {
  transform: scale(0.90);
}

.story-bubble-ring {
  width: 100%;
  max-width: 28px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(15, 30, 54, 0.88);
  border: 1.5px solid rgba(148, 163, 184, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  position: relative;
  transition: all 160ms ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.story-icon-bubble.visited .story-bubble-ring {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(2, 132, 199, 0.22);
}

.story-icon-bubble.active .story-bubble-ring {
  border: 2px solid var(--pan-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.38) 0%, rgba(10, 25, 47, 0.96) 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.65);
  transform: scale(1.16);
  z-index: 3;
}

/* Rótulo em Evidência Acima do Card (Substituindo os micro-rótulos das bolinhas) */
.active-story-topic-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(15, 30, 54, 0.92) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-left: 4px solid var(--pan-gold);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

body.light-mode .active-story-topic-banner {
  background: #FFFBEB;
  border-color: #F59E0B;
}

.topic-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topic-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.topic-banner-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.topic-banner-ep {
  font-size: 9.5px;
  font-weight: 800;
  color: #060E1A;
  background: var(--pan-gold);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Cabeçalho de Evidência da Situação Acima/Dentro do Card da Frase */
.phrase-card-topic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--vip-border);
}

.phrase-card-topic-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #FBBF24;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

body.light-mode .phrase-card-topic-name {
  color: #B45309;
}

.phrase-card-ep-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--pan-sky);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Simulação Visual do Player de Vídeo 9:16 com Imagem Representativa */
.video-simulation-stage {
  width: 100%;
  min-height: 276px;
  border-radius: 12px;
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.video-simulation-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 14, 26, 0.78) 0%,
    rgba(6, 14, 26, 0.28) 38%,
    rgba(6, 14, 26, 0.45) 62%,
    rgba(6, 14, 26, 0.94) 100%
  );
  z-index: 1;
}

.video-sim-topbar,
.video-sim-center,
.video-sim-bottom {
  position: relative;
  z-index: 2;
}

.video-sim-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-sim-Cast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 14, 26, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.video-sim-Cast strong {
  font-size: 11px;
  color: #FFFFFF;
  display: block;
  line-height: 1.15;
}

.video-sim-Cast small {
  font-size: 9.5px;
  color: #CBD5E1;
  display: block;
}

.video-sim-live-pill {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #FBBF24;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.video-sim-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
}

.video-center-play-orb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
  border: 2px solid #FFFFFF;
  color: #060E1A;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.25), 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.video-center-play-orb:hover {
  transform: scale(1.06);
}

.video-center-play-orb:active {
  transform: scale(0.94);
}

.video-center-play-orb.playing {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.28), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.video-sim-status-tag {
  margin-top: 7px;
  background: rgba(6, 14, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F8FAFC;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.eq-bars span {
  width: 2.5px;
  background: #34D399;
  border-radius: 2px;
  animation: eqPulse 0.7s infinite ease-in-out alternate;
}

.eq-bars span:nth-child(1) { height: 4px; animation-delay: 0.0s; }
.eq-bars span:nth-child(2) { height: 9px; animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { height: 6px; animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { height: 10px; animation-delay: 0.1s; }

@keyframes eqPulse {
  from { height: 3px; }
  to { height: 10px; }
}

.video-sim-bottom {
  background: rgba(6, 14, 26, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(215, 183, 121, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}

.video-timeline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #94A3B8;
}

.video-timeline-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.video-timeline-fill {
  height: 100%;
  width: 38%;
  background: var(--pan-gold);
  border-radius: 999px;
  transition: width 300ms ease;
}

.video-timeline-fill.playing {
  width: 100%;
  transition: width 4.5s linear;
}

.progress-tick, .story-tick {
  flex: 1;
  height: 4px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 180ms ease;
}

.progress-tick.visited, .story-tick.visited,
.progress-tick.viewed, .story-tick.viewed {
  background: rgba(56, 189, 248, 0.55);
}

.progress-tick.active, .story-tick.active {
  background: var(--pan-gold);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

/* Player Vertical do Episódio */
.story-player-card {
  background: linear-gradient(180deg, #091526 0%, #0F233F 100%);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.story-sponsor-badge {
  background: rgba(6, 14, 26, 0.78);
  backdrop-filter: blur(6px);
  color: #FBBF24;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  letter-spacing: 0.4px;
}

.story-video-viewport {
  width: 100%;
  min-height: 220px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  position: relative;
}

/* Classes geradas pelo app.js dentro do story-video-viewport */
.video-intro-card, .video-outro-card, .video-story-frame {
  width: 100%;
  text-align: center;
  padding: 6px 4px;
}

.video-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FBBF24;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.video-headline {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 8px;
}

.video-summary {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.45;
  max-width: 420px;
  margin: 0 auto 14px auto;
}

.video-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #060E1A;
  font-weight: 800;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.story-teacher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 14px;
  text-align: left;
}

.teacher-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7 0%, #004B87 100%);
  border: 1.5px solid #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #FFFFFF;
  margin-right: 10px;
  flex-shrink: 0;
}

.teacher-info {
  flex: 1;
}

.teacher-info strong {
  display: block;
  font-size: 12px;
  color: #FFFFFF;
}

.teacher-info small {
  display: block;
  font-size: 10px;
  color: #94A3B8;
}

.story-category-tag {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.story-phrase-lead {
  padding: 6px 4px;
}

.lead-en {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 8px;
}

.lead-phonetic {
  display: inline-block;
  font-family: var(--font-phonetic);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.lead-pt {
  font-size: 13px;
  color: #CBD5E1;
}

.story-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 14, 26, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 12px;
}

.btn-story-nav {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-story-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-story-mini {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* Miniplayer Acoplado Flutuante */
.docked-miniplayer {
  background: var(--vip-card-elevated);
  border: 1px solid var(--pan-gold-border);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-float);
}

.docked-miniplayer .mini-title {
  font-size: 11.5px;
  font-weight: 700;
  flex: 1;
  margin: 0 10px;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.docked-miniplayer .mini-expand-btn {
  background: var(--pan-gold);
  border: none;
  color: #060E1A;
  font-weight: 800;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* Alerta Vermelho de Seguros CDW (Mockup 02) */
.car-rental-alert {
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.25) 0%, rgba(136, 19, 55, 0.35) 100%);
  border: 1.5px solid #F43F5E;
  border-radius: var(--radius-card);
  padding: 13px 15px;
  margin-bottom: 14px;
}

body.light-mode .car-rental-alert {
  background: #FFF1F2;
}

.alert-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.alert-headline {
  font-size: 12.5px;
  font-weight: 800;
  color: #FDA4AF;
  letter-spacing: 0.2px;
}

body.light-mode .alert-headline {
  color: #BE123C;
}

.alert-body {
  font-size: 11.5px;
  color: #FFE4E6;
  line-height: 1.45;
}

body.light-mode .alert-body {
  color: #881337;
}

/* Card da Frase Ativa (Sincronizado: .phrase-active-card & .phrase-full-card) */
.phrase-active-card {
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.phrase-full-card {
  display: flex;
  flex-direction: column;
}

.phrase-en-huge {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.phrase-phonetic-badge, .phonetic-container {
  background: rgba(10, 25, 47, 0.88);
  border: 1px solid rgba(215, 183, 121, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 10px;
  font-family: var(--font-phonetic);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--phonetic-gold);
}

body.light-mode .phrase-phonetic-badge,
body.light-mode .phonetic-container {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.phonetic-label {
  display: block;
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 800;
  color: var(--pan-gold);
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.phonetic-transcription {
  font-family: var(--font-phonetic);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.phrase-pt-meaning {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.phrase-tip-box {
  background: rgba(2, 132, 199, 0.12);
  border-left: 3px solid var(--pan-sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 9px 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Barras de Botões da Frase Ativa */
.phrase-dual-audio-bar, .phrase-tactical-actions, .phrase-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.phrase-tactical-actions {
  margin-top: 8px;
}

.btn-audio-normal, .btn-audio-slow, .btn-flip-180, .btn-fav-toggle, .btn-speak-clerk {
  min-height: var(--touch-min);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-main);
  cursor: pointer;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  transition: all 140ms ease;
}

.btn-audio-normal {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  flex: 1.25;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-audio-slow {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  flex: 1;
}

body.light-mode .btn-audio-slow {
  background: #E0F2FE;
  color: #0369A1;
}

.btn-flip-180 {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #060E1A;
  flex: 1.35;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-fav-toggle {
  background: var(--vip-surface-soft);
  border: 1px solid var(--vip-border-strong);
  color: var(--text-primary);
  flex: 0.85;
}

.btn-fav-toggle.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--pan-gold);
  color: #FBBF24;
}

.btn-speak-clerk {
  background: var(--pan-gold);
  color: #060E1A;
}

/* ==========================================================================
   5. TELA 5: PRACTICE (TREINO DE OUVIDO 0.88X & MÉTODO REPLAY)
   ========================================================================== */
.btn-replay-method-toggle {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-top: 8px;
}

body.light-mode .btn-replay-method-toggle {
  background: #ECFDF5;
  color: #047857;
}

.drawer-replay {
  background: var(--vip-card);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.replay-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #34D399;
  margin-bottom: 8px;
}

.replay-steps-list {
  padding-left: 18px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.replay-quote-box {
  background: rgba(2, 132, 199, 0.12);
  border-left: 3px solid var(--pan-sky);
  padding: 9px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.practice-flashcard {
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-card);
  padding: 22px 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
  margin-bottom: 14px;
}

.flashcard-counter {
  font-size: 11px;
  font-weight: 800;
  color: var(--pan-sky);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.flashcard-en {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.flashcard-pt {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.flashcard-audio-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.practice-actions-row {
  display: flex;
  gap: 10px;
}

.btn-action-repeat, .btn-action-mastered {
  flex: 1;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

.btn-action-repeat {
  background: var(--vip-card);
  color: var(--text-secondary);
  border: 1px solid var(--vip-border-strong);
}

.btn-action-mastered {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   6. TELA 6: GLOSSARY (PHRASEBOOK LONELY PLANET 500 TERMOS)
   ========================================================================== */
.hub-subtitle {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.travel-utilities-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.btn-util {
  flex: 1;
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-util:hover {
  border-color: var(--pan-gold);
}

.glossary-search-box {
  position: relative;
  margin-bottom: 12px;
}

.glossary-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--text-muted);
}

.glossary-search-box input {
  width: 100%;
  height: 38px;
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-pill);
  padding: 0 14px 0 34px;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
}

.cube-count-badge {
  display: inline-block;
  margin-top: 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--pan-sky);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.glossary-all-button-wrap {
  margin-top: 14px;
}

.btn-all-terms {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--vip-card-elevated) 0%, var(--vip-card) 100%);
  border: 1px solid var(--pan-gold-border);
  border-radius: var(--radius-md);
  color: #FBBF24;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.light-mode .btn-all-terms {
  color: #92400E;
  background: #FFFBEB;
}

.glossary-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-toggle-blind {
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-toggle-blind.active {
  background: var(--pan-gold);
  color: #060E1A;
  border-color: var(--pan-gold);
}

.glossary-detail-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* Grade Completa de Categorias Estilo Lonely Planet (Todas as 10 opções visíveis sem deslizar) */
.lonely-tabs-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding-bottom: 4px;
  margin-bottom: 12px;
  overflow: visible;
}

@media (max-width: 380px) {
  .lonely-tabs-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.l-tab {
  background: var(--vip-card);
  border: 1px solid var(--vip-border);
  border-radius: 9px;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
  cursor: pointer;
  border-left-width: 3.5px;
  transition: all 140ms ease;
}

.l-tab.tab-blue { border-left-color: #38BDF8; }
.l-tab.tab-sky { border-left-color: #0284C7; }
.l-tab.tab-teal { border-left-color: #14B8A6; }
.l-tab.tab-purple { border-left-color: #A855F7; }
.l-tab.tab-amber { border-left-color: #F59E0B; }
.l-tab.tab-indigo { border-left-color: #6366F1; }
.l-tab.tab-rose { border-left-color: #F43F5E; }
.l-tab.tab-emerald { border-left-color: #10B981; }
.l-tab.tab-red { border-left-color: #EF4444; }

.l-tab.active {
  background: var(--pan-gold);
  color: #060E1A;
  border-color: var(--pan-gold);
}

.glossary-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Cubos do Glossário utilizam agora o padrão unificado de imagens fotográficas imersivas com contorno âmbar */

/* Card de Vocabulário com Fundo Tingido na Cor da Categoria + Lombada 4px + Faux-Glass */
.glossary-card {
  background: linear-gradient(135deg, rgba(22, 58, 96, 0.72) 0%, rgba(10, 25, 47, 0.90) 100%);
  border: 1px solid rgba(215, 183, 121, 0.20);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.38), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  border-left-width: 4px;
  contain: layout paint;
   --cat-accent: #38BDF8;
  --cat-soft: rgba(56, 189, 248, 0.16);
}

.card-cat-aeroporto {
  --cat-accent: #38BDF8;
  --cat-soft: rgba(56, 189, 248, 0.16);
  border-left-color: #38BDF8 !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(10, 25, 47, 0.92) 100%);
}
.card-cat-voo {
  --cat-accent: #38BDF8;
  --cat-soft: rgba(2, 132, 199, 0.18);
  border-left-color: #0284C7 !important;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.18) 0%, rgba(10, 25, 47, 0.92) 100%);
}
.card-cat-imigracao {
  --cat-accent: #2DD4BF;
  --cat-soft: rgba(20, 184, 166, 0.16);
  border-left-color: #14B8A6 !important;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(10, 25, 47, 0.92) 100%);
}
.card-cat-hotel {
  --cat-accent: #C084FC;
  --cat-soft: rgba(168, 85, 247, 0.16);
  border-left-color: #A855F7 !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(10, 25, 47, 0.92) 100%);
}
.card-cat-locadora {
  --cat-accent: #FBBF24;
  --cat-soft: rgba(245, 158, 11, 0.18);
  border-left-color: #F59E0B !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(10, 25, 47, 0.92) 100%);
}
.card-cat-mobilidade {
  --cat-accent: #818CF8;
  --cat-soft: rgba(99, 102, 241, 0.17);
  border-left-color: #6366F1 !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(10, 25, 47, 0.92) 100%);
}
.card-cat-restaurante {
  --cat-accent: #FB7185;
  --cat-soft: rgba(244, 63, 94, 0.16);
  border-left-color: #F43F5E !important;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(10, 25, 47, 0.92) 100%);
}
.card-cat-compras {
  --cat-accent: #34D399;
  --cat-soft: rgba(16, 185, 129, 0.16);
  border-left-color: #10B981 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(10, 25, 47, 0.92) 100%);
}
.card-cat-sos {
  --cat-accent: #F87171;
  --cat-soft: rgba(239, 68, 68, 0.18);
  border-left-color: #EF4444 !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(10, 25, 47, 0.92) 100%);
}

body.light-mode .glossary-card {
  background: #FFFFFF !important;
}

/* Anatomia Interna com Medalhão de Fixação Visual Duotone (60x60px) à Esquerda */
.glossary-card-main-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.glossary-visual-medallion {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--cat-soft);
  border: 1.5px solid var(--cat-accent);
  color: var(--cat-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.glossary-visual-medallion svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.medallion-sub-label {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.92;
}

.glossary-card-content-col {
  flex: 1;
  min-width: 0;
}

.glossary-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.glossary-term-en {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.glossary-cat-tag {
  font-size: 9px;
  font-weight: 800;
  background: var(--cat-soft);
  border: 1px solid var(--cat-accent);
  color: var(--cat-accent);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  flex-shrink: 0;
}

.glossary-phonetic-box {
  background: rgba(10, 25, 47, 0.88);
  border: 1px solid rgba(215, 183, 121, 0.45);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-family: var(--font-phonetic);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--phonetic-gold);
  margin-bottom: 6px;
}

body.light-mode .glossary-phonetic-box {
  background: #FFFBEB;
  color: #92400E;
}

.glossary-term-pt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.glossary-tip-line {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.glossary-actions-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-audio-mini {
  background: var(--pan-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-audio-mini.slow {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

body.light-mode .btn-audio-mini.slow {
  background: #E0F2FE;
  color: #0369A1;
}

.btn-save-mini {
  background: var(--vip-surface-soft);
  border: 1px solid var(--vip-border-strong);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}

.btn-save-mini.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--pan-gold);
  color: #FBBF24;
}

.btn-share-mini {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}

body.light-mode .btn-share-mini {
  background: #ECFDF5;
  color: #047857;
}

/* Modo Estudo Cego (Blind Mode) */
.blind-active .blind-target {
  display: none !important;
}

.blind-placeholder {
  display: none;
}

.blind-active .blind-placeholder {
  display: block !important;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
  cursor: pointer;
}

/* ==========================================================================
   7. TELA 7: SOS CENTRAL ANTI-PERRENGUE
   ========================================================================== */
.sos-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.sos-tile {
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-card);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 140ms ease;
}

.sos-tile:hover {
  border-color: var(--pan-orange);
}

.sos-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(232, 93, 4, 0.16);
  border: 1px solid rgba(232, 93, 4, 0.4);
  color: #FB923C;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sos-tile-info {
  flex: 1;
}

.sos-tile-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sos-tile-info span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-sos-trigger {
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 800;
  padding: 7px 12px;
  cursor: pointer;
  background: var(--vip-surface-soft);
  color: var(--text-primary);
  flex-shrink: 0;
}

.btn-sos-trigger.btn-panic-bg {
  background: var(--pan-orange);
  border-color: var(--pan-orange);
  color: #FFFFFF;
}

.btn-sos-trigger.btn-180-bg {
  background: var(--pan-gold);
  border-color: var(--pan-gold);
  color: #060E1A;
}

.emergency-phones-card {
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-card);
  padding: 14px;
}

.phones-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.phones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.phone-box {
  background: var(--vip-surface-soft);
  border: 1px solid var(--vip-border);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
}

.phone-box strong {
  display: block;
  color: #FBBF24;
  font-size: 12px;
}

/* ==========================================================================
   8. TELA 8: MY SPACE (VOUCHER VIP, DESEMPENHO, NOTIFICAÇÕES, COFRE & CASHBACK)
   ========================================================================== */
.myspace-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.myspace-header-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

/* Botão Discreto de Engrenagem (⚙️) no Canto Superior Direito */
.btn-myspace-gear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  min-height: 44px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  transition: all 160ms ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-myspace-gear:hover {
  background: var(--vip-card-elevated);
  border-color: #38BDF8;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-myspace-gear:active {
  transform: scale(0.96);
}

.svg-inline-gear {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* 8.1. Voucher VIP Oficial Co-Branded com Incomum Viagens */
.voucher-vip-card {
  background: linear-gradient(135deg, #1E3A8A 0%, #0A192F 55%, #271E14 100%);
  border: 1.5px solid var(--pan-gold-border);
  color: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.voucher-vip-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.voucher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.voucher-partner-brand-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voucher-incomum-logo-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.voucher-partner-sub {
  font-size: 8px;
  font-weight: 800;
  color: rgba(251, 191, 36, 0.75);
  letter-spacing: 0.6px;
  font-family: var(--font-mono);
}

.voucher-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #93C5FD;
  background: rgba(147, 197, 253, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(147, 197, 253, 0.25);
}

.voucher-passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #E2E8F0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
}

.passenger-data {
  display: flex;
  align-items: center;
  gap: 6px;
}

.passenger-tag {
  font-size: 9px;
  font-weight: 800;
  color: #94A3B8;
  font-family: var(--font-mono);
}

.passenger-name {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

.verified-offline {
  color: #34D399;
  font-weight: 700;
  font-size: 10.5px;
}

/* ==========================================================================
   8.2. CARD CONSOLIDADO DE DESEMPENHO NO MY SPACE (ITEM 5 DA ESPECIFICAÇÃO)
   ========================================================================== */
.myspace-performance-card {
  background: linear-gradient(145deg, rgba(19, 38, 68, 0.95) 0%, rgba(10, 25, 47, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

body.light-mode .myspace-performance-card {
  background: #FFFFFF;
  border-color: rgba(148, 163, 184, 0.28);
}

.perf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.perf-head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perf-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.perf-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.btn-share-dash-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38BDF8;
  font-size: 11px;
  font-weight: 700;
  padding: 4.5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}

.btn-share-dash-compact:hover {
  background: rgba(56, 189, 248, 0.20);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.btn-share-dash-compact:active {
  transform: scale(0.96);
}

body.light-mode .btn-share-dash-compact {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0284C7;
}

.perf-bars-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 0;
}

.perf-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perf-bar-item-global {
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.10);
  margin-bottom: 3px;
}

body.light-mode .perf-bar-item-global {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.perf-bar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.perf-bar-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11.5px;
}

.perf-bar-ico {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.perf-bar-ico.ico-global {
  color: #10B981;
}

.perf-bar-ico.ico-mytrip {
  color: #38BDF8;
}

.perf-bar-ico.ico-hacks {
  color: #10B981;
}

.perf-bar-ico.ico-glossary {
  color: #FBBF24;
}

.perf-bar-val {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 11.5px;
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.02em;
}

.perf-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

body.light-mode .perf-bar-track {
  background: rgba(0, 0, 0, 0.08);
}

.perf-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.perf-bar-fill.bar-global {
  background: linear-gradient(90deg, #8B5CF6 0%, #38BDF8 50%, #10B981 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}

.perf-bar-fill.bar-mytrip {
  background: linear-gradient(90deg, #0284C7, #38BDF8);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.perf-bar-fill.bar-hacks {
  background: linear-gradient(90deg, #059669, #10B981, #34D399);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}

.perf-bar-fill.bar-glossary {
  background: linear-gradient(90deg, #D97706, #FBBF24);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   8.3. HISTÓRICO DE NOTIFICAÇÕES RETRÁTIL (ITEM 4 DA ESPECIFICAÇÃO)
   ========================================================================== */
.notifications-retractable-card {
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-card);
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.reminders-card, .doc-vault-card, .phrasebook-box, .diagnostics-card {
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-card);
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.reminders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.notif-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reminders-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.reminders-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--pan-gold-border);
  color: #FBBF24;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.reminders-filter-tabs {
  display: flex;
  gap: 6px;
}

.r-filter, .btn-rem-filter, .r-modal-filter {
  background: var(--vip-surface-soft);
  border: 1px solid var(--vip-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  min-height: 34px;
  transition: all 140ms ease;
}

.r-filter.active, .btn-rem-filter.active, .r-modal-filter.active {
  background: rgba(2, 132, 199, 0.24);
  border-color: #38BDF8;
  color: #FFFFFF;
}

/* Resumo Compacto Retrátil */
.notification-compact-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(15, 30, 54, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 160ms ease;
  min-height: 52px;
}

body.light-mode .notification-compact-summary {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(148, 163, 184, 0.3);
}

.notification-compact-summary:hover {
  background: rgba(22, 45, 80, 0.85);
  border-color: #38BDF8;
}

.notif-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.notif-summary-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
  flex-shrink: 0;
}

.notif-summary-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.notif-summary-text strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.notif-summary-text span {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.btn-view-notifications-compact {
  background: none;
  border: none;
  color: #38BDF8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px 6px;
}

/* Modais Especiais: Configurações & Notificações */
.modal-settings-card, .modal-notifications-card {
  max-width: 520px;
  width: 92%;
}

.settings-body-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setting-item-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--vip-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.light-mode .setting-item-box {
  background: rgba(0, 0, 0, 0.03);
}

.setting-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.setting-item-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.setting-item-desc {
  font-size: 10.5px;
  color: var(--text-muted);
}

.offline-status-pill-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34D399;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}

.season-pill-btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--pan-gold-border);
  color: #FBBF24;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.notif-modal-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--vip-border);
  gap: 8px;
  flex-wrap: wrap;
}

.btn-mark-all-read {
  background: none;
  border: none;
  color: #34D399;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.notif-modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px 16px;
}

/* Botões de Compartilhar Frase e Dica */
.btn-share-phrase, .btn-hack-share {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #38BDF8;
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  transition: all 140ms ease;
}

.btn-share-phrase:hover, .btn-hack-share:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.reminders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reminder-item {
  background: var(--vip-surface-soft);
  border: 1px solid var(--vip-border);
  border-left: 3px solid var(--pan-blue);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all 120ms ease;
}

.reminder-item.unread {
  background: rgba(2, 132, 199, 0.12);
  border-left-color: var(--pan-gold);
}

.reminder-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.reminder-content {
  flex: 1;
}

.reminder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.reminder-head strong {
  font-size: 12px;
  color: var(--text-primary);
}

.reminder-tag {
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #38BDF8;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.reminder-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Cofre Offline de Documentos */
.vault-title {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.vault-sub {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.vault-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vault-slot {
  background: var(--vip-surface-soft);
  border: 1px dashed var(--vip-border-strong);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 120ms ease;
}

.vault-slot:hover {
  border-color: var(--pan-sky);
}

.vault-slot .vault-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.vault-slot .vault-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.vault-slot .vault-status {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Card Cashback Member-Get-Member */
.cashback-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1.5px solid var(--pan-gold-border);
  border-radius: var(--radius-card);
  padding: 15px;
  margin-bottom: 14px;
}

.cashback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cashback-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FBBF24;
}

body.light-mode .cashback-title {
  color: #92400E;
}

.cashback-badge {
  background: var(--pan-gold);
  color: #060E1A;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.cashback-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.coupon-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 14, 26, 0.55);
  border: 1px dashed var(--pan-gold);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
}

body.light-mode .coupon-box-row {
  background: #FFFFFF;
}

.coupon-code-badge {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: #FBBF24;
}

body.light-mode .coupon-code-badge {
  color: #B45309;
}

.coupon-pts-info {
  font-size: 10.5px;
  font-weight: 700;
  color: #34D399;
}

.cashback-actions {
  display: flex;
  gap: 8px;
}

.btn-copy-coupon, .btn-share-whatsapp {
  flex: 1;
  min-height: 40px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.btn-copy-coupon { background: var(--pan-gold); color: #060E1A; }
.btn-share-whatsapp { background: #10B981; color: #FFFFFF; }

/* Meu Phrasebook (Cards de Favoritas Sincronizados com app.js) */
.box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.box-title { font-weight: 800; font-size: 13px; color: var(--text-primary); }
.box-count { font-size: 10px; font-weight: 700; color: #38BDF8; background: rgba(56, 189, 248, 0.14); padding: 2px 8px; border-radius: var(--radius-pill); }

.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fav-item-card {
  background: var(--vip-surface-soft);
  border: 1px solid var(--vip-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fav-item-text {
  flex: 1;
}

.fav-item-text strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-primary);
}

.fav-item-text small {
  display: block;
  font-family: var(--font-phonetic);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FBBF24;
  margin: 2px 0;
}

.fav-item-text span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}

.fav-item-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-remove-fav {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #FDA4AF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
}

.empty-fav-hint, .empty-favorites-box p {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  padding: 10px;
}

.diag-item {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  padding: 5px 0;
  color: var(--text-secondary);
}

/* ==========================================================================
   9. MODAIS DE BALCÃO 180°, PÂNICO E UTILITÁRIOS
   ========================================================================== */
.modal-180-overlay, .modal-util-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 25000 !important; /* Soberano: sempre acima de qualquer cabeçalho ou navegação */
  background: rgba(3, 7, 18, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) 16px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

.modal-180-backdrop {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

.modal-180-container {
  position: relative !important;
  z-index: 2 !important;
  background: #0B1120 !important;
  border: 2px solid rgba(56, 189, 248, 0.45) !important;
  width: 100% !important;
  max-width: 440px !important;
  height: auto !important;
  max-height: calc(100dvh - 36px) !important;
  overflow-y: auto !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5) !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

.modal-180-topbar {
  background: #060E1A;
  color: #FFFFFF;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-180-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #FBBF24;
  letter-spacing: 0.5px;
}

.btn-close-modal {
  background: #000000;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-close-modal:hover {
  background: #1E293B;
  transform: scale(1.05);
}

.btn-close-modal:active {
  transform: scale(0.95);
}

.modal-180-bottom-dismiss-wrap {
  margin-top: 10px;
  text-align: center;
}

.btn-modal-180-dismiss {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #E2E8F0;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-180-dismiss:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: #38BDF8;
}

/* Metade Superior Rotacionada 180° em Alto Contraste Branco para o Atendente */
.zone-clerk-rotated {
  transform: rotate(180deg);
  background: #FFFFFF;
  color: #060E1A;
  padding: 24px 16px;
  text-align: center;
}

.clerk-headline-tag {
  font-size: 10px;
  font-weight: 800;
  color: #D97706;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.clerk-text-huge {
  font-size: clamp(20px, 4.8vw, 28px);
  font-weight: 900;
  color: #060E1A;
  line-height: 1.25;
  margin-bottom: 6px;
}

.clerk-subtext {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
}

.zone-divider {
  background: var(--pan-gold);
  text-align: center;
  padding: 5px;
  font-size: 9.5px;
  font-weight: 800;
  color: #060E1A;
  letter-spacing: 0.5px;
}

.zone-traveler-normal {
  padding: 16px;
  background: var(--vip-navy);
}

.traveler-en-box {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
}

.traveler-en-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.traveler-en-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin: 0;
}

.traveler-pt-box {
  margin-bottom: 8px;
}

.traveler-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.traveler-pt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 0;
}

.traveler-phonetic-box {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid var(--pan-gold-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-phonetic);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: #FBBF24;
  margin-bottom: 12px;
}

.traveler-phonetic-box .phonetic-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--pan-gold);
  margin-bottom: 3px;
}

.traveler-phonetic-box .phonetic-val {
  margin: 0;
  font-family: var(--font-phonetic);
  font-weight: 600;
  color: #FBBF24;
}

.actions-180-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-play-180 { flex: 1.2; background: var(--pan-blue); color: #FFFFFF; border-radius: var(--radius-pill); font-size: 11px; font-weight: 800; border: none; padding: 10px; cursor: pointer; }
.btn-play-180-slow { flex: 0.7; background: rgba(56, 189, 248, 0.15); color: #38BDF8; border-radius: var(--radius-pill); font-size: 11px; font-weight: 800; border: 1px solid rgba(56, 189, 248, 0.35); padding: 10px; cursor: pointer; }

/* Modo Pânico: POPUP FLUTUANTE CENTRALIZADO (#E85D04) COM MARGENS SEGURAS */
.modal-panic-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 25000 !important; /* Soberano: sempre acima de qualquer cabeçalho ou navegação */
  background: rgba(3, 7, 18, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) 16px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

.panic-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

.panic-container {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 440px !important;
  height: auto !important;
  max-height: calc(100dvh - 36px) !important;
  background: linear-gradient(180deg, #E85D04 0%, #C2410C 100%) !important;
  color: #FFFFFF !important;
  border-radius: 24px !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 16px 16px 14px 16px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5) !important;
  margin: auto !important;
}

.panic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.panic-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
  flex: 1;
  min-width: 0;
}

.btn-close-panic {
  background: #000000;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.btn-close-panic:hover {
  background: #1E293B;
  transform: scale(1.05);
}

.btn-close-panic:active {
  transform: scale(0.95);
}

.panic-body {
  text-align: center;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

.panic-instruction {
  font-size: clamp(10px, 2.8vw, 11px);
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.95;
  margin-bottom: 8px;
  display: block;
}

.panic-text-huge {
  font-size: clamp(20px, 5.2vw, 27px);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 8px;
  word-break: break-word;
  max-width: 100%;
}

.panic-subtitle-pt {
  font-size: clamp(12px, 3.2vw, 14px);
  opacity: 0.95;
  margin-bottom: 14px;
  line-height: 1.35;
  max-width: 100%;
}

.panic-audio-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.btn-panic-audio-loud {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #E85D04;
  font-size: 32px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-panic-audio-loud:hover {
  transform: scale(1.08);
}

.btn-panic-audio-loud:active {
  transform: scale(0.94);
}

.panic-audio-hint {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.btn-panic-audio-slow {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.btn-panic-audio-slow:hover {
  background: rgba(0, 0, 0, 0.45);
}

.panic-footer {
  text-align: center;
  font-size: 11px;
  opacity: 0.95;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.panic-footer-hint {
  font-size: 10.5px;
  opacity: 0.9;
}

.btn-panic-dismiss-bottom {
  width: 100%;
  max-width: 280px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-panic-dismiss-bottom:hover {
  background: #000000;
  border-color: #FFFFFF;
}

/* Modais Utilitários (Tip, Sizes & Seasons) */
.modal-util-card {
  background: var(--vip-card);
  border: 1px solid var(--vip-border-strong);
  color: var(--text-primary);
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-float);
}

.util-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-primary);
}

.btn-close-util {
  background: var(--vip-surface-soft);
  border: 1px solid var(--vip-border);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

.util-body label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.util-body input {
  width: 100%;
  height: 40px;
  background: var(--vip-navy);
  border: 1px solid var(--vip-border-strong);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  margin-bottom: 12px;
}

.tip-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.btn-tip-pct {
  background: var(--vip-surface-soft);
  border: 1px solid var(--vip-border);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-tip-pct.active {
  background: var(--pan-gold);
  color: #060E1A;
  border-color: var(--pan-gold);
}

.tip-result-box {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12.5px;
  color: #34D399;
}

.tip-total-line {
  font-size: 14px;
  margin-top: 4px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 11.5px;
}

.size-table th, .size-table td {
  border: 1px solid var(--vip-border);
  padding: 6px;
  text-align: center;
}

.size-table th { background: var(--vip-surface-soft); font-weight: 700; color: #FBBF24; }

/* Visualizador de Documentos Fullscreen */
.modal-doc-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 25000;
  background: rgba(6, 14, 26, 0.96);
  display: flex;
  flex-direction: column;
}

.doc-viewer-topbar {
  background: #060E1A;
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close-viewer {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.doc-viewer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.doc-viewer-body img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

/* ==========================================================================
   10. BARRA INFERIOR DE NAVEGAÇÃO 100% EM INGLÊS (5 BOTÕES + GLOSSÁRIO CENTRAL)
   ========================================================================== */
.bottom-nav-english {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 68px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 25, 47, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--vip-border-strong);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 40;
  box-shadow: 0 -6px 24px rgba(2, 8, 23, 0.5);
  max-width: var(--app-max-width, 680px);
  width: 100%;
  margin: 0 auto;
}

body.light-mode .bottom-nav-english {
  background: rgba(255, 255, 255, 0.96);
}

.nav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text-muted);
  transition: all 140ms ease;
  min-width: 58px;
}

.nav-btn .nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.nav-btn.active {
  color: #38BDF8;
}

.nav-btn.highlight-center {
  color: #FBBF24;
}

.nav-btn.highlight-center .center-glossary-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.18);
  border: 1.5px solid var(--pan-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -1px;
}

.nav-btn.highlight-center.active .center-glossary-orb {
  background: var(--pan-gold);
  color: #060E1A;
}

.nav-btn.sos-btn {
  color: #FFFFFF;
}

.nav-btn.sos-btn .sos-3d-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sos-gradient);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -1px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.nav-btn.sos-btn:active .sos-3d-orb,
.btn-sos-trigger.btn-panic-bg:active {
  transform: scale(0.92) translateY(2px);
  box-shadow: 0 2px 6px rgba(232, 93, 4, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.nav-btn.sos-btn .nav-label {
  color: #FB923C;
  font-weight: 800;
}

/* ==========================================================================
   11. ARQUITETURA PHRASEBOOK LONELY PLANET & ÍNDICE DE BÍBLIA (5 CORES SOBERANAS)
   Cada aba possui sua cor-identidade que tinge a atmosfera sobre o Azul Marinho
   (#0A192F), a lombada da página, os 9 cubos e o botão na barra inferior.
   ========================================================================== */

:root {
  --sec-mytrip: #38BDF8;
  --sec-mytrip-deep: #0284C7;
  --sec-mytrip-aura: rgba(14, 165, 233, 0.26);
  --sec-mytrip-tint: rgba(14, 165, 233, 0.08);

  --sec-practice: #34D399;
  --sec-practice-deep: #10B981;
  --sec-practice-aura: rgba(16, 185, 129, 0.26);
  --sec-practice-tint: rgba(16, 185, 129, 0.08);

  --sec-glossary: #FBBF24;
  --sec-glossary-deep: #F59E0B;
  --sec-glossary-aura: rgba(245, 158, 11, 0.26);
  --sec-glossary-tint: rgba(245, 158, 11, 0.08);

  --sec-sos: #FB923C;
  --sec-sos-deep: #E85D04;
  --sec-sos-aura: rgba(232, 93, 4, 0.28);
  --sec-sos-tint: rgba(232, 93, 4, 0.09);

  --sec-myspace: #A78BFA;
  --sec-myspace-deep: #8B5CF6;
  --sec-myspace-aura: rgba(139, 92, 246, 0.26);
  --sec-myspace-tint: rgba(139, 92, 246, 0.08);
}

/* Atmosfera do Fundo Azul Marinho (#0A192F) sincronizada com a Seção Ativa */
body[data-active-tab="mytrip"]:not(.light-mode) {
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.30) 0%, rgba(13, 34, 64, 0.95) 42%, var(--vip-navy) 78%, var(--vip-bg-deep) 100%);
  background-attachment: fixed;
}

body[data-active-tab="practice"]:not(.light-mode) {
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.28) 0%, rgba(10, 40, 48, 0.95) 42%, var(--vip-navy) 78%, var(--vip-bg-deep) 100%);
  background-attachment: fixed;
}

body[data-active-tab="glossary"]:not(.light-mode) {
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.27) 0%, rgba(36, 31, 24, 0.94) 40%, var(--vip-navy) 78%, var(--vip-bg-deep) 100%);
  background-attachment: fixed;
}

body[data-active-tab="sos"]:not(.light-mode) {
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 93, 4, 0.30) 0%, rgba(42, 22, 24, 0.94) 42%, var(--vip-navy) 78%, var(--vip-bg-deep) 100%);
  background-attachment: fixed;
}

body[data-active-tab="myspace"]:not(.light-mode) {
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.28) 0%, rgba(26, 24, 56, 0.94) 42%, var(--vip-navy) 78%, var(--vip-bg-deep) 100%);
  background-attachment: fixed;
}

/* Moldura de Página de Phrasebook (Lonely Planet / Bíblia) para cada Seção */
.tab-view {
  border-radius: 18px;
  padding: 10px 10px 12px 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-left-width: 5px;
  position: relative;
  transition: background 220ms ease, border-color 220ms ease;
}

#tab-mytrip {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.10) 0%, rgba(10, 25, 47, 0.72) 100%);
  border-color: rgba(56, 189, 248, 0.30);
  border-left-color: var(--sec-mytrip);
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.20), 0 10px 28px -8px rgba(2, 132, 199, 0.25);
}

#tab-practice {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.11) 0%, rgba(10, 25, 47, 0.72) 100%);
  border-color: rgba(52, 211, 153, 0.32);
  border-left-color: var(--sec-practice);
  box-shadow: inset 0 1px 0 rgba(52, 211, 153, 0.20), 0 10px 28px -8px rgba(16, 185, 129, 0.25);
}

#tab-glossary {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.11) 0%, rgba(10, 25, 47, 0.72) 100%);
  border-color: rgba(251, 191, 36, 0.34);
  border-left-color: var(--sec-glossary);
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.22), 0 10px 28px -8px rgba(245, 158, 11, 0.24);
}

#tab-sos {
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.12) 0%, rgba(10, 25, 47, 0.75) 100%);
  border-color: rgba(251, 146, 60, 0.36);
  border-left-color: var(--sec-sos);
  box-shadow: inset 0 1px 0 rgba(251, 146, 60, 0.22), 0 10px 28px -8px rgba(232, 93, 4, 0.26);
}

#tab-myspace {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.11) 0%, rgba(10, 25, 47, 0.72) 100%);
  border-color: rgba(167, 139, 250, 0.34);
  border-left-color: var(--sec-myspace);
  box-shadow: inset 0 1px 0 rgba(167, 139, 250, 0.22), 0 10px 28px -8px rgba(139, 92, 246, 0.25);
}

body.light-mode #tab-mytrip { background: rgba(224, 242, 254, 0.55); }
body.light-mode #tab-practice { background: rgba(209, 250, 229, 0.55); }
body.light-mode #tab-glossary { background: rgba(254, 243, 199, 0.55); }
body.light-mode #tab-sos { background: rgba(255, 237, 213, 0.60); }
body.light-mode #tab-myspace { background: rgba(237, 233, 254, 0.55); }

/* Régua de Unhas de Acesso Rápido Estilo Bíblia / Lonely Planet Phrasebook (9 Módulos) */
.bible-thumb-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 8px;
  padding: 3px;
  background: rgba(6, 14, 26, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
}

body.light-mode .bible-thumb-strip {
  background: rgba(255, 255, 255, 0.85);
}

.bible-thumb-tab {
  border: none;
  border-top: 3px solid transparent;
  border-radius: 6px 6px 4px 4px;
  background: rgba(15, 30, 54, 0.85);
  color: var(--text-secondary);
  padding: 4px 1px 3px 1px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: all 140ms ease;
  overflow: hidden;
}

body.light-mode .bible-thumb-tab {
  background: #F8FAFC;
  color: #334155;
}

.bible-thumb-tab .b-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.bible-thumb-tab[data-m="aeroporto"] { border-top-color: #38BDF8; }
.bible-thumb-tab[data-m="aeroporto"] .b-dot { background: #38BDF8; }

.bible-thumb-tab[data-m="voo"] { border-top-color: #0284C7; }
.bible-thumb-tab[data-m="voo"] .b-dot { background: #0284C7; }

.bible-thumb-tab[data-m="imigracao"] { border-top-color: #14B8A6; }
.bible-thumb-tab[data-m="imigracao"] .b-dot { background: #14B8A6; }

.bible-thumb-tab[data-m="hotel"] { border-top-color: #A855F7; }
.bible-thumb-tab[data-m="hotel"] .b-dot { background: #A855F7; }

.bible-thumb-tab[data-m="locadora"] { border-top-color: #F59E0B; }
.bible-thumb-tab[data-m="locadora"] .b-dot { background: #F59E0B; }

.bible-thumb-tab[data-m="mobilidade"] { border-top-color: #6366F1; }
.bible-thumb-tab[data-m="mobilidade"] .b-dot { background: #6366F1; }

.bible-thumb-tab[data-m="restaurante"] { border-top-color: #F43F5E; }
.bible-thumb-tab[data-m="restaurante"] .b-dot { background: #F43F5E; }

.bible-thumb-tab[data-m="compras"] { border-top-color: #10B981; }
.bible-thumb-tab[data-m="compras"] .b-dot { background: #10B981; }

.bible-thumb-tab[data-m="sos"] { border-top-color: #EF4444; }
.bible-thumb-tab[data-m="sos"] .b-dot { background: #EF4444; }

.bible-thumb-tab:hover,
.bible-thumb-tab.active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

/* Unha Lateral Colorida Estilo Índice de Bíblia em Cada Cubo das 3 Grades */
.cube-card[data-mod="aeroporto"] { border-right: 3.5px solid #38BDF8; }
.cube-card[data-mod="voo"]       { border-right: 3.5px solid #0284C7; }
.cube-card[data-mod="imigracao"] { border-right: 3.5px solid #14B8A6; }
.cube-card[data-mod="hotel"]     { border-right: 3.5px solid #A855F7; }
.cube-card[data-mod="locadora"]  { border-right: 3.5px solid #F59E0B; }
.cube-card[data-mod="mobilidade"]{ border-right: 3.5px solid #6366F1; }
.cube-card[data-mod="restaurante"]{ border-right: 3.5px solid #F43F5E; }
.cube-card[data-mod="compras"]   { border-right: 3.5px solid #10B981; }
.cube-card[data-mod="sos"]       { border-right: 3.5px solid #EF4444; }

/* Sincronização Cromática Total dos 5 Botões da Barra Inferior com sua respectiva Seção */
.bottom-nav-english .nav-btn {
  position: relative;
  border-top: 3px solid transparent;
  border-radius: 0 0 12px 12px;
  padding: 6px 8px 5px 8px;
}

/* 1. Botão MY TRIP — Azul Safira (#38BDF8) */
.bottom-nav-english .nav-btn[data-tab="mytrip"] {
  color: rgba(56, 189, 248, 0.78);
}
.bottom-nav-english .nav-btn[data-tab="mytrip"].active {
  color: #38BDF8;
  border-top-color: #38BDF8;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.24) 0%, rgba(14, 165, 233, 0.04) 100%);
  box-shadow: 0 -4px 14px rgba(56, 189, 248, 0.28);
}

/* 2. Botão PRACTICE — Verde Esmeralda (#34D399) */
.bottom-nav-english .nav-btn[data-tab="practice"] {
  color: rgba(52, 211, 153, 0.78);
}
.bottom-nav-english .nav-btn[data-tab="practice"].active {
  color: #34D399;
  border-top-color: #10B981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.24) 0%, rgba(16, 185, 129, 0.04) 100%);
  box-shadow: 0 -4px 14px rgba(16, 185, 129, 0.28);
}

/* 3. Botão GLOSSARY — Ouro Champanhe (#FBBF24) */
.bottom-nav-english .nav-btn[data-tab="glossary"] {
  color: rgba(251, 191, 36, 0.88);
}
.bottom-nav-english .nav-btn[data-tab="glossary"].active {
  color: #FBBF24;
  border-top-color: #F59E0B;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.24) 0%, rgba(245, 158, 11, 0.04) 100%);
  box-shadow: 0 -4px 14px rgba(245, 158, 11, 0.30);
}

/* 4. Botão SOS — Laranja Emergência (#FB923C) */
.bottom-nav-english .nav-btn[data-tab="sos"].active {
  border-top-color: #E85D04;
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.25) 0%, rgba(232, 93, 4, 0.04) 100%);
  box-shadow: 0 -4px 14px rgba(232, 93, 4, 0.32);
}

/* 5. Botão MY SPACE — Violeta Diplomático (#A78BFA) */
.bottom-nav-english .nav-btn[data-tab="myspace"] {
  color: rgba(167, 139, 250, 0.78);
}
.bottom-nav-english .nav-btn[data-tab="myspace"].active {
  color: #A78BFA;
  border-top-color: #8B5CF6;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.24) 0%, rgba(139, 92, 246, 0.04) 100%);
  box-shadow: 0 -4px 14px rgba(139, 92, 246, 0.28);
}

/* Barra superior da bottom-nav muda a linha de luz conforme a seção ativa */
body[data-active-tab="mytrip"] .bottom-nav-english { border-top-color: rgba(56, 189, 248, 0.55); }
body[data-active-tab="practice"] .bottom-nav-english { border-top-color: rgba(16, 185, 129, 0.55); }
body[data-active-tab="glossary"] .bottom-nav-english { border-top-color: rgba(245, 158, 11, 0.60); }
body[data-active-tab="sos"] .bottom-nav-english { border-top-color: rgba(232, 93, 4, 0.65); }
body[data-active-tab="myspace"] .bottom-nav-english { border-top-color: rgba(139, 92, 246, 0.55); }

/* Toast Notice (Sincronizado: .visible e .show) */
.toast-notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--pan-gold-border);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  opacity: 0;
  transition: all 200ms ease;
  z-index: 999;
  box-shadow: var(--shadow-float);
  max-width: 90vw;
  text-align: center;
}

.toast-notice.visible, .toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   12. REFINAMENTOS DE ERGONOMIA VISUAL (REVISÃO 11):
       - 9 CUBOS PROPORCIONAIS COM ZERO ROLAGEM EM SMARTPHONES (360x640 / 375x667 / 390x844)
       - MÓDULO INTERNO (#module-detail-view) 100% EM PÁGINA ÚNICA SEM ROLAGEM
       - CARD DO VÍDEO PROPORCIONAL + GAVETA RETRÁTIL "ESTUDE / PRACTICE"
   ========================================================================== */

/* 12.1. Barra Superior + Barra de Pesquisa Unificadas no Mesmo Fundo Contínuo (Compactadas para Smartphone) */
.app-header-single {
  position: sticky;
  top: 4px;
  z-index: 950;
  max-width: 532px;
  margin: 4px auto 0 auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 30, 56, 0.96) 0%, rgba(10, 25, 47, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.26);
  padding: 6px 10px 7px 10px;
  box-shadow: 0 8px 22px rgba(2, 8, 23, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.light-mode .app-header-single {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(2, 132, 199, 0.28);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.header-line {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 2px;
  min-height: 24px;
}

.hero-search-bar-wrap {
  position: relative;
  top: auto;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
}

.hero-search-box {
  height: 32px;
  border-radius: 11px;
  background: rgba(6, 14, 26, 0.72);
  border: 1.5px solid rgba(56, 189, 248, 0.34);
}

.hero-search-box input {
  font-size: 12px;
}

body.light-mode .hero-search-box {
  background: #F1F5F9;
  border-color: rgba(2, 132, 199, 0.32);
}

.bottom-nav-english {
  bottom: 4px;
  left: 10px;
  right: 10px;
  max-width: 532px;
  min-height: 52px;
  padding: 3px 6px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--vip-border-strong);
  box-shadow: 0 8px 24px rgba(2, 8, 23, 0.72);
  overflow: hidden;
}

.bottom-nav-english .nav-btn {
  border-radius: 11px;
  padding: 4px 6px 3px 6px;
}

/* 12.2. Zero Rolagem Vertical Absoluta nos Hubs de 9 Cubos (My Trip, Practice, Glossary) */
html, body {
  min-height: 0 !important;
  overscroll-behavior-y: none;
}

body {
  padding-bottom: 60px !important;
}

.main-content {
  max-width: 552px;
  margin: 0 auto;
  padding: 4px 10px 2px 10px;
}

.tab-view {
  border-radius: 18px;
  padding: 7px 8px;
}

.hub-viewport-fill {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100dvh - 154px);
  min-height: 0 !important;
  max-height: calc(100dvh - 154px);
  gap: 5px;
  overflow: hidden;
}

.cubes-grid-3x3 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
}

.cube-card {
  min-height: 0 !important;
  height: 100%;
  padding: 5px 4px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* 12.3. Ícones e Rótulos dos 9 Cubos Proporcionais (Zero Estouro em Telas Compactas) */
.cube-icon-box {
  width: clamp(36px, 5.2vh, 48px);
  height: clamp(36px, 5.2vh, 48px);
  border-radius: 12px;
  border-width: 1.5px;
  margin-bottom: 1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.cube-icon-box .svg-badge {
  width: clamp(22px, 3.2vh, 28px);
  height: clamp(22px, 3.2vh, 28px);
  stroke-width: 2.2;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.cube-label {
  font-size: clamp(9.8px, 1.35vh, 11.5px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.14;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.light-mode .cube-label {
  color: #0A192F;
  text-shadow: none;
}

.cube-progress-wrap {
  width: 80%;
  margin-top: 1px;
  flex-shrink: 0;
}

.cube-progress-track {
  height: 3.5px;
  background: rgba(255, 255, 255, 0.14);
}

/* Compactação dos rodapés de Practice e Glossary para caberem 100% sem rolagem */
.practice-compact-top-row {
  margin-bottom: 3px !important;
}

#practice-hub-view .glossary-all-button-wrap,
#glossary-hub-view .glossary-all-button-wrap {
  margin-top: 0 !important;
  flex-shrink: 0;
}

#practice-hub-view .btn-all-terms,
#glossary-hub-view .btn-all-terms {
  padding: 6px 10px;
  font-size: 11px;
  min-height: 32px;
  border-radius: 10px;
}

#glossary-hub-view .travel-utilities-row {
  margin: 0 !important;
  gap: 5px;
  flex-shrink: 0;
}

#glossary-hub-view .btn-util {
  padding: 5px 6px;
  font-size: 10px;
  min-height: 28px;
  border-radius: 8px;
}

/* 12.4. Alto Contraste WCAG AAA no Nome do Módulo no Topo do Card Aberto (.module-title-badge) */
.module-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.btn-back-hub {
  background: rgba(6, 14, 26, 0.88);
  border: 1.5px solid rgba(148, 163, 184, 0.42);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.module-title-badge {
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #060E1A 0%, #112240 100%) !important;
  border: 1.5px solid #FBBF24 !important;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.module-title-badge::before {
  content: "●";
  color: #FBBF24;
  font-size: 9px;
  margin-right: 4px;
}

body.light-mode .module-title-badge {
  background: #0A192F !important;
  color: #FFFFFF !important;
  border-color: #D97706 !important;
}

.btn-replay-method-toggle {
  background: rgba(6, 14, 26, 0.88) !important;
  border: 1.5px solid #34D399 !important;
  color: #FFFFFF !important;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px !important;
  margin-top: 0 !important;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

body.light-mode .btn-replay-method-toggle {
  background: #065F46 !important;
  color: #FFFFFF !important;
}

/* 12.5. TELA INTERNA DO MÓDULO (#module-detail-view) 100% EM PÁGINA ÚNICA SEM ROLAGEM +
         CARD DO VÍDEO MINIATURIZADO PROPORCIONAL + GAVETA RETRÁTIL "ESTUDE / PRACTICE" */
#module-detail-view {
  height: calc(100dvh - 154px);
  max-height: calc(100dvh - 154px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  overflow: hidden;
}

#module-detail-view.hidden {
  display: none !important;
}

#module-detail-view .bible-thumb-strip {
  margin-bottom: 2px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

#module-detail-view .bible-thumb-tab {
  min-height: 22px;
  font-size: 8.5px;
}

#module-detail-view .stories-icons-strip {
  padding: 3px 4px;
  margin-bottom: 2px;
  gap: 2px;
  flex-shrink: 0;
}

#module-detail-view .story-bubble-ring {
  width: 19px;
  height: 19px;
  font-size: 10px;
}

#module-detail-view .active-story-topic-banner {
  padding: 4px 9px;
  margin-bottom: 2px;
  border-radius: 10px;
  flex-shrink: 0;
}

#module-detail-view .topic-banner-title {
  font-size: 11px;
}

#module-detail-view .topic-banner-ep {
  font-size: 8.5px;
  padding: 2px 6px;
}

/* Alerta CDW da Locadora super compacto para não gerar rolagem */
#module-detail-view .car-rental-alert {
  padding: 4px 8px;
  margin-bottom: 2px;
  border-radius: 9px;
  flex-shrink: 0;
}

#module-detail-view .car-rental-alert .alert-head {
  margin-bottom: 1px;
}

#module-detail-view .car-rental-alert .alert-headline {
  font-size: 10px;
}

#module-detail-view .car-rental-alert .alert-body {
  font-size: 9.5px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card do Vídeo Proporcional / Miniaturizado para caber em 1 página */
#module-detail-view .story-player-card {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

#module-detail-view .story-sponsor-badge {
  padding: 4px 8px;
  font-size: 8.5px;
  flex-shrink: 0;
}

#module-detail-view .story-video-viewport {
  flex: 1;
  min-height: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

#module-detail-view .video-simulation-stage {
  flex: 1;
  min-height: 0 !important;
  height: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#module-detail-view .video-center-play-orb {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

#module-detail-view .video-sim-center {
  margin: 2px 0;
  gap: 3px;
}

#module-detail-view .video-sim-status-tag {
  font-size: 9.5px;
  padding: 2px 8px;
}

#module-detail-view .video-sim-bottom {
  padding: 7px 9px;
  border-radius: 10px;
}

#module-detail-view .video-badge {
  font-size: 8.5px;
  padding: 2px 7px;
  margin-bottom: 3px;
}

#module-detail-view .video-headline {
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 2px;
}

#module-detail-view .video-summary {
  font-size: 10.5px;
  line-height: 1.25;
  margin-bottom: 5px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#module-detail-view .video-play-btn {
  padding: 5px 10px;
  font-size: 10.5px;
  min-height: 28px;
}

#module-detail-view .video-timeline-row {
  margin-top: 4px;
  font-size: 9px;
}

#module-detail-view .story-player-controls {
  padding: 5px 8px;
  gap: 6px;
  flex-shrink: 0;
}

#module-detail-view .btn-story-nav,
#module-detail-view .btn-story-mini {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 10.5px;
  border-radius: 8px;
}

/* Gaveta Retrátil / Expansível "Estude / Practice" na Base da Tela do Módulo */
#phrase-active-container {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.study-drawer-shell {
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 36, 64, 0.98) 0%, rgba(10, 25, 47, 0.99) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode .study-drawer-shell {
  background: #FFFFFF;
  border-color: #D97706;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.10);
}

.study-drawer-toggle-btn {
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.20) 0%, rgba(16, 185, 129, 0.16) 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: #FFFFFF;
  text-align: left;
}

body.light-mode .study-drawer-toggle-btn {
  background: linear-gradient(90deg, #FEF3C7 0%, #D1FAE5 100%);
  color: #0A192F;
}

.study-drawer-btn-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.study-drawer-pill-tag {
  background: linear-gradient(135deg, #F59E0B 0%, #10B981 100%);
  color: #060E1A;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.study-drawer-preview-text {
  font-size: 11px;
  font-weight: 700;
  color: #F8FAFC;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

body.light-mode .study-drawer-preview-text {
  color: #0F172A;
}

.study-drawer-chevron {
  font-size: 10px;
  font-weight: 800;
  color: #FBBF24;
  background: rgba(6, 14, 26, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

body.light-mode .study-drawer-chevron {
  background: #0A192F;
  color: #FBBF24;
}

/* Quando a gaveta "Estude / Practice" está ABERTA:
   O card do vídeo no topo compacta automaticamente em uma faixa horizontal de miniatura
   e o card de estudo ocupa o espaço principal sem gerar rolagem! */
#module-detail-view.study-drawer-open #story-player-box {
  flex: 0 0 auto;
  height: auto;
}

#module-detail-view.study-drawer-open .story-sponsor-badge,
#module-detail-view.study-drawer-open .video-sim-topbar,
#module-detail-view.study-drawer-open .video-sim-bottom {
  display: none !important;
}

#module-detail-view.study-drawer-open .story-video-viewport {
  padding: 4px 6px;
}

#module-detail-view.study-drawer-open .video-simulation-stage {
  height: 44px !important;
  min-height: 44px !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
}

#module-detail-view.study-drawer-open .video-sim-center {
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  margin: 0;
}

#module-detail-view.study-drawer-open .video-center-play-orb {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

#module-detail-view.study-drawer-open #phrase-active-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#module-detail-view.study-drawer-open .study-drawer-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.study-drawer-body {
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.study-drawer-body .phrase-full-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.study-drawer-body .phrase-card-topic-head {
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.study-drawer-body .phrase-en-huge {
  font-size: clamp(14px, 2.0vh, 17px);
  line-height: 1.22;
  margin-bottom: 2px;
}

.study-drawer-body .phrase-phonetic-badge {
  font-size: clamp(11px, 1.55vh, 13px);
  padding: 4px 8px;
  margin-bottom: 2px;
}

.study-drawer-body .phrase-pt-meaning {
  font-size: clamp(11.5px, 1.65vh, 13.5px);
  margin-bottom: 2px;
}

.study-drawer-body .phrase-tip-box {
  font-size: 10.5px;
  padding: 4px 8px;
  margin-bottom: 3px;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.study-drawer-body .phrase-dual-audio-bar {
  margin-bottom: 3px;
  gap: 6px;
}

.study-drawer-body .btn-audio-normal,
.study-drawer-body .btn-audio-slow {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 11.5px;
}

.study-drawer-body .phrase-tactical-actions {
  gap: 6px;
}

.study-drawer-body .btn-flip-180,
.study-drawer-body .btn-fav-toggle {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 11px;
}

/* ==========================================================================
   REVISÃO 13 (VIEWPORT MOBILE RESPONSIVO CENTRALIZADO 100dvh, ZERO EXTRAPOLAÇÃO
   DE MARGENS NO GOOGLE SITES / DESKTOP / MOBILE & 15 BOLINHAS VETORIAIS NÍTIDAS)
   ========================================================================== */
:root {
  --ds-bg-primary: #0B1830;
  --ds-surface-secondary: #183B5B;
  --ds-accent-champagne: #E2BC78;
  --ds-surface-light: #F4F7FB;
  --ds-text-muted-blue: #A8BDD3;
  --ds-text-std-light: #F5F7FA;
  --ds-text-std-dark: #07111F;
  --ds-outdoor-primary-action: #005FCC;
  --ds-status-success: #176B43;
  --ds-status-warning: #8A4B08;
  --ds-status-emergency: #B42318;
  --radius-btn-primary: 14px;
  --radius-btn-compact: 10px;
  --radius-card: 18px;
  --radius-pill: 9999px;
}

/* 1. LAYOUT UNIVERSAL: 100% NATIVO EM SMARTPHONES (INCLUSIVE SAMSUNG GALAXY S23 ULTRA, S24 ULTRA, PRO MAX)
   E MOLDURA ELEGANTE DE SMARTPHONE NO COMPUTADOR (DESKTOP SEM TOUCH) */
html {
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #07111F !important;
  background-color: #07111F !important;
  touch-action: pan-y;
}

body {
  width: 100% !important;
  max-width: 100% !important; /* 100% nativo da tela do smartphone, sem bordas ou cortes */
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: max(6px, env(safe-area-inset-top, 6px)) 8px max(6px, env(safe-area-inset-bottom, 6px)) 8px !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 5px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  position: relative !important;
  background: #07111F !important;
  background-color: #07111F !important;
  touch-action: pan-y;
}

/* MOLDURA DESKTOP SIMULATOR: SOMENTE se for computador real (sem touch, tela grande) */
html.desktop-simulator-mode:not(.mobile-native-mode) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at 50% 20%, #0F2442 0%, #050C18 100%) !important;
}

html.desktop-simulator-mode:not(.mobile-native-mode) body {
  width: 100% !important;
  max-width: 440px !important;
  height: min(100dvh - 20px, 880px) !important;
  max-height: min(100dvh - 20px, 880px) !important;
  border-radius: 28px !important;
  border: 2px solid rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  padding: 7px 9px !important;
  margin: auto !important;
}

/* 2. CABEÇALHO SUPERIOR COMPACTO EM LINHA ÚNICA (ZERO POLUIÇÃO VISUAL) */
.app-header-single {
  position: relative !important;
  top: auto !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  border-radius: 14px !important;
  display: block !important;
  gap: 0 !important;
  box-sizing: border-box !important;
}

.header-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* LADO ESQUERDO: ÍCONE + ROTAÇÃO VERTICAL 3D SUTIL (SPEAK & TRAVEL / INCOMUM VIAGENS) */
.brand-rotator-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  min-width: auto !important;
}

.brand-rotator-wrap .brand-logo-icon {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.brand-rotator-wrap .brand-logo-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45)) !important;
}

/* CONTAINER DE ROTAÇÃO VERTICAL SUTIL */
.brand-flip-rotator {
  position: relative !important;
  height: 24px !important;
  width: 112px !important;
  flex: 0 0 112px !important;
  overflow: hidden !important;
}

.brand-flip-rotator .rotator-face {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease !important;
  will-change: transform, opacity !important;
}

.brand-flip-rotator .face-brand {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.brand-flip-rotator .face-partner {
  transform: translateY(115%) !important;
  opacity: 0 !important;
}

.brand-flip-rotator.show-partner .face-brand {
  transform: translateY(-115%) !important;
  opacity: 0 !important;
}

.brand-flip-rotator.show-partner .face-partner {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.brand-flip-rotator .brand-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.2px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  line-height: 1.1 !important;
}

body.light-mode .brand-flip-rotator .brand-name {
  color: #0A192F !important;
}

.brand-flip-rotator .incomum-header-logo-img {
  height: 20px !important;
  max-width: 110px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)) !important;
}

/* CENTRO: BARRA DE PESQUISA UTILIZÁVEL (FLEX: 1; MAX-WIDTH: 140PX) */
.hero-search-bar-wrap.header-search-compact {
  flex: 0 1 140px !important;
  width: auto !important;
  max-width: 140px !important;
  min-width: 80px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hero-search-bar-wrap.header-search-compact .hero-search-box {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 28px !important;
  width: 100% !important;
  background: rgba(14, 28, 52, 0.85) !important;
  border: 1.2px solid rgba(56, 189, 248, 0.30) !important;
  border-radius: 14px !important;
  padding: 0 20px 0 24px !important;
  box-sizing: border-box !important;
  transition: all 180ms ease !important;
}

body.light-mode .hero-search-bar-wrap.header-search-compact .hero-search-box {
  background: #F1F5F9 !important;
  border-color: rgba(2, 132, 199, 0.32) !important;
}

.hero-search-bar-wrap.header-search-compact .hero-search-box:focus-within {
  border-color: #38BDF8 !important;
  background: rgba(16, 36, 68, 0.98) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

body.light-mode .hero-search-bar-wrap.header-search-compact .hero-search-box:focus-within {
  background: #FFFFFF !important;
  border-color: #0284C7 !important;
}

.hero-search-bar-wrap.header-search-compact .search-icon {
  position: absolute !important;
  left: 7px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 12px !important;
  height: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #38BDF8 !important;
  pointer-events: none !important;
}

.hero-search-bar-wrap.header-search-compact .search-icon svg {
  width: 12px !important;
  height: 12px !important;
  stroke: #38BDF8 !important;
  stroke-width: 2.2 !important;
}

.hero-search-bar-wrap.header-search-compact input {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 11px !important;
  color: #F8FAFC !important;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

body.light-mode .hero-search-bar-wrap.header-search-compact input {
  color: #0F172A !important;
}

.hero-search-bar-wrap.header-search-compact input::placeholder {
  color: #64748B !important;
  font-size: 10.5px !important;
}

.hero-search-bar-wrap.header-search-compact .search-clear-btn {
  position: absolute !important;
  right: 4px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 15px !important;
  height: 15px !important;
  border-radius: 50% !important;
  background: rgba(148, 163, 184, 0.25) !important;
  border: none !important;
  color: #CBD5E1 !important;
  font-size: 8.5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

/* PAINEL DE RESULTADOS FLUTUANTE */
.hero-search-bar-wrap.header-search-compact #global-search-results {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  width: min(340px, 92vw) !important;
  max-height: min(420px, 70vh) !important;
  overflow-y: auto !important;
  z-index: 1000 !important;
  border-radius: 14px !important;
  background: rgba(8, 18, 36, 0.98) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75) !important;
}

/* 3. ÁREA CENTRAL ELÁSTICA: NUNCA EXTRAPOLA AS MARGENS NEM INVADE A BARRA INFERIOR */
.main-content {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.tab-view {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: 6px 7px !important;
  border-radius: 15px !important;
  display: none !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.tab-view.active:not(.hidden) {
  display: flex !important;
}

.tab-view.hidden {
  display: none !important;
}

#tab-sos,
#tab-myspace,
#tab-guide,
.guide-viewport-container {
  height: 100% !important;
  max-height: 100% !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
}

/* 4. OS 9 CUBOS 100% RESPONSIVOS, PROPORCIONAIS E CENTRALIZADOS (ZERO ROLAGEM) */
.hub-viewport-fill {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  overflow: hidden !important;
}

.hub-viewport-fill.hidden {
  display: none !important;
}

.cubes-grid-3x3 {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.cube-card {
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  padding: 4px 3px !important;
  border-radius: 13px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  box-sizing: border-box !important;
}

.cube-icon-box {
  width: clamp(30px, 4.6vh, 42px) !important;
  height: clamp(30px, 4.6vh, 42px) !important;
  border-radius: 10px !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}

.cube-icon-box .svg-badge {
  width: clamp(18px, 2.7vh, 24px) !important;
  height: clamp(18px, 2.7vh, 24px) !important;
}

.cube-label {
  font-size: clamp(9.2px, 1.28vh, 11px) !important;
  line-height: 1.12 !important;
  padding: 0 2px !important;
}

.cube-progress-wrap {
  width: 78% !important;
  margin-top: 1px !important;
}

/* 5. BARRA DE NAVEGAÇÃO INFERIOR INTEGRADA NO FLEX (NUNCA CORTA NEM SOBREPÕE O CONTEÚDO) */
.bottom-nav-english {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  flex: 0 0 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 40 !important;
  box-sizing: border-box !important;
}

.bottom-nav-english .nav-btn {
  padding: 2px 4px !important;
  gap: 1px !important;
  min-width: 46px !important;
  height: 100% !important;
}

.bottom-nav-english .nav-btn .nav-label {
  font-size: 9px !important;
  line-height: 1.05 !important;
}

.nav-btn.highlight-center .center-glossary-orb,
.nav-btn.sos-btn .sos-3d-orb {
  width: 26px !important;
  height: 26px !important;
}

.svg-nav {
  width: 17px !important;
  height: 17px !important;
}

/* 6. TELA INTERNA DO MÓDULO (#module-detail-view): 15 BOLINHAS NÍTIDAS + VÍDEO COMPACTO + ESTUDE/PRACTICE INTEIRO */
#module-detail-view {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 3px !important;
  overflow: hidden !important;
}

#module-detail-view.hidden {
  display: none !important;
}

#module-detail-view .module-detail-topbar {
  margin-bottom: 0 !important;
  flex: 0 0 auto !important;
}

#module-detail-view .btn-back-hub {
  padding: 3px 9px !important;
  font-size: 10px !important;
}

#module-detail-view .module-title-badge {
  padding: 3px 9px !important;
  font-size: 10px !important;
}

#module-detail-view .bible-thumb-strip {
  margin-bottom: 0 !important;
  padding: 2px !important;
  gap: 2px !important;
  flex: 0 0 auto !important;
}

#module-detail-view .bible-thumb-tab {
  min-height: 20px !important;
  padding: 2px 1px !important;
  font-size: 8px !important;
}

/* As 15 Bolinhas no Topo: Ícones Vetoriais Claros e Nítidos (Zero Círculos Pretos!) */
#module-detail-view .stories-icons-strip {
  display: grid !important;
  grid-template-columns: repeat(15, minmax(0, 1fr)) !important;
  gap: 2px !important;
  padding: 2px 1px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-items: center !important;
}

#module-detail-view .story-icon-bubble {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: transparent !important;
}

#module-detail-view .story-bubble-ring {
  width: 21px !important;
  height: 21px !important;
  max-width: 21px !important;
  min-width: 18px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: #16365D !important;
  border: 1.5px solid #60A5FA !important;
  color: #F8FAFC !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  padding: 0 !important;
}

#module-detail-view .story-bubble-ring svg {
  width: 12px !important;
  height: 12px !important;
  stroke: currentColor !important;
  stroke-width: 2.15 !important;
  fill: none !important;
  display: block !important;
}

#module-detail-view .story-icon-bubble.visited .story-bubble-ring {
  background: rgba(14, 165, 233, 0.32) !important;
  border-color: #38BDF8 !important;
  color: #BAE6FD !important;
}

#module-detail-view .story-icon-bubble.active .story-bubble-ring {
  background: linear-gradient(135deg, #FDE68A 0%, #E2BC78 100%) !important;
  border: 2px solid #FFFFFF !important;
  color: #07111F !important;
  transform: scale(1.12) !important;
  box-shadow: 0 0 8px rgba(226, 188, 120, 0.9) !important;
}

#module-detail-view .story-icon-bubble.active .story-bubble-ring svg {
  stroke: #07111F !important;
  stroke-width: 2.35 !important;
}

#module-detail-view .active-story-topic-banner {
  padding: 3px 8px !important;
  margin-bottom: 0 !important;
  border-radius: 8px !important;
  flex: 0 0 auto !important;
}

#module-detail-view .topic-banner-title {
  font-size: 10.5px !important;
}

#module-detail-view .topic-banner-ep {
  font-size: 8px !important;
  padding: 1.5px 6px !important;
}

/* Card do Vídeo com min-height: 0 !important em todas as camadas para caber em qualquer tela */
#module-detail-view .story-player-card {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}

#module-detail-view .story-sponsor-badge {
  padding: 2.5px 6px !important;
  font-size: 8px !important;
  flex: 0 0 auto !important;
}

#module-detail-view .story-video-viewport {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 4px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#module-detail-view .video-simulation-stage {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 5px 7px !important;
  border-radius: 9px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}

#module-detail-view .video-sim-Cast {
  padding: 3px 8px !important;
  gap: 6px !important;
}

#module-detail-view .video-sim-Cast strong {
  font-size: 10px !important;
}

#module-detail-view .video-sim-Cast small {
  font-size: 8.5px !important;
}

#module-detail-view .video-sim-live-pill {
  font-size: 8px !important;
  padding: 2px 7px !important;
}

#module-detail-view .video-sim-center {
  margin: 0 !important;
  gap: 2px !important;
}

#module-detail-view .video-center-play-orb {
  width: 34px !important;
  height: 34px !important;
  font-size: 14px !important;
}

#module-detail-view .video-sim-status-tag {
  margin-top: 2px !important;
  font-size: 8.5px !important;
  padding: 1.5px 7px !important;
}

#module-detail-view .video-sim-bottom {
  padding: 4px 7px !important;
  border-radius: 8px !important;
}

#module-detail-view .video-badge {
  font-size: 7.5px !important;
  padding: 1px 6px !important;
  margin-bottom: 2px !important;
}

#module-detail-view .video-headline {
  font-size: 11px !important;
  line-height: 1.15 !important;
  margin-bottom: 1px !important;
}

#module-detail-view .video-summary {
  font-size: 9.5px !important;
  line-height: 1.15 !important;
  margin-bottom: 3px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

#module-detail-view .video-play-btn {
  padding: 3px 9px !important;
  font-size: 9.5px !important;
  min-height: 22px !important;
}

#module-detail-view .video-timeline-row {
  margin-top: 2px !important;
  font-size: 8px !important;
}

#module-detail-view .story-player-controls {
  padding: 3px 6px !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
}

#module-detail-view .btn-story-nav,
#module-detail-view .btn-story-mini {
  min-height: 24px !important;
  padding: 2px 7px !important;
  font-size: 9.5px !important;
}

/* Barra Retrátil Estude / Practice Sempre 100% Visível e Desimpedida */
#phrase-active-container {
  flex: 0 0 auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.study-drawer-toggle-btn {
  min-height: 34px !important;
  padding: 4px 8px !important;
}

.study-drawer-pill-tag {
  font-size: 9px !important;
  padding: 2.5px 7px !important;
}

.study-drawer-preview-text {
  font-size: 10.5px !important;
}

.study-drawer-chevron {
  font-size: 9px !important;
  padding: 2.5px 7px !important;
}

/* Hierarquia de Botões e SOS Semântico V3.2 */
.btn-audio-normal,
.btn-action-mastered,
.btn-speak-clerk,
.btn-all-terms,
.video-play-btn {
  background: linear-gradient(180deg, #EAD096 0%, #E2BC78 100%) !important;
  color: #07111F !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: var(--radius-btn-primary) !important;
  font-weight: 800 !important;
}

/* Cards SOS com Imagens de Fundo Imersivas e Scrim Gradient de Alto Contraste */
.sos-tile {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sos-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

.sos-tile.sos-semantic-medical {
  --sos-bg: url('./assets/sos/sos_bg_medical.jpg?v=4.6');
  background-image: 
    linear-gradient(90deg, rgba(11, 24, 48, 0.95) 0%, rgba(11, 24, 48, 0.88) 52%, rgba(180, 35, 24, 0.55) 100%),
    var(--sos-bg) !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
}

.sos-tile.sos-semantic-passport {
  --sos-bg: url('./assets/sos/sos_bg_passport.jpg?v=4.6');
  background-image: 
    linear-gradient(90deg, rgba(11, 24, 48, 0.95) 0%, rgba(11, 24, 48, 0.88) 52%, rgba(2, 132, 199, 0.52) 100%),
    var(--sos-bg) !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
}

.sos-tile.sos-semantic-flight {
  --sos-bg: url('./assets/sos/sos_bg_flight.jpg?v=4.6');
  background-image: 
    linear-gradient(90deg, rgba(11, 24, 48, 0.95) 0%, rgba(11, 24, 48, 0.88) 52%, rgba(217, 119, 6, 0.52) 100%),
    var(--sos-bg) !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
}

.sos-tile.sos-semantic-luggage {
  --sos-bg: url('./assets/sos/sos_bg_luggage.jpg?v=4.6');
  background-image: 
    linear-gradient(90deg, rgba(11, 24, 48, 0.95) 0%, rgba(11, 24, 48, 0.88) 52%, rgba(13, 148, 136, 0.52) 100%),
    var(--sos-bg) !important;
  border-color: rgba(45, 212, 191, 0.42) !important;
}

.sos-tile.sos-semantic-cdw {
  --sos-bg: url('./assets/sos/sos_bg_rental.jpg?v=4.6');
  background-image: 
    linear-gradient(90deg, rgba(11, 24, 48, 0.95) 0%, rgba(11, 24, 48, 0.88) 52%, rgba(226, 188, 120, 0.52) 100%),
    var(--sos-bg) !important;
  border-color: rgba(226, 188, 120, 0.48) !important;
}

.theme-mode-card {
  background: linear-gradient(135deg, rgba(24, 59, 91, 0.72) 0%, rgba(11, 24, 48, 0.92) 100%);
  border: 1px solid rgba(226, 188, 120, 0.24);
  border-radius: var(--radius-card);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.theme-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.theme-mode-title { font-size: 11.5px; font-weight: 800; color: #F5F7FA; }
.theme-mode-badge {
  font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: rgba(226, 188, 120, 0.18); color: #E2BC78; border: 1px solid rgba(226, 188, 120, 0.35);
}
.theme-segmented-control {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  background: rgba(7, 17, 31, 0.75) !important;
  padding: 4px !important;
  border-radius: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
}
.theme-seg-btn {
  background: transparent !important;
  color: #94A3B8 !important;
  border: none !important;
  border-radius: 9px !important;
  padding: 10px 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 140ms ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.theme-seg-btn.active {
  background: #E2BC78 !important;
  color: #07111F !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(226, 188, 120, 0.35) !important;
}
.theme-seg-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   REVISÃO 14 — TRAVEL HACKS BY INCOMUM VIAGENS (POCKET GUIDE 9:16 GLASSMORPHISM
   & BARRA DE 15 BOLINHAS EM GRADE FIXA ZERO-SCROLL NA THUMB ZONE)
   ========================================================================== */
body[data-active-tab="hacks"]:not(.light-mode) {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.22) 0%, rgba(6, 40, 30, 0.94) 45%, var(--vip-navy) 80%, var(--vip-bg-deep) 100%) !important;
}

#tab-hacks {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.10) 0%, rgba(6, 30, 22, 0.82) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  border-left-color: #10B981;
  box-shadow: inset 0 1px 0 rgba(16, 185, 129, 0.22), 0 10px 28px -8px rgba(16, 185, 129, 0.28);
}

body.light-mode #tab-hacks {
  background: rgba(236, 253, 245, 0.92);
  border-color: #059669;
}

.bottom-nav-english .nav-btn[data-tab="hacks"] {
  color: rgba(52, 211, 153, 0.85);
}
.bottom-nav-english .nav-btn[data-tab="hacks"].active {
  color: #10B981;
  border-top-color: #10B981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.08) 100%);
  box-shadow: 0 -4px 14px rgba(16, 185, 129, 0.35);
}
body[data-active-tab="hacks"] .bottom-nav-english {
  border-top-color: rgba(16, 185, 129, 0.55);
}

.hacks-hub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.hacks-floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(2, 132, 199, 0.28) 100%);
  border: 1px solid rgba(0, 210, 255, 0.48);
  color: #38BDF8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3.5px 9px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.light-mode .hacks-floating-pill {
  background: #0A192F;
  color: #38BDF8;
}

.btn-hacks-open-replay {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34D399;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3.5px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

body.light-mode .btn-hacks-open-replay {
  background: #059669;
  color: #FFFFFF;
}

/* Cubos de Travel Hacks utilizam o padrão unificado fotográfico com contorno ciano tático */
.h-cube-card {
  /* Herda background fotográfico de .cube-card */
}

/* TELA INTERNA DO POCKET GUIDE DE 15 BOLINHAS (#hacks-detail-view — 100% Zero Scroll) */
#hacks-detail-view {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 4px !important;
  overflow: hidden !important;
}

#hacks-detail-view.hidden {
  display: none !important;
}

#hacks-detail-view .module-detail-topbar {
  margin-bottom: 0 !important;
  flex: 0 0 auto !important;
}

#hacks-detail-view .bible-thumb-strip {
  margin-bottom: 0 !important;
  padding: 2px !important;
  gap: 2px !important;
  flex: 0 0 auto !important;
}

#hacks-detail-view .bible-thumb-tab {
  min-height: 20px !important;
  padding: 2px 1px !important;
  font-size: 8px !important;
}

/* Barra das 15 Bolinhas (00 a 14) do Travel Hacks: 100% Uniformizada com o My Trip */
.hacks-dots-bar-wrap {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  overflow-x: auto !important;
  box-shadow: none !important;
  width: 100% !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

body.light-mode .hacks-dots-bar-wrap {
  background: transparent !important;
  border: none !important;
}

.hacks-dots-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  width: 100% !important;
  padding: 4px 2px !important;
  box-sizing: border-box !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.h-dot,
.hack-dot {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: #0B192E !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  color: #94A3B8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.4) !important;
  transform: none !important;
  transition: all 140ms ease !important;
  user-select: none !important;
}

body.light-mode .h-dot,
body.light-mode .hack-dot {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
  box-shadow: none !important;
}

.h-dot.visited,
.hack-dot.visited {
  background: rgba(14, 165, 233, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #7DD3FC !important;
  transform: none !important;
}

.h-dot.intro-dot,
.h-dot.concl-dot,
.hack-dot.intro-dot,
.hack-dot.concl-dot {
  background: #0B192E !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  color: #94A3B8 !important;
  transform: none !important;
}

.h-dot.active,
.hack-dot.active {
  background: #38BDF8 !important;
  border: 1.5px solid #BAE6FD !important;
  color: #031326 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65) !important;
  transform: none !important;
  z-index: 2 !important;
}
/* Pocket Guide Card 9:16 (.hack-card-static — Smart Glassmorphism Dark Navy / Cyan / Gold) */
.hack-card-container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.hack-card-static {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 210, 255, 0.16) 0%, transparent 48%),
    radial-gradient(circle at 12% 88%, rgba(245, 158, 11, 0.14) 0%, transparent 52%),
    linear-gradient(160deg, rgba(19, 40, 72, 0.94) 0%, rgba(10, 25, 47, 0.98) 100%);
  border: 1px solid rgba(0, 210, 255, 0.32);
  border-radius: 16px;
  padding: 10px 11px;
  box-shadow: 0 12px 28px -6px rgba(2, 8, 23, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  contain: layout paint;
}

body.light-mode .hack-card-static {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.hack-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.hack-topic-badge {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.52);
  color: #FCD34D;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

body.light-mode .hack-topic-badge {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

.hack-verified-badge {
  font-size: 8.5px;
  font-weight: 800;
  color: #38BDF8;
  background: rgba(2, 132, 199, 0.20);
  border: 1px solid rgba(0, 210, 255, 0.42);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

body.light-mode .hack-verified-badge {
  background: #E0F2FE;
  color: #0369A1;
}

.hack-title-main {
  font-size: clamp(13px, 1.9vh, 15.5px);
  font-weight: 800;
  color: #F5F7FA;
  line-height: 1.24;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

body.light-mode .hack-title-main {
  color: #07111F;
}

/* Quadrante Frosted Glass da Consultoria (Dica de Ouro 15s) */
.hack-body-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.16) 0%, rgba(6, 15, 30, 0.86) 100%);
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-left: 4px solid #F59E0B;
  padding: 8px 10px;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.light-mode .hack-body-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
  border-left-color: #D97706;
}

.hack-body-eyebrow {
  font-size: 8.5px;
  font-weight: 800;
  color: #FBBF24;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.light-mode .hack-body-eyebrow {
  color: #B45309;
}

.hack-body-text {
  font-size: clamp(11.2px, 1.62vh, 13px);
  font-weight: 600;
  color: #F1F5F9;
  line-height: 1.38;
}

body.light-mode .hack-body-text {
  color: #0F172A;
}

/* Ponte Interativa "SPEAK & TRAVEL" (Frase de Balcão + Fonética Dourada + Áudio Neural + 180°) */
.hack-anchor-box {
  background: rgba(6, 14, 26, 0.88);
  border: 1px solid rgba(226, 188, 120, 0.38);
  border-radius: 12px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

body.light-mode .hack-anchor-box {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.hack-anchor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hack-anchor-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.light-mode .hack-anchor-label {
  color: #0369A1;
}

.hack-anchor-en {
  font-size: clamp(12px, 1.72vh, 14px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.22;
}

body.light-mode .hack-anchor-en {
  color: #07111F;
}

.hack-anchor-phonetic {
  font-family: var(--font-phonetic);
  font-size: clamp(10.5px, 1.48vh, 12px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #E2C785;
}

body.light-mode .hack-anchor-phonetic {
  color: #92400E;
}

.hack-anchor-pt {
  font-size: clamp(10.5px, 1.48vh, 11.8px);
  color: #CBD5E1;
}

body.light-mode .hack-anchor-pt {
  color: #334155;
}

.hack-anchor-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.hack-anchor-actions button {
  flex: 1;
  min-height: 29px;
  padding: 3px 6px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Rodapé de Controles na Thumb Zone */
.hacks-footer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}

.btn-hack-nav {
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(24, 59, 91, 0.85);
  border: 1px solid rgba(168, 189, 211, 0.30);
  color: #F5F7FA;
  transition: all 140ms ease;
}

.btn-hack-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-primary-hack {
  background: linear-gradient(180deg, #EAD096 0%, #E2BC78 100%) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #07111F !important;
}

.hack-step-indicator {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: #E2BC78;
  background: rgba(7, 17, 31, 0.75);
  border: 1px solid rgba(226, 188, 120, 0.32);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   REVISÃO 15 — ADAPTAÇÃO UNIVERSAL MULTI-SMARTPHONE (320px A 480px+ / 560px A 960px+)
   E SISTEMA DE ROLAGEM ERGONÔMICA INTELIGENTE (ZERO CORTE EM TODAS AS TELAS)
   ========================================================================== */

/* 1. TELA CHEIA NATIVA EM TODOS OS SMARTPHONES (INCLUINDO TELAS GRANDES: S23 ULTRA, S24 ULTRA, PRO MAX)
   ZERO BORDAS, ZERO MOLDURAS, ZERO VAZIO ESCURO */
html.mobile-native-mode,
html.mobile-native-mode body,
body.mobile-native-mode,
html:not(.desktop-simulator-mode),
html:not(.desktop-simulator-mode) body {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #07111F !important;
  background-color: #07111F !important;
}

/* 2. ESTEIRA DE BOLINHAS (MY TRIP & TRAVEL HACKS) 100% UNIFORMIZADA COM ROLAGEM HORIZONTAL SUAVE */
#module-detail-view .stories-icons-strip,
#module-detail-view #stories-icons-track,
.stories-icons-strip,
.hacks-dots-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 4px 2px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

#module-detail-view .story-dot-num,
.story-dot-num,
.h-dot,
.hack-dot {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  transform: none !important;
}
/* 3. MY TRIP DETAIL (#module-detail-view) COM GAVETA "ESTUDE / PRACTICE" ABERTA:
   COLAPSA O VÍDEO PARA CABER 100% NA TELA + ROLAGEM INTERNA SUAVE DE SEGURANÇA */
#module-detail-view.study-drawer-open .story-player-card {
  flex: 0 0 auto !important;
}

/* Video always visible and proportional */
#module-detail-view .story-video-viewport {
  display: block !important;
}

#module-detail-view.study-drawer-open #phrase-active-container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#module-detail-view.study-drawer-open .study-drawer-shell.open {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#module-detail-view.study-drawer-open .study-drawer-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  display: flex !important;
  flex-direction: column !important;
}

#module-detail-view.study-drawer-open .phrase-full-card {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: clamp(3px, 0.8vh, 7px) !important;
  padding: clamp(6px, 1.2vh, 10px) !important;
}

#module-detail-view.study-drawer-open .phrase-en-huge {
  font-size: clamp(13px, 2vh, 16.5px) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

#module-detail-view.study-drawer-open .phrase-phonetic-badge {
  font-size: clamp(10.5px, 1.5vh, 12.5px) !important;
  padding: 4px 8px !important;
  margin: 0 !important;
}

#module-detail-view.study-drawer-open .phrase-pt-meaning {
  font-size: clamp(11px, 1.55vh, 12.5px) !important;
  margin: 0 !important;
}

#module-detail-view.study-drawer-open .phrase-tip-box {
  font-size: clamp(10px, 1.45vh, 11.5px) !important;
  padding: 5px 8px !important;
  margin: 0 !important;
}

#module-detail-view.study-drawer-open .phrase-dual-audio-bar,
#module-detail-view.study-drawer-open .phrase-tactical-actions {
  margin: 0 !important;
  gap: 5px !important;
}

#module-detail-view.study-drawer-open .phrase-dual-audio-bar button,
#module-detail-view.study-drawer-open .phrase-tactical-actions button {
  min-height: clamp(28px, 4.2vh, 36px) !important;
  padding: 3px 8px !important;
  font-size: clamp(10px, 1.5vh, 12px) !important;
}

/* 4. TRAVEL HACKS POCKET GUIDE (.hack-card-static): ZERO CORTE EM TELAS COMPACTAS */
.hack-card-static {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
}

@media (max-height: 640px) {
  .hack-card-static {
    padding: 6px 8px !important;
    gap: 3px !important;
  }
  .hack-title-main {
    font-size: 12px !important;
    line-height: 1.16 !important;
  }
  .hack-body-box {
    padding: 5px 7px !important;
  }
  .hack-body-eyebrow {
    font-size: 7.8px !important;
    margin-bottom: 1px !important;
  }
  .hack-body-text {
    font-size: 10.4px !important;
    line-height: 1.24 !important;
  }
  .hack-anchor-box {
    padding: 4px 7px !important;
    gap: 1.5px !important;
  }
  .hack-anchor-en {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }
  .hack-anchor-phonetic,
  .hack-anchor-pt {
    font-size: 9.8px !important;
    line-height: 1.15 !important;
  }
  .hack-anchor-actions {
    margin-top: 2px !important;
    gap: 4px !important;
  }
  .hack-anchor-actions button {
    min-height: 24px !important;
    padding: 2px 5px !important;
    font-size: 9.2px !important;
  }
  .btn-hack-nav {
    min-height: 27px !important;
    padding: 2px 10px !important;
    font-size: 9.8px !important;
  }
}

/* 5. PRACTICE HUB DRAWER & PRACTICE DETAIL VIEW (#practice-detail-view):
   BOTÕES "REPETIR DEPOIS" E "DOMINADO!" 100% VISÍVEIS NA THUMB ZONE EM QUALQUER CELULAR */
#practice-hub-view {
  position: relative !important;
}

#drawer-replay-method {
  position: absolute !important;
  top: 34px !important;
  left: 2px !important;
  right: 2px !important;
  z-index: 50 !important;
  max-height: calc(100% - 38px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  background: rgba(10, 25, 47, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(52, 211, 153, 0.48) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.88) !important;
}

body.light-mode #drawer-replay-method {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: #059669 !important;
}

#practice-detail-view {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 5px !important;
  overflow: hidden !important;
}

#practice-detail-view.hidden {
  display: none !important;
}

#practice-detail-view .module-detail-topbar {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

#practice-category-chips {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 5px !important;
  padding: 2px 1px 4px 1px !important;
  margin: 0 !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

#practice-category-chips::-webkit-scrollbar {
  display: none !important;
}

#practice-category-chips .l-tab {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 4px 9px !important;
  font-size: 10px !important;
}

#practice-detail-view .practice-card-wrap {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin: 0 !important;
  overflow: hidden !important;
}

#practice-detail-view .practice-flashcard {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(8px, 1.8vh, 16px) clamp(10px, 3vw, 16px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: clamp(4px, 1vh, 10px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

#practice-detail-view .flashcard-counter {
  margin: 0 !important;
  font-size: 10px !important;
}

#practice-detail-view .flashcard-en {
  font-size: clamp(13.5px, 2.2vh, 18.5px) !important;
  line-height: 1.22 !important;
  margin: 0 !important;
}

#practice-detail-view .flashcard-pt {
  font-size: clamp(11.2px, 1.65vh, 14px) !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

#practice-detail-view .phonetic-container {
  padding: clamp(6px, 1.2vh, 11px) !important;
  margin: 0 !important;
}

#practice-detail-view .phonetic-transcription {
  font-size: clamp(11.2px, 1.7vh, 14px) !important;
  line-height: 1.25 !important;
}

#practice-detail-view .flashcard-audio-row {
  margin: 0 !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

#practice-detail-view .flashcard-audio-row button {
  min-height: clamp(30px, 4.6vh, 40px) !important;
  padding: 4px 8px !important;
  font-size: clamp(10.5px, 1.55vh, 12.5px) !important;
}

#practice-detail-view .practice-actions-row {
  flex: 0 0 auto !important;
  margin: 0 !important;
  gap: 8px !important;
}

#practice-detail-view .practice-actions-row button {
  min-height: clamp(32px, 4.8vh, 42px) !important;
  padding: 5px 10px !important;
  font-size: clamp(11px, 1.6vh, 13px) !important;
}

/* 6. GLOSSARY DETAIL VIEW (#glossary-detail-view & #glossary-items-container):
   TOPO E BUSCA FIXOS + LISTA DOS 500 TERMOS COM ROLAGEM VERTICAL SUAVE E INDEPENDENTE */
#glossary-detail-view {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  overflow: hidden !important;
}

#glossary-detail-view.hidden {
  display: none !important;
}

#glossary-detail-view .glossary-detail-nav,
#glossary-detail-view .glossary-current-header,
#glossary-detail-view .glossary-search-box {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

#glossary-category-chips {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 5px !important;
  padding: 2px 1px 4px 1px !important;
  margin: 0 !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

#glossary-category-chips::-webkit-scrollbar {
  display: none !important;
}

#glossary-category-chips .l-tab {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 4px 9px !important;
  font-size: 10px !important;
}

#glossary-items-container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  padding-right: 2px !important;
  padding-bottom: 10px !important;
}

/* 7. SOS & MY SPACE (#tab-sos, #tab-myspace): ROLAGEM INTERNA SUAVE COM FLEX-SHRINK: 0 */
#tab-sos,
#tab-myspace {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
}

#tab-sos > *,
#tab-myspace > * {
  flex-shrink: 0 !important;
}

/* 8. OCULTAÇÃO TOTAL E DEFINITIVA DE QUALQUER BARRA DE ROLAGEM VISUAL (ESTILO APP NATIVO iOS/ANDROID) */
*,
*::before,
*::after,
html,
body,
.main-content,
.tab-view,
#tab-sos,
#tab-myspace,
#glossary-items-container,
.study-drawer-body,
.hack-card-static,
.practice-flashcard,
#drawer-replay-method,
.global-search-results {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.tab-view::-webkit-scrollbar,
#tab-sos::-webkit-scrollbar,
#tab-myspace::-webkit-scrollbar,
#glossary-items-container::-webkit-scrollbar,
.study-drawer-body::-webkit-scrollbar,
.hack-card-static::-webkit-scrollbar,
.practice-flashcard::-webkit-scrollbar,
#drawer-replay-method::-webkit-scrollbar,
.global-search-results::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* ==========================================================================
   REVISÃO 16 — 9 ABAS REMISSIVAS ESTILO EXCEL COM ÍCONES VETORIAIS NO ALTO DO CARD
   100% VISÍVEIS SIMULTANEAMENTE EM GRADE 9 COLUNAS (ZERO ROLAGEM, ZERO CORTE)
   ========================================================================== */
.excel-remissive-tabs,
#glossary-category-chips,
#practice-category-chips,
#mytrip-detail-thumb-tabs,
#hacks-detail-thumb-tabs {
  flex: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 3px !important;
  padding: 3px 2px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 10px !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 4 !important;
}

#mytrip-detail-thumb-tabs,
#hacks-detail-thumb-tabs {
  border-color: transparent !important;
  border-bottom: none !important;
  margin-bottom: 3px !important;
}

#practice-category-chips {
  border-color: transparent !important;
  border-bottom: none !important;
}

.excel-remissive-tabs .excel-tab,
.excel-remissive-tabs .bible-thumb-tab,
#glossary-category-chips .l-tab,
#practice-category-chips .l-tab,
#mytrip-detail-thumb-tabs .bible-thumb-tab,
#hacks-detail-thumb-tabs .bible-thumb-tab,
#glossary-bricks-thumb-tabs .bible-thumb-tab,
#glossary-flashcard-thumb-tabs .bible-thumb-tab {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: clamp(4px, 0.7vh, 7px) 1px clamp(4px, 0.65vh, 6px) 1px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, rgba(16, 30, 54, 0.92) 0%, rgba(8, 17, 32, 0.96) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-top-width: 3px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 8px !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

#mytrip-detail-thumb-tabs .bible-thumb-tab,
#hacks-detail-thumb-tabs .bible-thumb-tab,
#glossary-bricks-thumb-tabs .bible-thumb-tab,
#glossary-flashcard-thumb-tabs .bible-thumb-tab {
  border-bottom-color: rgba(148, 163, 184, 0.24) !important;
}

#practice-category-chips .l-tab {
  border-bottom-color: rgba(148, 163, 184, 0.24) !important;
}

/* Cores Semânticas de Topo e Ícone das 9 Abas Remissivas Estilo Excel */
.excel-remissive-tabs .excel-tab[data-m="aeroporto"], .excel-remissive-tabs .bible-thumb-tab[data-m="aeroporto"] { --tab-c: #38BDF8; border-top-color: #38BDF8 !important; }
.excel-remissive-tabs .excel-tab[data-m="voo"],       .excel-remissive-tabs .bible-thumb-tab[data-m="voo"]       { --tab-c: #0284C7; border-top-color: #0284C7 !important; }
.excel-remissive-tabs .excel-tab[data-m="imigracao"], .excel-remissive-tabs .bible-thumb-tab[data-m="imigracao"] { --tab-c: #14B8A6; border-top-color: #14B8A6 !important; }
.excel-remissive-tabs .excel-tab[data-m="hotel"],     .excel-remissive-tabs .bible-thumb-tab[data-m="hotel"]     { --tab-c: #A855F7; border-top-color: #A855F7 !important; }
.excel-remissive-tabs .excel-tab[data-m="locadora"],  .excel-remissive-tabs .bible-thumb-tab[data-m="locadora"]  { --tab-c: #F59E0B; border-top-color: #F59E0B !important; }
.excel-remissive-tabs .excel-tab[data-m="mobilidade"],.excel-remissive-tabs .bible-thumb-tab[data-m="mobilidade"]{ --tab-c: #6366F1; border-top-color: #6366F1 !important; }
.excel-remissive-tabs .excel-tab[data-m="restaurante"],.excel-remissive-tabs .bible-thumb-tab[data-m="restaurante"]{ --tab-c: #F43F5E; border-top-color: #F43F5E !important; }
.excel-remissive-tabs .excel-tab[data-m="compras"],   .excel-remissive-tabs .bible-thumb-tab[data-m="compras"]   { --tab-c: #10B981; border-top-color: #10B981 !important; }
.excel-remissive-tabs .excel-tab[data-m="sos"],       .excel-remissive-tabs .bible-thumb-tab[data-m="sos"]       { --tab-c: #EF4444; border-top-color: #EF4444 !important; }

.excel-remissive-tabs .rem-tab-ico {
  width: clamp(12px, 1.9vh, 15px) !important;
  height: clamp(12px, 1.9vh, 15px) !important;
  stroke: var(--tab-c, #38BDF8) !important;
  fill: var(--tab-c, #38BDF8) !important;
  fill-opacity: 0.18 !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  flex-shrink: 0 !important;
  transition: transform 140ms ease, stroke 140ms ease !important;
}

.excel-remissive-tabs .rem-tab-lbl {
  font-size: clamp(7.5px, 1.15vh, 9px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.15px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

/* Estado Ativo da Aba Remissiva Unificado (My Trip, Hacks e Glossário) */
.excel-remissive-tabs .excel-tab.active,
.excel-remissive-tabs .bible-thumb-tab.active,
#glossary-category-chips .l-tab.active,
#practice-category-chips .l-tab.active,
#mytrip-detail-thumb-tabs .bible-thumb-tab.active,
#hacks-detail-thumb-tabs .bible-thumb-tab.active,
#glossary-bricks-thumb-tabs .bible-thumb-tab.active,
#glossary-flashcard-thumb-tabs .bible-thumb-tab.active,
.bible-thumb-tab.active {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.28) 0%, rgba(20, 26, 38, 0.98) 100%) !important;
  color: #FEF08A !important;
  border: 1.5px solid #FCD34D !important;
  border-top: 3px solid var(--tab-c, #FCD34D) !important;
  border-bottom: 1.5px solid #FCD34D !important;
  transform: translateY(-1px) !important;
  z-index: 6 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.40) !important;
}

.excel-remissive-tabs .excel-tab.active .rem-tab-ico {
  stroke: #FEF08A !important;
  fill: var(--tab-c, #FBBF24) !important;
  fill-opacity: 0.36 !important;
  transform: scale(1.08) !important;
}

/* Painel de Cabeçalho Conectado às Abas Remissivas no Glossário */
.glossary-excel-header-panel {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.96) 0%, rgba(11, 21, 38, 0.92) 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.30) !important;
  border-top: none !important;
  border-radius: 0 0 11px 11px !important;
  padding: 6px 8px 7px 8px !important;
  margin-top: -2px !important;
  position: relative !important;
  z-index: 3 !important;
}

#glossary-detail-view .glossary-detail-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 5px !important;
  margin: 0 !important;
}

#glossary-detail-view .btn-back-hub,
#glossary-detail-view .btn-toggle-blind,
.btn-all-mini-pill {
  padding: 4px 8px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.btn-all-mini-pill {
  background: rgba(251, 191, 36, 0.12) !important;
  border: 1px solid rgba(251, 191, 36, 0.38) !important;
  color: #FDE68A !important;
  cursor: pointer !important;
}

.btn-all-mini-pill.active {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
  color: #060E1A !important;
  border-color: #FBBF24 !important;
  font-weight: 800 !important;
}

#glossary-detail-view .glossary-current-header {
  margin: 0 !important;
}

#glossary-detail-view .glossary-detail-title {
  font-size: clamp(12.5px, 1.9vh, 14.5px) !important;
  margin: 0 !important;
  color: #FDE68A !important;
}

.excel-docked-topbar {
  background: linear-gradient(180deg, rgba(16, 28, 46, 0.95) 0%, rgba(10, 20, 36, 0.90) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  border-top: none !important;
  border-radius: 0 0 10px 10px !important;
  padding: 5px 8px !important;
  margin-top: -2px !important;
}

/* ==========================================================================
   REVISÃO 17 — CENTRAL SOS 100% EM TELA ÚNICA (ZERO ROLAGEM EM QUALQUER SMARTPHONE)
   + REMOÇÃO DO BOTÃO INFORMATIVO REDUNDANTE NO HUB DE TRAVEL HACKS
   ========================================================================== */
#tab-sos {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: clamp(4px, 0.85vh, 8px) !important;
  padding: clamp(5px, 1vh, 9px) clamp(6px, 1.8vw, 10px) !important;
  overflow: hidden !important;
}

#tab-sos.hidden {
  display: none !important;
}

#tab-sos .sos-cards-list {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(4px, 0.85vh, 8px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#tab-sos .sos-tile {
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(4px, 1vh, 11px) clamp(8px, 2.2vw, 13px) !important;
  border-radius: clamp(11px, 1.8vh, 15px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(7px, 2vw, 11px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#tab-sos .sos-tile-icon {
  width: clamp(28px, 4.4vh, 40px) !important;
  height: clamp(28px, 4.4vh, 40px) !important;
  border-radius: clamp(8px, 1.3vh, 11px) !important;
  flex-shrink: 0 !important;
}

#tab-sos .sos-tile-icon .svg-badge {
  width: clamp(15px, 2.4vh, 22px) !important;
  height: clamp(15px, 2.4vh, 22px) !important;
}

#tab-sos .sos-tile-info {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 1px !important;
}

#tab-sos .sos-tile-info strong {
  font-size: clamp(10.2px, 1.42vh, 11.8px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.22px !important;
  line-height: 1.16 !important;
  margin: 0 !important;
  white-space: normal !important;
}

#tab-sos .sos-tile-info span {
  font-size: clamp(9.2px, 1.32vh, 11px) !important;
  line-height: 1.18 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

@media (max-height: 670px) {
  #tab-sos .sos-tile-info span {
    -webkit-line-clamp: 1 !important;
  }
}

#tab-sos .btn-sos-trigger {
  padding: clamp(4px, 0.75vh, 7px) clamp(8px, 2vw, 12px) !important;
  font-size: clamp(9px, 1.3vh, 10.5px) !important;
  flex-shrink: 0 !important;
}

#tab-sos .emergency-phones-card {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: clamp(5px, 0.95vh, 10px) clamp(8px, 2vw, 12px) !important;
  border-radius: clamp(11px, 1.8vh, 15px) !important;
}

#tab-sos .phones-title {
  font-size: clamp(9.5px, 1.35vh, 11.2px) !important;
  margin-bottom: clamp(3px, 0.6vh, 6px) !important;
  line-height: 1.15 !important;
}

#tab-sos .phones-grid {
  gap: clamp(4px, 1.2vw, 8px) !important;
}

#tab-sos .phone-box {
  padding: clamp(3px, 0.65vh, 7px) 4px !important;
  font-size: clamp(8.8px, 1.22vh, 10.5px) !important;
  line-height: 1.15 !important;
  border-radius: 8px !important;
}

#tab-sos .phone-box strong {
  font-size: clamp(10.5px, 1.5vh, 12.5px) !important;
  line-height: 1.1 !important;
}

/* ==========================================================================
   REVISÃO 18: ALTO CONTRASTE SOLAR (LIGHT/OUTDOOR MODE) INTEGRAL &
   UTILITÁRIOS NO MY SPACE
   ========================================================================== */

.myspace-utilities-card {
  background: linear-gradient(135deg, rgba(24, 59, 91, 0.72) 0%, rgba(11, 24, 48, 0.92) 100%);
  border: 1px solid rgba(226, 188, 120, 0.28);
  border-radius: var(--radius-card);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

/* Botão de Contraste no Header com destaque tátil claro/escuro */
#btn-theme-toggle {
  width: 34px !important;
  height: 30px !important;
  border-radius: 10px !important;
  background: rgba(226, 188, 120, 0.16) !important;
  border: 1.5px solid rgba(226, 188, 120, 0.55) !important;
  color: #FDE68A !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 150ms ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}
#btn-theme-toggle:active {
  transform: scale(0.92) !important;
}

/* Regras Soberanas de Alto Contraste Diurno (Modo Outdoor Solar — ☀️) */
html.light-mode,
html.outdoor-mode {
  background: linear-gradient(180deg, #E2E8F0 0%, #CBD5E1 100%) !important;
}

body.light-mode,
body.outdoor-mode {
  background: #F1F5F9 !important;
  color: #07111F !important;
  border-color: #94A3B8 !important;
}

body.light-mode .app-header-single {
  background: #FFFFFF !important;
  border: 1.5px solid #94A3B8 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10) !important;
}

body.light-mode .brand-name {
  color: #07111F !important;
}

body.light-mode #btn-theme-toggle {
  background: #0A192F !important;
  border-color: #0284C7 !important;
  color: #FBBF24 !important;
}

body.light-mode .hero-search-box {
  background: #F8FAFC !important;
  border: 1.5px solid #64748B !important;
}

body.light-mode .hero-search-box input {
  color: #07111F !important;
}

body.light-mode .hero-search-box input::placeholder {
  color: #475569 !important;
}

body.light-mode #tab-mytrip,
body.light-mode #tab-hacks,
body.light-mode #tab-practice,
body.light-mode #tab-glossary,
body.light-mode #tab-sos,
body.light-mode #tab-myspace {
  background: #F8FAFC !important;
  border-color: #94A3B8 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode #tab-mytrip { border-left-color: #0284C7 !important; }
body.light-mode #tab-hacks { border-left-color: #059669 !important; }
body.light-mode #tab-practice { border-left-color: #059669 !important; }
body.light-mode #tab-glossary { border-left-color: #D97706 !important; }
body.light-mode #tab-sos { border-left-color: #B42318 !important; }
body.light-mode #tab-myspace { border-left-color: #7C3AED !important; }

body.light-mode .cube-card {
  background-image: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.0) 30%, rgba(15, 23, 42, 0.65) 65%, rgba(15, 23, 42, 0.95) 100%),
    var(--cube-img) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
}

body.light-mode #tab-mytrip .cube-card { border: 2px solid #0284C7 !important; }
body.light-mode #tab-hacks .cube-card { border: 2px solid #059669 !important; }
body.light-mode #tab-glossary .cube-card { border: 2px solid #D97706 !important; }
body.light-mode #tab-practice .cube-card { border: 2px solid #059669 !important; }

body.light-mode .cube-card.highlight-cube {
  /* Mantém imagem com contour da seção */
}

body.light-mode .cube-card.sos-cube {
  /* Mantém imagem com contour da seção */
}

body.light-mode .cube-label {
  color: #FFFFFF !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.92), 0 0 10px rgba(0, 0, 0, 0.75) !important;
  font-weight: 800 !important;
}

body.light-mode .cube-icon-box {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
  color: #0369A1 !important;
  box-shadow: none !important;
}

body.light-mode .p-cube-card .cube-icon-box {
  background: #D1FAE5 !important;
  border-color: #059669 !important;
  color: #047857 !important;
}

body.light-mode .cube-card[data-mod="sos"] .cube-icon-box svg {
  color: #DC2626 !important;
  stroke: #DC2626 !important;
}
body.light-mode .cube-card[data-mod="sos"] .cube-icon-box svg path {
  stroke: #DC2626 !important;
}
body.light-mode .cube-card[data-mod="sos"] .cube-icon-box svg rect {
  fill: #DC2626 !important;
  fill-opacity: 0.18 !important;
}

/* Abas Remissivas Estilo Excel no Modo Outdoor Solar */
body.light-mode .excel-remissive-tabs,
body.light-mode #glossary-category-chips,
body.light-mode #practice-category-chips,
body.light-mode #mytrip-detail-thumb-tabs,
body.light-mode #hacks-detail-thumb-tabs {
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
}

body.light-mode .excel-remissive-tabs .excel-tab,
body.light-mode #glossary-category-chips .l-tab,
body.light-mode #practice-category-chips .l-tab,
body.light-mode #mytrip-detail-thumb-tabs .bible-thumb-tab,
body.light-mode #hacks-detail-thumb-tabs .bible-thumb-tab {
  background: #F8FAFC !important;
  border: 1px solid #94A3B8 !important;
  border-bottom: 1px solid #94A3B8 !important;
  border-radius: 8px !important;
  color: #334155 !important;
}

body.light-mode .excel-remissive-tabs .excel-tab.active,
body.light-mode #glossary-category-chips .l-tab.active,
body.light-mode #practice-category-chips .l-tab.active,
body.light-mode #mytrip-detail-thumb-tabs .bible-thumb-tab.active,
body.light-mode #hacks-detail-thumb-tabs .bible-thumb-tab.active {
  background: #FFFFFF !important;
  color: #07111F !important;
  border: 1.5px solid #0284C7 !important;
  border-top: 3px solid var(--tab-c, #0284C7) !important;
  border-bottom: 1.5px solid #0284C7 !important;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.20) !important;
}

body.light-mode .excel-remissive-tabs .excel-tab.active .rem-tab-ico {
  stroke: #0284C7 !important;
}

body.light-mode .glossary-excel-header-panel,
body.light-mode .excel-docked-topbar {
  background: #FFFFFF !important;
  border-color: #94A3B8 !important;
}

body.light-mode #glossary-detail-view .glossary-detail-title {
  color: #07111F !important;
}

body.light-mode .btn-back-hub,
body.light-mode .btn-toggle-blind,
body.light-mode .btn-all-mini-pill {
  background: #F1F5F9 !important;
  border-color: #64748B !important;
  color: #07111F !important;
}

body.light-mode .btn-all-mini-pill.active {
  background: #005FCC !important;
  border-color: #005FCC !important;
  color: #FFFFFF !important;
}

/* Cards do SOS e My Space no Modo Outdoor Solar */
body.light-mode .sos-tile {
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
}

body.light-mode .sos-tile.sos-semantic-medical {
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 52%, rgba(254, 226, 226, 0.65) 100%),
    var(--sos-bg) !important;
  border: 1.5px solid #DC2626 !important;
}

body.light-mode .sos-tile.sos-semantic-passport {
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 52%, rgba(224, 242, 254, 0.65) 100%),
    var(--sos-bg) !important;
  border: 1.5px solid #0284C7 !important;
}

body.light-mode .sos-tile.sos-semantic-flight {
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 52%, rgba(254, 243, 199, 0.65) 100%),
    var(--sos-bg) !important;
  border: 1.5px solid #D97706 !important;
}

body.light-mode .sos-tile.sos-semantic-luggage {
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 52%, rgba(204, 251, 241, 0.65) 100%),
    var(--sos-bg) !important;
  border: 1.5px solid #0D9488 !important;
}

body.light-mode .sos-tile.sos-semantic-cdw {
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 52%, rgba(254, 243, 199, 0.65) 100%),
    var(--sos-bg) !important;
  border: 1.5px solid #D97706 !important;
}
body.light-mode .sos-tile-info strong {
  color: #07111F !important;
}
body.light-mode .sos-tile-info span {
  color: #334155 !important;
}
body.light-mode .emergency-phones-card,
body.light-mode .theme-mode-card,
body.light-mode .myspace-utilities-card,
body.light-mode .reminders-card,
body.light-mode .doc-vault-card,
body.light-mode .phrasebook-box,
body.light-mode .diagnostics-card {
  background: #FFFFFF !important;
  border: 1.5px solid #94A3B8 !important;
  color: #07111F !important;
}
body.light-mode .theme-mode-title {
  color: #07111F !important;
}
body.light-mode .theme-segmented-control {
  background: #E2E8F0 !important;
}
body.light-mode .theme-seg-btn {
  color: #334155 !important;
}
body.light-mode .theme-seg-btn.active {
  background: #005FCC !important;
  color: #FFFFFF !important;
}
body.light-mode .phone-box {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}
body.light-mode .phone-box strong {
  color: #B45309 !important;
}

/* Barra Inferior no Modo Outdoor Solar */
body.light-mode .bottom-nav-english {
  background: #FFFFFF !important;
  border: 1.5px solid #94A3B8 !important;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.10) !important;
}
body.light-mode .bottom-nav-english .nav-btn {
  color: #475569 !important;
}
body.light-mode .bottom-nav-english .nav-btn.active {
  color: #005FCC !important;
  background: #E0F2FE !important;
  border-top-color: #005FCC !important;
}

/* Botões Primários no Modo Outdoor Solar (#005FCC com texto branco WCAG AAA) */
body.light-mode .btn-audio-normal,
body.light-mode .btn-action-mastered,
body.light-mode .btn-speak-clerk,
body.light-mode .btn-all-terms,
body.light-mode .video-play-btn,
body.light-mode .btn-primary-hack {
  background: #005FCC !important;
  color: #FFFFFF !important;
  border-color: #004B99 !important;
}

/* ==========================================================================
   ZERO SCROLL TACTICAL CARD (SPEAK & TRAVEL - SISTEMA HOMOLOGADO 2026)
   - Layout 100% compativel com viewport mobile (Zero Scroll)
   - Co-branding Inteligente: Incomum Viagens vs DP Idiomas
   - Cubo 3D Thumbnail + Fonetica [BR] + Audio Player + Inteligencia Turistica
   ========================================================================== */

.zero-scroll-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  gap: 5px !important;
  padding: 8px 10px !important;
}

.hack-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  min-height: 28px;
}

.hack-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hack-brand-logo-img {
  object-fit: contain;
  display: block;
}

.hack-brand-logo-img.brand-incomum {
  height: 19px;
  max-width: 105px;
}

.hack-brand-logo-img.brand-dp {
  height: 22px;
  max-width: 38px;
}

.hack-app-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  font-family: var(--font-main);
}

body.light-mode .hack-app-title {
  color: #0F172A;
}

.hack-pill-badge {
  background: rgba(15, 30, 56, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #FBBF24;
  font-size: 8.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

body.light-mode .hack-pill-badge {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

/* Situational Row: Cubo 3D Thumbnail + Titulo */
.hack-situational-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  background: rgba(6, 15, 30, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 5px 7px;
}

body.light-mode .hack-situational-row {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.hack-cube-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #38BDF8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

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

.hack-situational-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.hack-eyebrow-tag {
  font-size: 7.5px;
  font-weight: 800;
  color: #F59E0B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hack-situation-title {
  font-size: clamp(11.5px, 1.7vh, 13.5px);
  font-weight: 800;
  color: #FFFFFF;
  margin: 1px 0 0 0;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

body.light-mode .hack-situation-title {
  color: #0F172A;
}

.hack-situation-sub {
  font-size: 9.5px;
  color: #94A3B8;
  margin: 1px 0 0 0;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

/* Quadrante Central de Autonomia Comunicativa (Card Amplo com Imagem de Fundo em Alto Destaque) */
.hack-autonomy-box {
  position: relative !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 14px !important;
  padding: 14px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  flex-shrink: 0 !important;
  min-height: 220px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

body.light-mode .hack-autonomy-box {
  border-color: #0284C7 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.hack-autonomy-box .phrase-row {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Glassmorphism nas Frases para máxima legibilidade mantendo a foto 100% visível */
.hack-autonomy-box .phrase-row-pt {
  background: rgba(7, 17, 31, 0.58) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.light-mode .hack-autonomy-box .phrase-row-pt {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: #CBD5E1 !important;
}

.hack-autonomy-box .phrase-row-en {
  background: rgba(7, 17, 31, 0.68) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(56, 189, 248, 0.38) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  margin: 1px 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.light-mode .hack-autonomy-box .phrase-row-en {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: #0284C7 !important;
}

.hack-autonomy-box .phrase-row-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.hack-autonomy-box .flag-bubble-ring {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hack-autonomy-box .phrase-text-pt {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #F1F5F9 !important;
  line-height: 1.35 !important;
}

body.light-mode .hack-autonomy-box .phrase-text-pt {
  color: #0F172A !important;
}

.hack-autonomy-box .phrase-text-en {
  font-size: clamp(15px, 2.2vh, 17.5px) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  line-height: 1.3 !important;
  letter-spacing: -0.2px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

body.light-mode .hack-autonomy-box .phrase-text-en {
  color: #0284C7 !important;
  text-shadow: none !important;
}

.hack-autonomy-box .phrase-phonetic-badge {
  background: rgba(7, 17, 31, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.2px solid rgba(251, 191, 36, 0.5) !important;
  border-radius: 9999px !important;
  padding: 5px 12px !important;
  text-align: center !important;
  color: #FBBF24 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.25px !important;
  margin: 2px 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

body.light-mode .hack-autonomy-box .phrase-phonetic-badge {
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
  color: #B45309 !important;
}

/* Audio Player Neural */
.hack-player-wrap {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hack-player-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 5px;
}

.btn-hack-audio {
  height: 32px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 120ms ease, box-shadow 120ms ease;
  padding: 0 4px;
  user-select: none;
}

.btn-hack-audio:active {
  transform: scale(0.96);
}

.btn-hack-audio.btn-normal {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.btn-hack-audio.btn-slow {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

.btn-hack-audio.btn-180 {
  background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.btn-hack-audio.btn-yt {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Protocolo & Inteligência Turística: Harmonioso, Sem Espaço Morto */
.hack-protocol-box {
  background: rgba(10, 25, 47, 0.92) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 12px !important;
  padding: 12px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

body.light-mode .hack-protocol-box {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

/* Dica de Ouro: Fonte Ampla, Destaque Âmbar/Dourado e Posicionamento Firme */
.hack-gold-tip {
  border-left: 3.5px solid #F59E0B !important;
  padding-left: 10px !important;
  margin: 2px 0 4px 0 !important;
}

.hack-tip-header {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #FBBF24 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.hack-tip-body {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #F8FAFC !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

body.light-mode .hack-tip-body {
  color: #1E293B !important;
}

/* O Que Fazer & Evite: Empilhados Verticalmente (Um Abaixo do Outro) */
.hack-dos-donts-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

.hack-col-do {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(6, 28, 20, 0.92) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 9px !important;
  padding: 8px 11px !important;
}

body.light-mode .hack-col-do {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
}

.hack-col-dont {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(35, 12, 16, 0.92) !important;
  border: 1px solid rgba(225, 29, 72, 0.45) !important;
  border-radius: 9px !important;
  padding: 8px 11px !important;
}

body.light-mode .hack-col-dont {
  background: #FFF1F2 !important;
  border-color: #F43F5E !important;
}

.hack-col-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.hack-col-label.label-do {
  color: #34D399 !important;
}
body.light-mode .hack-col-label.label-do {
  color: #059669 !important;
}

.hack-col-label.label-dont {
  color: #F87171 !important;
}
body.light-mode .hack-col-label.label-dont {
  color: #E11D48 !important;
}

.hack-col-do ul,
.hack-col-dont ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hack-col-do li,
.hack-col-dont li {
  font-size: 11.5px !important;
  line-height: 1.4 !important;
  color: #E2E8F0 !important;
  margin-bottom: 3px !important;
}

body.light-mode .hack-col-do li,
body.light-mode .hack-col-dont li {
  color: #334155 !important;
}

/* Curadoria Tecnica Mentor Bar */
.hack-mentor-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 25, 47, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 3px 6px;
  flex-shrink: 0;
}

body.light-mode .hack-mentor-footer {
  background: #F8FAFC;
  border-color: #F59E0B;
}

.hack-mentor-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #F59E0B;
  object-fit: cover;
  object-position: 50% 10%;
  flex-shrink: 0;
}

.hack-mentor-meta {
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}

.hack-mentor-name {
  font-size: 9px;
  color: #FFFFFF;
}

body.light-mode .hack-mentor-name {
  color: #0F172A;
}

.hack-mentor-role {
  font-size: 7.5px;
  color: #94A3B8;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.btn-hack-share-mini {
  background: transparent;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.85;
}
.btn-hack-share-mini:hover {
  opacity: 1;
}

/* Card Intro / Conclusao Hero Layout */
.hack-hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  text-align: center;
}

.hack-hero-cube {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #38BDF8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hack-hero-cube img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hack-hero-title {
  font-size: clamp(14px, 2.1vh, 18px);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

body.light-mode .hack-hero-title {
  color: #0F172A;
}

.hack-hero-body {
  font-size: clamp(10.5px, 1.55vh, 12px);
  color: #E2E8F0;
  line-height: 1.35;
  max-width: 90%;
  margin: 0;
}

body.light-mode .hack-hero-body {
  color: #334155;
}

.hack-hero-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 120ms ease;
}

.hack-hero-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   MODAL POPUP DE VÍDEO YOUTUBE SHORTS (EM EVIDÊNCIA COM MOLDURA SUTIL)
   ========================================================================== */
.modal-video-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.22s ease-out;
}

.modal-video-popup-overlay.hidden {
  display: none !important;
}

.modal-video-popup-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.modal-video-popup-card {
  width: 100%;
  max-width: 400px;
  height: 82vh;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  background: #040914;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(2, 132, 199, 0.22);
  overflow: hidden;
  position: relative;
  z-index: 2;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-video-popup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(10, 22, 40, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-video-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #FBBF24;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.modal-video-popup-badge .yt-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
}

.btn-close-video-popup {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.2s;
}

.btn-close-video-popup:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #EF4444;
}

.modal-video-popup-viewport {
  flex: 1;
  width: 100%;
  background: #000000;
  position: relative;
}

.modal-video-popup-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.modal-video-popup-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: rgba(10, 22, 40, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.modal-video-caption {
  font-size: 14px;
  color: #F8FAFC;
  font-weight: 700;
  line-height: 1.4;
  width: 100%;
  letter-spacing: 0.2px;
}

.btn-fallback-native:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}

.btn-fallback-native:active {
  transform: scale(0.97);
}

/* ==========================================================================
   REFINAMENTO DO CARD DA FRASE (ZERO DESCONFIGURAÇÃO • NÚMERO 01/13 DISCRETO)
   ========================================================================== */
.phrase-card-topic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.phrase-card-topic-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #FBBF24;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex: 1;
  min-width: 0;
}

.phrase-card-topic-name .svg-story-vec {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

/* Número discreto no canto (ex: 01/13) sem formato de botão pesado */
.phrase-ep-number-corner {
  font-size: 12.5px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

body.light-mode .phrase-ep-number-corner {
  color: #475569;
  background: rgba(0, 0, 0, 0.05);
}

/* Bloco espaçoso e nobre para a frase em português */
.phrase-pt-meaning-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  border-left: 3px solid #38BDF8;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.phrase-pt-meaning-card .pt-flag {
  font-size: 15px;
  line-height: 1.35;
  flex-shrink: 0;
}

.phrase-pt-meaning-card .pt-text {
  font-size: 14px;
  font-weight: 600;
  color: #E2E8F0;
  line-height: 1.4;
}

body.light-mode .phrase-pt-meaning-card {
  background: rgba(241, 245, 249, 0.95);
  border-left-color: #0284C7;
}

body.light-mode .phrase-pt-meaning-card .pt-text {
  color: #0F172A;
}

/* Ajuste no topic-banner-ep (Número compacto no topo para não espremer o título) */
#topic-banner-ep {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ==============================================================
   JURÍDICO & POLÍTICA DE PRIVACIDADE LGPD (MY SPACE & MODAL 9)
   ============================================================== */

/* Card na aba My Space */
.legal-lgpd-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--vip-card, #0F172A);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0 20px 0;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.legal-lgpd-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.legal-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  flex-shrink: 0;
}

.svg-inline-legal {
  width: 22px;
  height: 22px;
}

.legal-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: 0.2px;
}

.legal-card-sub {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.3;
}

.btn-legal-arrow {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38BDF8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-lgpd-card:hover .btn-legal-arrow {
  background: #38BDF8;
  color: #0B1120;
}

/* Light mode adapt */
body.light-mode .legal-lgpd-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode .legal-card-title {
  color: #0F172A;
}

body.light-mode .legal-card-sub {
  color: #64748B;
}

body.light-mode .legal-icon-wrap {
  background: #E0F2FE;
  border-color: #BAE6FD;
  color: #0284C7;
}

body.light-mode .btn-legal-arrow {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0284C7;
}

/* Modal 9 de Termos & Privacidade LGPD */
.modal-terms-card {
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #0B1120;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.modal-terms-card .util-header {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
}

.terms-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terms-shield-icon {
  font-size: 24px;
}

.terms-modal-title-wrap strong {
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
  display: block;
}

.terms-modal-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #38BDF8;
  letter-spacing: 0.3px;
}

.terms-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #CBD5E1;
  font-size: 12.5px;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
}

.terms-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.terms-green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
}

.terms-section h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #F1F5F9;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.terms-section p {
  margin: 0 0 6px 0;
  color: #94A3B8;
}

.terms-bullet-list {
  margin: 6px 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-bullet-list li {
  color: #CBD5E1;
}

.terms-bullet-list strong {
  color: #F8FAFC;
}

.terms-contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 11.5px;
}

.terms-footer-seal {
  text-align: center;
  padding: 10px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 8px;
  color: #7DD3FC;
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 6px;
}

.terms-modal-actions {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-terms-accept {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0284C7, #0369A1);
  border: 1px solid #38BDF8;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-terms-accept:hover {
  background: linear-gradient(135deg, #0369A1, #075985);
  transform: translateY(-1px);
}

/* Light mode for modal */
body.light-mode .modal-terms-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

body.light-mode .modal-terms-card .util-header,
body.light-mode .terms-modal-actions {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-mode .terms-modal-title-wrap strong,
body.light-mode .terms-section h4,
body.light-mode .terms-bullet-list strong {
  color: #0F172A;
}

body.light-mode .terms-modal-body,
body.light-mode .terms-section p,
body.light-mode .terms-bullet-list li {
  color: #334155;
}

body.light-mode .terms-contact-row {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #1E293B;
}

/* ==============================================================
   CARD DE ACESSO & LOGIN VIP (GATE DE AUTENTICAÇÃO B2B)
   ============================================================== */

.access-gate-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  width: 100vw !important;
  height: 100% !important;
  height: 100dvh !important;
  z-index: 100000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at 50% 18%, #1E293B 0%, #0B1120 80%) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: max(16px, env(safe-area-inset-top, 16px)) 16px max(24px, env(safe-area-inset-bottom, 24px)) 16px !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.access-gate-overlay.auth-granted,
.access-gate-overlay.hidden,
html.auth-pre-granted #access-gate-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.access-gate-container {
  width: 100% !important;
  max-width: 380px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
  margin: auto auto !important;
  padding: 0 !important;
}

/* Brand Header */
.gate-brand-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gate-logos-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.gate-partner-logo {
  height: 32px;
  object-fit: contain;
  filter: brightness(1.1);
}

.gate-brand-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
}

.gate-app-icon-wrap {
  margin: 4px 0 2px 0;
}

.gate-app-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(2, 132, 199, 0.45));
}

.gate-title {
  font-size: 24px;
  font-weight: 900;
  color: #F8FAFC;
  letter-spacing: -0.3px;
  margin: 0;
}

.gate-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #38BDF8;
  letter-spacing: 0.4px;
  margin: 0;
}

/* Login Card Box */
.gate-card {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 20px !important;
  padding: 20px 18px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(2, 132, 199, 0.12) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  transition: transform 0.2s ease;
}

.gate-input-group,
.gate-input-wrap,
.gate-input-wrap input,
.btn-gate-submit {
  box-sizing: border-box !important;
  width: 100% !important;
}

.gate-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.gate-svg-lock {
  width: 14px;
  height: 14px;
}

.gate-card-desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.45;
  margin-bottom: 16px;
}

/* Form & Inputs */
.gate-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  text-align: left;
}

.gate-input-group label {
  font-size: 11px;
  font-weight: 700;
  color: #CBD5E1;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.gate-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gate-input-ico {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gate-input-wrap input {
  width: 100%;
  background: #0B1120;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 40px 12px 38px;
  font-size: 16px !important; /* 16px obrigatório no mobile para evitar zoom automático */
  color: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  touch-action: manipulation;
}

@media (max-height: 720px) {
  .gate-brand-header {
    gap: 4px;
  }
  .gate-logos-row {
    gap: 10px;
    margin-bottom: 2px;
  }
  .gate-partner-logo {
    height: 24px;
  }
  .gate-brand-divider {
    height: 18px;
  }
  .gate-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .gate-title {
    font-size: 20px;
  }
  .gate-sub {
    font-size: 10.5px;
  }
  .gate-card {
    padding: 14px 16px;
  }
  .gate-card-desc {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .gate-input-group {
    margin-bottom: 10px;
    gap: 4px;
  }
  .gate-input-wrap input {
    padding: 10px 38px 10px 36px;
  }
  .gate-btn-submit {
    padding: 11px 16px;
  }
}

.gate-input-wrap input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  background: #080D1A;
}

.gate-input-wrap input::placeholder {
  color: #475569;
}

.btn-toggle-gate-pass {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #64748B;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.btn-toggle-gate-pass:hover {
  color: #38BDF8;
}

.btn-toggle-gate-pass svg {
  width: 18px;
  height: 18px;
}

/* Feedback Messages */
.gate-error-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
  font-size: 11.5px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.gate-err-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.gate-success-box {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6EE7B7;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.gate-succ-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* Submit Button */
.btn-gate-submit {
  width: 100%;
  background: linear-gradient(135deg, #0284C7, #0369A1);
  border: 1px solid #38BDF8;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 13px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s ease;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
  margin-top: 4px;
}

.btn-gate-submit:hover {
  background: linear-gradient(135deg, #0369A1, #075985);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.5);
}

.btn-gate-submit:active {
  transform: translateY(0);
}

.gate-card-footer {
  text-align: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  font-weight: 600;
  color: #64748B;
}

/* Support footer */
.gate-support-info {
  text-align: center;
  font-size: 11px;
  color: #64748B;
  line-height: 1.45;
  max-width: 360px;
}

.gate-support-info strong {
  color: #94A3B8;
}

/* Shake Animation on Error */
.gate-shake {
  animation: gateCardShake 0.45s ease-in-out;
}

@keyframes gateCardShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* REGRA SUPREMA DE OCULTAÇÃO DE CABEÇALHO EM MODOS DE EMERGÊNCIA & BALCÃO */
body.panic-mode-active .app-header-single,
body.panic-mode-active .hero-search-bar-wrap,
body.panic-mode-active .bottom-nav-english,
body.modal-180-active .app-header-single,
body.modal-180-active .hero-search-bar-wrap,
body.modal-180-active .bottom-nav-english {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==============================================================
   SELETOR DINÂMICO MULTI-VELOCIDADE (0.50x, 0.75x, 0.88x, 1.00x)
   ============================================================== */
.speed-selector-wrap {
  margin: 10px 0 10px 0;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  box-sizing: border-box;
}

.speed-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.speed-header-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
}

.speed-current-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38BDF8;
}

.speed-chips-bar {
  display: flex;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.speed-chip {
  flex: 1;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(30, 41, 59, 0.7);
  color: #E2E8F0;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.18s ease-in-out;
  outline: none;
}

.speed-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #FFFFFF;
}

.speed-chip.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45) !important;
  transform: translateY(-1px);
}

/* ==============================================================
   SELETOR DE VELOCIDADES NO MODO PÂNICO (#modal-panic)
   ============================================================== */
.panic-speed-chips-bar {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  width: 100%;
  max-width: 320px;
}

.panic-speed-chip {
  flex: 1;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.28);
  color: #FFFFFF;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.18s ease;
  outline: none;
}

.panic-speed-chip:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: #FFFFFF;
}

.panic-speed-chip.active {
  background: #FFFFFF !important;
  color: #E85D04 !important;
  border-color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  transform: scale(1.05);
}

/* ==============================================================
   ESTRELA DE FAVORITO NO CANTO OPOSTO À FRASE EM PORTUGUÊS
   ============================================================== */
.phrase-pt-meaning-card {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  position: relative !important;
}

.phrase-pt-main-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.btn-fav-star-corner {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  margin-top: -2px;
}

.btn-fav-star-corner:hover {
  transform: scale(1.25);
  color: #FBBF24;
}

.btn-fav-star-corner.active {
  color: #FBBF24 !important;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.75);
  transform: scale(1.18);
}

/* ==============================================================
   PADRÃO CLEAN DE PRACTICE CARD (PROPORÇÃO ÁUREA + BANDEIRAS BOLINHA)
   ============================================================== */
/* Card de Frase e Autonomia Comunicativa (Sempre Aberto, Amplo e Simétrico) */
.phrase-card-clean {
  width: 100% !important;
  background: rgba(11, 22, 40, 0.95) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
  box-sizing: border-box !important;
}

body.light-mode .phrase-card-clean {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.phrase-card-clean .phrase-row-pt {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(15, 23, 42, 0.70) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 10px !important;
  padding: 7px 11px !important;
  gap: 10px !important;
}

body.light-mode .phrase-card-clean .phrase-row-pt {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}

.phrase-card-clean .phrase-text-pt {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #E2E8F0 !important;
  line-height: 1.35 !important;
}

body.light-mode .phrase-card-clean .phrase-text-pt {
  color: #1E293B !important;
}

.phrase-card-clean .phrase-row-en {
  display: flex !important;
  align-items: center !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 10px !important;
  padding: 8px 11px !important;
  gap: 10px !important;
}

body.light-mode .phrase-card-clean .phrase-row-en {
  background: #F8FAFC !important;
  border-color: #0284C7 !important;
}

.phrase-card-clean .phrase-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.phrase-card-clean .phrase-text-en {
  font-size: clamp(15px, 2.2vh, 17.5px) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  line-height: 1.3 !important;
  letter-spacing: -0.15px !important;
}

body.light-mode .phrase-card-clean .phrase-text-en {
  color: #0284C7 !important;
}

.phrase-card-clean .phrase-phonetic-badge {
  background: rgba(7, 16, 31, 0.95) !important;
  border: 1.2px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #FCD34D !important;
  text-align: center !important;
  letter-spacing: 0.3px !important;
  margin: 1px 0 !important;
}

body.light-mode .phrase-card-clean .phrase-phonetic-badge {
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
  color: #B45309 !important;
}

.phrase-card-clean .phrase-dual-audio-bar {
  display: flex !important;
  gap: 8px !important;
  margin-top: 2px !important;
}

.phrase-card-clean .btn-audio-normal {
  flex: 1 1 auto !important;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  height: 38px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4) !important;
  transition: transform 100ms ease, background 120ms ease !important;
}

.phrase-card-clean .btn-audio-normal:active {
  transform: scale(0.97) !important;
  background: #0369A1 !important;
}

.phrase-card-clean .btn-audio-slow {
  flex: 0 0 auto !important;
  background: rgba(30, 41, 59, 0.9) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

body.light-mode .phrase-card-clean .btn-audio-slow {
  background: #E2E8F0 !important;
  color: #0369A1 !important;
  border-color: #CBD5E1 !important;
}

.speed-chips-bar.story-speed-chips {
  display: flex !important;
  gap: 6px !important;
  justify-content: space-between !important;
  margin-top: 4px !important;
}

.speed-chips-bar.story-speed-chips .speed-chip {
  flex: 1 1 0% !important;
  height: 30px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
}

body.light-mode .speed-chips-bar.story-speed-chips .speed-chip {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

.speed-chips-bar.story-speed-chips .speed-chip.active {
  background: #38BDF8 !important;
  color: #07111F !important;
  font-weight: 800 !important;
  border-color: #BAE6FD !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5) !important;
}

body.light-mode .speed-chips-bar.story-speed-chips .speed-chip.active {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0369A1 !important;
}

/* Docks Inferiores: Sempre Ancorados na Base da Tela (Thumb Zone 100% Confiável) */
#mytrip-bottom-dock,
#hacks-bottom-dock {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  width: 100% !important;
  border-radius: 14px 14px 0 0 !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
}

#glossary-detail-view {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}

#glossary-detail-view #glossary-items-container {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 8px 10px !important;
}



/* ==============================================================
   ESTEIRA DE BOLINHAS (MY TRIP & TRAVEL HACKS): PADRONIZAÇÃO RIGOROSA 100%
   TAMANHO UNIFORME (28px), DESENHO UNIFICADO, ZERO BARRA DE ROLAGEM
   ============================================================== */

/* Contêiner de Bolinhas do My Trip (#stories-icons-track) e Travel Hacks (#hacks-dots-container) */
#module-detail-view .stories-icons-strip,
#module-detail-view #stories-icons-track,
.stories-icons-strip.dock-dots-strip,
.dock-dots-strip,
.dock-dots-strip #stories-icons-track,
#hacks-detail-view .hacks-dots-bar-wrap,
#hacks-detail-view .hacks-dots-bar,
#hacks-detail-view #hacks-dots-container,
.hacks-dots-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  width: 100% !important;
  padding: 4px 2px !important;
  box-sizing: border-box !important;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE / Edge */
}

/* Ocultação Absoluta da Barra de Rolagem em Todos os Navegadores */
#stories-icons-track::-webkit-scrollbar,
.stories-icons-strip::-webkit-scrollbar,
.dock-dots-strip::-webkit-scrollbar,
.hacks-dots-bar-wrap::-webkit-scrollbar,
.hacks-dots-bar::-webkit-scrollbar,
#hacks-dots-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* BOTÕES CIRCULARES DAS BOLINHAS: TAMANHO E DESENHO 100% UNIFORMIZADOS (28px) */
.story-dot-num,
.h-dot,
.hack-dot {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: #0B192E !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  color: #94A3B8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.4) !important;
  transform: none !important; /* ZERO distorção de escala: mantém 100% uniforme com as outras */
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease !important;
  user-select: none !important;
}

/* Bolinha Ativa / Em Foco: Destaque Cyan VIP Idêntico nos Dois Módulos (Zero Scale) */
.story-dot-num.active,
.h-dot.active,
.hack-dot.active {
  background: #38BDF8 !important;
  color: #031326 !important;
  border-color: #BAE6FD !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65) !important;
  transform: none !important;
  z-index: 2 !important;
}

/* Bolinhas Visitadas / Concluídas: Idênticas nos Dois Módulos */
.story-dot-num.visited,
.h-dot.visited,
.hack-dot.visited {
  background: rgba(14, 165, 233, 0.16) !important;
  color: #7DD3FC !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  transform: none !important;
}

/* Anulação Completa de Classes Divergentes (intro-dot, concl-dot) */
.h-dot.intro-dot,
.h-dot.concl-dot,
.hack-dot.intro-dot,
.hack-dot.concl-dot {
  background: #0B192E !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  color: #94A3B8 !important;
  transform: none !important;
}

.h-dot.intro-dot.visited,
.h-dot.concl-dot.visited,
.hack-dot.intro-dot.visited,
.hack-dot.concl-dot.visited {
  background: rgba(14, 165, 233, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #7DD3FC !important;
  transform: none !important;
}

.h-dot.intro-dot.active,
.h-dot.concl-dot.active,
.hack-dot.intro-dot.active,
.hack-dot.concl-dot.active {
  background: #38BDF8 !important;
  color: #031326 !important;
  border-color: #BAE6FD !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65) !important;
  transform: none !important;
}

/* Modo Solar (Light Mode): Uniformizado nos Dois Módulos */
body.light-mode .story-dot-num,
body.light-mode .h-dot,
body.light-mode .hack-dot {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.light-mode .story-dot-num.visited,
body.light-mode .h-dot.visited,
body.light-mode .hack-dot.visited {
  background: #E0F2FE !important;
  border-color: #7DD3FC !important;
  color: #0284C7 !important;
  transform: none !important;
}

body.light-mode .story-dot-num.active,
body.light-mode .h-dot.active,
body.light-mode .hack-dot.active {
  background: #0284C7 !important;
  border-color: #0369A1 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.45) !important;
  transform: none !important;
}

/* Topbar Minimalista/* Topbar Minimalista: Botão Voltar Circular com Apenas a Seta + Título do Módulo Amplo */
.module-detail-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 3px 2px 5px 2px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
}

.module-detail-topbar .btn-back-hub {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  color: #38BDF8 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  transition: all 120ms ease !important;
}

.module-detail-topbar .btn-back-hub:active {
  transform: scale(0.92) !important;
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38BDF8 !important;
}

.module-detail-topbar .btn-back-hub svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.8 !important;
  color: #38BDF8 !important;
  display: block !important;
}

.module-detail-topbar .module-title-badge {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 48px) !important;
  text-align: right !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #FCD34D !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: 0.3px !important;
}



/* ==============================================================
   DOCK INFERIOR DO GLOSSÁRIO: EXATAMENTE 9 SITUAÇÕES EM LINHA ÚNICA
   (TODOS REMOVIDO, ZERO QUEBRA DE LINHA, SIMETRIA ABSOLUTA)
   ============================================================== */

.glossary-dock-bottom {
  background: rgba(4, 10, 20, 0.96) !important;
  border-top: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-bottom: none !important;
  padding: 6px 6px !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55) !important;
  margin-top: auto !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#glossary-category-chips,
.glossary-dock-bottom .bible-thumb-strip,
.glossary-dock-bottom .dock-category-pills {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 3px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

#glossary-category-chips .l-tab,
.glossary-dock-bottom .l-tab {
  width: 100% !important;
  min-width: 0 !important;
  padding: 6px 1px 5px 1px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  border-radius: 9px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: rgba(11, 25, 46, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-top: 2.5px solid var(--tab-c, #38BDF8) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  cursor: pointer !important;
  transition: all 140ms ease !important;
}

#glossary-category-chips .l-tab.active,
.glossary-dock-bottom .l-tab.active {
  background: rgba(245, 158, 11, 0.22) !important;
  border: 1.5px solid #FCD34D !important;
  border-top: 2.5px solid var(--tab-c, #FCD34D) !important;
  border-bottom: 1.5px solid #FCD34D !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45) !important;
  transform: translateY(-1px) !important;
}

#glossary-category-chips .rem-tab-ico,
.glossary-dock-bottom .rem-tab-ico {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

#glossary-category-chips .rem-tab-lbl,
.glossary-dock-bottom .rem-tab-lbl {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

/* ==============================================================
   MY TRIP: EXPERIÊNCIA INTEGRADA DE VÍDEO OFICIAL + CHAT BUBBLES + DOCK
   ============================================================== */

/* 1. ESTRUTURA GERAL DA TELA INTERNA DO MÓDULO (#module-detail-view) */
#module-detail-view {
  height: calc(100dvh - 120px) !important;
  max-height: calc(100dvh - 120px) !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

#module-detail-view.hidden {
  display: none !important;
}

#module-detail-view .module-detail-topbar {
  flex-shrink: 0 !important;
  margin-bottom: 4px !important;
}

/* Área de Rolagem Natural com Momentum Suave */
#module-detail-view .module-detail-content-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  padding: 2px 4px 10px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* 2. CARD DO PLAYER DO YOUTUBE SHORTS EM DESTAQUE NO TOPO */
#module-detail-view #story-player-box {
  display: block !important;
  width: 100% !important;
  max-width: 532px !important;
  margin: 0 auto 4px auto !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  background: #000000 !important;
  flex-shrink: 0 !important;
}

#module-detail-view .story-video-viewport {
  width: 100% !important;
  border-radius: 13px !important;
  overflow: hidden !important;
}

#module-detail-view .video-simulation-stage {
  position: relative !important;
  width: 100% !important;
  height: 185px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

#module-detail-view .video-simulation-scrim {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.72) 0%, rgba(3, 7, 18, 0.22) 45%, rgba(3, 7, 18, 0.90) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

#module-detail-view .video-sim-topbar,
#module-detail-view .video-sim-center,
#module-detail-view .video-sim-bottom {
  position: relative !important;
  z-index: 2 !important;
}

#module-detail-view .video-sim-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

#module-detail-view .video-sim-Cast {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#module-detail-view .video-sim-Cast strong {
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #F8FAFC !important;
}

#module-detail-view .video-sim-Cast small {
  display: block !important;
  font-size: 9.5px !important;
  color: #94A3B8 !important;
}

#module-detail-view .video-sim-live-pill {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  letter-spacing: 0.4px !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45) !important;
}

#module-detail-view .video-sim-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: auto 0 !important;
}

#module-detail-view .video-center-play-orb {
  width: 50px !important;
  height: 50px !important;
  font-size: 20px !important;
  border-radius: 50% !important;
  background: rgba(220, 38, 38, 0.92) !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.65), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  transition: transform 120ms ease, background 120ms ease !important;
}

#module-detail-view .video-center-play-orb:hover,
#module-detail-view .video-center-play-orb:active {
  transform: scale(1.08) !important;
  background: #EF4444 !important;
}

#module-detail-view .video-center-play-orb.playing {
  background: #0284C7 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7) !important;
}

#module-detail-view .video-sim-status-tag {
  margin-top: 5px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #F8FAFC !important;
  background: rgba(0, 0, 0, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  backdrop-filter: blur(4px) !important;
}

#module-detail-view .video-sim-bottom {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

#module-detail-view .video-badge {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #38BDF8 !important;
  letter-spacing: 0.5px !important;
}

#module-detail-view .video-headline {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

#module-detail-view .video-story-frame .story-phrase-lead {
  display: none !important;
}

/* 3. BALÕES DE CONVERSA EM FORMATO CHAT COM CAUDAS ELEGANTES */
.conversation-bubbles-stage {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 2px 2px !important;
}

.chat-bubble-row {
  width: 100% !important;
  display: flex !important;
  box-sizing: border-box !important;
}

.chat-bubble-pt-row {
  justify-content: flex-start !important;
}

.chat-bubble-en-row {
  justify-content: flex-end !important;
}

.chat-bubble {
  position: relative !important;
  max-width: 92% !important;
  box-sizing: border-box !important;
  transition: transform 150ms ease !important;
}

/* Balão Português (Esquerda): Arredondado com Ponta Evidente para a Esquerda */
.chat-bubble-pt {
  background: rgba(11, 23, 42, 0.95) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 18px 18px 18px 4px !important;
  padding: 10px 14px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

/* Ponta Externa (Borda) para a Esquerda */
.chat-bubble-pt::before {
  content: "" !important;
  position: absolute !important;
  bottom: 0px !important;
  left: -9px !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 10px 12px 0 !important;
  border-color: transparent rgba(148, 163, 184, 0.35) transparent transparent !important;
}

/* Ponta Interna (Preenchimento) para a Esquerda */
.chat-bubble-pt::after {
  content: "" !important;
  position: absolute !important;
  bottom: 1.5px !important;
  left: -7px !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 8px 10px 0 !important;
  border-color: transparent rgba(11, 23, 42, 0.98) transparent transparent !important;
}

body.light-mode .chat-bubble-pt {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}

body.light-mode .chat-bubble-pt::before {
  border-color: transparent #CBD5E1 transparent transparent !important;
}

body.light-mode .chat-bubble-pt::after {
  border-color: transparent #F1F5F9 transparent transparent !important;
}

/* Balão Inglês (Direita): Arredondado com Ponta Evidente para a Direita + Alto Destaque */
.chat-bubble-en {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.28) 0%, rgba(14, 165, 233, 0.16) 100%), rgba(7, 17, 31, 0.96) !important;
  border: 1.5px solid #38BDF8 !important;
  border-radius: 18px 18px 4px 18px !important;
  padding: 12px 16px !important;
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.25) !important;
}

/* Ponta Externa (Borda) para a Direita */
.chat-bubble-en::before {
  content: "" !important;
  position: absolute !important;
  bottom: 0px !important;
  right: -9px !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 0 12px 10px !important;
  border-color: transparent transparent transparent #38BDF8 !important;
}

/* Ponta Interna (Preenchimento) para a Direita */
.chat-bubble-en::after {
  content: "" !important;
  position: absolute !important;
  bottom: 1.5px !important;
  right: -7px !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 0 10px 8px !important;
  border-color: transparent transparent transparent rgba(7, 17, 31, 0.98) !important;
}

body.light-mode .chat-bubble-en {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
}

body.light-mode .chat-bubble-en::before {
  border-color: transparent transparent transparent #0284C7 !important;
}

body.light-mode .chat-bubble-en::after {
  border-color: transparent transparent transparent #E0F2FE !important;
}

/* Metadados do Balão */
.chat-bubble-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 5px !important;
}

.chat-bubble-meta-en {
  justify-content: flex-end !important;
}

.chat-bubble-speaker-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.chat-speaker-label {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #94A3B8 !important;
}

.chat-bubble-en .chat-speaker-label {
  color: #38BDF8 !important;
}

/* 4. BANDEIRAS REDONDAS DO BRASIL E ESTADOS UNIDOS */
.flag-bubble-ring {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  flex-shrink: 0 !important;
}

.flag-bubble-svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* 5. TIPOGRAFIA DAS FRASES */
.chat-bubble-text-pt {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #E2E8F0 !important;
  line-height: 1.35 !important;
}

body.light-mode .chat-bubble-text-pt {
  color: #0F172A !important;
}

.chat-bubble-text-en {
  font-size: clamp(17px, 2.3vh, 20px) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  line-height: 1.3 !important;
  letter-spacing: -0.2px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

body.light-mode .chat-bubble-text-en {
  color: #0284C7 !important;
  text-shadow: none !important;
}

/* Botão de Estrela de Favorito no Canto */
.btn-fav-star-corner {
  background: transparent !important;
  border: none !important;
  font-size: 16px !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: transform 120ms ease, color 120ms ease !important;
}

.btn-fav-star-corner.active {
  color: #F59E0B !important;
  transform: scale(1.15) !important;
}

/* 6. BANNER DA EQUIVALÊNCIA FONÉTICA BRASILEIRA */
.chat-phonetic-banner {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(7, 16, 31, 0.94) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.50) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body.light-mode .chat-phonetic-banner {
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
}

.chat-phonetic-banner .phonetic-icon {
  font-size: 15px !important;
}

.chat-phonetic-banner .phonetic-text {
  font-size: clamp(13px, 1.8vh, 15px) !important;
  font-weight: 700 !important;
  color: #FCD34D !important;
  letter-spacing: 0.35px !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

body.light-mode .chat-phonetic-banner .phonetic-text {
  color: #B45309 !important;
}

/* 7. BOTÕES DE VELOCIDADE COM SÍMBOLO DE PLAY ▶ */
.story-speed-chips {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 2px !important;
}

.story-speed-chips .speed-chip {
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.30) !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 130ms ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.story-speed-chips .speed-chip:active {
  transform: scale(0.96) !important;
}

body.light-mode .story-speed-chips .speed-chip {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

.story-speed-chips .speed-chip.active {
  background: #38BDF8 !important;
  color: #07111F !important;
  font-weight: 900 !important;
  border-color: #BAE6FD !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6) !important;
}

body.light-mode .story-speed-chips .speed-chip.active {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0369A1 !important;
}

/* 8. RESTAURAÇÃO COMPLETA DO DOCK INFERIOR HOMOLOGADO (#mytrip-bottom-dock) */
.module-dock-bottom {
  width: 100% !important;
  max-width: 532px !important;
  margin: auto auto 0 auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: rgba(4, 10, 20, 0.98) !important;
  border-top: 1.5px solid rgba(56, 189, 248, 0.32) !important;
  padding: 6px 12px 6px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.65) !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
}

.dock-nav-controls {
  display: none !important;
}

body.light-mode .module-dock-bottom {
  background: #FFFFFF !important;
  border-top-color: #CBD5E1 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
}

.dock-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 2px 2px 2px !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}

.dock-module-label {
  color: #94A3B8 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.2px !important;
}

body.light-mode .dock-module-label {
  color: #64748B !important;
}

.dock-active-topic {
  color: #38BDF8 !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 60% !important;
}

body.light-mode .dock-active-topic {
  color: #0284C7 !important;
}

/* Trilho de Bolinhas do Dock: 15 Bolinhas Perfeitamente Contidas no Card */
.dock-dots-strip,
#stories-icons-track {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 4px 2px !important;
}

.dock-dots-strip::-webkit-scrollbar,
#stories-icons-track::-webkit-scrollbar {
  display: none !important;
}

.story-dot-num {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  background: #0B192E !important;
  border: 1.5px solid #1E3A5F !important;
  color: #94A3B8 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: all 120ms ease !important;
  padding: 0 !important;
  box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.3) !important;
}

.story-dot-num.visited {
  background: rgba(14, 165, 233, 0.2) !important;
  border-color: #38BDF8 !important;
  color: #7DD3FC !important;
}

.story-dot-num.active {
  background: #38BDF8 !important;
  border-color: #BAE6FD !important;
  color: #030712 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.65) !important;
  transform: scale(1.08) !important;
}

body.light-mode .story-dot-num {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

body.light-mode .story-dot-num.active {
  background: #0284C7 !important;
  border-color: #0369A1 !important;
  color: #FFFFFF !important;
}

/* Controles de Navegação (Anterior / Contador / Próximo) */
.dock-nav-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding-top: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-dock-nav {
  flex: 1 1 0% !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #0B192E !important;
  border: 1px solid #1E3A5F !important;
  color: #E2E8F0 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  transition: all 120ms ease !important;
}

.btn-dock-nav:active {
  transform: scale(0.97) !important;
}

.btn-dock-next {
  background: rgba(14, 165, 233, 0.22) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #38BDF8 !important;
}

body.light-mode .btn-dock-nav {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #1E293B !important;
}

body.light-mode .btn-dock-next {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
  color: #0284C7 !important;
}

.dock-step-counter {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #94A3B8 !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
}

body.light-mode .dock-step-counter {
  color: #64748B !important;
}


/* ==============================================================
   TRAVEL HACKS: DOCK SLIM RETANGULAR (15 BOLINHAS 100% VISÍVEIS)
   E CURADORIA TÉCNICA / HOSTS EM AMPLO DESTAQUE (MARCUS STERLING)
   ============================================================== */

/* 1. DOCK SLIM RETANGULAR ESGUIO (SEM BOTÕES ANTERIOR/PRÓXIMO REDUNDANTES) */
.hacks-bottom-dock-slim,
#hacks-bottom-dock {
  width: 100% !important;
  max-width: 532px !important;
  margin: auto auto 0 auto !important;
  box-sizing: border-box !important;
  padding: 6px 10px !important;
  background: rgba(4, 10, 20, 0.96) !important;
  border-top: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 12px 12px 0 0 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5) !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
  display: block !important;
}

body.light-mode .hacks-bottom-dock-slim,
body.light-mode #hacks-bottom-dock {
  background: #FFFFFF !important;
  border-top-color: #CBD5E1 !important;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08) !important;
}

/* 2. DISTRIBUIÇÃO DAS 15 BOLINHAS: 100% VISÍVEIS NA LARGURA DA TELA SEM ROLAGEM */
#hacks-detail-view .hacks-dots-bar-wrap,
#hacks-detail-view .hacks-dots-bar,
#hacks-dots-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  overflow: visible !important;
}

#hacks-dots-container .hack-dot,
#hacks-dots-container .h-dot {
  flex: 0 0 auto !important;
  width: clamp(19px, 5.2vw, 22px) !important;
  height: clamp(19px, 5.2vw, 22px) !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: #0B192E !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  color: #94A3B8 !important;
  font-size: clamp(8px, 2.1vw, 9.5px) !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 120ms ease !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

#hacks-dots-container .hack-dot.visited,
#hacks-dots-container .h-dot.visited {
  background: rgba(14, 165, 233, 0.22) !important;
  border-color: #38BDF8 !important;
  color: #7DD3FC !important;
}

#hacks-dots-container .hack-dot.active,
#hacks-dots-container .h-dot.active {
  background: #38BDF8 !important;
  border-color: #BAE6FD !important;
  color: #030712 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7) !important;
  transform: scale(1.12) !important;
}

body.light-mode #hacks-dots-container .hack-dot,
body.light-mode #hacks-dots-container .h-dot {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

body.light-mode #hacks-dots-container .hack-dot.active,
body.light-mode #hacks-dots-container .h-dot.active {
  background: #0284C7 !important;
  border-color: #0369A1 !important;
  color: #FFFFFF !important;
}

/* 3. CURADORIA TÉCNICA AMPLIADA EM TODOS OS CARDS (MARCUS STERLING & MENTORES) */
.hack-mentor-footer {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(10, 25, 47, 0.95) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.55) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35) !important;
  margin-top: 4px !important;
}

body.light-mode .hack-mentor-footer {
  background: #FFFBEB !important;
  border-color: #F59E0B !important;
}

.hack-mentor-avatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  border: 2px solid #F59E0B !important;
  object-fit: cover !important;
  object-position: 50% 10% !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.hack-mentor-meta {
  flex: 1 !important;
  min-width: 0 !important;
  line-height: 1.25 !important;
}

.hack-mentor-name {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
}

.hack-mentor-name strong {
  color: #FCD34D !important;
  font-weight: 800 !important;
}

body.light-mode .hack-mentor-name {
  color: #0F172A !important;
}

body.light-mode .hack-mentor-name strong {
  color: #B45309 !important;
}

.hack-mentor-role {
  font-size: 9.5px !important;
  color: #CBD5E1 !important;
  line-height: 1.2 !important;
  margin-top: 1px !important;
  white-space: normal !important;
}

body.light-mode .hack-mentor-role {
  color: #64748B !important;
}

/* 4. SUPER CARD DE DESTAQUE VIP DO HOST (CARDS DE INÍCIO E FIM DE MÓDULO) */
.hack-host-vip-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: linear-gradient(135deg, rgba(15, 30, 55, 0.96) 0%, rgba(7, 16, 31, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.65) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.15) !important;
  margin-top: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

body.light-mode .hack-host-vip-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
  border-color: #F59E0B !important;
}

.host-vip-avatar-wrap {
  position: relative !important;
  flex-shrink: 0 !important;
}

.host-vip-avatar {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: 2.5px solid #F59E0B !important;
  object-fit: cover !important;
  object-position: 50% 10% !important;
  display: block !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4) !important;
}

.host-vip-badge {
  position: absolute !important;
  bottom: -4px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #F59E0B !important;
  color: #07111F !important;
  font-size: 7.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.4px !important;
  padding: 1px 5px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

.host-vip-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.host-vip-kicker {
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  color: #F59E0B !important;
  text-transform: uppercase !important;
  margin-bottom: 2px !important;
}

.host-vip-name {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  line-height: 1.2 !important;
}

body.light-mode .host-vip-name {
  color: #0F172A !important;
}

.host-vip-role {
  font-size: 10.5px !important;
  color: #E2E8F0 !important;
  line-height: 1.25 !important;
  margin-top: 3px !important;
}

body.light-mode .host-vip-role {
  color: #334155 !important;
}

.host-vip-partner {
  font-size: 9.5px !important;
  color: #94A3B8 !important;
  margin-top: 3px !important;
}

body.light-mode .host-vip-partner {
  color: #64748B !important;
}

.host-vip-partner strong {
  color: #38BDF8 !important;
}

body.light-mode .host-vip-partner strong {
  color: #0284C7 !important;
}


/* ==============================================================
   REFINAMENTO CIRÚRGICO TRAVEL HACKS (v10.18):
   - CARD DE IMAGEM ABAIXADO, MAIS ESTREITO E MAIOR PARA BAIXO
   - DICA DE OURO COM FONTE REDUZIDA E EQUILIBRADA
   - 15 BOLINHAS 100% VISÍVEIS EM QUALQUER SMARTPHONE
   ============================================================== */

/* Card da Imagem de Fundo: Abaixado, Mais Estreito e Maior para Baixo */
.hack-autonomy-box {
  width: 95% !important;
  margin: 8px auto 6px auto !important;
  min-height: 255px !important;
  padding: 16px 14px 18px 14px !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Dica de Ouro: Tamanho Reduzido e Discreto */
.hack-gold-tip {
  margin: 3px 0 5px 0 !important;
  padding-left: 9px !important;
  border-left: 3px solid #F59E0B !important;
}

.hack-tip-header {
  font-size: 9px !important;
  font-weight: 800 !important;
  color: #FBBF24 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 2px !important;
  display: block !important;
}

.hack-tip-body {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #F8FAFC !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

body.light-mode .hack-tip-body {
  color: #1E293B !important;
}

/* Botões de Áudio Clean: Ícone Play Simples */
.btn-hack-audio.btn-normal,
.btn-hack-audio.btn-slow {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
}

/* Dock Inferior do Travel Hacks: Ultra Slim e 15 Bolinhas 100% Contidas */
#hacks-detail-view #hacks-bottom-dock,
.hacks-bottom-dock-slim,
#hacks-bottom-dock {
  width: 100% !important;
  max-width: 532px !important;
  margin: auto auto 0 auto !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  background: rgba(4, 10, 20, 0.98) !important;
  border-top: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 12px 12px 0 0 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6) !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
  display: block !important;
}

#hacks-detail-view .hacks-dots-bar-wrap,
#hacks-detail-view .hacks-dots-bar,
#hacks-detail-view #hacks-dots-container,
#hacks-dots-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  overflow: visible !important;
  overflow-x: visible !important;
}

#hacks-detail-view #hacks-dots-container .hack-dot,
#hacks-detail-view #hacks-dots-container .h-dot,
#hacks-dots-container .hack-dot,
#hacks-dots-container .h-dot {
  flex: 0 0 auto !important;
  width: clamp(18px, 4.8vw, 21.5px) !important;
  height: clamp(18px, 4.8vw, 21.5px) !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: #0B192E !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  color: #94A3B8 !important;
  font-size: clamp(7.5px, 2vw, 9.5px) !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
  transition: transform 120ms ease, background 120ms ease !important;
}

#hacks-detail-view #hacks-dots-container .hack-dot.visited,
#hacks-detail-view #hacks-dots-container .h-dot.visited {
  background: rgba(14, 165, 233, 0.22) !important;
  border-color: #38BDF8 !important;
  color: #7DD3FC !important;
}

#hacks-detail-view #hacks-dots-container .hack-dot.active,
#hacks-detail-view #hacks-dots-container .h-dot.active {
  background: #38BDF8 !important;
  border-color: #BAE6FD !important;
  color: #030712 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7) !important;
  transform: scale(1.12) !important;
}


/* ==============================================================
   RESTAURAÇÃO DO GLOSSÁRIO ORIGINAL E ELIMINAÇÃO DE BANDEIRAS GIGANTES
   ============================================================== */
.glossary-card .flag-bubble-ring,
.glossary-card .flag-bubble-svg,
.glossary-card svg.flag-bubble-svg {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Trava Rigorosa de Tamanho das Bandeiras Circulares (Nunca maiores que 26px) */
.flag-bubble-ring {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.flag-bubble-svg {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  display: block !important;
}

/* Card do Glossário Original Limpo e Proporcional */
.glossary-card {
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

.glossary-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
}

.glossary-term-en {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #F8FAFC !important;
  line-height: 1.25 !important;
}

body.light-mode .glossary-term-en {
  color: #0F172A !important;
}

.glossary-cat-tag {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  flex-shrink: 0 !important;
}

.glossary-phonetic-box {
  background: rgba(10, 25, 47, 0.88) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #FCD34D !important;
  margin-bottom: 6px !important;
}

body.light-mode .glossary-phonetic-box {
  background: #FFFBEB !important;
  color: #92400E !important;
}

.glossary-term-pt {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #E2E8F0 !important;
  margin-bottom: 6px !important;
}

body.light-mode .glossary-term-pt {
  color: #334155 !important;
}

.glossary-actions-row {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}


/* ==============================================================
   BALÃO FLUTUANTE DE DICA VIP PWA (ZERO LAYOUT SHIFT)
   ============================================================== */
.pwa-floating-balloon,
#pwa-browser-toast {
  position: fixed !important;
  top: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10000 !important;
  width: calc(100% - 28px) !important;
  max-width: 440px !important;
  pointer-events: auto !important;
  animation: pwaBalloonSlideDown 260ms cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.pwa-floating-balloon.hidden,
#pwa-browser-toast.hidden {
  display: none !important;
}

@keyframes pwaBalloonSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.pwa-balloon-inner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(7, 17, 31, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  border-radius: 9999px !important;
  padding: 8px 14px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(56, 189, 248, 0.25) !important;
  box-sizing: border-box !important;
}

body.light-mode .pwa-balloon-inner {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: #0284C7 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.pwa-balloon-icon {
  font-size: 16px !important;
  flex-shrink: 0 !important;
}

.pwa-balloon-text {
  flex: 1 1 auto !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #F8FAFC !important;
  line-height: 1.3 !important;
  letter-spacing: 0.1px !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

.pwa-balloon-text strong {
  color: #38BDF8 !important;
  font-weight: 800 !important;
}

body.light-mode .pwa-balloon-text {
  color: #0F172A !important;
}

body.light-mode .pwa-balloon-text strong {
  color: #0284C7 !important;
}

.pwa-balloon-close {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #94A3B8 !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  transition: all 120ms ease !important;
}

.pwa-balloon-close:hover,
.pwa-balloon-close:active {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
  transform: scale(1.1) !important;
}

body.light-mode .pwa-balloon-close {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}


/* ==============================================================
   BOTÃO DISCRETO DE INSTALAÇÃO DO PWA NAS CONFIGURAÇÕES
   ============================================================== */
.btn-pwa-discreet {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 8px !important;
  color: #38BDF8 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 140ms ease !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

.btn-pwa-discreet:hover,
.btn-pwa-discreet:active {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: #38BDF8 !important;
  transform: translateY(-1px) !important;
}

.btn-pwa-discreet .pwa-btn-chevron {
  font-size: 16px !important;
  opacity: 0.7 !important;
}

body.light-mode .btn-pwa-discreet {
  background: rgba(2, 132, 199, 0.06) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  color: #0284C7 !important;
}

body.light-mode .btn-pwa-discreet:hover,
body.light-mode .btn-pwa-discreet:active {
  background: rgba(2, 132, 199, 0.12) !important;
  border-color: #0284C7 !important;
}

/* ==============================================================
   ESPELHO DE VOZ (VOICE MIRROR) — GRAVAR & OUVIR PRÓPRIA VOZ (v10.25)
   Integrado em My Trip, Travel Hacks, Practice e Glossary
   ============================================================== */
.voice-mirror-row {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 6px !important;
  box-sizing: border-box !important;
}

.btn-voice-record,
.btn-voice-playback {
  height: 34px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 140ms ease !important;
  padding: 0 10px !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.btn-voice-record {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.32) 100%) !important;
  border: 1.5px solid #10B981 !important;
  color: #6EE7B7 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25) !important;
}

.btn-voice-record:hover,
.btn-voice-record:active {
  transform: scale(0.97) !important;
  background: rgba(16, 185, 129, 0.35) !important;
  color: #FFFFFF !important;
}

.btn-voice-record.recording,
.btn-voice-mini.recording {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%) !important;
  border-color: #FCA5A5 !important;
  color: #FFFFFF !important;
  animation: voiceRecordPulse 1.1s infinite ease-in-out !important;
}

@keyframes voiceRecordPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.btn-voice-playback {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.28) !important;
  color: #94A3B8 !important;
}

.btn-voice-playback:disabled {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
}

.btn-voice-playback.has-recording {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border-color: #6EE7B7 !important;
  color: #FFFFFF !important;
  opacity: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
}

.btn-voice-playback.playing,
.btn-voice-play-mini.playing {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  border-color: #FDE68A !important;
  color: #FFFFFF !important;
}

/* Versão Compacta para os Cards do Glossário */
.btn-voice-mini,
.btn-voice-play-mini {
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 130ms ease !important;
}

.btn-voice-mini {
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(16, 185, 129, 0.55) !important;
  color: #34D399 !important;
}

.btn-voice-play-mini {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border: 1px solid #6EE7B7 !important;
  color: #FFFFFF !important;
}

.btn-voice-play-mini.hidden {
  display: none !important;
}

/* Suporte Modo Claro (Outdoor Solar) */
body.light-mode .btn-voice-record {
  background: #D1FAE5 !important;
  border-color: #059669 !important;
  color: #065F46 !important;
}

body.light-mode .btn-voice-playback {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #64748B !important;
}

body.light-mode .btn-voice-playback.has-recording {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #FFFFFF !important;
}

body.light-mode .btn-voice-mini {
  background: #D1FAE5 !important;
  border-color: #10B981 !important;
  color: #065F46 !important;
}

/* ==============================================================
   HOMOLOGAÇÃO INTEGRAL (v10.26) — AJUSTES FINOS DE ERGONOMIA,
   BUSCA FLUTUANTE SEM COMPRESSÃO DE TELA E TOAST MULTI-LINHA
   ============================================================== */
.app-header-single {
  overflow: visible !important;
  z-index: 980 !important;
}

.hero-search-bar-wrap {
  position: relative !important;
  overflow: visible !important;
}

#global-search-results,
.global-search-results {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  max-height: 62dvh !important;
  overflow-y: auto !important;
  background: rgba(10, 23, 44, 0.98) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 42px rgba(2, 8, 20, 0.90) !important;
  padding: 8px !important;
}

#global-search-results.hidden,
.global-search-results.hidden {
  display: none !important;
}

body.light-mode #global-search-results,
body.light-mode .global-search-results {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22) !important;
}

/* Toast contido na largura do smartphone sem estourar margens (D-08) */
#toast-notice,
.toast-notice {
  max-width: min(92vw, 410px) !important;
  width: max-content !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.35 !important;
  border-radius: 14px !important;
  padding: 9px 15px !important;
  z-index: 10050 !important;
  box-sizing: border-box !important;
}

/* Calibração Vertical do My Trip com Espelho de Voz (Zero Corte em Telas Compactas) */
#module-detail-view .conversation-bubbles-stage {
  gap: 7px !important;
}

#module-detail-view .chat-bubble-pt {
  padding: 8px 12px !important;
}

#module-detail-view .chat-bubble-en {
  padding: 9px 14px !important;
}

#module-detail-view .chat-phonetic-banner {
  padding: 6px 10px !important;
}

#module-detail-view .story-speed-chips .speed-chip {
  height: 34px !important;
}

#module-detail-view .voice-mirror-row .btn-voice-record,
#module-detail-view .voice-mirror-row .btn-voice-playback {
  height: 32px !important;
}

/* ==========================================================================
   REFATORAÇÃO CIRÚRGICA — MÓDULO TRAVEL HACKS (MATRIZ GENÉTICA DO GLOSSÁRIO)
   1. Abertura do Hacks: Landing 100% no viewport sem barra de rolagem
   2. Card Ativo de Hacks: Centro Nobre 52-54vh + Dica de Ouro flutuante + Balões + Ações + Pills 01 a 13
   ========================================================================== */
#hacks-detail-view {
  height: calc(100dvh - 128px) !important;
  max-height: calc(100dvh - 128px) !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  overflow: hidden !important;
  padding: 2px 8px 4px 8px !important;
  box-sizing: border-box !important;
}

#hacks-detail-view .hack-content-scroll,
#hack-content-scroll {
  flex: 1 1 auto !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
}

#hacks-detail-view .hack-card-container,
#hack-card-container {
  flex: 1 1 auto !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Ocultação total do dock antigo redundante */
#hacks-detail-view #hacks-bottom-dock,
#hacks-bottom-dock,
.hacks-bottom-dock-slim {
  display: none !important;
}

/* 1. ESTRUTURA DA ABERTURA DO HACKS (LANDING DA SITUAÇÃO) - ZERO ROLAGEM */
.hacks-landing-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  gap: 6px !important;
  padding: 4px 6px !important;
  box-sizing: border-box !important;
}

.hacks-landing-card .hack-hero-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.hacks-landing-card .hack-hero-cube {
  width: clamp(75px, 15vh, 110px) !important;
  height: clamp(75px, 15vh, 110px) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
  flex-shrink: 0 !important;
}

.hacks-landing-card .hack-hero-cube img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.hacks-landing-card .hack-hero-title {
  font-size: clamp(13px, 1.9vh, 16px) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.hacks-landing-card .hack-hero-body {
  font-size: clamp(10.5px, 1.45vh, 12px) !important;
  color: #CBD5E1 !important;
  line-height: 1.35 !important;
  max-width: 95% !important;
  margin: 0 !important;
}

.btn-start-track-main {
  padding: 9px 24px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border: 1.2px solid #38BDF8 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45) !important;
  cursor: pointer !important;
  margin: 4px auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 120ms ease !important;
  flex-shrink: 0 !important;
}

.btn-start-track-main:active {
  transform: scale(0.96) !important;
}

.compact-protocol {
  background: rgba(10, 25, 47, 0.92) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 12px !important;
  padding: 6px 10px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.compact-protocol .hack-dos-donts-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.compact-protocol .hack-col-label {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  margin-bottom: 2px !important;
  display: block !important;
}

.compact-protocol ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.compact-protocol li {
  font-size: 10px !important;
  color: #E2E8F0 !important;
  line-height: 1.3 !important;
}

/* 2. CARD ATIVO DE HACKS (MATRIZ GENÉTICA DO GLOSSÁRIO) */
.hacks-active-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  gap: 4px !important;
  box-sizing: border-box !important;
}

.hacks-sub-header {
  height: 30px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 6px !important;
}

.hacks-term-pill {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #38BDF8 !important;
  background: rgba(4, 10, 20, 0.9) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Centro Nobre: Container de Imagem Vertical (h-[52vh] a 54vh, object-cover, rounded-2xl) */
.hacks-hero-stage {
  flex: 1 1 52vh !important;
  height: clamp(250px, 52vh, 54vh) !important;
  max-height: 54vh !important;
  min-height: 220px !important;
  width: 100% !important;
  position: relative !important;
  border-radius: 1rem !important; /* rounded-2xl */
  overflow: hidden !important;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65) !important;
  background: #081222 !important;
  margin: 0 !important;
  touch-action: pan-y !important;
}

.hacks-hero-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 28% !important;
  display: block !important;
  border-radius: 1rem !important;
}

/* Dica de Ouro: Card Translúcido Flutuante no Topo/Meio Sobre a Imagem */
.hack-floating-gold-card {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: 8px !important;
  background: rgba(10, 20, 38, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1.2px solid rgba(245, 158, 11, 0.65) !important;
  border-radius: 14px !important;
  padding: 7px 11px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55) !important;
  z-index: 5 !important;
  pointer-events: auto !important;
}

.hack-floating-gold-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin-bottom: 2px !important;
}

.hack-floating-gold-tag {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #FCD34D !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
}

.hack-floating-gold-sub {
  font-size: 9px !important;
  color: #94A3B8 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.hack-floating-gold-body {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #F8FAFC !important;
  line-height: 1.32 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Base: Balões PT e EN + Fonética */
.hacks-dialogue-base {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

/* Navegação de Pills: 01 a 13 Logo Abaixo da Barra de Áudio e Acima do Dock Inferior */
.hacks-pills-track {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(2px, 0.8vw, 4px) !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  padding: 2px 0 3px 0 !important;
}

.hacks-pills-track .flashcard-dot-btn {
  width: clamp(20px, 6vw, 25px) !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.hacks-pills-track .flashcard-dot-inner {
  width: clamp(19px, 5.4vw, 22px) !important;
  height: clamp(19px, 5.4vw, 22px) !important;
  border-radius: 50% !important;
  background: rgba(15, 28, 48, 0.95) !important;
  border: 1.2px solid rgba(148, 163, 184, 0.28) !important;
  color: #94A3B8 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 140ms ease !important;
}

.hacks-pills-track .flashcard-dot-btn.active .flashcard-dot-inner {
  background: #F59E0B !important;
  border-color: #FCD34D !important;
  color: #040914 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
  transform: scale(1.1) !important;
}

/* Utilitários Tailwind-like solicitados */
.h-full {
  height: 100% !important;
}
.overflow-hidden {
  overflow: hidden !important;
}


/* ==========================================================================
   ATUALIZAÇÃO DE DESIGN SYSTEM • PATCH GUIDE B2B & GLOSSARY UX (NOVEMBRO 2026)
   Diretrizes Internacionais: Apple HIG, Material 3, WCAG 2.2 AA (44x44pt hitbox)
   ========================================================================== */

/* 1. Micro-Selo de Tranquilidade Offline no Header */
.offline-peace-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3.5px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  border-radius: 999px !important;
  padding: 2px 6px !important;
  margin-left: 2px !important;
  opacity: 0.82 !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  transition: opacity 160ms ease !important;
}

.offline-green-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  box-shadow: 0 0 5px #10B981 !important;
  flex-shrink: 0 !important;
}

.offline-text {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  color: #A7F3D0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}

/* 2. Alternância Solar em 1 Toque (Light Mode / Claridade Solar Intensa) - Tamanho Sutil w-7 h-7 */
.header-right-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-shrink: 0 !important;
}

.btn-theme-solar-toggle {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(14, 28, 54, 0.85) !important;
  border: 1.2px solid rgba(56, 189, 248, 0.32) !important;
  color: #38BDF8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 160ms ease !important;
}

.btn-theme-solar-toggle:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
}

.solar-icon {
  width: 14px !important;
  height: 14px !important;
}

body.light-mode .btn-theme-solar-toggle {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #0F172A;
}

/* 3. Ergonomia de Toque WCAG (Hitbox Mínima de 44px) */
.guide-sit-pill,
.flashcard-dot-btn,
.nav-btn {
  min-height: 44px;
}

/* 4. Grade de Tijolos do Glossário (Grid 2x3 Intermediária) */
.glossary-bricks-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 145px);
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 6px 12px;
  gap: 8px;
}

.bricks-subtitle-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
}

.glossary-bricks-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 9px;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.brick-tile-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.32);
  background: linear-gradient(135deg, rgba(14, 28, 54, 0.95), rgba(9, 18, 36, 0.98));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 160ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.brick-tile-card:hover {
  border-color: #38BDF8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}

.brick-tile-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.2);
  z-index: 1;
}

.brick-tile-top,
.brick-tile-bottom {
  position: relative;
  z-index: 2;
}

.brick-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brick-tile-emoji {
  font-size: 20px;
}

.brick-tile-count {
  font-size: 10px;
  font-weight: 800;
  color: #FCD34D;
  background: rgba(4, 10, 20, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 2px 7px;
  border-radius: 999px;
}

.brick-tile-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.brick-tile-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.25;
}

/* 5. Flashcard Imersivo do Glossário (Roupagem Padrão de Ouro) */
.glossary-flashcard-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 145px);
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 4px 10px 4px 10px;
  gap: 7px;
  overflow: hidden;
}

.flashcard-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-shrink: 0;
  gap: 6px;
}

.btn-flashcard-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  background: rgba(14, 28, 54, 0.85);
  border: 1.2px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  color: #38BDF8;
  font-size: 11px;
  font-weight: 800;
  padding: 0 10px;
  cursor: pointer;
}

.flashcard-term-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #FEF08A;
  background: rgba(4, 10, 20, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.55);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.btn-flashcard-save {
  height: 32px;
  background: rgba(245, 158, 11, 0.22);
  border: 1.2px solid #FCD34D;
  border-radius: 999px;
  color: #FEF08A;
  font-size: 11px;
  font-weight: 800;
  padding: 0 10px;
  cursor: pointer;
}

/* Palco da Ilustração Vertical com Margem Anti-Conflito Safe Swipe (16px) */
.flashcard-hero-stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  background: #081222;
  margin: 0 4px;
  touch-action: pan-y;
}

.flashcard-image-box {
  width: 100%;
  height: 100%;
  position: relative;
}

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

/* Balões Assentados na Base com Pontas Orientadas */
.flashcard-dialogue-base {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  flex-shrink: 0;
}

.flashcard-bubble-pt {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(16, 32, 54, 0.98), rgba(10, 20, 36, 0.98));
  border: 1.2px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px 12px 12px 2px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flashcard-bubble-pt::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 8px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(16, 32, 54, 0.98);
}

.flashcard-bubble-en {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.32), rgba(14, 28, 54, 0.98));
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: 12px 12px 2px 12px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flashcard-bubble-en::before {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 8px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(14, 28, 54, 0.98);
}

.flag-icon {
  width: 19px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
}

.bubble-text {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.flashcard-phonetic-clean {
  width: 100%;
  background: rgba(12, 24, 44, 0.95);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.flashcard-phonetic-clean .speaker-svg {
  width: 14px;
  height: 14px;
  fill: #FBBF24;
  flex-shrink: 0;
}

.flashcard-phonetic-clean .phonetic-text {
  font-size: 11.5px;
  font-weight: 800;
  color: #FEF08A;
  letter-spacing: 0.2px;
}

/* Tríade de Áudio do Flashcard + Botão 180° */
.flashcard-audio-triad-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.85fr;
  gap: 5px;
  width: 100%;
  flex-shrink: 0;
}

.triad-btn-play {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1.2px solid #38BDF8;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.triad-btn-play svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.triad-btn-play .speed-tag {
  font-size: 8.5px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 4px;
  border-radius: 999px;
}

.triad-btn-rec {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  border: 1.2px solid #F87171;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

.rec-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px #FFFFFF;
  animation: pulseRec 1.2s infinite ease-in-out;
}

@keyframes pulseRec {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.triad-btn-listen {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0F233E 0%, #0A172B 100%);
  border: 1.2px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 800;
}

.triad-btn-listen svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.triad-btn-listen:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.triad-btn-rec.recording {
  animation: pulseRecording 1s infinite alternate;
  border-color: #EF4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.85);
}

@keyframes pulseRecording {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

.triad-btn-180 {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  border: 1.2px solid #A78BFA;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.35);
}

/* Pílulas Numeradas / Bolinhas (01 a 10) com Hitbox de 44px */
.flashcard-dots-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  flex-shrink: 0;
  padding: 2px 0 4px 0;
}

.flashcard-dot-btn {
  width: 26px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.flashcard-dot-inner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 28, 48, 0.95);
  border: 1.2px solid rgba(148, 163, 184, 0.28);
  color: #94A3B8;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 140ms ease;
}

.flashcard-dot-btn.active .flashcard-dot-inner {
  background: #F59E0B;
  border-color: #FCD34D;
  color: #040914;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  transform: scale(1.1);
}

/* 6. Seção GUIDE (Hub B2B2C com Parceiros & Serviços VIP) */
.guide-viewport-container {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 10px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-header-card {
  background: linear-gradient(135deg, rgba(14, 28, 54, 0.95), rgba(9, 18, 36, 0.98));
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.guide-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-label-sub {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--pan-sky);
  letter-spacing: 0.5px;
}

.guide-agency-title {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 2px 0;
}

.guide-consultant-tag {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-guide-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #040914;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.guide-situations-dock {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.guide-situations-dock::-webkit-scrollbar {
  display: none;
}

.guide-sit-pill {
  flex-shrink: 0;
  background: rgba(15, 28, 48, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  padding: 0 11px;
  cursor: pointer;
  transition: all 140ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.guide-sit-pill.active {
  background: #0284C7;
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.guide-partners-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-partner-card {
  background: rgba(14, 28, 54, 0.7);
  backdrop-filter: blur(12px);
  border: 1.2px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.guide-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.guide-partner-name {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.guide-partner-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #FEF08A;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 2.5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.guide-service-type {
  font-size: 11.5px;
  color: var(--pan-sky);
  font-weight: 600;
}

.guide-location-row {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.guide-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}

.guide-highlights-list li {
  font-size: 11px;
  color: #E2E8F0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.guide-highlights-list li::before {
  content: '✔';
  color: #10B981;
  font-weight: 800;
  font-size: 10px;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2px;
}

.guide-voucher-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(2, 132, 199, 0.18);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-guide-action {
  background: #0284C7;
  border: 1px solid #38BDF8;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* 7. Card SOS Integrado no My Space */
.space-sos-emergency-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.28));
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
  margin-top: 10px;
}

.space-sos-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.space-sos-icon-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EF4444;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.space-sos-icon-orb svg {
  width: 22px;
  height: 22px;
}

.space-sos-title {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.space-sos-desc {
  display: block;
  font-size: 10.5px;
  color: #FCA5A5;
}

.btn-space-sos-trigger {
  background: #EF4444;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

/* 8. Missões do Viajante & Cashback de Recompra B2B */
.missions-cashback-card {
  background: linear-gradient(135deg, rgba(14, 28, 54, 0.95), rgba(9, 18, 36, 0.98));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.missions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.missions-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.missions-badge-icon {
  font-size: 24px;
}

.missions-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.missions-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  display: block;
}

.missions-points-pill {
  font-size: 11px;
  font-weight: 800;
  color: #FEF08A;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid #FCD34D;
  padding: 3px 9px;
  border-radius: 999px;
}

.missions-desc {
  font-size: 11px;
  color: #CBD5E1;
  line-height: 1.35;
}

.cashback-unlock-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(4, 10, 20, 0.7);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cashback-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.cashback-reward-val {
  color: #10B981;
  font-weight: 800;
}

.cashback-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.cashback-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: 999px;
}

.cashback-voucher-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1.2px dashed #10B981;
  border-radius: 12px;
  padding: 10px 12px;
}

.voucher-tag {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  color: #6EE7B7;
  letter-spacing: 0.5px;
}

.voucher-code-display {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 2px 0;
}

.voucher-terms-hint {
  display: block;
  font-size: 9.5px;
  color: #A7F3D0;
}

.btn-copy-repurchase {
  background: #10B981;
  border: none;
  color: #040914;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.traveler-missions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 28, 54, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
}

.mission-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-check-circle.pending {
  background: transparent;
  border: 1.5px solid var(--text-muted);
  color: var(--text-muted);
}

.mission-info {
  flex: 1 1 auto;
  min-width: 0;
}

.mission-info strong {
  display: block;
  font-size: 11.5px;
  color: #FFFFFF;
}

.mission-info span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.25;
}

.mission-xp {
  font-size: 10px;
  font-weight: 800;
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.2);
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* 9. Botão Único Limpo no Modo Balcão 180° */
.actions-180-row-clean {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}

.btn-play-180-clean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1.5px solid #38BDF8;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   SANEAMENTO FINAL DE UI/UX — REFINAMENTOS CIRÚRGICOS DAS 4 TELAS
   ========================================================================== */

/* 1. CABEÇALHO GLOBAL (HEADER) */
.header-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
}

.brand-rotator-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  flex-shrink: 0 !important;
}

.brand-rotator-wrap .brand-logo-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  flex-shrink: 0 !important;
}

.brand-flip-rotator {
  position: relative !important;
  height: 24px !important;
  width: 112px !important;
  flex: 0 0 112px !important;
  overflow: visible !important;
}

.brand-flip-rotator .brand-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  letter-spacing: -0.2px !important;
}

.offline-peace-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  border-radius: 999px !important;
  padding: 1.5px 5.5px !important;
  margin-left: 2px !important;
  flex-shrink: 0 !important;
  user-select: none !important;
}

.hero-search-bar-wrap.header-search-compact {
  flex: 0 1 140px !important;
  max-width: 140px !important;
  min-width: 70px !important;
}

.btn-theme-solar-toggle {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.btn-theme-solar-toggle svg {
  width: 14px !important;
  height: 14px !important;
}

/* 2. TRAVEL HACKS (ELIMINAÇÃO DE DUPLICIDADE & CARD NOBRE) */
#hacks-detail-view .module-detail-topbar {
  display: none !important;
}

#hacks-detail-view .hacks-excel-tabs {
  margin-top: 2px !important;
  margin-bottom: 6px !important;
}

.hacks-excel-tabs .btn-thumb-back {
  font-weight: 800 !important;
  color: #38BDF8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

/* Card Dica de Ouro em Área Nobre */
.hack-noble-gold-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.hack-noble-gold-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}

.hack-noble-gold-tag {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #FCD34D !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.hack-noble-gold-body {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #F8FAFC !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

/* Botão de Play com Cores Cíclicas */
.triad-btn-play.speed-088 {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
}

.triad-btn-play.speed-050 {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  border-color: #FBBF24 !important;
  color: #FFFFFF !important;
}

.triad-btn-play.speed-100 {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
}

/* 3. GLOSSÁRIO & MODO 180° */
.modal-180-container .phrase-row {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

.modal-180-container .phrase-row-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.modal-180-container .flag-bubble-ring {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-180-container .traveler-en-val,
.modal-180-container .traveler-pt {
  flex: 1 1 auto !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* 4. SEÇÃO GUIDE (DOCK & IDENTIDADE) */
.bottom-nav-english .nav-btn[data-tab="guide"] {
  color: rgba(215, 183, 121, 0.78) !important;
}

.bottom-nav-english .nav-btn[data-tab="guide"].active {
  color: #D7B779 !important;
  border-top-color: #D7B779 !important;
  background: linear-gradient(180deg, rgba(215, 183, 121, 0.22) 0%, rgba(215, 183, 121, 0.04) 100%) !important;
  box-shadow: 0 -4px 14px rgba(215, 183, 121, 0.32) !important;
}

body[data-active-tab="guide"] .bottom-nav-english {
  border-top-color: rgba(215, 183, 121, 0.55) !important;
}

body.light-mode .bottom-nav-english .nav-btn[data-tab="guide"].active {
  color: #B8860B !important;
  background: #FEF3C7 !important;
  border-top-color: #D7B779 !important;
}

.guide-situations-dock .guide-sit-pill.active {
  background: #D7B779 !important;
  border-color: #D7B779 !important;
  color: #07111F !important;
  font-weight: 800 !important;
}

/* 5. MY SPACE (HIERARQUIA & MODAIS) */
.space-sos-emergency-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.btn-space-sos-trigger {
  align-self: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  height: auto !important;
  max-height: 34px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
}

/* Modal de Configurações Ergonômico */
.modal-settings-card {
  max-width: 520px !important;
  width: 92% !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.modal-settings-card .settings-body-content {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  max-height: calc(85vh - 65px) !important;
  padding-right: 4px !important;
}

/* Modal Seletor de SOS */
.modal-sos-selector-card {
  max-width: 440px !important;
  width: 92% !important;
  max-height: 85vh !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.sos-selector-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  margin-top: 10px !important;
}

.sos-selector-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 140ms ease !important;
  text-align: left !important;
  color: #FFFFFF !important;
}

.sos-selector-item:hover, .sos-selector-item:active {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: #EF4444 !important;
  transform: translateX(2px) !important;
}

.sos-selector-icon {
  font-size: 20px !important;
  flex-shrink: 0 !important;
}

.sos-selector-title {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
}

.sos-selector-sub {
  display: block !important;
  font-size: 10px !important;
  color: #CBD5E1 !important;
}

/* ==========================================================================
   ALINHAMENTO FINO UI/UX (PARTE 7)
   ========================================================================== */

/* 1. Header Estrito: Speak & Travel à esquerda, micro-badge Offline e Solar à direita */
.brand-fixed-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  min-width: auto !important;
}

.brand-fixed-wrap .brand-logo-icon {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.brand-fixed-wrap .brand-logo-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.brand-fixed-wrap .brand-name {
  font-family: var(--font-heading) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
}

body.light-mode .brand-fixed-wrap .brand-name {
  color: #0F172A !important;
}

.app-header-single .header-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0 2px !important;
  gap: 8px !important;
}

/* 2. Minha Viagem: Vídeo Nobre Central sem Vazio (h-[48vh] a 52vh) */
#module-detail-view .module-detail-content-scroll {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 4px 8px 12px 8px !important;
}

#module-detail-view #story-player-box {
  background: transparent !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  margin: 0 auto 6px auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  height: clamp(340px, 50vh, 460px) !important;
  min-height: 340px !important;
  max-height: 52vh !important;
  width: 100% !important;
  flex: 0 0 auto !important;
}

#module-detail-view .story-video-viewport {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  height: 100% !important;
  width: 100% !important;
}

#module-detail-view .video-simulation-stage {
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

#module-detail-view .video-sim-status-tag,
#module-detail-view .video-sim-live-pill,
#module-detail-view .video-intro-card .video-badge {
  display: none !important;
}

/* 3. Hacks Landing: Centralização Vertical Nobre (Zero Vazio Central / Zero Amontoamento) */
.hacks-landing-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  padding: 4px 6px !important;
  box-sizing: border-box !important;
}

.hack-landing-center-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: clamp(8px, 1.8vh, 16px) !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
}

.hack-landing-center-body .hack-hero-cube {
  width: clamp(80px, 16vh, 115px) !important;
  height: clamp(80px, 16vh, 115px) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
  flex-shrink: 0 !important;
}

.hack-landing-center-body .hack-hero-cube img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.hack-landing-center-body .hack-hero-title {
  font-size: clamp(13px, 1.9vh, 16px) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.hack-landing-center-body .hack-hero-body {
  font-size: clamp(10.5px, 1.45vh, 12px) !important;
  color: #CBD5E1 !important;
  line-height: 1.35 !important;
  max-width: 95% !important;
  margin: 0 !important;
}

/* 4. Hacks Card da Trilha: Eliminação de Caixas Pretas e Herança Limpa do Glossário */
.hacks-active-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  gap: 4px !important;
  box-sizing: border-box !important;
}

.hacks-hero-stage {
  flex: 1 1 50vh !important;
  height: clamp(260px, 50vh, 52vh) !important;
  max-height: 52vh !important;
  min-height: 240px !important;
  width: 100% !important;
  position: relative !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65) !important;
  background: #081222 !important;
  margin: 0 !important;
  touch-action: pan-y !important;
}

.hack-floating-gold-card {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: 8px !important;
  background: rgba(10, 25, 47, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.2px solid rgba(245, 158, 11, 0.65) !important;
  border-radius: 14px !important;
  padding: 8px 12px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
  z-index: 5 !important;
}

.hack-floating-gold-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin-bottom: 3px !important;
}

.hack-floating-gold-tag {
  font-size: 9px !important;
  font-weight: 800 !important;
  color: #FBBF24 !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

.hack-floating-gold-sub {
  font-size: 8.5px !important;
  font-weight: 700 !important;
  color: #38BDF8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.hack-floating-gold-body {
  font-size: 10px !important;
  color: #FFFFFF !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Ocultação Radical de Qualquer Caixa Preta / Poluição Antiga em Hacks */
.hack-mentor-footer,
.hack-host-vip-card,
.hack-noble-gold-card,
.hack-anchor-box,
.hack-player-wrap,
.hack-word-company,
.hack-partner-floating-card,
.hack-situation-snapshot-wrap {
  display: none !important;
}

/* 5. Glossário: Remoção do Botão Amarelo "Escolher Categoria" */
.bricks-subtitle-pill {
  display: none !important;
}

.brick-tile-emoji {
  display: none !important;
}

.brick-tile-card .brick-tile-top {
  justify-content: flex-end !important;
}

/* 6. Guia B2B: Conter o card de Assistência Oficial e Parceiros dentro do Viewport */
#tab-guide {
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.guide-viewport-container {
  overflow-x: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 10px 24px 10px !important;
  width: 100% !important;
}

.guide-header-card,
.guide-partner-card {
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.guide-assist-status-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 4px 0 !important;
}

.guide-assist-badge-connected {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #34D399 !important;
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.guide-assist-badge-connected .status-dot-green {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  box-shadow: 0 0 6px #10B981 !important;
}

.btn-guide-all-networks {
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #38BDF8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 150ms ease !important;
}

.guide-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.btn-guide-action {
  white-space: nowrap !important;
  font-size: clamp(10px, 2.7vw, 11px) !important;
  padding: 6px 10px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 7. My Space: Rodapé Discreto powered by DP Idiomas (Sem Logo) */
.myspace-powered-footer {
  text-align: center !important;
  padding: 16px 0 28px 0 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.6px !important;
  color: #94A3B8 !important;
  opacity: 0.65 !important;
  text-transform: lowercase !important;
}

body.light-mode .myspace-powered-footer {
  color: #64748B !important;
}



/* ==========================================================================
   REFATORAÇÃO CIRÚRGICA — HACKS & MINHA VIAGEM (ALINHAMENTO COM MATRIZ GLOSSÁRIO)
   ========================================================================== */

/* 1. Barra Superior Minha Viagem (Padrão Glossário) */
.mytrip-sub-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  gap: 6px !important;
  padding: 4px 2px !important;
}

.mytrip-term-pill {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #38BDF8 !important;
  background: rgba(4, 10, 20, 0.9) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: 0.4px !important;
}

body.light-mode .mytrip-term-pill {
  color: #0369A1 !important;
  background: #F0F9FF !important;
  border-color: #BAE6FD !important;
}

/* 2. Topo Hacks: Agrupamento da Direita (Badge + Botão de Vídeo) */
.hacks-top-right-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.btn-flashcard-video-pill {
  height: 32px !important;
  background: rgba(220, 38, 38, 0.22) !important;
  border: 1.2px solid #EF4444 !important;
  border-radius: 999px !important;
  color: #FCA5A5 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 0 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 120ms ease !important;
}

.btn-flashcard-video-pill:hover {
  background: rgba(220, 38, 38, 0.38) !important;
  color: #FFFFFF !important;
  border-color: #F87171 !important;
}

/* 3. Limpeza de Botões Duplicados de Áudio no Meio da Tela */
.btn-hack-audio,
.hack-player-buttons,
.hack-audio-mid-row {
  display: none !important;
}

/* 4. Minha Viagem: Palco Limpo do Vídeo em Área Nobre (48vh a 52vh) */
#module-detail-view .story-player-card {
  flex: 1 1 0% !important;
  min-height: 240px !important;
  max-height: 52vh !important;
  margin: 0 auto 6px auto !important;
  width: 100% !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
  background: #040A14 !important;
}

#module-detail-view .video-simulation-stage {
  height: 100% !important;
  width: 100% !important;
  min-height: 240px !important;
  border-radius: 12px !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Blindagem: Ocultar qualquer resquício de texto sobreposto ou timeline cinza na imagem */
.video-timeline-row,
.video-sim-topbar,
.video-sim-bottom.video-intro-card,
.video-sim-bottom.video-outro-card {
  display: none !important;
}

.video-center-play-orb {
  width: 64px !important;
  height: 64px !important;
  font-size: 26px !important;
  border-radius: 50% !important;
  background: rgba(2, 132, 199, 0.9) !important;
  color: #FFFFFF !important;
  border: 2.5px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 0 24px rgba(2, 132, 199, 0.8), 0 4px 14px rgba(0, 0, 0, 0.7) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 120ms ease, background 120ms ease !important;
}

.video-center-play-orb:hover {
  transform: scale(1.08) !important;
  background: #0284C7 !important;
}

/* 5. Régua de Pills de Minha Viagem (00 a 14) com rolagem fluida e fim seguro */
#stories-icons-track,
.stories-icons-strip.dock-dots-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 8px !important;
  padding: 4px 16px 4px 6px !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#stories-icons-track::-webkit-scrollbar,
.stories-icons-strip.dock-dots-strip::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#stories-icons-track .story-dot-num:last-child {
  margin-right: 14px !important;
}

/* Estilo do botão de ação de abertura e encerramento de Minha Viagem */
.mytrip-intro-action-card {
  width: 100%;
  text-align: center;
  padding: 8px 10px;
}
/* Hacks - Identidade Esmeralda */
.hacks-term-pill {
  border-color: #10B981 !important;
  color: #34D399 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

.hacks-active-card .flashcard-bubble-en {
  border-left: 3px solid #10B981 !important;
}

.hack-floating-gold-card {
  background: rgba(7, 17, 31, 0.82) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 14px;
}

.hack-floating-gold-tag {
  color: #FBBF24 !important;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   RESTAURAÇÃO FINAL HOMOLOGADA (CORREÇÃO DE LAYOUT E BOLINHAS CIRCULARES)
   ========================================================================== */

#phrase-active-container,
.phrase-active-card,
.flashcard-dialogue-base,
.mytrip-dialogue-base {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.mytrip-action-bar,
.flashcard-action-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 8px !important;
}

#mytrip-bottom-dock {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 6px 0 10px 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#stories-icons-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 auto !important;
  gap: 2.5px !important;
  padding: 0 !important;
  overflow: visible !important;
}

#stories-icons-track .story-dot-num,
#module-detail-view .story-dot-num,
.story-dot-num {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* ==========================================================================
   PATCH DE REFINAMENTO VISUAL E FOTOS DA INCOMUM (Parte 16)
   Correções de UI (Busca, Guia, Rótulo e Fonética)
   ========================================================================== */

/* 1. Centralização do Dropdown de Busca na Área Nobre */
.global-search-results {
  position: fixed !important;
  top: 56px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 92% !important;
  max-width: 440px !important;
  z-index: 1000 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75) !important;
}

/* 2. Botão Suporte 24h no Guia B2B em Uma Linha Só */
.btn-partner-whatsapp-action,
.guide-partner-whatsapp-badge,
[title*="WhatsApp"] {
  white-space: nowrap !important;
  font-size: 10px !important;
  padding: 4px 10px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* 3. Eliminação Definitiva do Rótulo da Dock no Minha Viagem */
#mytrip-bottom-dock .dock-header-row,
.dock-header-row {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
}

/* 4. Fonética Alinhada à Esquerda (Sem Centralização) */
.flashcard-phonetic-row,
.phonetic-container,
.phonetic-text {
  text-align: left !important;
  justify-content: flex-start !important;
  width: 100% !important;
  padding-left: 2px !important;
}

/* 5. Botão de Vídeo nos Hacks Sem Borda Cortada */
.btn-flashcard-video-pill {
  height: 28px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-top: 0 !important;
  border-radius: 14px !important;
}

/* ==========================================================
   GLOSSÁRIO: NOVO LAYOUT DO FLASHCARD (FUNDO ATMOSFÉRICO)
   ========================================================== */
.glossary-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  min-height: 490px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background-color: #0b132b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.glossary-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(2px) saturate(0.85);
  z-index: 1;
}

.glossary-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(11, 19, 43, 0.50) 0%,
    rgba(11, 19, 43, 0.85) 45%,
    rgba(11, 19, 43, 0.98) 100%
  );
  z-index: 2;
}

.glossary-card-content {
  position: relative;
  z-index: 3;
  padding: 30px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.glossary-theme-tag {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 700;
  padding: 4px 14px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.glossary-term-en {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.25;
}

.glossary-phonetic {
  font-size: 14px;
  color: #7dd3fc;
  font-family: monospace;
  margin: 0 0 6px;
  opacity: 0.9;
}

.glossary-term-pt {
  font-size: 16px;
  color: #cbd5e1;
  margin: 0 0 20px;
  font-weight: 400;
}

.glossary-phrase-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.glossary-phrase-box .phrase-en {
  font-size: 14px;
  font-style: italic;
  color: #f8fafc;
  margin: 0 0 4px;
  line-height: 1.4;
}

.glossary-phrase-box .phrase-pt {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.3;
}

.audio-speed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  color: #ffffff;
  outline: none;
  margin-top: auto;
  user-select: none;
}

.audio-speed-btn:active {
  transform: scale(0.97);
}

.audio-speed-btn.speed-blue {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45) !important;
}

.audio-speed-btn.speed-orange {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%) !important;
  border-color: #FB923C !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.45) !important;
}

.audio-speed-btn.speed-green {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.45) !important;
}

.glossary-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
}

/* ==========================================================
   MY SPACE: VITRINE DE PACOTES & RESORTS INCOMUM VIAGENS
   ========================================================== */
.incomum-showcase-section {
  margin-top: 24px;
  width: 100%;
}

.incomum-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.incomum-showcase-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.incomum-showcase-title span {
  color: #38bdf8;
}

.incomum-all-link {
  font-size: 12px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.incomum-offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

.incomum-offer-card {
  background: #111a33;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.incomum-offer-card:active {
  transform: scale(0.99);
  border-color: #38bdf8;
}

.incomum-card-media {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

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

.incomum-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
}

.incomum-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.incomum-card-dest {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.incomum-card-hotel {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.incomum-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.incomum-card-condition {
  font-size: 12px;
  color: #4ade80;
  font-weight: 600;
}

.incomum-btn-action {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}





/* ==========================================================
   PATCH PARTE 17: CABEÇALHO, ERGONOMIA E NAVEGAÇÃO COMPACTA
   ========================================================== */

/* 1. Header: Restaurar co-branding Incomum Viagens */
.header-brand-group,
.app-header-branding {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.header-partner-logo,
.incomum-header-logo {
  display: inline-block !important;
  height: 22px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* 2. Minha Viagem: Abertura (Bolinha 00) na Base */
.mytrip-opening-view {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 10px 4px 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

.mytrip-opening-banner {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.mytrip-btn-start {
  margin-top: auto !important;
  margin-bottom: 10px !important;
  width: 100% !important;
  max-width: 380px !important;
  align-self: center !important;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 20px !important;
  border-radius: 14px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4) !important;
}

/* 3. 15 Bolinhas (00 a 14) 100% Visíveis sem corte */
#mytrip-bottom-dock .dock-pills-row,
.mytrip-pills-container,
#mytrip-bottom-dock #stories-icons-track {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 2.5px !important;
  width: 100% !important;
  max-width: 380px !important;
  margin: 0 auto !important;
  overflow-x: hidden !important;
  padding: 6px 0 !important;
}

#mytrip-bottom-dock .dock-pill,
.mytrip-pills-container .pill-btn,
#mytrip-bottom-dock .story-icon-bubble {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border-radius: 50% !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 4. Glossário: Fundo Atmosférico Visível e Thumb Zone */
.glossary-card-bg {
  opacity: 0.42 !important;
  filter: blur(1.5px) saturate(0.95) !important;
}

.glossary-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(11, 19, 43, 0.35) 0%,
    rgba(11, 19, 43, 0.75) 50%,
    rgba(11, 19, 43, 0.95) 100%
  ) !important;
}

.glossary-flashcard-container {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: calc(100vh - 190px) !important;
  padding-bottom: 12px !important;
}

/* 5. Guia B2B: As 9 Abas (AER a SOS) sem corte na borda */
.guide-tabs-container,
.guide-situations-dock {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 3px !important;
  width: 100% !important;
  max-width: 380px !important;
  margin: 0 auto 12px !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
}

.guide-tabs-container .guide-tab-btn,
.guide-situations-dock .guide-sit-pill {
  flex: 1 !important;
  padding: 5px 2px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-align: center !important;
  border-radius: 8px !important;
}


/* ==========================================================================
   REVIEW PARTE 18: ROTATING BRAND LOGO FLIP & MYTRIP GRADIENT HERO CARD
   ========================================================================== */

/* 1. Header: Alternância Giratória Vertical (3D Flip) Entre Speak & Travel e Incomum */
.header-brand-rotating-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  perspective: 800px;
  min-width: 140px;
  height: 36px;
  flex-shrink: 0;
}

.brand-rotating-flipper {
  position: relative;
  width: 138px;
  height: 32px;
  animation: brandVerticalFlip 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-style: preserve-3d;
}

.brand-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.brand-face-st {
  transform: rotateX(0deg);
}

.brand-face-incomum {
  transform: rotateX(180deg);
}

.header-partner-logo-rot {
  height: 22px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
}

@keyframes brandVerticalFlip {
  0%, 42% {
    transform: rotateX(0deg);
  }
  50%, 92% {
    transform: rotateX(180deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}

/* 2. My Trip: Abertura sem banner cartoon + Card Degradê Nobre Incomum */
.mytrip-opening-gradient-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  width: 100%;
}

.mytrip-section-hero-card {
  width: 100%;
  max-width: 440px;
  transition: transform 0.2s ease;
}

/* 3. Redução de rolagem vertical desnecessária em My Trip */
.module-dock-bottom {
  padding-bottom: max(6px, env(safe-area-inset-bottom, 6px)) !important;
  margin-top: 2px !important;
}

.phrase-active-card {
  padding-bottom: 4px !important;
}


/* ==========================================================================
   REVIEW PARTE 18: ELIMINAÇÃO TOTAL DO ENQUADRAMENTO DAS BOLINHAS EM MY TRIP
   Padronização 100% idêntica à seção Hacks: Bolinhas limpas, soltas e flutuantes
   ========================================================================== */

/* 1. Elimina a caixa/moldura escura, borda superior e sombras de #mytrip-bottom-dock */
#mytrip-bottom-dock,
.module-dock-bottom {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 4px 0 6px 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 532px !important;
  box-sizing: border-box !important;
}

body.light-mode #mytrip-bottom-dock,
body.light-mode .module-dock-bottom {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 2. Oculta o cabeçalho do dock ("Situações do Módulo...") que poluía e consumia espaço */
#mytrip-bottom-dock .dock-header-row,
.dock-header-row {
  display: none !important;
}

/* 3. Régua de bolinhas My Trip 100% idêntica ao padrão flutuante do Hacks */
#stories-icons-track,
.dock-dots-strip,
.dock-pills-row,
.mytrip-pills-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(2px, 0.8vw, 4px) !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 2px 0 4px 0 !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  margin: 0 auto !important;
}

/* 4. Estilização circular limpa das bolinhas (00 a 14) */
#stories-icons-track .story-icon-bubble,
#stories-icons-track .story-dot-num,
#stories-icons-track .dock-pill {
  width: clamp(20px, 5.6vw, 24px) !important;
  height: clamp(20px, 5.6vw, 24px) !important;
  min-width: clamp(20px, 5.6vw, 24px) !important;
  border-radius: 50% !important;
  background: rgba(15, 28, 48, 0.95) !important;
  border: 1.2px solid rgba(148, 163, 184, 0.28) !important;
  color: #94A3B8 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: all 140ms ease !important;
  box-shadow: none !important;
}

#stories-icons-track .story-icon-bubble.active,
#stories-icons-track .story-dot-num.active,
#stories-icons-track .dock-pill.active {
  background: #F59E0B !important;
  border-color: #FBBF24 !important;
  color: #060E1A !important;
  font-weight: 900 !important;
  transform: scale(1.12) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
}

#stories-icons-track .story-icon-bubble.visited,
#stories-icons-track .story-dot-num.visited,
#stories-icons-track .dock-pill.visited {
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #CBD5E1 !important;
}



/* ==========================================================================
   REVIEW PARTE 19 (HOMOLOGAÇÃO DEFINITIVA): THUMB ZONE, CARDS RETANGULARES & ÁUDIOS
   dp idiomas & Incomum Viagens • Zero Truncamento, Cards Fluidos & Bolinhas Acessíveis
   ========================================================================== */

/* 1. DIÁLOGOS MY TRIP & HACKS: ZERO TRUNCAMENTO (FRASES COMPLETAS SEM ELLIPSIS) */
.bubble-text,
.chat-bubble-text-en,
.chat-bubble-text-pt {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  flex: 1 1 auto !important;
}

.flashcard-bubble-en,
.flashcard-bubble-pt {
  height: auto !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.flashcard-phonetic-clean {
  height: auto !important;
  padding: 6px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.flashcard-phonetic-clean .phonetic-text {
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.35 !important;
  font-size: 12.5px !important;
}

.flashcard-dialogue-base,
.mytrip-dialogue-base,
.hacks-dialogue-base {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2. GLOSSÁRIO: FLASHCARD RETANGULAR NA VERTICAL & BOLINHAS NA THUMB-ZONE */
#glossary-flashcard-view,
.glossary-flashcard-view {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: calc(100vh - 135px) !important;
  max-height: calc(100dvh - 120px) !important;
  max-width: var(--app-max-width, 680px) !important;
  margin: 0 auto !important;
  padding: 6px 12px 6px 12px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#glossary-card-container,
.glossary-card-container {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  padding: 6px 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.glossary-card-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 440px !important;
  height: 100% !important;
  min-height: 380px !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #0d1e38 0%, #071324 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.glossary-card-content {
  position: relative !important;
  z-index: 3 !important;
  padding: 24px 20px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* Bolinhas do Glossário na Thumb-Zone (Abaixo do Card) */
#flashcard-dots-track,
.flashcard-dots-track {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(4px, 1.2vw, 8px) !important;
  width: 100% !important;
  padding: 8px 0 12px 0 !important;
  margin-top: auto !important;
  flex-shrink: 0 !important;
  z-index: 20 !important;
  background: transparent !important;
  border: none !important;
  box-sizing: border-box !important;
}

#flashcard-dots-track .flashcard-dot-btn {
  width: clamp(28px, 7vw, 36px) !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

#flashcard-dots-track .flashcard-dot-inner {
  width: clamp(24px, 6vw, 30px) !important;
  height: clamp(24px, 6vw, 30px) !important;
  border-radius: 50% !important;
  background: rgba(15, 28, 48, 0.95) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.35) !important;
  color: #94A3B8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 160ms ease !important;
}

#flashcard-dots-track .flashcard-dot-btn.active .flashcard-dot-inner {
  background: #F59E0B !important;
  border-color: #FBBF24 !important;
  color: #060E1A !important;
  font-weight: 900 !important;
  transform: scale(1.15) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.7) !important;
}

/* 3. CENTRAL DE CONFIGURAÇÕES FLUIDA & LEGÍVEL */
.setting-item-box,
.setting-incomum-theme {
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 16px 14px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.28) 0%, rgba(10, 25, 47, 0.98) 55%, rgba(39, 30, 20, 0.28) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 16px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

.offline-status-pill-lg,
.theme-segmented-control,
.btn-setting-action,
.season-badge-interactive,
.quick-tools-grid,
.legal-mini-links {
  width: 100% !important;
  box-sizing: border-box !important;
}

.theme-segmented-control {
  min-height: 44px !important;
  padding: 4px !important;
}

.theme-seg-btn {
  min-height: 36px !important;
  padding: 8px 10px !important;
  white-space: normal !important;
}

.btn-setting-action,
.season-badge-interactive {
  min-height: 44px !important;
  padding: 10px 14px !important;
}

.quick-tools-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.btn-quick-util {
  min-height: 42px !important;
  padding: 8px 10px !important;
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  text-align: center !important;
}

/* 4. MY TRIP: BOLINHA 00 (ABERTURA NA BASE) */
.mytrip-opening-view {
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

.mytrip-section-hero-card {
  padding: 18px 16px !important;
  border-radius: 18px !important;
  margin-bottom: 16px !important;
}

.mytrip-btn-start {
  width: 100% !important;
  max-width: 420px !important;
  margin: auto auto 8px auto !important;
  padding: 14px 24px !important;
  font-size: 1rem !important;
  border-radius: 999px !important;
}

/* 5. RÉGUA DE BOLINHAS MY TRIP (00 A 14): TOQUE CONFORTÁVEL & ACESSÍVEL */
#stories-icons-track {
  gap: 5px !important;
  padding: 4px 8px 6px 8px !important;
  display: flex !important;
  align-items: center !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

#stories-icons-track::-webkit-scrollbar {
  display: none !important;
}

#stories-icons-track .story-icon-bubble,
#stories-icons-track .story-dot-num {
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  max-width: 27px !important;
  border-radius: 50% !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  touch-action: manipulation !important;
  flex-shrink: 0 !important;
}

#stories-icons-track .story-icon-bubble.active .story-dot-num,
#stories-icons-track .story-dot-num.active {
  background: #F59E0B !important;
  color: #060E1A !important;
  border-color: #FBBF24 !important;
  transform: scale(1.12) !important;
}

/* 6. RESET TOTAL DE SCROLL QUANDO ABAS SÃO TROCADAS */
#tab-myspace,
#tab-hacks,
#tab-mytrip,
#tab-glossary,
#tab-guide {
  overscroll-behavior-y: contain !important;
}

/* ==========================================================================
   UNIFICAÇÃO TOTAL DAS BOLINHAS: MY TRIP E HACKS 100% IDÊNTICAS
   ========================================================================== */
.hacks-pills-track,
.mytrip-pills-track,
#stories-icons-track {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(2px, 0.8vw, 4px) !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  padding: 2px 0 3px 0 !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.mytrip-dots-floating-wrap,
#mytrip-bottom-dock {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.hacks-pills-track .flashcard-dot-btn,
.mytrip-pills-track .flashcard-dot-btn,
#stories-icons-track .flashcard-dot-btn {
  width: clamp(20px, 6vw, 25px) !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.hacks-pills-track .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-inner,
#stories-icons-track .flashcard-dot-inner {
  width: clamp(19px, 5.4vw, 22px) !important;
  height: clamp(19px, 5.4vw, 22px) !important;
  border-radius: 50% !important;
  background: rgba(15, 28, 48, 0.95) !important;
  border: 1.2px solid rgba(148, 163, 184, 0.28) !important;
  color: #94A3B8 !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 140ms ease !important;
}

.hacks-pills-track .flashcard-dot-btn.active .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-btn.active .flashcard-dot-inner,
#stories-icons-track .flashcard-dot-btn.active .flashcard-dot-inner {
  background: #F59E0B !important;
  border-color: #FCD34D !important;
  color: #040914 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
  transform: scale(1.1) !important;
}


/* ==========================================================================
   REVIEW PARTE 20 (CORREÇÃO CIRÚRGICA TOTAL):
   1. Ordem dos Balões: Inglês (🇺🇸) -> Português (🇧🇷) -> Fonética (📢)
   2. My Trip Bolinhas: 100% IDÊNTICAS a Hacks (dimensões, estilo, zero dock)
   3. Bolinha 00 Abertura: ZERO SCROLL, logo no canto esquerdo, botão na Thumb Zone
   4. Configurações: Ícones no tamanho correto (20px), sem explosão de SVG
   5. Glossário: Blindagem de visibilidade contra telas pretas e duplicações
   6. Notificações My Space: Texto legível sem sobreposição
   ========================================================================== */

/* 1. BLINDAGEM DE VISIBILIDADE (.hidden) */
.hidden, [hidden],
#glossary-flashcard-view.hidden,
#glossary-bricks-view.hidden,
#glossary-hub-view.hidden,
#module-detail-view.hidden,
#hacks-detail-view.hidden,
.tab-view.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2. UNIFICAÇÃO TOTAL DAS BOLINHAS: MY TRIP E HACKS 100% IDÊNTICAS */
.hacks-pills-track,
.mytrip-pills-track,
#stories-icons-track {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(2px, 0.8vw, 4px) !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  padding: 2px 0 3px 0 !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.mytrip-dots-floating-wrap,
#mytrip-bottom-dock {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.hacks-pills-track .flashcard-dot-btn,
.mytrip-pills-track .flashcard-dot-btn,
#stories-icons-track .flashcard-dot-btn {
  width: clamp(20px, 6vw, 25px) !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.hacks-pills-track .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-inner,
#stories-icons-track .flashcard-dot-inner {
  width: clamp(19px, 5.4vw, 22px) !important;
  height: clamp(19px, 5.4vw, 22px) !important;
  border-radius: 50% !important;
  background: rgba(15, 28, 48, 0.95) !important;
  border: 1.2px solid rgba(148, 163, 184, 0.28) !important;
  color: #94A3B8 !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 140ms ease !important;
}

.hacks-pills-track .flashcard-dot-btn.active .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-btn.active .flashcard-dot-inner,
#stories-icons-track .flashcard-dot-btn.active .flashcard-dot-inner {
  background: #F59E0B !important;
  border-color: #FCD34D !important;
  color: #040914 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
  transform: scale(1.1) !important;
}

/* 3. MY TRIP BOLINHA 00: ZERO SCROLL GARANTIDO */
#module-detail-view.intro-active #module-detail-content-scroll,
#module-detail-view.outro-active #module-detail-content-scroll {
  overflow-y: hidden !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.mytrip-opening-view {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  overflow: hidden !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.mytrip-btn-start {
  margin-top: auto !important;
  margin-bottom: 4px !important;
}

/* 4. CENTRAL DE CONFIGURAÇÕES: CONTROLE ESTRITO DE TAMANHO DE ÍCONES (SEM SVGS GIGANTES) */
.setting-svg-icon,
.setting-item-icon-box svg,
.btn-setting-action svg,
.season-badge-interactive svg,
.season-pill-text svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

.setting-item-icon-box {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 10px !important;
  background: rgba(2, 132, 199, 0.16) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #38BDF8 !important;
}

.setting-item-box,
.setting-incomum-theme {
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 16px 14px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* 5. HISTÓRICO DE NOTIFICAÇÕES MY SPACE: TEXTO LIMPO */
.notification-compact-summary {
  min-height: 48px !important;
  height: auto !important;
  padding: 10px 14px !important;
}

.notif-summary-text strong {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
  display: block !important;
}

.notif-summary-text span {
  font-size: 11px !important;
  color: #94A3B8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
  display: block !important;
}


/* ==========================================================================
   PENTE FINO DEFINITIVO (CORREÇÃO DE BORDAS, BOLINHAS E GLOSSÁRIO):
   1. Bolinhas My Trip: 15 bolinhas calibradas em 20px com gap 1.8px (ZERO CORTE de 00 e 14)
   2. Glossário Hub: Visibilidade garantida dos 9 cubos sem tela preta
   3. Configurações: Ícones de sol e lua calibrados em 18px
   ========================================================================== */

/* 1. CALIBRAÇÃO DAS 15 BOLINHAS MY TRIP (Zero corte em 00 e 14) */
#stories-icons-track,
.mytrip-pills-track {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(1px, 0.45vw, 2px) !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  padding: 2px 2px 3px 2px !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#stories-icons-track .flashcard-dot-btn,
.mytrip-pills-track .flashcard-dot-btn {
  width: clamp(17px, 5.0vw, 20.5px) !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

#stories-icons-track .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-inner {
  width: clamp(16px, 4.6vw, 19.5px) !important;
  height: clamp(16px, 4.6vw, 19.5px) !important;
  border-radius: 50% !important;
  background: rgba(15, 28, 48, 0.95) !important;
  border: 1.1px solid rgba(148, 163, 184, 0.28) !important;
  color: #94A3B8 !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 140ms ease !important;
}

#stories-icons-track .flashcard-dot-btn.active .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-btn.active .flashcard-dot-inner {
  background: #F59E0B !important;
  border-color: #FCD34D !important;
  color: #040914 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
  transform: scale(1.1) !important;
}

/* 2. GLOSSÁRIO HUB: VISIBILIDADE DOS 9 CUBOS */
#tab-glossary:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
}

#glossary-hub-view:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
}

#glossary-cubes-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  height: 100% !important;
}

/* 3. CONFIGURAÇÕES: ÍCONES DE SOL E LUA CONTROLADOS */
.theme-seg-btn svg,
.setting-btn-svg,
.theme-segmented-control svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

.theme-seg-btn {
  gap: 8px !important;
  padding: 8px 12px !important;
}

.theme-seg-btn span {
  font-size: 11.5px !important;
  font-weight: 700 !important;
}


/* ==========================================================================
   HOMOLOGAÇÃO PARTE 21: RESTAURAÇÃO TOTAL DO VÍDEO 14, BOLINHA 00 VERTICAL E GLOSSÁRIO
   ========================================================================== */

/* 1. BOLINHA 14 (ENCERRAMENTO) E BOLINHA 00 (ABERTURA): VÍDEO EXPANDIDO EM TODA A TELA */
#module-detail-view.outro-active #story-player-box,
#module-detail-view.intro-active #story-player-box {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background: #07111F !important;
  overflow: hidden !important;
  z-index: 1 !important;
  display: flex !important;
}

/* 3. BOLINHAS MY TRIP: 15 BOLINHAS PERFEITAMENTE DISTRIBUÍDAS SEM CORTE DE 00 E 14 */
#stories-icons-track,
.mytrip-pills-track {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5px !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  padding: 2px 6px 4px 6px !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#stories-icons-track .flashcard-dot-btn,
.mytrip-pills-track .flashcard-dot-btn {
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

#stories-icons-track .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-inner {
  width: 19px !important;
  min-width: 19px !important;
  max-width: 19px !important;
  height: 19px !important;
  min-height: 19px !important;
  max-height: 19px !important;
  border-radius: 50% !important;
  background: rgba(15, 28, 48, 0.95) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  color: #94A3B8 !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 140ms ease !important;
  box-sizing: border-box !important;
}

#stories-icons-track .flashcard-dot-btn.active .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-btn.active .flashcard-dot-inner {
  background: #F59E0B !important;
  border-color: #FCD34D !important;
  color: #040914 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
  transform: scale(1.1) !important;
}

/* 4. GLOSSÁRIO: HUB DOS 9 CUBOS 100% VISÍVEL (FIM DA TELA PRETA) */
#tab-glossary.active:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
}

#tab-glossary.active:not(.hidden) #glossary-hub-view:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#glossary-cubes-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  height: 100% !important;
}

/* 5. CONFIGURAÇÕES: ÍCONES DE SOL E LUA CONTROLADOS RIGOROSAMENTE */
.theme-seg-btn svg,
.setting-btn-svg,
.theme-segmented-control svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

.theme-seg-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
}


/* ==========================================================================
   HOMOLOGAÇÃO DEFINITIVA (PARTE 21 • POLIMENTO MESTRE):
   - Bolinhas em Zigue-Zague (Pares acima / Ímpares abaixo)
   - Player Imersivo em Tela Cheia (Fim do Card Quadrado) com Scrim Gradient
   - Bolinha 14 com Vídeo de Encerramento 100% Ativo
   - Zero Rolagem e Zero Cortes
   ========================================================================== */

/* ==========================================================================
   REVIEW PARTE 22 (HOMOLOGAÇÃO SHORTS IMERSIVOS & GLOSSÁRIO 100% RESTAURADO):
   1. Glossário: Blindagem contra tela preta (.hidden e transições unificadas)
   2. Player Imersivo de Shorts (00 - Abertura e 14 - Conclusão) estilo Reels com Scrim Gradient
   3. Botões Centrais: Vermelho na Introdução e Verde na Conclusão
   4. Thumbzone: Zero Retângulo delimitador, Bolinhas Ampliadas e Glow Amarelo VIP
   ========================================================================== */

/* 1. BLINDAGEM DE VISIBILIDADE DO GLOSSÁRIO */
#tab-glossary:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
}

#glossary-hub-view:not(.hidden),
.glossary-hub-view:not(.hidden) {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#glossary-bricks-view:not(.hidden),
.glossary-bricks-view:not(.hidden) {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#glossary-flashcard-view:not(.hidden),
.glossary-flashcard-view:not(.hidden) {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 2. THUMB ZONE: ZERO RETÂNGULO DELIMITADOR & BOLINHAS AMPLIADAS */
#module-detail-view .mytrip-dots-floating-wrap,
#module-detail-view #mytrip-bottom-dock,
.mytrip-dots-floating-wrap,
#mytrip-bottom-dock {
  position: relative !important;
  z-index: 10 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 6px 6px 6px !important;
  width: 100% !important;
  max-width: var(--app-max-width, 680px) !important;
  margin: 0 auto !important;
}

#stories-icons-track.mytrip-staggered-track,
.mytrip-staggered-track {
  height: 52px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#stories-icons-track .flashcard-dot-btn,
.mytrip-pills-track .flashcard-dot-btn {
  width: clamp(24px, 6.2vw, 29px) !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

#stories-icons-track .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-inner {
  width: clamp(23px, 6vw, 28px) !important;
  height: clamp(23px, 6vw, 28px) !important;
  border-radius: 50% !important;
  background: rgba(15, 28, 48, 0.92) !important;
  border: 1.2px solid rgba(148, 163, 184, 0.35) !important;
  color: #CBD5E1 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 160ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Bolinha Ativa Selecionada com Glow Amarelo VIP */
#stories-icons-track .flashcard-dot-btn.active .flashcard-dot-inner,
.mytrip-pills-track .flashcard-dot-btn.active .flashcard-dot-inner {
  background: #F59E0B !important;
  border: 2px solid #FDE047 !important;
  color: #07111F !important;
  font-weight: 900 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.9), 0 0 26px rgba(245, 158, 11, 0.5) !important;
}

/* Disposição Escalonada (Zigue-Zague das Duas Alturas) */
.mytrip-staggered-track .stagger-dot.dot-high {
  transform: translateY(-9px) !important;
}
.mytrip-staggered-track .stagger-dot.dot-low {
  transform: translateY(9px) !important;
}
.mytrip-staggered-track .stagger-dot.dot-high.active {
  transform: translateY(-9px) scale(1.18) !important;
}
.mytrip-staggered-track .stagger-dot.dot-low.active {
  transform: translateY(9px) scale(1.18) !important;
}

/* 3. UNIFICAÇÃO TOTAL DAS 9 ABAS (MY TRIP, HACKS E GLOSSÁRIO) */
#mytrip-detail-thumb-tabs,
#hacks-detail-thumb-tabs,
#glossary-bricks-thumb-tabs,
#glossary-flashcard-thumb-tabs {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 3px !important;
  padding: 3px 2px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 10px !important;
  overflow: visible !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#mytrip-detail-thumb-tabs .bible-thumb-tab,
#hacks-detail-thumb-tabs .bible-thumb-tab,
#glossary-bricks-thumb-tabs .bible-thumb-tab,
#glossary-flashcard-thumb-tabs .bible-thumb-tab {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: clamp(4px, 0.7vh, 7px) 1px clamp(4px, 0.65vh, 6px) 1px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, rgba(16, 30, 54, 0.92) 0%, rgba(8, 17, 32, 0.96) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 8px !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  box-sizing: border-box !important;
}

/* Bolinhas coloridas de identificação semântica em todas as 9 abas */
#mytrip-detail-thumb-tabs .bible-thumb-tab .b-dot,
#hacks-detail-thumb-tabs .bible-thumb-tab .b-dot,
#glossary-bricks-thumb-tabs .bible-thumb-tab .b-dot,
#glossary-flashcard-thumb-tabs .bible-thumb-tab .b-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  margin-bottom: 1px !important;
  flex-shrink: 0 !important;
}

.bible-thumb-tab[data-m="aeroporto"] .b-dot { background: #38BDF8 !important; }
.bible-thumb-tab[data-m="voo"] .b-dot       { background: #0284C7 !important; }
.bible-thumb-tab[data-m="imigracao"] .b-dot { background: #14B8A6 !important; }
.bible-thumb-tab[data-m="hotel"] .b-dot     { background: #A855F7 !important; }
.bible-thumb-tab[data-m="locadora"] .b-dot  { background: #F59E0B !important; }
.bible-thumb-tab[data-m="mobilidade"] .b-dot{ background: #6366F1 !important; }
.bible-thumb-tab[data-m="restaurante"] .b-dot{ background: #F43F5E !important; }
.bible-thumb-tab[data-m="compras"] .b-dot   { background: #10B981 !important; }
.bible-thumb-tab[data-m="sos"] .b-dot       { background: #EF4444 !important; }

/* Destaque Amarelo VIP Unificado para a Aba Selecionada (Glossário, Hacks e My Trip) */
#mytrip-detail-thumb-tabs .bible-thumb-tab.active,
#hacks-detail-thumb-tabs .bible-thumb-tab.active,
#glossary-bricks-thumb-tabs .bible-thumb-tab.active,
#glossary-flashcard-thumb-tabs .bible-thumb-tab.active,
.excel-remissive-tabs .bible-thumb-tab.active {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.24) 0%, rgba(18, 26, 42, 0.98) 100%) !important;
  color: #FEF08A !important;
  border: 1.5px solid #FCD34D !important;
  border-top: 1.5px solid #FCD34D !important;
  border-bottom: 1.5px solid #FCD34D !important;
  transform: translateY(-1px) !important;
  z-index: 6 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.50), inset 0 0 8px rgba(251, 191, 36, 0.16) !important;
}

#mytrip-detail-thumb-tabs .bible-thumb-tab.active .rem-tab-lbl,
#hacks-detail-thumb-tabs .bible-thumb-tab.active .rem-tab-lbl,
#glossary-bricks-thumb-tabs .bible-thumb-tab.active .rem-tab-lbl,
#glossary-flashcard-thumb-tabs .bible-thumb-tab.active .rem-tab-lbl {
  color: #FEF08A !important;
  font-weight: 900 !important;
}

/* 4. CORREÇÃO DEFINITIVA DO DESLOCAMENTO HORIZONTAL NO MY TRIP (ZERO ASSIMETRIA) */
#tab-mytrip {
  padding: 0 !important;
  border-left-width: 1px !important;
  border-right-width: 1px !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#tab-mytrip #modules-hub-view {
  padding: 6px 7px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
}

#module-detail-view {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
}

#module-detail-view.hidden {
  display: none !important;
}

#module-detail-view .flashcard-sub-header.mytrip-sub-header {
  flex: 0 0 auto !important;
  padding: 6px 10px 4px 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  z-index: 10 !important;
  background: rgba(7, 17, 31, 0.90) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
}

#module-detail-view #mytrip-detail-thumb-tabs {
  flex: 0 0 auto !important;
  z-index: 10 !important;
  padding: 2px 8px 4px 8px !important;
  background: rgba(7, 17, 31, 0.85) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

/* 5. PLAYER DE VÍDEO COMO FUNDO DE TELA INTEGRAL (SEM LIMITADORES EM TODAS AS 15 TELAS) + ZERO ROLAGEM */
#module-detail-view .module-detail-content-scroll {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

#module-detail-view #story-player-box {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #07111F !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

#module-detail-view #story-video-container,
#module-detail-view .video-simulation-stage {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background-size: cover !important;
  background-position: center center !important;
}

#module-detail-view #story-video-container img,
#module-detail-view #story-video-container video,
#module-detail-view #story-video-container iframe {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Scrim Gradient degradê na parte inferior do vídeo para fundir com o fundo monocromático */
#module-detail-view .video-simulation-stage::after,
#module-detail-view .module-detail-content-scroll::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 75% !important;
  background: linear-gradient(
    180deg,
    rgba(7, 17, 31, 0.0) 0%,
    rgba(7, 17, 31, 0.40) 25%,
    rgba(7, 17, 31, 0.85) 50%,
    rgba(7, 17, 31, 0.98) 75%,
    #07111F 96%
  ) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Botões Centrais de Reprodução: Vermelho na Introdução e Verde na Conclusão */
#module-detail-view .video-sim-center {
  position: absolute !important;
  top: 44% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 20 !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

#module-detail-view .video-center-play-orb {
  position: relative !important;
  z-index: 25 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  width: 66px !important;
  height: 66px !important;
  min-width: 66px !important;
  min-height: 66px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

#module-detail-view .video-center-play-orb:hover,
#module-detail-view .video-center-play-orb:active {
  transform: scale(1.08) !important;
}

#module-detail-view .video-center-play-orb.orb-intro-red {
  background: #EF4444 !important;
  border: 2.5px solid #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.8), 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}

#module-detail-view .video-center-play-orb.orb-outro-green {
  background: #10B981 !important;
  border: 2.5px solid #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.8), 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}

/* 6. CONTEÚDOS E BOTÕES SOBREPOSTOS NA BASE DO VÍDEO (ZERO SCROLL) */
#module-detail-view #phrase-active-container {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 10 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 10px 4px 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  pointer-events: none !important; /* CRUCIAL: deixa cliques na área do vídeo passarem livres ao botão play */
}

#module-detail-view #phrase-active-container button,
#module-detail-view #phrase-active-container .btn-start-track-main,
#module-detail-view #phrase-active-container .unified-action-bar,
#module-detail-view #phrase-active-container .flashcard-dialogue-base,
#module-detail-view #phrase-active-container .btn-fav-star-corner {
  pointer-events: auto !important; /* Apenas botões e balões capturam eventos */
}

#module-detail-view .flashcard-dialogue-base {
  gap: 4px !important;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 2px !important;
}

#module-detail-view .flashcard-bubble-en,
#module-detail-view .flashcard-bubble-pt {
  min-height: 34px !important;
  padding: 5px 10px !important;
  border-radius: 10px !important;
  gap: 8px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-sizing: border-box !important;
}

#module-detail-view .flashcard-phonetic-clean {
  min-height: 26px !important;
  padding: 3px 8px !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(254, 240, 138, 0.20) !important;
  box-sizing: border-box !important;
}

/* 4 Botões de Ação Perfeitamente Centralizados em Grade Uniforme 4 Colunas */
#module-detail-view .unified-action-bar,
#module-detail-view .mytrip-action-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin: 3px 0 2px 0 !important;
  padding: 0 !important;
}

#module-detail-view .unified-action-bar button,
#module-detail-view .mytrip-action-bar button,
#module-detail-view .triad-btn-play,
#module-detail-view .triad-btn-rec,
#module-detail-view .triad-btn-listen,
#module-detail-view .triad-btn-180 {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  flex: none !important;
  padding: 0 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Tela 00 (Intro) e Tela 14 (Conclusão): Overlay Imersivo na Base */
.mytrip-opening-view,
.mytrip-conclusion-view,
.mytrip-opening-immersive-overlay {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

.mytrip-immersive-text-wrap {
  text-align: center !important;
  margin-bottom: 6px !important;
  max-width: 480px !important;
  pointer-events: none !important;
}

.mytrip-conclusion-badge {
  font-size: 1.8rem !important;
  margin-bottom: 4px !important;
  line-height: 1 !important;
}

.mytrip-immersive-title {
  color: #FFFFFF !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
}

.mytrip-immersive-subtitle {
  color: #CBD5E1 !important;
  font-size: 0.85rem !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8) !important;
}

.mytrip-conclusion-subtitle {
  color: #34D399 !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
}

.btn-start-track-main {
  width: 100% !important;
  max-width: 420px !important;
  margin: 6px auto 4px auto !important;
  padding: 12px 20px !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0284C7 0%, #004B87 100%) !important;
  border-radius: 999px !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.5) !important;
  cursor: pointer !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: transform 140ms ease, box-shadow 140ms ease !important;
}

.btn-start-track-main:active {
  transform: scale(0.97) !important;
}

/* Thumbzone Dock das 15 Bolinhas Flutuantes */
#module-detail-view #mytrip-bottom-dock {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  padding: 4px 0 6px 0 !important;
  margin: 0 !important;
  background: #07111F !important;
  border: none !important;
  box-shadow: none !important;
}

/* 7. GLOSSÁRIO FLASHCARDS: TERMO EM DUAS LINHAS SEM CORTE & CLUSTER COESO NA BASE */
.glossary-card-wrapper {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: calc(100dvh - 130px) !important;
  min-height: 360px !important;
  position: relative !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

.glossary-card-content {
  position: relative !important;
  z-index: 3 !important;
  padding: 14px 16px 10px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.glossary-theme-tag {
  margin-bottom: auto !important;
}

.glossary-terms-cluster {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: auto !important;
  margin-bottom: 10px !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
}

/* Termo em Inglês com destaque, quebra natural em 2 linhas e zero corte */
.glossary-term-en {
  font-size: clamp(21px, 5.4vw, 29px) !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  line-height: 1.22 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  max-width: 100% !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
  letter-spacing: -0.01em !important;
}

.glossary-term-en .glossary-en-txt {
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: inline-block !important;
  text-align: center !important;
  max-width: 92% !important;
}

.glossary-term-pt {
  font-size: clamp(14.5px, 4vw, 17.5px) !important;
  font-weight: 700 !important;
  color: #CBD5E1 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8) !important;
}

.glossary-phonetic {
  font-size: clamp(13.5px, 3.6vw, 16px) !important;
  color: #FEF08A !important;
  font-weight: 700 !important;
  margin: 0 !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8) !important;
}

#btn-glossary-audio {
  min-height: 42px !important;
  padding: 10px 24px !important;
  font-size: 0.95rem !important;
  border-radius: 999px !important;
  margin-bottom: 4px !important;
}
