:root {
  --bg: #06111f;
  --bg-strong: #020812;
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --surface-dark: rgba(7, 19, 35, 0.78);
  --line: rgba(121, 150, 172, 0.22);
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #102033;
  --text-soft: #526272;
  --text-inverse: #f7fbff;
  --muted-inverse: #b8c7d6;
  --cyan: #21d8ff;
  --green: #32f0a1;
  --amber: #ffbd33;
  --blue: #4c8dff;
  --shadow: 0 24px 70px rgba(3, 18, 35, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: min(1180px, calc(100% - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--text);
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--container);
  margin: 18px auto 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(2, 8, 18, 0.62);
  color: var(--text-inverse);
  backdrop-filter: blur(22px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(2, 8, 18, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-size: 0.82rem;
  line-height: 1;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  font-weight: 900;
}

.brand em {
  color: var(--green);
  font-style: normal;
}

.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 7px);
  align-items: end;
  gap: 3px;
  width: 30px;
  height: 30px;
}

.brand-mark span {
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--green), var(--cyan));
}

.brand-mark span:nth-child(1) {
  height: 14px;
}

.brand-mark span:nth-child(2) {
  height: 23px;
}

.brand-mark span:nth-child(3) {
  height: 30px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(247, 251, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 700;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--green);
}

.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 850;
}

.header-action,
.btn-primary {
  background: linear-gradient(135deg, var(--green), #42f7c8);
  color: #001826;
  box-shadow: 0 16px 34px rgba(50, 240, 161, 0.23);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--bg);
  color: var(--text-inverse);
}

.section-light {
  background: var(--surface);
}

.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  padding: 120px 0 50px;
}

.hero::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 76px;
  background: linear-gradient(180deg, rgba(6, 17, 31, 0), var(--surface));
  content: "";
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 18, 0.96) 0%, rgba(2, 8, 18, 0.84) 34%, rgba(2, 8, 18, 0.3) 68%),
    linear-gradient(180deg, rgba(2, 8, 18, 0.15), rgba(2, 8, 18, 0.92)),
    url("../assets/hero-data-analytics.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 30px;
  width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy h1 {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.02em;
}

.hero-copy h1::first-line {
  color: var(--text-inverse);
}

.hero-copy p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted-inverse);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  text-align: center;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.hero-proof {
  gap: 26px;
  margin-top: 36px;
}

.hero-proof div {
  padding-left: 16px;
  border-left: 2px solid rgba(33, 216, 255, 0.5);
}

.hero-proof dt {
  margin-bottom: 6px;
  color: var(--text-inverse);
  font-weight: 850;
}

.hero-proof dd {
  margin: 0;
  color: var(--muted-inverse);
  font-size: 0.92rem;
}

.hero-panel,
.analytics-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10, 28, 49, 0.86), rgba(6, 17, 31, 0.72));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 24px;
}

.panel-header,
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-inverse);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-header strong,
.card-top strong {
  color: var(--green);
  text-transform: none;
}

.signal-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  height: 190px;
  margin: 28px 0;
  padding: 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 100% 25%, 16.66% 100%, auto;
}

.signal-chart span {
  min-height: 22px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, var(--cyan), rgba(33, 216, 255, 0.15));
}

.signal-chart span:nth-child(even) {
  background: linear-gradient(180deg, var(--green), rgba(50, 240, 161, 0.13));
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.panel-grid div {
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.panel-grid span {
  display: block;
  color: var(--muted-inverse);
  font-size: 0.82rem;
}

.panel-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text-inverse);
  font-size: 2rem;
}

.hero-panel p {
  color: var(--muted-inverse);
  line-height: 1.6;
}

.section-heading {
  width: var(--container);
  max-width: 850px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 38px;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #008ac2;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-dark .section-label,
.dashboard-section .section-label {
  color: var(--cyan);
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
}

.section-heading p,
.dashboard-intro p,
.cta-content p {
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.75;
}

.section-dark .section-heading p,
.dashboard-intro p,
.cta-content p {
  color: var(--muted-inverse);
}

.value-grid,
.number-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: var(--container);
  margin: 0 auto;
}

.value-card,
.number-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(14, 39, 64, 0.08);
}

.value-card p {
  color: var(--text-soft);
  line-height: 1.65;
}

.icon {
  display: block;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(33, 216, 255, 0.16), rgba(50, 240, 161, 0.16));
  position: relative;
}

.icon::before,
.icon::after {
  position: absolute;
  content: "";
}

.target-icon::before {
  inset: 12px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
}

.target-icon::after {
  inset: 21px;
  border-radius: 50%;
  background: var(--cyan);
}

.data-icon::before {
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 -10px 0 var(--green), 0 -20px 0 var(--green);
}

.insight-icon::before {
  left: 15px;
  top: 10px;
  width: 20px;
  height: 24px;
  border: 3px solid var(--amber);
  border-radius: 50% 50% 42% 42%;
}

.impact-icon::before {
  left: 13px;
  top: 12px;
  width: 24px;
  height: 20px;
  border: 3px solid var(--blue);
  border-radius: 7px;
}

.objective-band {
  background:
    radial-gradient(circle at 20% 20%, rgba(33, 216, 255, 0.15), transparent 34%),
    linear-gradient(135deg, #eef7fb, #ffffff);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  width: var(--container);
  margin: 0 auto;
}

.objective-list {
  display: grid;
  gap: 16px;
}

.objective-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.objective-list strong {
  color: var(--cyan);
  font-size: 1.65rem;
}

.objective-list p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.timeline-section {
  background:
    radial-gradient(circle at 15% 0%, rgba(33, 216, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(50, 240, 161, 0.12), transparent 28%),
    var(--bg-strong);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: var(--container);
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.timeline-item span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(33, 216, 255, 0.58);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 900;
}

.timeline-item:nth-child(2) span,
.timeline-item:nth-child(5) span {
  border-color: rgba(50, 240, 161, 0.6);
  color: var(--green);
}

.timeline-item:nth-child(4) span {
  border-color: rgba(255, 189, 51, 0.65);
  color: var(--amber);
}

.timeline-item time {
  display: block;
  margin: 8px 0 12px;
  color: var(--cyan);
  font-weight: 800;
}

.timeline-item p {
  color: var(--muted-inverse);
  line-height: 1.6;
}

.numbers-section {
  background: var(--surface);
}

.number-grid article {
  text-align: center;
}

.number-grid strong {
  display: block;
  color: var(--text);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
}

.number-grid span {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  font-weight: 750;
}

.dashboard-section {
  background:
    radial-gradient(circle at 70% 0%, rgba(33, 216, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #06111f, #020812);
}

.dashboard-intro,
.dashboard-grid {
  width: var(--container);
  margin: 0 auto;
}

.dashboard-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.dashboard-intro h2 {
  max-width: 620px;
}

.dashboard-intro p {
  max-width: 620px;
}

.dashboard-tabs {
  display: inline-flex;
  padding: 6px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-inverse);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
}

.dashboard-tabs button.active {
  background: var(--text-inverse);
  color: #001826;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.85fr;
  gap: 18px;
}

.analytics-card {
  min-height: 320px;
  padding: 22px;
}

.span-2 {
  grid-column: span 1;
}

.line-chart {
  margin-top: 22px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 100% 25%, 20% 100%, auto;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.area {
  fill: url("#lineFill");
}

.line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 6;
}

.line-primary {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(33, 216, 255, 0.42));
}

.line-secondary {
  stroke: var(--green);
  opacity: 0.85;
}

.donut-wrap {
  display: grid;
  place-items: center;
  gap: 22px;
  margin-top: 26px;
}

.donut {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 38%, var(--green) 38% 60%, var(--amber) 60% 82%, var(--blue) 82% 100%);
  position: relative;
}

.donut::after {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: #071323;
  content: "";
}

.legend-list {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--muted-inverse);
  font-size: 0.9rem;
  list-style: none;
}

.legend-list span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.cyan {
  background: var(--cyan);
}

.green {
  background: var(--green);
}

.amber {
  background: var(--amber);
}

.blue {
  background: var(--blue);
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.ranking-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-inverse);
  counter-increment: rank;
}

.ranking-list li::before {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(33, 216, 255, 0.15);
  color: var(--cyan);
  content: counter(rank);
  font-size: 0.8rem;
  font-weight: 900;
}

.ranking-list strong {
  flex: 1;
  color: var(--text-inverse);
  font-size: 0.92rem;
}

.ranking-list span {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.cta-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  background: #04101d;
  color: var(--text-inverse);
}

.cta-image {
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(4, 16, 29, 0.08), rgba(4, 16, 29, 0.8)),
    url("../assets/students-data-lab.png") center / cover no-repeat;
}

.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: 82px min(8vw, 96px) 82px 52px;
}

.interest-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.interest-form label {
  display: grid;
  gap: 8px;
  color: var(--text-inverse);
  font-size: 0.86rem;
  font-weight: 800;
}

.interest-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
  outline: none;
  padding: 0 14px;
}

.interest-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(33, 216, 255, 0.12);
}

.interest-form input::placeholder {
  color: rgba(247, 251, 255, 0.48);
}

.interest-form button,
.form-feedback {
  grid-column: 1 / -1;
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 34px;
  padding: 44px max(20px, calc((100vw - 1180px) / 2)) 26px;
  background: var(--bg-strong);
  color: var(--text-inverse);
}

.footer-brand p,
.copyright {
  color: var(--muted-inverse);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted-inverse);
  font-weight: 750;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 1020px) {
  .header-action,
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: fixed;
    inset: 74px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    background: rgba(2, 8, 18, 0.97);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .hero-content,
  .split-layout,
  .dashboard-intro,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: start;
  }

  .hero-panel {
    max-width: 520px;
  }

  .value-grid,
  .number-grid,
  .timeline,
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-intro {
    display: grid;
  }

  .cta-image {
    min-height: 360px;
  }

  .cta-content {
    max-width: none;
    padding: 56px 30px 72px;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .site-header {
    margin-top: 10px;
    border-radius: 22px;
  }

  .brand {
    font-size: 0.74rem;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(2, 8, 18, 0.92) 0%, rgba(2, 8, 18, 0.82) 54%, rgba(2, 8, 18, 0.98) 100%),
      url("../assets/hero-data-analytics.png") center / cover no-repeat;
  }

  .hero-actions,
  .btn,
  .dashboard-tabs,
  .interest-form {
    width: 100%;
  }

  .btn {
    min-height: 52px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-proof {
    display: grid;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    text-align: left;
  }

  .value-grid,
  .number-grid,
  .timeline,
  .dashboard-grid,
  .interest-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .dashboard-tabs {
    display: grid;
    border-radius: var(--radius-md);
  }

  .analytics-card {
    min-height: auto;
  }

  .cta-image {
    min-height: 300px;
  }

  .site-footer {
    padding-inline: 22px;
  }
}

/* ============================================================
   TEACHER PORTAL & RESTRICTED AREA
   ============================================================ */

.container-box {
  width: var(--container);
  margin: 0 auto;
}

/* Lockscreen */
.lockscreen-container {
  display: grid;
  place-items: center;
  width: var(--container);
  margin: 0 auto;
  padding: 40px 0;
}

.lockscreen-card {
  max-width: 550px;
  width: 100%;
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(10, 28, 49, 0.86);
  border: 1px solid var(--line-dark);
}

.lock-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 15px rgba(33, 216, 255, 0.4));
}

.lockscreen-card h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: var(--text-inverse);
}

.lockscreen-card p {
  color: var(--muted-inverse);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.lock-input-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.lock-input-group input {
  flex: 1;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  padding: 0 16px;
  outline: none;
  font-size: 1rem;
  transition: border-color 180ms ease;
}

.lock-input-group input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(33, 216, 255, 0.2);
}

.lock-error-msg {
  color: #ff5e5e;
  font-weight: 800;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* Ethics Box */
.ethics-section {
  background: var(--surface-soft);
  padding: 48px 0 24px;
}

.danger-outline-panel {
  border: 2px solid rgba(255, 94, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 28px;
  background: rgba(255, 94, 94, 0.04);
}

.danger-title {
  color: #d93838;
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.danger-outline-panel p {
  margin: 0 0 12px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.danger-outline-panel p strong {
  color: #d93838;
}

/* Gabarito Filter Bar & Search */
.gabarito-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  margin-bottom: 32px;
}

.gabarito-tabs-filter {
  display: flex;
  gap: 8px;
}

.gabarito-tabs-filter button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-inverse);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  transition: all 180ms ease;
}

.gabarito-tabs-filter button:hover {
  color: var(--text-inverse);
}

.gabarito-tabs-filter button.active {
  background: var(--cyan);
  color: #001826;
  box-shadow: 0 8px 20px rgba(33, 216, 255, 0.25);
}

.gabarito-search-box {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 480px;
  width: 100%;
}

.gabarito-search-box input {
  flex: 1;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  padding: 0 14px;
  outline: none;
  font-size: 0.92rem;
}

.gabarito-search-box input:focus {
  border-color: var(--cyan);
}

/* Gabarito Grid & Cards */
.gabarito-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gabarito-card {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(10, 28, 49, 0.6), rgba(6, 17, 31, 0.45));
  display: flex;
  flex-direction: column;
}

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

.gabarito-code {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--cyan);
}

.gabarito-level-badge {
  font-size: 0.76rem;
  font-weight: 850;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.gabarito-level-badge.level-facil {
  background: rgba(50, 240, 161, 0.16);
  color: var(--green);
}

.gabarito-level-badge.level-medio {
  background: rgba(255, 189, 51, 0.16);
  color: var(--amber);
}

.gabarito-level-badge.level-dificil {
  background: rgba(255, 94, 94, 0.16);
  color: #ff5e5e;
}

.gabarito-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-inverse);
  font-weight: 800;
}

.gabarito-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--muted-inverse);
}

.answer-highlight {
  background: rgba(33, 216, 255, 0.2);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 900;
}

.gabarito-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted-inverse);
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.gabarito-attention {
  font-size: 0.84rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 189, 51, 0.08);
  border-left: 3px solid var(--amber);
  color: var(--muted-inverse);
}

/* Rubricas Layout */
.rubricas-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.04);
}

.rubrica-tabs-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.rubrica-tab-btn {
  text-align: left;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 750;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 180ms ease;
}

.rubrica-tab-btn:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.rubrica-tab-btn.active {
  background: var(--surface-soft);
  color: #008ac2;
  border-left: 4px solid #008ac2;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.rubrica-panel-content {
  min-height: 380px;
}

.rubrica-detail-card h2 {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 22px;
  font-weight: 850;
}

.rubrica-section-block {
  margin-bottom: 22px;
}

.rubrica-section-block h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 800;
}

.rubrica-section-block ul,
.rubrica-section-block ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.rubrica-section-block li {
  margin-bottom: 8px;
}

.rubrica-excellence-block {
  padding: 16px 20px;
  background: rgba(33, 216, 255, 0.06);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--cyan);
  margin-top: 24px;
}

.rubrica-excellence-block strong {
  display: block;
  font-size: 0.9rem;
  color: #008ac2;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rubrica-excellence-block p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* Squad Cards in orientacao */
.squads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.squad-card {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}

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

.squad-number {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.squad-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(33, 216, 255, 0.15);
  color: var(--cyan);
}

.squad-card h3 {
  font-size: 1.15rem;
  color: var(--text-inverse);
  margin-bottom: 12px;
  line-height: 1.25;
}

.squad-problem {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted-inverse);
  margin: 0 0 16px 0;
}

.squad-details {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted-inverse);
  border-top: 1px solid var(--line-dark);
  padding-top: 14px;
  margin-top: auto;
}

.squad-details p {
  margin: 0 0 6px 0;
}

.squad-details p:last-child {
  margin-bottom: 0;
}

/* Documents Grid */
.documents-download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.document-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.03);
}

.doc-icon {
  font-size: 2.5rem;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(33, 216, 255, 0.08);
}

.doc-info {
  flex: 1;
}

.doc-info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.doc-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.document-card button {
  align-self: center;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: grid;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #020812;
  color: var(--text-inverse);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  animation: toast-fade-in 250ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.fade-out {
  animation: toast-fade-out 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon {
  color: var(--green);
  font-size: 1rem;
}

@keyframes toast-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-fade-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
}

/* Media Queries for Orientation Page */
@media (max-width: 900px) {
  .rubricas-layout {
    grid-template-columns: 1fr;
  }
  .rubrica-tabs-group {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 14px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .rubrica-tab-btn.active {
    border-left: 0;
    border-bottom: 3px solid #008ac2;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .documents-download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .lockscreen-card {
    padding: 28px 20px;
  }
  .lock-input-group {
    flex-direction: column;
    width: 100%;
  }
  .lock-input-group input,
  .lock-input-group button {
    width: 100%;
  }
  .gabarito-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .gabarito-tabs-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .gabarito-tabs-filter button {
    width: 100%;
  }
  .document-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .document-card button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ============================================================
   STUDENT SIMULADO & WIZARD
   ============================================================ */

/* Glass Panel Adaptation */
.glass-panel {
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.section-light .glass-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(121, 150, 172, 0.22);
  box-shadow: 0 12px 40px rgba(16, 32, 51, 0.06);
}
.section-dark .glass-panel {
  background: rgba(7, 19, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* Squad Selection Screen */
.squad-select-section {
  position: relative;
  min-height: 85vh;
  display: grid;
  align-items: center;
  padding: 120px 0 60px;
}
.squad-select-container {
  display: flex;
  justify-content: center;
  z-index: 2;
}
.squad-select-card {
  max-width: 640px;
  width: 100%;
  padding: 48px;
  text-align: center;
  border-radius: var(--radius-lg) !important;
}
.squad-select-card h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-inverse);
  margin: 12px 0 18px;
  line-height: 1.15;
}
.squad-select-card p {
  color: var(--muted-inverse);
  line-height: 1.6;
  margin-bottom: 32px;
  font-size: 0.98rem;
}
.squad-select-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
}
.squad-select-form label {
  text-align: left;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.glass-input {
  width: 100%;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  padding: 0 16px;
  outline: none;
  font-size: 1rem;
  transition: all 180ms ease;
}
.glass-input option {
  background: var(--bg-strong);
  color: var(--text-inverse);
}
.glass-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(33, 216, 255, 0.2);
}

/* Simulado Main Layout */
.quiz-section {
  padding: 130px 0 80px;
  background: var(--surface-soft);
}
.simulado-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

/* Column 1: Wizard Card */
.quiz-wizard-card {
  padding: 40px;
  border-radius: var(--radius-lg) !important;
}
.quiz-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.q-code-label {
  font-size: 1.25rem;
  font-weight: 900;
  color: #008ac2;
  margin-right: 12px;
}
.q-level-badge {
  font-size: 0.72rem;
  font-weight: 850;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.q-level-badge.level-facil {
  background: rgba(50, 240, 161, 0.15);
  color: #1b8756;
}
.q-level-badge.level-medio {
  background: rgba(255, 189, 51, 0.15);
  color: #b27a00;
}
.q-level-badge.level-dificil {
  background: rgba(255, 94, 94, 0.15);
  color: #d63636;
}
.q-type-badge {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.q-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text);
  margin: 0 0 24px;
  font-weight: 850;
  line-height: 1.25;
}
.q-enunciado-block {
  background: rgba(121, 150, 172, 0.08);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px;
  margin-bottom: 20px;
}
.q-enunciado-block h3,
.q-question-block h3 {
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin: 0 0 8px;
}
.q-enunciado-block p {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.6;
  white-space: pre-line;
}
.q-question-block {
  margin-bottom: 28px;
  padding: 0 4px;
}
.q-question-block p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.55;
  white-space: pre-line;
}

/* Option Items List */
.q-options-wrapper {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}
.option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px !important;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-sm) !important;
  position: relative;
  user-select: none;
}
.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  cursor: pointer;
}
.option-item span {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text);
}
.option-item:hover {
  background: rgba(121, 150, 172, 0.12) !important;
  transform: translateY(-1px);
}
.option-item.selected {
  background: rgba(33, 216, 255, 0.08) !important;
  border-color: rgba(33, 216, 255, 0.6) !important;
  box-shadow: 0 4px 20px rgba(33, 216, 255, 0.1) !important;
}

/* Discursiva (Resposta Construída) Textarea */
.q-discursiva-wrapper {
  margin-bottom: 30px;
}
.q-discursiva-wrapper label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.glass-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 16px;
  outline: none;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 180ms ease;
}
.glass-textarea:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.15);
}
.discursiva-notice {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 6px 0 0;
  font-style: italic;
}

/* Caesar Cipher Tool Visualizer */
.caesar-tool-wrapper {
  border: 1px solid rgba(33, 216, 255, 0.3) !important;
  background: rgba(33, 216, 255, 0.03) !important;
  border-radius: var(--radius-md) !important;
}

/* Action Rows */
.quiz-actions-row,
.quiz-nav-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.quiz-actions-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.quiz-nav-row {
  justify-content: space-between;
}
.quiz-actions-row .btn,
.quiz-nav-row .btn {
  min-height: 44px;
}

/* Feedback & Hints Panel */
.hint-panel,
.feedback-panel {
  padding: 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.hint-panel {
  background: rgba(255, 189, 51, 0.06);
  border-left: 4px solid var(--amber);
}
.hint-panel p,
.feedback-panel p {
  margin: 6px 0 0;
  color: var(--text);
}
.feedback-panel.success {
  background: rgba(50, 240, 161, 0.06);
  border-left: 4px solid var(--green);
}
.feedback-panel.error {
  background: rgba(255, 94, 94, 0.06);
  border-left: 4px solid #ff5e5e;
}
.feedback-panel.success p::before {
  content: "✅ ";
}
.feedback-panel.error p::before {
  content: "❌ ";
}

/* Column 2: Sidebar Panel */
.quiz-sidebar-panel {
  display: grid;
  gap: 24px;
}
.sidebar-card {
  padding: 24px;
  border-radius: var(--radius-md) !important;
}
.sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text);
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

/* Stats Progress */
.progress-bar-outer {
  width: 100%;
  height: 10px;
  background: rgba(121, 150, 172, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 999px;
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.94rem;
  color: var(--text-soft);
}
.stats-row strong {
  font-size: 1.15rem;
  color: #008ac2;
  font-weight: 900;
}

/* Questions Checklist Grid */
.status-legend {
  font-size: 0.74rem;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -6px 0 16px;
  line-height: 1.4;
}
.legend-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.status-legend span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}
.leg-un { border: 1px solid var(--line); background: transparent; }
.leg-correct { background: var(--green); }
.leg-incorrect { background: #ff5e5e; }
.leg-disc { background: var(--blue); }

.sidebar-questions-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.sidebar-q-btn {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 180ms ease;
  padding: 0;
}
.sidebar-q-btn:hover {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--text-soft);
}
.sidebar-q-btn.active {
  border-color: #008ac2;
  box-shadow: 0 0 0 3px rgba(33, 216, 255, 0.2);
  color: #008ac2;
  font-weight: 900;
}
.sidebar-q-btn.correct {
  background: var(--green);
  border-color: var(--green);
  color: #001826;
}
.sidebar-q-btn.incorrect {
  background: #ff5e5e;
  border-color: #ff5e5e;
  color: #ffffff;
}
.sidebar-q-btn.answered-discursiva {
  background: rgba(76, 141, 255, 0.15);
  border-color: var(--blue);
  color: var(--blue);
}
.sidebar-q-btn.tentative {
  border-color: var(--blue);
  color: var(--blue);
  border-style: dashed;
}

/* Badges Achievements List */
.badges-list {
  display: grid;
  gap: 10px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  border-radius: var(--radius-sm) !important;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.badge-item.locked {
  opacity: 0.45;
  filter: grayscale(1);
}
.badge-item.unlocked {
  border-color: rgba(50, 240, 161, 0.35) !important;
  background: rgba(50, 240, 161, 0.03) !important;
  box-shadow: 0 4px 15px rgba(50, 240, 161, 0.05);
}
.badge-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.badge-info {
  display: grid;
  gap: 2px;
}
.badge-info strong {
  font-size: 0.88rem;
  color: var(--text);
}
.badge-item.unlocked .badge-info strong {
  color: #1b8756;
}
.badge-info span {
  font-size: 0.74rem;
  color: var(--text-soft);
}

/* Results and Finish Screen */
.results-section {
  position: relative;
  min-height: 85vh;
  display: grid;
  align-items: center;
  padding: 120px 0 60px;
}
.results-container {
  z-index: 2;
}
.res-medal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  border-color: rgba(33, 216, 255, 0.25) !important;
  background: rgba(33, 216, 255, 0.05) !important;
}
.res-medal-item span {
  font-size: 1.15rem;
}
.res-medal-item strong {
  font-size: 0.82rem;
  color: var(--text-inverse);
  font-weight: 800;
}

/* Responsive adjustments for Simulado */
@media (max-width: 990px) {
  .simulado-layout {
    grid-template-columns: 1fr;
  }
  .quiz-sidebar-panel {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
  .achievements-card {
    grid-column: span 2;
  }
}
@media (max-width: 600px) {
  .quiz-wizard-card {
    padding: 24px 18px;
  }
  .quiz-sidebar-panel {
    grid-template-columns: 1fr;
  }
  .achievements-card {
    grid-column: span 1;
  }
  .sidebar-questions-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================================
   SQUADS EM AÇÃO - SEÇÃO HOME E GALERIAS
   ============================================================ */
.squads-acao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  width: var(--container);
  margin: 40px auto 0;
}

.squad-acao-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.squad-acao-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(3, 18, 35, 0.08);
}

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

.squad-acao-id {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.squad-acao-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(33, 216, 255, 0.1);
  color: #008ac2;
}

.squad-acao-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 800;
}

.squad-acao-project {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 16px 0;
}

.squad-acao-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 16px 0;
}

.squad-acao-gallery.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.squad-acao-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  transition: transform 200ms ease;
}

.squad-acao-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--cyan);
}

/* ============================================================
   SQUAD MEMBERS LIST & LEADER HIGHLIGHT
   ============================================================ */
.squad-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.squad-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .squad-member {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.03);
}

.squad-member:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .squad-member:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.squad-member.leader {
  background: rgba(50, 240, 161, 0.04);
  border: 1px solid rgba(50, 240, 161, 0.15);
}

[data-theme="light"] .squad-member.leader {
  background: rgba(50, 240, 161, 0.08);
  border: 1px solid rgba(50, 240, 161, 0.2);
}

.squad-member.leader:hover {
  background: rgba(50, 240, 161, 0.08);
}

[data-theme="light"] .squad-member.leader:hover {
  background: rgba(50, 240, 161, 0.12);
}

.squad-member-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

[data-theme="light"] .squad-member-avatar {
  border-color: rgba(0, 0, 0, 0.1);
}

.squad-member.leader .squad-member-avatar {
  border-color: var(--green); /* #32f0a1 */
}

.squad-member-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.squad-member-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

.squad-member.leader .squad-member-name {
  font-weight: 700;
  color: var(--green);
}

[data-theme="light"] .squad-member.leader .squad-member-name {
  color: #178b59; /* Slightly darker green in light theme for better contrast */
}

.squad-member-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--green);
  color: #001826;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

[data-theme="light"] .squad-member-badge {
  background: #178b59;
  color: #ffffff;
}


.squad-acao-details {
  margin-top: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-soft);
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.squad-acao-details p {
  margin: 0;
}

.squad-acao-details strong {
  color: var(--text);
}

/* Sidebar Squad Info and Gallery */
.squad-sidebar-card {
  display: flex;
  flex-direction: column;
}

.squad-gallery-sidebar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.squad-gallery-sidebar.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.squad-gallery-sidebar img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  transition: transform 200ms ease;
}

.squad-gallery-sidebar img:hover {
  transform: scale(1.08);
}

/* ============================================================
   DARK THEME VARIABLES OVERRIDE
   ============================================================ */
[data-theme="dark"] {
  --bg: #030811;
  --bg-strong: #010408;
  --surface: #0b1420;
  --surface-soft: #050a11;
  --surface-dark: rgba(11, 20, 32, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(255, 255, 255, 0.12);
  --text: #e2f0fd;
  --text-soft: #a0b2c6;
  --text-inverse: #ffffff;
  --muted-inverse: #8fa0b5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

[data-theme="dark"] body {
  background: var(--surface-soft);
  color: var(--text);
}

[data-theme="dark"] .section-light {
  background: var(--surface-soft);
}

[data-theme="dark"] .glass-panel {
  background: var(--surface);
  border-color: var(--line);
}

[data-theme="dark"] .brand-mark span {
  background-color: var(--cyan);
}

[data-theme="dark"] .option-item.selected {
  background: rgba(33, 216, 255, 0.1) !important;
  border-color: var(--cyan) !important;
}

[data-theme="dark"] .sidebar-q-btn {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .sidebar-q-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: inherit;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: transform 200ms ease;
}

.theme-toggle-btn:hover {
  transform: scale(1.15);
}

@media (max-width: 1020px) {
  .theme-toggle-btn {
    margin-right: 0;
    margin-bottom: 12px;
  }
}

/* ============================================================
   Modo Projeção (Aula do Professor)
   ============================================================ */
.projection-mode .q-title {
  font-size: 2.2rem !important;
  line-height: 1.3 !important;
}
.projection-mode .q-enunciado-block p,
.projection-mode .q-question-block p {
  font-size: 1.25rem !important;
  line-height: 1.6 !important;
}
.projection-mode .option-item {
  font-size: 1.2rem !important;
  padding: 18px !important;
}
.projection-mode .teacher-panel,
.projection-mode .concept-panel {
  font-size: 1.15rem !important;
}

/* ============================================================
   SQUADS SITE STRUCTURE ADDITIONS
   ============================================================ */

/* Simulator CTA Banner inside squads section */
.squads-simulator-cta {
  padding: 38px 30px;
  margin: 0 auto 34px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(6, 17, 31, 0.95), rgba(10, 28, 49, 0.85));
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(2, 8, 18, 0.45);
}

.squads-simulator-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--cyan));
}

.squads-simulator-cta .cta-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(50, 240, 161, 0.15);
  color: var(--green);
  border: 1px solid rgba(50, 240, 161, 0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  animation: pulse-glow 2s infinite ease-in-out;
}

.squads-simulator-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--text-inverse);
  margin: 0 0 12px 0;
  font-weight: 850;
  line-height: 1.2;
}

.squads-simulator-cta p {
  max-width: 640px;
  color: var(--muted-inverse);
  line-height: 1.6;
  font-size: 0.98rem;
  margin: 0 0 24px 0;
}

.squads-simulator-cta .cta-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.squads-simulator-cta .cta-actions .btn {
  min-height: 52px;
  padding: 0 38px;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: var(--radius-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.squads-simulator-cta .cta-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(50, 240, 161, 0.4);
}

/* Inline Stats Bar */
.squads-stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 40px;
  margin: 0 auto 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.04);
}

.squads-stats-bar .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.squads-stats-bar .stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #008ac2;
  line-height: 1;
  margin-bottom: 4px;
}

.squads-stats-bar .stat-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.squads-stats-bar .stat-divider {
  width: 1px;
  height: 40px;
  background: var(--line);
}

/* Teacher Mode Answer Highlights */
.option-item.teacher-correct {
  border: 2px solid var(--green) !important;
  background: rgba(50, 240, 161, 0.08) !important;
  box-shadow: 0 0 16px rgba(50, 240, 161, 0.25) !important;
  position: relative;
}

.option-item.teacher-correct::after {
  content: "Gabarito";
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--green);
  color: #001826;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(50, 240, 161, 0.3);
  z-index: 5;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 4px rgba(50, 240, 161, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(50, 240, 161, 0.5);
  }
}

@media (max-width: 680px) {
  .squads-stats-bar {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .squads-stats-bar .stat-divider {
    width: 60%;
    height: 1px;
    margin: 0 auto;
  }
}

/* ============================================================
   DIDACTIC TOOLS DRAWER & WHITEBOARD STYLES
   ============================================================ */
.didactic-tools-drawer {
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(255, 189, 51, 0.04);
}

.didactic-tools-drawer .tools-tabs .tab-btn {
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.didactic-tools-drawer .tools-tabs .tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-inverse);
}

[data-theme="light"] .didactic-tools-drawer .tools-tabs .tab-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.didactic-tools-drawer .tools-tabs .tab-btn.active {
  background: var(--amber) !important;
  color: #001826 !important;
  box-shadow: 0 4px 12px rgba(255, 189, 51, 0.2);
}

.didactic-tools-drawer .color-pick {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.didactic-tools-drawer .color-pick:hover {
  transform: scale(1.2);
}

.didactic-tools-drawer .color-pick.active {
  box-shadow: 0 0 8px currentColor;
}

/* Audio Toggle Button in Header */
.audio-toggle-btn:hover {
  transform: scale(1.15);
}

/* Streak Row & Fire Combo Widget */
#streak-row {
  animation: slide-down 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 4px 15px rgba(255, 189, 51, 0.1);
}

#streak-counter {
  animation: pop-pulse 0.4s ease;
}

/* Level Bar Progression */
.level-bar-outer {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.level-bar-inner {
  box-shadow: 0 0 10px rgba(50, 240, 161, 0.5);
}

/* Keyframes for new widgets */
@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Light / Dark Mode adaptive adjustments */
[data-theme="light"] .didactic-tools-drawer {
  background: rgba(255, 189, 51, 0.03) !important;
  border-color: rgba(255, 189, 51, 0.25) !important;
  color: var(--text) !important;
}

[data-theme="light"] .didactic-tools-drawer h3 {
  color: #c48c08 !important;
}

[data-theme="light"] .tool-tab-content textarea {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: var(--line) !important;
}

[data-theme="light"] .tool-tab-content select {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: var(--line) !important;
}

[data-theme="light"] #scratchpad-canvas {
  background: #071323 !important; /* Retain dark background inside canvas for light theme too for white/green/cyan colors visibility */
  border-color: #102a45 !important;
}

[data-theme="light"] .didactic-tools-drawer .tools-tabs .tab-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

/* ============================================================
   FLASHCARD COMPONENT WITH 3D FLIP EFFECT
   ============================================================ */
.flashcard-container {
  perspective: 1000px;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 8px;
}

.flashcard-inner.flipped {
  transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.flashcard-front {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
}

[data-theme="dark"] .flashcard-front {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.flashcard-back {
  background: rgba(255, 189, 51, 0.04);
  border: 1px solid var(--amber);
  color: var(--text);
  transform: rotateY(180deg);
}

[data-theme="light"] .flashcard-front {
  background: #ffffff;
  color: #000000;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .flashcard-back {
  border-color: #c48c08;
  color: #000000;
}

/* Flashing Warning Banner */
.db-warning-banner,
.db-warning-banner-sticky {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04)) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  border-radius: var(--radius-md) !important;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  margin-bottom: 24px;
  color: #fddcdc;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.08) !important;
}

[data-theme="light"] .db-warning-banner,
[data-theme="light"] .db-warning-banner-sticky {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02)) !important;
  border-color: rgba(220, 38, 38, 0.5) !important;
  color: #7f1d1d;
  box-shadow: 0 8px 32px rgba(220, 38, 38, 0.04) !important;
}

.db-warning-banner-sticky {
  grid-column: 1 / -1;
  margin-bottom: 12px;
  padding: 12px 20px;
}

/* Customized Warning Badges */
.warning-circle-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
  animation: pulse-warning-badge 2s infinite ease-in-out;
}

.warning-circle-inner {
  color: #ef4444;
  font-size: 1.7rem;
  font-weight: 900;
  font-family: serif;
  line-height: 1;
  margin-top: -2px;
}

[data-theme="light"] .warning-circle-badge {
  background: rgba(239, 68, 68, 0.08);
  border-color: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.15);
}

[data-theme="light"] .warning-circle-inner {
  color: #dc2626;
}

@keyframes pulse-warning-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
  }
}

.warning-content strong {
  color: #ef4444;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}

[data-theme="light"] .warning-content strong {
  color: #dc2626;
}

.warning-content p {
  margin: 4px 0 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

[data-theme="dark"] .warning-content p {
  color: #cbd5e1;
}

[data-theme="light"] .warning-content p {
  color: #334155;
}

.flashing-warning {
  animation: border-flash 1.2s infinite ease-in-out;
}

@keyframes border-flash {
  0%, 100% {
    border-color: #ef4444 !important;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08) !important;
  }
  50% {
    border-color: #ff1a1a !important;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.65);
    background: rgba(239, 68, 68, 0.22) !important;
  }
}

[data-theme="light"] .flashing-warning {
  animation: border-flash-light 1.2s infinite ease-in-out;
}

@keyframes border-flash-light {
  0%, 100% {
    border-color: #dc2626 !important;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.25);
    background: rgba(239, 68, 68, 0.05) !important;
  }
  50% {
    border-color: #ff0000 !important;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.5);
    background: rgba(239, 68, 68, 0.16) !important;
  }
}

/* Customized Dropdowns and Selects */
.glass-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23a0b2c6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 44px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--line-dark) !important;
}

[data-theme="light"] .glass-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23102033' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
}

.glass-select:hover {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 12px rgba(33, 216, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.glass-select:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 16px rgba(33, 216, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Vertical Timeline Chronogram Styling */
.chronogram-list {
  position: relative;
  padding-left: 20px;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chronogram-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-dark);
}

.chronogram-item {
  position: relative;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-soft);
  text-align: left;
}

.chronogram-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-soft);
  opacity: 0.6;
  border: 2px solid var(--bg);
  transition: all 0.3s;
}

.chronogram-item.active::before {
  background: var(--green);
  opacity: 1;
  box-shadow: 0 0 10px var(--green);
  transform: scale(1.2);
}

.chronogram-item.active {
  color: var(--text-inverse);
  font-weight: 700;
}

[data-theme="light"] .chronogram-item.active {
  color: var(--text);
}

/* Glowing Live Badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(50, 240, 161, 0.15);
  color: var(--green);
  border: 1px solid rgba(50, 240, 161, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* Selector Gate Section */
.squad-select-section {
  display: block;
  padding-top: 130px !important;
  padding-bottom: 50px !important;
}




