/* ============================================
   Immigrant Shield Academy — Design System
   Brand: Immigrant Shield (verde + preto)
   ============================================ */

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

:root {
  /* IS Brand Colors */
  --black-deep:  #000000;
  --black:       #080808;
  --black-mid:   #111111;
  --black-card:  #161616;
  --black-light: #1E1E1E;
  --black-border:#2A2A2A;

  --green:       #1DB96A;   /* IS brand green */
  --green-light: #25D97A;   /* hover/brighter */
  --green-dim:   #16924F;   /* darker variant */
  --green-pale:  #071910;   /* dark green tint bg */
  --green-glow:  rgba(29,185,106,.18);
  --green-glow2: rgba(29,185,106,.08);

  --white:       #FFFFFF;
  --gray-100:    #F4F4F4;
  --gray-200:    #E0E0E0;
  --gray-600:    #666666;
  --gray-700:    #444444;
  --gray-800:    #2A2A2A;

  --text:        #FFFFFF;
  --text-mid:    rgba(255,255,255,.72);
  --text-dim:    rgba(255,255,255,.45);
  --text-dark:   #0A0A0A;

  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.4);
  --shadow:      0 4px 20px rgba(0,0,0,.6);
  --shadow-green:0 8px 32px rgba(29,185,106,.25);
  --sidebar-w:   272px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--black); line-height: 1.6; }

/* --- UTILITIES --- */
.hidden { display: none !important; }

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.badge-green { background: rgba(29,185,106,.15); color: var(--green); border: 1px solid rgba(29,185,106,.3); }
.badge-white { background: rgba(255,255,255,.1);  color: var(--white); border: 1px solid rgba(255,255,255,.2); }
.badge-dim   { background: var(--black-light); color: var(--text-dim); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px; cursor: pointer;
  text-decoration: none; border: none; transition: all .18s;
  font-family: var(--font);
}
.btn-green {
  background: var(--green); color: var(--black-deep);
  box-shadow: var(--shadow-green);
}
.btn-green:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 12px 40px rgba(29,185,106,.35); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid var(--black-border);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text-mid); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-sm  { padding: 7px 16px; font-size: 13px; }
.btn-lg  { padding: 14px 32px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* --- PROGRESS BAR --- */
.progress-bar-wrap { background: var(--black-border); border-radius: 999px; height: 6px; overflow: hidden; }
.progress-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  transition: width .5s ease; box-shadow: 0 0 8px rgba(29,185,106,.5);
}

/* --- CARD --- */
.card {
  background: var(--black-card); border: 1px solid var(--black-border);
  border-radius: var(--radius); padding: 24px;
}

/* --- TOP BAR (portal) --- */
.top-bar {
  height: 58px; background: var(--black);
  border-bottom: 1px solid var(--black-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 100;
}
.top-bar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top-bar-logo-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.top-bar-logo-text { color: var(--white); font-weight: 700; font-size: 14px; }
.top-bar-logo-text span { color: var(--green); }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-user { color: var(--text-dim); font-size: 13px; }
.top-bar-logout { color: var(--text-dim); font-size: 12px; cursor: pointer; text-decoration: none; transition: color .15s; }
.top-bar-logout:hover { color: var(--green); }

/* --- IS SHIELD SVG --- */
/* Sizes */
.shield-xs  { width: 28px; height: 32px; }
.shield-sm  { width: 36px; height: 41px; }
.shield-md  { width: 56px; height: 64px; }
.shield-lg  { width: 96px; height: 110px; }
.shield-xl  { width: 160px; height: 183px; }

/* Glow pulse animation */
@keyframes shieldGlow {
  0%,100% { filter: drop-shadow(0 0 10px rgba(29,185,106,.55)) drop-shadow(0 0 28px rgba(29,185,106,.2)); }
  50%      { filter: drop-shadow(0 0 20px rgba(29,185,106,.82)) drop-shadow(0 0 50px rgba(29,185,106,.35)); }
}
@keyframes shieldFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}
.shield-glow        { animation: shieldGlow 3.5s ease-in-out infinite; }
.shield-glow-float  { animation: shieldGlow 3.5s ease-in-out infinite, shieldFloat 5s ease-in-out infinite; }

/* ============================================
   SHARED SECTION UTILITIES
   ============================================ */
.container   { max-width: 1080px; margin: 0 auto; }
.section-label {
  color: rgba(29,185,106,.75); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 10px; display: block;
}
.subtitle {
  color: var(--text-mid); font-size: 16px;
  margin-top: 14px; max-width: 580px; line-height: 1.75;
}

/* ============================================
   HERO BADGE (green pill with pulsing dot)
   ============================================ */
@keyframes dotpulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.65); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(29,185,106,.07); border: 1px solid rgba(29,185,106,.18);
  color: rgba(255,255,255,.65); padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 22px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: dotpulse 2s ease-in-out infinite; flex-shrink: 0;
}

/* ============================================
   AURORA BACKGROUND  (shared across pages)
   ============================================ */
@keyframes auroraFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(65px,-32px) scale(1.14); }
  66%     { transform: translate(-42px,22px) scale(0.9); }
}
@keyframes auroraFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(-62px,28px) scale(1.19); }
  66%     { transform: translate(40px,-26px) scale(0.87); }
}
@keyframes auroraFloat3 {
  0%,100% { transform: translate(0,0) scale(1) rotate(0deg); }
  50%     { transform: translate(26px,-38px) scale(1.1) rotate(200deg); }
}
@keyframes auroraPulse {
  0%,100% { opacity: .45; } 50% { opacity: .6; }
}
@keyframes starPulse {
  0%,100% { opacity: 0; transform: scale(.4); }
  50%     { opacity: var(--max,.8); transform: scale(1); }
}

.hero-aurora {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.aurora-pulse {
  position: absolute; inset: 0; opacity: .45;
  background:
    radial-gradient(circle, rgba(29,185,106,.15) 0%, transparent 80%),
    radial-gradient(circle, rgba(16,92,79,.12) 0%, transparent 80%);
  animation: auroraPulse 10s infinite;
}
.aurora-blob {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(62px); mix-blend-mode: screen;
}
.aurora-blob-1 {
  width: 55%; height: 65%; top: -15%; left: -12%;
  background: radial-gradient(circle, rgba(29,185,106,.3) 0%, transparent 70%);
  animation: auroraFloat1 30s ease-in-out infinite;
}
.aurora-blob-2 {
  width: 52%; height: 58%; bottom: -18%; right: -14%;
  background: radial-gradient(circle, rgba(16,92,79,.22) 0%, transparent 70%);
  animation: auroraFloat2 38s ease-in-out infinite;
}
.aurora-blob-3 {
  width: 40%; height: 46%; top: 28%; left: 30%;
  background: radial-gradient(circle, rgba(7,25,16,.38) 0%, transparent 70%);
  animation: auroraFloat3 50s ease-in-out infinite;
}
.hero-star {
  position: absolute; width: 2px; height: 2px;
  background: #fff; border-radius: 50%;
  animation: starPulse var(--dur,3s) var(--delay,0s) infinite;
}

/* ============================================
   GLOW CARD  (mouse-spotlight border effect)
   Requires [data-glow] attr on element.
   JS sets --x / --y via pointermove globally.
   ============================================ */
[data-glow] { position: relative; }
[data-glow]::before,
[data-glow]::after {
  pointer-events: none; content: "";
  position: absolute; inset: -1px;
  border: 1.5px solid transparent; border-radius: inherit;
  background-attachment: fixed;
  background-size: calc(100% + 3px) calc(100% + 3px);
  background-repeat: no-repeat; background-position: 50% 50%;
  mask: linear-gradient(transparent,transparent), linear-gradient(#fff,#fff);
  mask-clip: padding-box, border-box; mask-composite: intersect;
  -webkit-mask: linear-gradient(transparent,transparent), linear-gradient(#fff,#fff);
  -webkit-mask-clip: padding-box, border-box; -webkit-mask-composite: xor;
}
[data-glow]::before {
  background-image: radial-gradient(
    220px 220px at calc(var(--x,9999) * 1px) calc(var(--y,9999) * 1px),
    rgba(29,185,106,.72), transparent 100%
  );
  filter: brightness(2.5);
}
[data-glow]::after {
  background-image: radial-gradient(
    140px 140px at calc(var(--x,9999) * 1px) calc(var(--y,9999) * 1px),
    rgba(255,255,255,.2), transparent 100%
  );
}
