/* ==========================================================================
   PROJETO LIRACODE - DESIGN SYSTEM ESPORTIVO & TECNOLÓGICO
   Cores: Vermelho Carmesim (#b91c1c), Azul Marinho (#0f172a, #1e3a8a), Dourado (#eab308)
   Tipografia: Chakra Petch (display/títulos), Inter (leitura), Fira Code (código)
   ========================================================================== */

:root {
  --brand-red: #b91c1c;
  --brand-red-dark: #881337;
  --brand-red-light: #ef4444;
  --brand-blue: #1e3a8a;
  --brand-darkblue: #0f172a;
  --brand-navy: #090e1a;
  --brand-gold: #eab308;
  --brand-gold-light: #fde047;
  --brand-gold-dark: #ca8a04;
  --brand-accent: #f59e0b;

  --surface-card: #131d31;
  --surface-border: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --color-safe: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--brand-darkblue);
  background-image: radial-gradient(rgba(234, 179, 8, 0.12) 1.2px, transparent 0);
  background-size: 26px 26px;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--brand-darkblue);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-red);
  border-radius: 5px;
  border: 2px solid var(--brand-gold);
}

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

/* ================================================= */
/* NAVBAR / HEADER                                   */
/* ================================================= */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--brand-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.logo-escudo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo-escudo:hover {
  transform: scale(1.02);
}

.escudo-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 50%, var(--brand-blue) 100%);
  border: 2px solid var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
  color: var(--brand-gold);
  font-size: 1.5rem;
}

.logo-text h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.1;
  background: linear-gradient(to right, var(--brand-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-gold-light);
  display: block;
}

.mobile-toggle {
  display: none;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: var(--brand-gold);
  color: #0f172a;
}

/* Menu Nobre - Estilo Pílulas */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(234, 179, 8, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand-gold-light);
  background: rgba(234, 179, 8, 0.12);
  border-color: var(--brand-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.15);
}

.nav-link.active {
  color: #0f172a;
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
  border-color: var(--brand-gold);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.35);
}

.nav-link.active i {
  color: #0f172a !important;
}

/* Dropdown Suspenso Nobre */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.dropdown-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-caret,
.nav-dropdown.open .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--brand-gold);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 15px rgba(234, 179, 8, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(234, 179, 8, 0.1);
  color: var(--brand-gold-light);
  border-color: rgba(234, 179, 8, 0.3);
  transform: translateX(3px);
}

.dropdown-item-badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
}

.dropdown-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-badge-live {
  background: linear-gradient(90deg, var(--brand-blue), #1e293b);
  border: 1px solid rgba(234, 179, 8, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ================================================= */
/* HERO SECTION                                      */
/* ================================================= */
.hero-section {
  position: relative;
  padding: 70px 0 60px 0;
  background: linear-gradient(180deg, #090e1a 0%, var(--brand-darkblue) 100%);
  border-bottom: 2px solid rgba(234, 179, 8, 0.25);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(185, 28, 28, 0.3);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 620px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-accent) 100%);
  color: #0f172a;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5);
  color: #090e1a;
}

.btn-outline {
  background: rgba(19, 29, 49, 0.7);
  color: var(--text-main);
  border: 1px solid var(--brand-gold);
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(234, 179, 8, 0.15);
  border-color: var(--brand-gold-light);
  transform: translateY(-2px);
}

.hero-card-side {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.8) 0%, rgba(136, 19, 55, 0.9) 40%, var(--brand-blue) 100%);
  padding: 3px;
  border-radius: 24px;
  border: 2px solid var(--brand-gold);
  box-shadow: 0 0 30px rgba(234, 179, 8, 0.35);
}

.hero-card-inner {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 20px;
  padding: 28px;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: var(--brand-red); }
.dot-gold { background: var(--brand-gold); }
.dot-blue { background: var(--brand-blue); }

.tag-badge {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  background: rgba(234, 179, 8, 0.15);
  color: var(--brand-gold-light);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.stat-item {
  background: rgba(19, 29, 49, 0.9);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(234, 179, 8, 0.2);
  text-align: center;
}

.stat-val {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-gold);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ================================================= */
/* A TRILHA DA ESTRADA COM PEZINHO 👣                */
/* ================================================= */
.road-section {
  padding: 80px 0;
  background: var(--brand-navy);
  border-bottom: 2px solid rgba(234, 179, 8, 0.2);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand-gold);
  background: rgba(234, 179, 8, 0.1);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(234, 179, 8, 0.3);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* A Estrada Visual */
.road-track {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 0;
}

/* Faixa de asfalto central */
.road-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  background: #111827;
  border-left: 3px solid rgba(234, 179, 8, 0.4);
  border-right: 3px solid rgba(234, 179, 8, 0.4);
  border-radius: 8px;
  z-index: 1;
}

/* Linha pontilhada no meio da pista */
.road-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--brand-gold) 0,
    var(--brand-gold) 20px,
    transparent 20px,
    transparent 40px
  );
  z-index: 2;
}

/* Marco / Checkpoint Container */
.checkpoint-row {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 5;
}

.checkpoint-row:last-child {
  margin-bottom: 0;
}

.checkpoint-row.left {
  flex-direction: row-reverse;
}

.checkpoint-card-wrapper {
  width: 45%;
}

.checkpoint-center {
  width: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.checkpoint-space {
  width: 45%;
}

/* Marcador / Placa na Estrada */
.milestone-sign {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  background: #0f172a;
  border: 3px solid var(--brand-gold);
  color: var(--brand-gold);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
  position: relative;
  z-index: 10;
}

/* Efeito do Pezinho 👣 */
.walking-feet {
  position: absolute;
  top: -46px;
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.8));
  animation: walkBounce 2s infinite ease-in-out;
  z-index: 20;
}

@keyframes walkBounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.15) rotate(-5deg); }
  100% { transform: translateY(0) scale(1); }
}

.walking-tag {
  position: absolute;
  top: -72px;
  white-space: nowrap;
  background: var(--brand-gold);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Cards das Aulas nos Marcos */
.checkpoint-card {
  background: var(--surface-card);
  border: 2px solid rgba(234, 179, 8, 0.3);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.checkpoint-card.unlocked:hover {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.25);
}

.checkpoint-card.current {
  border-color: var(--brand-gold);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, var(--surface-card) 100%);
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.3);
}

.checkpoint-card.locked {
  opacity: 0.65;
  border-color: var(--surface-border);
  border-style: dashed;
  filter: grayscale(40%);
}

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

.badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-current {
  background: rgba(234, 179, 8, 0.2);
  color: var(--brand-gold-light);
  border: 1px solid var(--brand-gold);
  animation: pulse 2s infinite;
}

.badge-locked {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.card-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-card-unlocked {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-gold);
}

.btn-card-unlocked:hover {
  background: var(--brand-gold);
  color: #0f172a;
}

.btn-card-current {
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-accent));
  color: #0f172a;
}

.btn-card-current:hover {
  brightness: 1.15;
}

.btn-card-locked {
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-dim);
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================================================= */
/* ÁREA DOS PAIS                                     */
/* ================================================= */
.parents-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--brand-darkblue) 0%, #090e1a 100%);
  border-bottom: 2px solid rgba(234, 179, 8, 0.2);
}

.parents-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(185, 28, 28, 0.15) 100%);
  border: 2px solid var(--brand-gold);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.parents-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.parents-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--brand-gold);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.parents-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(234, 179, 8, 0.25);
  padding: 24px;
  border-radius: 16px;
}

.parents-box h4 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.15rem;
  color: var(--brand-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.parents-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.parents-box ul {
  list-style: none;
}

.parents-box ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
  padding-left: 24px;
}

.parents-box ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* ================================================= */
/* PÁGINAS DEDICADAS DE AULA                         */
/* ================================================= */
.lesson-page-header {
  padding: 50px 0 40px 0;
  background: linear-gradient(180deg, #090e1a 0%, var(--brand-darkblue) 100%);
  border-bottom: 2px solid var(--brand-gold);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.breadcrumb-nav a {
  color: var(--brand-gold);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav span {
  color: var(--text-dim);
}

.lesson-page-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lesson-page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.lesson-body {
  padding: 50px 0 80px 0;
}

.content-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.content-card h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 14px;
}

/* ================================================= */
/* LABORATÓRIO INTERATIVO & EXTENSÕES                */
/* ================================================= */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.ext-card {
  background: #0f172a;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--surface-border);
  transition: all 0.25s ease;
}

.ext-card:hover {
  transform: translateY(-3px);
}

.ext-card.safe { border-top: 5px solid var(--color-safe); }
.ext-card.moderate { border-top: 5px solid var(--color-warning); }
.ext-card.danger { border-top: 5px solid var(--color-danger); }

.ext-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ext-name {
  font-family: 'Fira Code', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.ext-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge-risk-low { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-risk-med { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-risk-high { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.ext-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.ext-card p {
  font-size: 0.88rem !important;
  color: var(--text-muted);
  margin-bottom: 14px !important;
}

.meter-wrapper {
  margin-bottom: 16px;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meter-bar {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 10px;
}

.fill-safe { width: 10%; background: var(--color-safe); }
.fill-med { width: 25%; background: var(--color-warning); }
.fill-danger { width: 100%; background: linear-gradient(90deg, var(--color-warning), var(--color-danger)); }

.btn-download-blob {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-blob-safe { background: rgba(16, 185, 129, 0.25); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.btn-blob-safe:hover { background: #10b981; color: #fff; }

.btn-blob-med { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.btn-blob-med:hover { background: #f59e0b; color: #000; }

.btn-blob-danger { background: rgba(239, 68, 68, 0.25); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.btn-blob-danger:hover { background: #ef4444; color: #fff; }

/* Simulador do Golpe do Arquivo Oculto */
.simulator-box {
  background: #090e1a;
  border: 2px solid var(--brand-gold);
  border-radius: 18px;
  padding: 26px;
  margin-top: 30px;
}

.sim-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.switch-toggle {
  width: 48px;
  height: 24px;
  background: #334155;
  border-radius: 20px;
  position: relative;
  transition: background 0.3s;
}

.switch-toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}

input[type="checkbox"]:checked + .switch-toggle {
  background: var(--brand-red);
}

input[type="checkbox"]:checked + .switch-toggle::after {
  transform: translateX(24px);
}

.sim-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sim-file-view {
  background: #111827;
  border: 2px dashed rgba(234, 179, 8, 0.4);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.file-icon-large {
  font-size: 3rem;
  margin-bottom: 10px;
}

.file-name-styled {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.sim-result-box {
  background: #111827;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ================================================= */
/* MODAL CUSTOMIZADO                                 */
/* ================================================= */
.custom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.custom-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0f172a;
  border: 2px solid var(--brand-gold);
  border-radius: 18px;
  padding: 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 0 30px rgba(234, 179, 8, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-icon {
  font-size: 1.6rem;
  color: var(--brand-gold);
}

.modal-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.3rem;
  color: #fff;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ================================================= */
/* FOOTER                                            */
/* ================================================= */
.footer {
  background: #090e1a;
  border-top: 2px solid var(--brand-gold);
  padding: 40px 0;
  margin-top: auto;
}

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

.footer-logo {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-gold);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ================================================= */
/* RESPONSIVIDADE                                    */
/* ================================================= */
@media (max-width: 990px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(9, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--brand-gold);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-menu.active {
    display: flex;
    animation: slideDownNav 0.25s ease-out;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(234, 179, 8, 0.3);
    margin-top: 8px;
    width: 100%;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu,
  .nav-dropdown:hover .dropdown-menu {
    display: block;
  }
  .dropdown-item {
    padding: 12px 14px;
  }
  .nav-badge-live {
    width: 100%;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
  }
  .logo-text h1 {
    font-size: 1.3rem;
  }
  .logo-text span {
    font-size: 0.62rem;
  }
  .escudo-badge {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 24px auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .parents-grid {
    grid-template-columns: 1fr;
  }
  
  /* Estrada no Mobile */
  .road-track::before {
    left: 30px;
  }
  .road-track::after {
    left: 30px;
  }
  .checkpoint-row, .checkpoint-row.left {
    flex-direction: row;
    align-items: flex-start;
  }
  .checkpoint-center {
    width: 60px;
    align-items: flex-start;
  }
  .checkpoint-card-wrapper {
    width: calc(100% - 70px);
    margin-left: 10px;
  }
  .checkpoint-space {
    display: none;
  }
  .walking-feet {
    top: -38px;
    left: 5px;
  }
  .walking-tag {
    top: -58px;
    left: -10px;
  }
  .sim-display {
    grid-template-columns: 1fr;
  }
}

@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
