﻿:root {
  --bg: #1f2228;
  --bg-soft: #292d35;
  --panel: rgba(38, 42, 50, 0.76);
  --panel-strong: rgba(25, 28, 34, 0.94);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #f1f3f5;
  --muted: #a8adb5;
  --red: #b51224;
  --red-bright: #ff3148;
  --yellow: #f2c230;
  --orange: #1f58d7;
  --gold: #f5f7fb;
  --amber-soft: #dbeafe;
  --gray: #222831;
  --green: #72e6a2;
  --baep-gradient: linear-gradient(135deg, #941522 0%, #252a34 52%, #17386f 100%);
  --baep-accent-line: linear-gradient(90deg, #b51224 0%, #f2c230 48%, #1f58d7 100%);
  --card-radius: 16px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 24px 62px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  caret-color: transparent;
  font-family: Inter, system-ui, sans-serif;
  background:
    linear-gradient(rgba(31, 34, 40, .86), rgba(24, 27, 33, .92)),
    radial-gradient(circle at 16% 10%, rgba(181, 18, 36, 0.18), transparent 28rem),
    radial-gradient(circle at 52% 22%, rgba(242, 194, 48, 0.08), transparent 24rem),
    radial-gradient(circle at 86% 16%, rgba(31, 88, 215, 0.16), transparent 26rem),
    linear-gradient(135deg, #202329 0%, #2b3038 45%, #181b21 100%);
}

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

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,47,69,0); }
  50% { box-shadow: 0 0 34px rgba(29,78,216,0.16); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(22px) scale(.985); filter: blur(6px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

.landing-body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
input, textarea, select {
  caret-color: auto;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.topbar, .sidebar, .glass-card, .auth-card, .tactical-panel, .stat-card, .dash-stat {
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.glass-card, .auth-card, .dash-stat, .sidebar, .topbar {
  position: relative;
  overflow: hidden;
}

.glass-card::before,
.auth-card::before,
.dash-stat::before,
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(181,18,36,.12), transparent 18%, transparent 82%, rgba(31,88,215,.1)),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 38%);
  opacity: .58;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem auto 0;
  width: min(1180px, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  color: white;
  font-family: Rajdhani, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.08rem;
}

.brand strong, h1, h2, h3, .timer {
  font-family: Rajdhani, sans-serif;
  letter-spacing: 0;
}

.brand strong { display: block; font-size: 1.2rem; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 0.2rem; }

.nav, .side-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav a, .side-nav a {
  color: var(--muted);
  padding: 0.72rem 0.85rem;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease, transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mobile-nav {
  display: none;
}

.nav a:hover, .side-nav a:hover, .side-nav a.active, .nav-cta {
  color: var(--text);
  background: rgba(255,255,255,0.075);
}

.nav-toggle { display: none; }

.hero, .section, .legal-page, .ranking-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.landing-main {
  width: min(1180px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.landing-copy h1 {
  max-width: 760px;
  color: #fff9df;
  text-shadow: 0 8px 36px rgba(0,0,0,.55);
}

.landing-copy p {
  max-width: 660px;
  font-size: 1.08rem;
}

.landing-copy {
  position: relative;
}

.landing-emblem {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}

.landing-emblem::before {
  content: "";
  position: absolute;
  width: min(430px, 85vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255,.2), rgba(181, 18, 36,.1) 38%, rgba(31, 88, 215,.08) 58%, transparent 74%);
  filter: blur(8px);
}

.landing-emblem img {
  position: relative;
  width: min(420px, 86vw);
  height: auto;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.62));
}

.landing-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.landing-values article {
  min-height: 124px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(18, 21, 26, 0.64);
  backdrop-filter: blur(18px);
}

.landing-values strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font: 700 1.35rem Rajdhani, sans-serif;
}

.landing-values span {
  color: var(--muted);
  line-height: 1.55;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  align-items: center;
  padding: 3rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 { margin: 0.6rem 0 1rem; font-size: clamp(2.8rem, 7vw, 6.7rem); line-height: 0.9; }
h2 { margin: 0 0 1rem; font-size: 1.7rem; }
h3 { margin: 0 0 0.7rem; font-size: 1.35rem; }
p { color: var(--muted); line-height: 1.7; }

.hero-copy p { max-width: 650px; font-size: 1.08rem; }
.hero-actions, .button-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.09);
  box-shadow: 0 12px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08);
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  border-color: transparent;
  background:
    linear-gradient(#252a34, #252a34) padding-box,
    var(--baep-accent-line) border-box;
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover {
  background:
    linear-gradient(#2b3039, #242932) padding-box,
    var(--baep-accent-line) border-box;
}
.btn-ghost { background: rgba(255,255,255,0.045); }
.btn-danger { border-color: rgba(255,49,72,.55); background: rgba(181, 18, 36, .58); }
.btn-small { min-height: 34px; padding: 0.4rem 0.65rem; font-size: 0.85rem; }

.hero-panel { padding: 1rem; border-radius: 8px; }
.panel-header { display: flex; justify-content: space-between; color: var(--muted); }
.panel-header strong { color: var(--green); }

.hero-logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255,.1), rgba(255,255,255,.03));
}

.hero-logo-lockup img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.hero-logo-lockup small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hero-logo-lockup strong {
  display: block;
  margin-top: 0.2rem;
  font-family: Rajdhani, sans-serif;
  font-size: 1.4rem;
  color: var(--amber-soft);
}

.radar {
  position: relative;
  aspect-ratio: 1;
  margin: 1.2rem auto;
  width: min(100%, 360px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255,.3);
  background:
    repeating-radial-gradient(circle, transparent 0 48px, rgba(255, 255, 255,.1) 49px 50px),
    linear-gradient(45deg, transparent 49.5%, rgba(255, 255, 255,.15) 50%, transparent 50.5%);
  overflow: hidden;
}

.radar span {
  position: absolute;
  inset: 50% 0 0 50%;
  transform-origin: 0 0;
  background: linear-gradient(90deg, rgba(255, 255, 255,.55), transparent 70%);
  animation: sweep 4s linear infinite;
}

.radar i {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  left: 62%;
  top: 35%;
  background: var(--amber-soft);
  box-shadow: 0 0 18px var(--gold);
}

@keyframes sweep { to { transform: rotate(360deg); } }

.metric-grid, .stats-grid, .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-grid div, .stat-card, .glass-card, .auth-card {
  border-radius: 8px;
  padding: 1rem;
}

.metric-grid div {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
}

.metric-grid small, .stat-card small { display: block; color: var(--muted); margin-bottom: 0.45rem; }
.metric-grid strong, .stat-card strong { font-size: 1.7rem; font-family: Rajdhani, sans-serif; }

.section { padding: 2rem 0 5rem; }
.section-title { max-width: 650px; margin-bottom: 1.2rem; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.history-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.4rem;
  align-items: center;
  padding-top: 0;
}

.history-copy {
  max-width: 720px;
}

.unit-card {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 380px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255,.09), rgba(255,255,255,.035)),
    var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.unit-card img {
  width: min(220px, 80%);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.55));
}

.unit-card span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.unit-card strong {
  color: var(--gold);
  font: 700 2.2rem Rajdhani, sans-serif;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
}

.auth-shell {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card { width: min(480px, 100%); }

.form { display: grid; gap: 0.9rem; margin-top: 1.2rem; }
.form label { display: grid; gap: 0.4rem; color: var(--muted); font-weight: 700; }
.form input, .form select {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 0.85rem;
  color: var(--text);
  background: rgba(0,0,0,0.28);
  outline: none;
}

.form textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 0.85rem;
  color: var(--text);
  background: rgba(0,0,0,0.28);
  outline: none;
  resize: vertical;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-wide {
  grid-column: 1 / -1;
}
.form input:focus, .form select:focus { border-color: rgba(255, 255, 255,.8); }
.form-note { font-size: 0.92rem; }
.form-note a { color: var(--gold); }

.alert {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255,.35);
  border-radius: 8px;
  padding: 0.85rem;
  color: #fff1c2;
  background: rgba(120, 53, 15, .24);
}

.disabled-notice {
  margin: 0 0 1rem;
  border-color: rgba(255,255,255,.24);
  color: #f8fafc;
  background: rgba(181, 18, 36, .16) !important;
}

.disabled-notice strong {
  color: #fff;
}

.disabled-action,
.disabled-action:hover {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.sidebar {
  position: fixed;
  inset: .85rem auto .85rem .85rem;
  width: 258px;
  display: flex;
  flex-direction: column;
  gap: .72rem;
  padding: .78rem;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(181,18,36,.18), transparent 9%, transparent 91%, rgba(31,88,215,.16)),
    linear-gradient(180deg, rgba(255, 255, 255,.06), rgba(255,255,255,.02)),
    rgba(14, 17, 22, 0.93);
  box-shadow: 0 22px 58px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.06);
}

.sidebar .brand {
  position: relative;
  gap: .68rem;
  padding: .28rem .25rem .82rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  border-color: rgba(255,255,255,.22);
  background: rgba(0,0,0,.34);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}

.sidebar .brand strong {
  font-size: 1.08rem;
  text-transform: uppercase;
}

.sidebar .brand small {
  color: #b6bec9;
  font-size: .68rem;
}

.side-nav {
  align-items: stretch;
  flex-direction: column;
  gap: .22rem;
  padding: .2rem 0 .35rem;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.side-nav a {
  position: relative;
  width: 100%;
  min-height: 38px;
  padding: .58rem .72rem .58rem 2.28rem;
  border: 1px solid transparent;
  border-radius: 7px;
  overflow: hidden;
  font-size: .94rem;
  font-weight: 650;
  background: transparent;
}

.side-nav a::before {
  content: "";
  position: absolute;
  left: .72rem;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  opacity: .72;
  background: currentColor;
  clip-path: polygon(50% 0, 88% 24%, 88% 76%, 50% 100%, 12% 76%, 12% 24%);
}

.side-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 0;
  border-radius: 0 4px 4px 0;
  background: var(--baep-accent-line);
  opacity: 0;
  transition: width .2s ease, opacity .2s ease;
}

.side-nav a:hover {
  color: #edf2f7;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.side-nav a:hover::after {
  width: 2px;
  opacity: .65;
}

.side-nav a.active {
  color: #f8fafc;
  border-color: rgba(255,255,255,.12);
  background:
    linear-gradient(90deg, rgba(181,18,36,.18), rgba(31,88,215,.08)),
    rgba(255,255,255,.055);
  box-shadow: 0 10px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06);
}

.side-nav a.active::after {
  width: 3px;
  opacity: 1;
}

.side-nav a.active::before {
  opacity: 1;
  color: #fff;
}
.sidebar .btn { margin-top: auto; }
.sidebar [data-nav-profile] + .btn { margin-top: 0; }
.logout-btn {
  width: 100%;
  min-height: 38px;
  padding: 0.52rem 0.75rem;
  border-radius: 7px;
  border-color: rgba(255,255,255,.1);
  color: #cbd3dd;
  background: rgba(255,255,255,.035);
}

.logout-btn:hover {
  color: #fff;
  border-color: rgba(181,18,36,.42);
  background: rgba(181,18,36,.12);
}
.app-main { margin-left: 286px; padding: 1.4rem clamp(1.25rem, 2.4vw, 2.4rem) 4rem; }
.mobile-head { display: none; }

.nav-profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0.68rem;
  padding: .7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31,88,215,.08), transparent),
    rgba(0,0,0,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.nav-profile-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--green);
  box-shadow: 0 0 14px rgba(114,230,162,.28);
}

.nav-profile-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.19);
  background: rgba(255, 255, 255,.062);
  box-shadow: 0 12px 24px rgba(0,0,0,.22);
}

.nav-profile-card strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile-card small {
  display: inline-flex;
  width: fit-content;
  margin-top: .18rem;
  padding: .15rem .38rem;
  border: 1px solid rgba(242,194,48,.22);
  border-radius: 4px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,.045);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .28rem;
  color: var(--green);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(114,230,162,.55);
}

.nav-avatar,
.profile-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0,0,0,.32);
}

.nav-avatar {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.nav-avatar img,
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-avatar span,
.profile-photo span {
  color: var(--gold);
  font: 700 1.45rem Rajdhani, sans-serif;
}

.page-head { margin: .1rem 0 1.45rem; }
.page-head h1 {
  margin-bottom: .45rem;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: .92;
}
.page-head p {
  max-width: 760px;
  margin-top: 0;
}
.centered { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.page-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr); gap: 1.05rem; }

.dashboard-main {
  display: grid;
  gap: 1.25rem;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 1.4rem;
  align-items: center;
  min-height: 252px;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255,.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 28%, rgba(255,255,255,.13), transparent 20rem),
    radial-gradient(circle at 5% 0%, rgba(181,18,36,.18), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255,.12), rgba(255,255,255,.035) 42%, rgba(0,0,0,.18)),
    rgba(20,23,29,.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 72px rgba(0,0,0,.38);
  animation: riseIn .45s ease both;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: clamp(4rem, 13vw, 10rem);
  bottom: -2.8rem;
  width: min(440px, 46vw);
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255,.14), rgba(255, 255, 255,.06) 36%, transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

.dashboard-hero h1 {
  position: relative;
  margin-bottom: 0.45rem;
  font-size: clamp(4rem, 7vw, 6.4rem);
  letter-spacing: .01em;
  text-shadow: 0 18px 38px rgba(0,0,0,.34);
}

.dashboard-hero p {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 620px;
  margin: 0;
  padding: .45rem .7rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #d7dce4;
  font-size: .95rem;
  background: rgba(0,0,0,.18);
}

.dashboard-hero img {
  position: relative;
  width: min(205px, 100%);
  justify-self: center;
  filter: drop-shadow(0 28px 40px rgba(0,0,0,.62));
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(160px, 1fr));
  gap: 1.05rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-head.compact h2 {
  margin-bottom: 0;
}

.operational-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.dash-stat {
  position: relative;
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 148px;
  padding: 1.05rem 1.08rem;
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.08), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,.064), rgba(255,255,255,.022)),
    rgba(35,39,47,.76);
  animation: riseIn .5s ease both;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dash-stat:hover,
.chart-card:hover,
.admin-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.25);
  box-shadow: var(--shadow-hover);
}

.dash-stat:nth-child(2) { animation-delay: .04s; }
.dash-stat:nth-child(3) { animation-delay: .08s; }
.dash-stat:nth-child(4) { animation-delay: .12s; }

.dash-stat.primary {
  background:
    linear-gradient(90deg, rgba(181, 18, 36,.32) 0 4px, transparent 4px),
    rgba(33, 37, 45,.82);
  animation: riseIn .5s ease both, softPulse 4s ease-in-out infinite;
}

.dash-stat small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  overflow-wrap: anywhere;
}

.dash-stat strong {
  margin: .5rem 0 .35rem;
  font: 800 clamp(1.85rem, 4.2vw, 3.05rem) Rajdhani, sans-serif;
  color: #f8fafc;
  line-height: .95;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dash-stat span {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.stat-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font: 800 1rem Rajdhani, sans-serif;
  background:
    linear-gradient(#2a3039, #20252e) padding-box,
    var(--baep-accent-line) border-box;
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 1.05rem;
}

.command-layout {
  align-items: stretch;
}

.dashboard-card-wide {
  min-height: 286px;
  border-radius: var(--card-radius);
  animation: riseIn .55s ease both;
}

.dashboard-card-wide table {
  min-width: 620px;
}

.dashboard-layout .dashboard-card-wide:last-child {
  grid-column: 1 / -1;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.05rem;
}

.card-head h2,
.chart-card h2,
.readiness-card h2 {
  color: #f8fafc;
  font-size: 1.55rem;
  line-height: 1;
}

.readiness-card {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  min-height: 286px;
  padding: 1.2rem;
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 50% 25%, rgba(31,88,215,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
    rgba(35,39,47,.76);
  animation: riseIn .6s ease both;
}

.readiness-ring {
  --ring-value: 0%;
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  margin: .35rem 0 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(20,23,29,.98) 0 55%, transparent 56%),
    conic-gradient(#f8fafc 0 var(--ring-value), rgba(255,255,255,.07) var(--ring-value) 100%);
  box-shadow: inset 0 0 28px rgba(0,0,0,.48), 0 24px 52px rgba(0,0,0,.38), 0 0 34px rgba(31,88,215,.08);
}

.readiness-ring span {
  font: 800 2.65rem Rajdhani, sans-serif;
  color: #f8fafc;
}

.readiness-card p strong {
  color: var(--gold);
}

.goal-progress {
  width: 100%;
  margin-top: .55rem;
}

.goal-progress i {
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.goal-progress b {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--baep-accent-line);
}

.goal-status {
  margin-top: .65rem;
  color: #cbd3dd;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}

.progress-large {
  gap: 1.25rem;
}

.progress-large i {
  height: 14px;
}

.dashboard-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}

.charts-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.bottom-grid {
  grid-template-columns: 1fr;
}

.profile-brief,
.notice-list,
.activity-feed,
.rank-chart,
.unit-chart,
.chart-legend {
  display: grid;
  gap: .82rem;
}

.profile-brief-top {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.profile-brief-avatar {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(0,0,0,.28);
}

.profile-brief-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-brief-avatar span {
  color: var(--gold);
  font: 800 2rem Rajdhani, sans-serif;
}

.profile-brief-top h3 {
  margin-bottom: .1rem;
  font-size: 1.75rem;
}

.profile-brief-top p {
  margin: 0;
}

.profile-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.profile-brief-grid span,
.notice-item,
.mock-list article {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: .82rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.profile-brief-grid span:hover,
.notice-item:hover,
.mock-list article:hover,
.activity-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.055);
}

.profile-brief-grid small,
.notice-item span,
.mock-list span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.profile-brief-grid strong {
  display: block;
  margin-top: .2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.mini-badge {
  border: 1px solid rgba(242,194,48,.28);
  border-radius: 999px;
  padding: .35rem .55rem;
  color: var(--text);
  background: rgba(255,255,255,.06);
  font-size: .78rem;
  font-weight: 800;
}

.notice-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
}

.notice-item p,
.activity-item p {
  margin: .15rem 0 0;
  line-height: 1.45;
}

.notice-item small,
.activity-item time {
  color: var(--muted);
  white-space: nowrap;
}

.activity-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .82rem;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.016)),
    rgba(0,0,0,.16);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.activity-item i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-style: normal;
  font-weight: 800;
  background:
    linear-gradient(#252a34, #252a34) padding-box,
    var(--baep-accent-line) border-box;
}

.chart-card {
  min-height: 268px;
  border-radius: var(--card-radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: .55rem;
  min-height: 150px;
  margin-top: 1rem;
}

.bar-item {
  display: grid;
  align-items: end;
  gap: .45rem;
  height: 160px;
  text-align: center;
}

.bar-item span {
  align-self: end;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(242,194,48,.9), rgba(31,88,215,.72));
  box-shadow: 0 10px 26px rgba(31,88,215,.14);
}

.bar-item small {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.donut-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.mini-donut {
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 0, rgba(255,255,255,.08) 0 100%);
  box-shadow: inset 0 0 22px rgba(0,0,0,.38);
}

.mini-donut span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #1f2228;
  font: 800 2rem Rajdhani, sans-serif;
}

.chart-legend span,
.unit-row,
.rank-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: center;
}

.chart-legend span {
  grid-template-columns: auto minmax(0, 1fr);
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.blue { background: var(--orange); }
.dot.red { background: var(--red); }

.rank-row i,
.unit-row i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.rank-row b,
.unit-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--baep-accent-line);
}

.rank-row span {
  color: var(--gold);
  font-weight: 800;
}

.empty-state {
  margin: 1rem 0 0;
  color: var(--muted);
}

.admin-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-action-card {
  display: grid;
  gap: .25rem;
  min-height: 138px;
  padding: 1.05rem;
  border: 1px solid var(--stroke);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.08), transparent 52%),
    var(--panel);
  backdrop-filter: blur(18px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.admin-action-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#252a34, #252a34) padding-box,
    var(--baep-accent-line) border-box;
}

.admin-action-card strong {
  font: 800 2rem Rajdhani, sans-serif;
}

.admin-action-card small {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1rem;
}

.admin-tabs button {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: .68rem .95rem;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255,255,255,.05);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.admin-tabs button:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
}

.admin-tabs button.active {
  color: var(--text);
  border-color: transparent;
  background:
    linear-gradient(#252a34, #252a34) padding-box,
    var(--baep-accent-line) border-box;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.mock-list {
  display: grid;
  gap: .75rem;
}

.admin-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
}

.admin-list-row small {
  justify-self: end;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: .3rem .55rem;
  color: var(--muted);
  background: rgba(255,255,255,.05);
}

.compact-feed {
  margin-top: 1rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 1rem;
}

.profile-card {
  text-align: center;
}

.profile-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  border-radius: 8px;
}

.profile-photo span {
  font-size: 4rem;
}

.profile-card h2 {
  margin-bottom: 0.25rem;
}

.profile-card p {
  margin-top: 0;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-stats {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.profile-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.profile-stats small {
  color: var(--muted);
}

.profile-stats strong {
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(0,0,0,.12);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 560px;
}

th, td {
  padding: .95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

th {
  color: #c2c8d1;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(255,255,255,.045);
}

td {
  color: #dde1e6;
  background: rgba(255,255,255,.012);
}

tbody tr {
  transition: background .18s ease;
}

tbody tr:hover td {
  background: rgba(255,255,255,.055);
}

tbody tr:last-child td {
  border-bottom: 0;
}
td input, td select {
  width: 120px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 0.55rem;
  color: var(--text);
  background: rgba(0,0,0,0.32);
}

td small {
  color: var(--muted);
}

.sheet-table {
  min-width: 980px;
}

.sheet-table input,
.sheet-table select {
  width: 100%;
  min-width: 120px;
}

.sheet-embed-card {
  overflow: hidden;
  min-height: calc(100vh - 220px);
  border: 1px solid rgba(255, 255, 255,.18);
  border-radius: 14px;
  background: rgba(12, 14, 18, .78);
  box-shadow: var(--shadow);
}

.sheet-embed-card iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 640px;
  border: 0;
  background: white;
}

.hierarchy-sheet-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255,.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255,.12), transparent 34%),
    rgba(12, 14, 18, .78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.sheet-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.sheet-toolbar h2 {
  margin-bottom: 0;
}

.sheet-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.sheet-summary article {
  min-height: 92px;
  padding: .9rem;
  border: 1px solid rgba(255, 255, 255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
}

.sheet-summary small {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.sheet-summary strong {
  color: #fff9df;
  font: 700 1.55rem Rajdhani, sans-serif;
  overflow-wrap: anywhere;
}

.hierarchy-table-wrap {
  border: 1px solid rgba(255, 255, 255,.12);
  border-radius: 10px;
  background: rgba(0,0,0,.22);
}

.hierarchy-google-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.hierarchy-google-table th:nth-child(1),
.hierarchy-google-table td:nth-child(1) { width: 210px; }

.hierarchy-google-table th:nth-child(2),
.hierarchy-google-table td:nth-child(2) { width: 92px; text-align: center; }

.hierarchy-google-table th:nth-child(3),
.hierarchy-google-table td:nth-child(3) { width: 150px; }

.hierarchy-google-table th:nth-child(4),
.hierarchy-google-table td:nth-child(4) { width: 82px; text-align: center; }

.hierarchy-google-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #090a0c;
  background: linear-gradient(180deg, #f5f7fb, #9fb5d8);
  border-bottom: 0;
  white-space: nowrap;
}

.hierarchy-google-table td {
  color: #e8ebef;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.07);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.hierarchy-google-table tr:nth-child(even) td {
  background: rgba(255,255,255,.055);
}

.hierarchy-google-table tr:hover td {
  background: rgba(255, 255, 255,.08);
}

.hierarchy-google-table td:nth-child(1),
.hierarchy-google-table td:nth-child(3) {
  font-weight: 800;
  color: #fff9df;
}

.sheet-section-row td {
  color: var(--gold);
  background: rgba(0,0,0,.55) !important;
  font: 700 1rem Rajdhani, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255,.2);
  border-bottom: 1px solid rgba(255, 255, 255,.2);
}

.rank-insignia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 42px;
  min-height: 22px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255,.34);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(0,0,0,.52), rgba(255,255,255,.06));
}

.rank-insignia i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 255, 255,.28);
}

.hierarchy-board {
  display: grid;
  gap: 1rem;
}

.hierarchy-loading {
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.hierarchy-section {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255,.14);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
}

.hierarchy-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  color: #090a0c;
  background: linear-gradient(180deg, #f5f7fb, #9fb5d8);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hierarchy-section-title small {
  color: rgba(0,0,0,.72);
  font-weight: 900;
}

.hierarchy-members {
  display: grid;
  gap: .7rem;
  padding: .8rem;
}

.hierarchy-member {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: center;
  padding: .9rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}

.member-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
}

.member-main strong {
  display: block;
  color: #fff9df;
  font: 700 1.18rem Rajdhani, sans-serif;
}

.member-main span {
  color: var(--muted);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: .55rem;
}

.member-grid div {
  min-height: 54px;
  padding: .55rem .65rem;
  border: 1px solid rgba(255, 255, 255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.2);
}

.member-grid small {
  display: block;
  margin-bottom: .2rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.member-grid b {
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hierarchy-member p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: .55rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-pendente {
  color: #fff1c2;
  background: rgba(255, 255, 255, 0.12);
}

.status-aprovado {
  color: #c8ffd8;
  background: rgba(78, 226, 138, 0.12);
}

.status-reprovado {
  color: #ffd7d7;
  background: rgba(181, 18, 36, 0.24);
}

.progress-list { display: grid; gap: 1rem; }
.progress-list div { display: grid; gap: 0.5rem; }
.progress-list span { color: var(--muted); }
.progress-list i { display: block; height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-list b { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--green)); }

.rules-list {
  display: grid;
  gap: 1rem;
  width: min(900px, 100%);
  margin: 2rem auto 5rem;
}
.rules-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}
.rules-list article > strong { color: var(--gold); font: 700 2rem Rajdhani, sans-serif; }

.reg-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255,.22);
  border-radius: 999px;
  color: var(--gold);
  background:
    linear-gradient(135deg, rgba(255, 255, 255,.12), rgba(255,255,255,.04)),
    rgba(0,0,0,.24);
  font: 700 1.25rem Rajdhani, sans-serif;
  box-shadow: inset 0 0 18px rgba(0,0,0,.25);
}

.regulation-viewer {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 1rem;
  align-items: center;
}

.regulation-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 68vh;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255,.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255,.18), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    rgba(12, 14, 18, .78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.regulation-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255,.12);
  border-radius: 14px;
  pointer-events: none;
}

.regulation-stage::after {
  content: "";
  position: absolute;
  inset: auto 12% -28% 12%;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255,.18), transparent 70%);
  pointer-events: none;
}

.regulation-stage img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(0,0,0,.58);
  transition: opacity .14s ease, transform .14s ease, filter .14s ease;
}

.regulation-stage img.slide-enter {
  animation: slideIn .34s ease both;
}

.regulation-stage img.slide-leave {
  opacity: 0;
  transform: translateX(-18px) scale(.985);
  filter: blur(5px);
}

.slide-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255,.28);
  border-radius: 50%;
  color: var(--gold);
  background:
    linear-gradient(135deg, rgba(255, 255, 255,.1), rgba(255,255,255,.04)),
    rgba(12, 14, 18, .82);
  box-shadow: 0 16px 36px rgba(0,0,0,.32);
  cursor: pointer;
  font-size: 2.3rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}

.slide-arrow:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255,.12);
}

.regulation-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.slide-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  max-width: 520px;
}

.slide-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  transition: width .2s ease, transform .2s ease, background .2s ease;
}

.slide-dots button.active {
  width: 32px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 255, 255,.32);
}

.ranking-page, .legal-page { padding: 4rem 0; }
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}
.tabs button.active {
  color: white;
  border-color: transparent;
  background:
    linear-gradient(#252a34, #252a34) padding-box,
    var(--baep-accent-line) border-box;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.timer {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255,.25);
  border-radius: 8px;
  font-size: clamp(2.5rem, 8vw, 5rem);
  background: rgba(0,0,0,.28);
}

.point-clock {
  display: grid;
  place-items: center;
  min-width: 180px;
  min-height: 72px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255,.25);
  border-radius: 12px;
  color: #fff9df;
  background: rgba(0,0,0,.28);
  font: 700 2rem Rajdhani, sans-serif;
  box-shadow: inset 0 0 24px rgba(0,0,0,.28);
}

.member-picker {
  position: relative;
}

.member-picker input[type="text"] {
  width: 100%;
}

.member-picker small {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold);
  font-weight: 700;
}

.picker-results {
  position: absolute;
  z-index: 30;
  inset: calc(100% + 0.35rem) 0 auto;
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255,.22);
  border-radius: 8px;
  background: rgba(9, 11, 14, .96);
  box-shadow: 0 18px 38px rgba(0,0,0,.42);
}

.picker-results button {
  display: grid;
  width: 100%;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.picker-results button:hover {
  background: rgba(255, 255, 255,.08);
}

.picker-results button:disabled {
  cursor: default;
  color: var(--muted);
}

.picker-results strong {
  color: var(--gold);
}

.picker-results span {
  color: var(--muted);
}
.inline-form { grid-template-columns: 1fr auto; align-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; min-height: 38px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(255,255,255,.08);
}
.chip button { border: 0; color: var(--gold); background: transparent; cursor: pointer; }

/* Tema cinza operacional: remove degradês coloridos fora dos botões principais. */
body {
  background:
    linear-gradient(rgba(31, 34, 40, .9), rgba(24, 27, 33, .94)),
    #20242b;
}

.topbar,
.sidebar,
.glass-card,
.auth-card,
.tactical-panel,
.stat-card,
.dash-stat,
.admin-action-card,
.dashboard-hero,
.readiness-card,
.chart-card,
.unit-card,
.hero-logo-lockup,
.hierarchy-sheet-card,
.regulation-stage,
.regulation-filmstrip,
.regulation-thumb,
.profile-brief-grid span,
.notice-item,
.mock-list article,
.activity-item {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(35, 39, 47, .76);
}

.glass-card::before,
.auth-card::before,
.dash-stat::before,
.topbar::before {
  background: linear-gradient(180deg, rgba(255,255,255,.055), transparent 42%);
  opacity: .45;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(14, 17, 22, .94);
}

.side-nav a::after {
  background: rgba(255,255,255,.62);
}

.side-nav a.active {
  background: rgba(255,255,255,.065);
}

.nav-profile-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.018)),
    rgba(0,0,0,.2);
}

.dashboard-hero::after,
.landing-emblem::before,
.regulation-stage::after {
  background: radial-gradient(ellipse at center, rgba(255,255,255,.12), transparent 72%);
}

.dash-stat.primary {
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 0 4px, transparent 4px),
    rgba(35, 39, 47, .82);
}

.stat-icon,
.activity-item i,
.admin-action-card span {
  border-color: rgba(255,255,255,.18);
  background: #252a34;
}

.goal-progress b,
.rank-row b,
.unit-row b,
.progress-list b {
  background: #d8dee7;
}

.bar-item span {
  background: #cbd3dd;
}

.admin-tabs button.active,
.tabs button.active,
.mobile-nav a.active {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.btn-primary {
  border-color: transparent;
  background:
    linear-gradient(#252a34, #252a34) padding-box,
    var(--baep-accent-line) border-box;
}

.btn-primary:hover {
  background:
    linear-gradient(#2b3039, #242932) padding-box,
    var(--baep-accent-line) border-box;
}

@media (max-width: 1180px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .charts-grid,
  .admin-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-layout .dashboard-card-wide:last-child {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-ops-grid,
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 170px;
  }
  .dashboard-hero h1 {
    font-size: clamp(3.2rem, 10vw, 4.8rem);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    color: white;
    background: rgba(255,255,255,.06);
  }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav.nav-open { display: flex; }
  .hero-grid, .content-grid, .history-section, .dashboard-layout, .dashboard-hero, .dashboard-stat-grid, .admin-command-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-emblem { min-height: auto; order: -1; padding-top: 1rem; }
  .landing-values { grid-template-columns: 1fr; }
  .metric-grid, .stats-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { display: none; }
  .app-main { margin: 0; padding: 1rem 1rem 3rem; }
  .mobile-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: .75rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(20,23,29,.72);
    backdrop-filter: blur(16px);
  }
  .mobile-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }
  .mobile-nav a {
    flex: 0 0 auto;
    color: var(--muted);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    background: rgba(255,255,255,.05);
  }
  .mobile-nav a.active {
    color: var(--text);
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  }
  .page-head-row {
    align-items: stretch;
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .sheet-embed-card,
  .sheet-embed-card iframe {
    min-height: 620px;
    height: 70vh;
  }
  .sheet-toolbar {
    flex-direction: column;
  }
  .sheet-summary {
    grid-template-columns: 1fr;
  }
  .hierarchy-member {
    grid-template-columns: 1fr;
  }
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-hero {
    min-height: auto;
    padding: 1.2rem;
  }
  .dashboard-hero img {
    width: 136px;
    justify-self: start;
    order: -1;
  }
  .dashboard-hero p {
    border-radius: 10px;
  }
  .section-head,
  .notice-item,
  .activity-item,
  .admin-list-row,
  .donut-row {
    grid-template-columns: 1fr;
  }
  .section-head,
  .notice-item,
  .activity-item {
    align-items: start;
  }
  .activity-item time,
  .notice-item small {
    white-space: normal;
  }
  .regulation-viewer {
    grid-template-columns: 1fr;
  }
  .slide-arrow {
    display: none;
  }
  .regulation-stage {
    min-height: 56vh;
    padding: .5rem;
  }
  .regulation-stage img {
    max-height: 68vh;
  }
  .regulation-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .metric-grid, .stats-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .footer, .inline-form { flex-direction: column; grid-template-columns: 1fr; }
  .rules-list article { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .member-grid {
    grid-template-columns: 1fr;
  }
  .profile-brief-top,
  .profile-brief-grid {
    grid-template-columns: 1fr;
  }
  .bar-chart {
    gap: .35rem;
  }
  .dash-stat,
  .glass-card,
  .readiness-card,
  .chart-card {
    border-radius: 14px;
  }
  .card-head {
    flex-direction: column;
  }
  th, td {
    padding: .8rem;
  }
}

/* Reset final: visual cinza fosco em todo o painel; degradê fica só no contorno dos botões principais. */
body {
  background: #20242b !important;
}

.topbar,
.sidebar,
.glass-card,
.auth-card,
.tactical-panel,
.stat-card,
.dash-stat,
.admin-action-card,
.dashboard-hero,
.readiness-card,
.chart-card,
.unit-card,
.hero-logo-lockup,
.hierarchy-sheet-card,
.sheet-embed-card,
.regulation-stage,
.regulation-filmstrip,
.regulation-thumb,
.profile-brief-grid span,
.notice-item,
.mock-list article,
.activity-item,
.nav-profile-card {
  background: rgba(35, 39, 47, .78) !important;
}

.glass-card::before,
.auth-card::before,
.dash-stat::before,
.topbar::before {
  background: rgba(255,255,255,.035) !important;
}

.dashboard-hero::after,
.landing-emblem::before,
.regulation-stage::after {
  background: radial-gradient(ellipse at center, rgba(255,255,255,.1), transparent 72%) !important;
}

.side-nav a.active,
.side-nav a:hover,
.admin-tabs button.active,
.tabs button.active,
.mobile-nav a.active {
  border-color: rgba(255,255,255,.2) !important;
  background: rgba(255,255,255,.075) !important;
}

.side-nav a::after {
  background: rgba(255,255,255,.62) !important;
}

.dash-stat.primary {
  background:
    linear-gradient(90deg, rgba(255,255,255,.16) 0 4px, transparent 4px),
    rgba(35, 39, 47, .82) !important;
}

.stat-icon,
.activity-item i,
.admin-action-card span {
  border-color: rgba(255,255,255,.18) !important;
  background: #252a34 !important;
}

.goal-progress b,
.rank-row b,
.unit-row b,
.progress-list b,
.bar-item span {
  background: #d8dee7 !important;
}

.btn-primary {
  border-color: transparent !important;
  background:
    linear-gradient(#252a34, #252a34) padding-box,
    var(--baep-accent-line) border-box !important;
}

.btn-primary:hover {
  background:
    linear-gradient(#2b3039, #242932) padding-box,
    var(--baep-accent-line) border-box !important;
}

/* Correção extra para Regulamento/Administração. */
.reg-counter,
.slide-arrow,
.regulation-controls,
.slide-dots button,
.admin-tabs button,
.admin-panel .glass-card,
.admin-command-grid .admin-action-card,
.admin-list-row,
.rules-list article {
  background: rgba(35, 39, 47, .78) !important;
}

.regulation-stage::before {
  background: transparent !important;
}

.slide-arrow:hover,
.admin-tabs button:hover {
  background: rgba(255,255,255,.08) !important;
}

.slide-dots button.active {
  background: #d8dee7 !important;
  box-shadow: 0 0 18px rgba(255,255,255,.2) !important;
}

