/* ============================================
   AEROFLUENT AI - MAIN STYLESHEET
   Professional Aviation Training Platform
   ============================================ */

/* --- FONTS & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --navy-deep:   #0D1B2A;
  --navy-mid:    #1A2F4A;
  --navy-light:  #243B55;
  --sky:         #4A90D9;
  --sky-light:   #6AAEE8;
  --sky-glow:    rgba(74,144,217,0.25);
  --white:       #FFFFFF;
  --off-white:   #E8F4FD;
  --gold:        #FFD700;
  --gold-soft:   #FFC947;
  --green:       #2ECC71;
  --red:         #E74C3C;
  --orange:      #F39C12;
  --glass-bg:    rgba(26,47,74,0.6);
  --glass-border:rgba(74,144,217,0.25);
  --text-primary:#FFFFFF;
  --text-secondary:#A8C5DA;
  --text-muted:  #6B8FA8;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --shadow-sky:  0 8px 32px rgba(74,144,217,0.3);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.5);
  --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- BACKGROUND PATTERN --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(74,144,217,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(74,144,217,0.05) 0%, transparent 50%),
    radial-gradient(1px 1px at calc(var(--x,50%)) calc(var(--y,50%)), rgba(255,255,255,0.03) 0%, transparent 100%);
  background-size: 100% 100%, 100% 100%, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* DOT GRID */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74,144,217,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* --- APP WRAPPER --- */
#app {
  position: fixed;
  inset: 0;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;          /* nunca deixa 2 telas visíveis ao mesmo tempo */
}

/* --- SCREENS --- */
.screen {
  display: none;
  flex-direction: column;
  position: absolute;        /* todas ocupam o mesmo espaço */
  inset: 0;
  overflow-y: auto;          /* scroll interno por tela */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  animation: screenFadeIn 0.35s ease forwards;
  background: var(--navy-deep);
  min-height: 100%;
}
.screen.active {
  display: flex;
  z-index: 10;               /* tela ativa sempre acima */
}

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes screenFadeOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-20px); }
}

/* --- GLASSMORPHISM CARD --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #4A90D9, #2575B8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74,144,217,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(74,144,217,0.6); transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, #FFD700, #F0A500);
  color: #0D1B2A;
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
}
.btn-gold:hover { box-shadow: 0 6px 28px rgba(255,215,0,0.6); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--sky);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { border-color: var(--sky); background: var(--sky-glow); }

.btn-danger {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #2ECC71, #27AE60);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46,204,113,0.3);
}

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 17px 32px; font-size: 17px; border-radius: var(--radius-lg); }

.btn-loading {
  pointer-events: none;
  opacity: 0.8;
}
.btn-loading::before {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

/* --- FORM ELEMENTS --- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.form-label .optional {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  font-size: 11px;
  margin-left: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(74,144,217,0.2);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--sky);
  background: rgba(74,144,217,0.08);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}
.form-input:focus::placeholder { opacity: 0.5; }

select.form-input option {
  background: var(--navy-mid);
  color: var(--white);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}
.input-icon ~ .form-input { padding-left: 42px; }
.input-action {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 0;
}

/* PASSWORD STRENGTH */
.password-strength { margin-top: 8px; }
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}
.strength-text { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* RADIO CARDS */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.radio-card {
  position: relative;
  cursor: pointer;
}
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.radio-card-inner {
  padding: 11px 14px;
  border: 1px solid rgba(74,144,217,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  text-align: center;
  line-height: 1.3;
}
.radio-card input:checked + .radio-card-inner {
  border-color: var(--sky);
  background: rgba(74,144,217,0.15);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--sky);
}
.radio-card-inner:hover { border-color: var(--sky-light); }

/* CHECKBOX */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-wrap input[type="checkbox"] {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid var(--glass-border);
  background: transparent;
  cursor: pointer;
  accent-color: var(--sky);
  flex-shrink: 0;
  margin-top: 1px;
}
.checkbox-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.checkbox-label a { color: var(--sky); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
h5 { font-size: 13px; }

.text-sky { color: var(--sky); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.font-orbitron { font-family: 'Orbitron', monospace; }

/* --- PROGRESS BAR --- */
.progress-wrap { background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  border-radius: 99px;
}
.progress-sky { background: linear-gradient(90deg, #2575B8, #4A90D9); }
.progress-gold { background: linear-gradient(90deg, #F0A500, #FFD700); }
.progress-green { background: linear-gradient(90deg, #27AE60, #2ECC71); }
.progress-red { background: linear-gradient(90deg, #C0392B, #E74C3C); }

/* --- BADGE --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-sky { background: rgba(74,144,217,0.2); color: var(--sky); border: 1px solid rgba(74,144,217,0.4); }
.badge-gold { background: rgba(255,215,0,0.15); color: var(--gold); border: 1px solid rgba(255,215,0,0.4); }
.badge-green { background: rgba(46,204,113,0.15); color: var(--green); border: 1px solid rgba(46,204,113,0.4); }
.badge-red { background: rgba(231,76,60,0.15); color: var(--red); border: 1px solid rgba(231,76,60,0.4); }
.badge-popular {
  background: linear-gradient(135deg, #FFD700, #F0A500);
  color: #0D1B2A;
  font-size: 10px;
  padding: 3px 9px;
}

/* --- DIVIDER --- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* --- AVATAR --- */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1A2F4A, #243B55);
  border: 2px solid var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.avatar-sm  { width: 36px;  height: 36px;  font-size: 16px; }
.avatar-md  { width: 52px;  height: 52px;  font-size: 22px; }
.avatar-lg  { width: 80px;  height: 80px;  font-size: 36px; }
.avatar-xl  { width: 100px; height: 100px; font-size: 44px; }

/* --- SCROLL --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 2px; }

/* --- UTILITY --- */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16  { padding: 16px; }
.p-20  { padding: 20px; }
.p-24  { padding: 24px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }

/* --- TOP NAV BAR --- */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(13,27,42,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { height: 30px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }
.nav-title {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 1px;
}
.nav-back {
  background: none;
  border: none;
  color: var(--sky);
  cursor: pointer;
  font-size: 22px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-back:hover { background: var(--sky-glow); }

/* --- BOTTOM NAV --- */
.bottom-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-top: auto;          /* empurra para o fundo do flex-col */
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  gap: 4px;
}
.nav-item .nav-icon { font-size: 20px; transition: var(--transition); }
.nav-item.active { color: var(--sky); }
.nav-item.active .nav-icon { transform: translateY(-2px); }
.nav-item:hover { color: var(--sky-light); }

/* ANIMATIONS */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(74,144,217,0.4); }
  50% { box-shadow: 0 0 40px rgba(74,144,217,0.8); }
}
@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes planeFly {
  0% { transform: translateX(-120px) translateY(20px) rotate(-5deg); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(120px) translateY(-20px) rotate(-5deg); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes waveform {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
@keyframes radarBlip {
  0% { opacity: 1; transform: scale(0); }
  100% { opacity: 0; transform: scale(2); }
}

/* ============================================
   SCREEN 1 - LANGUAGE SELECTION
   ============================================ */
#screen-language {
  background: radial-gradient(ellipse at top, rgba(74,144,217,0.15) 0%, transparent 60%);
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lang-logo-wrap {
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease forwards;
  text-align: center;
}
.lang-logo {
  width: 280px;
  max-width: 85vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(74,144,217,0.45));
  animation: fadeUp 0.8s ease forwards;
  border-radius: 16px;
}

.lang-title {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 4px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.lang-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 340px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.lang-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  backdrop-filter: blur(10px);
}
.lang-card:hover, .lang-card:active {
  border-color: var(--sky);
  background: rgba(74,144,217,0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sky);
}
.lang-card .flag { font-size: 32px; display: block; margin-bottom: 8px; }
.lang-card .lang-name { font-size: 13px; font-weight: 600; color: var(--white); }
.lang-card .lang-native { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   SCREEN 2 - ONBOARDING
   ============================================ */
#screen-onboarding {
  background: radial-gradient(ellipse at 50% 0%, rgba(74,144,217,0.12) 0%, transparent 70%);
  padding-bottom: 100px;
}

.onboard-slides {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.onboard-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.onboard-slide-img {
  width: 200px;
  height: 200px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  margin-bottom: 32px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(74,144,217,0.2);
}

.onboard-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}
.onboard-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}

.onboard-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 24px;
}
.onboard-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy-light);
  transition: var(--transition);
}
.onboard-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--sky);
}

.onboard-footer {
  padding: 0 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   SCREEN 3 - REGISTRATION
   ============================================ */
#screen-register {
  background: radial-gradient(ellipse at top right, rgba(74,144,217,0.1) 0%, transparent 60%);
}

.register-header {
  padding: 32px 24px 20px;
  text-align: center;
}
.register-logo {
  width: 220px;
  max-width: 70vw;
  height: auto;
  margin-bottom: 16px;
  border-radius: 12px;
  filter: drop-shadow(0 4px 20px rgba(74,144,217,0.4));
}

.register-form-wrap {
  padding: 0 24px 120px;
  overflow-y: auto;
  flex: 1;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 16px;
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}
.section-divider-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   SCREEN 4 - PROFESSION SELECTION
   ============================================ */
#screen-profession {
  background: radial-gradient(ellipse at bottom, rgba(74,144,217,0.1) 0%, transparent 60%);
}

.profession-header {
  padding: 32px 24px 20px;
  text-align: center;
}

.profession-grid {
  padding: 0 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profession-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.profession-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--sky);
  transition: var(--transition);
}
.profession-card:hover, .profession-card.selected {
  border-color: var(--sky);
  background: rgba(74,144,217,0.12);
  transform: translateX(4px);
  box-shadow: var(--shadow-sky);
}
.profession-card.selected::before { width: 6px; background: var(--gold); }

.prof-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(74,144,217,0.2), rgba(74,144,217,0.05));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}
.prof-info { flex: 1; }
.prof-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.prof-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 8px; }
.prof-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prof-tag {
  padding: 3px 9px;
  background: rgba(74,144,217,0.12);
  border: 1px solid rgba(74,144,217,0.25);
  border-radius: 99px;
  font-size: 10px;
  color: var(--sky);
  font-weight: 600;
}
.prof-xp {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  flex-shrink: 0;
}

/* ============================================
   SCREEN 5 - DASHBOARD
   ============================================ */
#screen-dashboard {
  padding-bottom: 80px;
}

.dashboard-header {
  background: linear-gradient(180deg, rgba(74,144,217,0.12) 0%, transparent 100%);
  padding: 20px 20px 24px;
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.dash-greeting { flex: 1; }
.dash-greeting-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}
.dash-greeting-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}
.dash-notif {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
}
.dash-notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 1px solid var(--navy-deep);
}

.icao-level-card {
  background: linear-gradient(135deg, rgba(74,144,217,0.2), rgba(36,59,85,0.6));
  border: 1px solid rgba(74,144,217,0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.icao-level-badge {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, #4A90D9, #2575B8);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(74,144,217,0.4);
}
.icao-level-num {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.icao-level-label {
  font-size: 8px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.icao-info { flex: 1; }
.icao-info-title { font-size: 14px; font-weight: 700; color: var(--white); }
.icao-info-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.icao-xp-bar { height: 5px; border-radius: 3px; }

.streak-pill {
  background: rgba(255,165,0,0.15);
  border: 1px solid rgba(255,165,0,0.3);
  border-radius: 99px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #FFA500;
  animation: pulse 2s ease-in-out infinite;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.stat-val {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--sky);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 12px;
}
.section-title { font-size: 16px; font-weight: 700; color: var(--white); }
.section-link { font-size: 12px; color: var(--sky); font-weight: 600; cursor: pointer; }

.daily-mission-card {
  margin: 0 20px 20px;
  background: linear-gradient(135deg, rgba(74,144,217,0.15), rgba(36,59,85,0.5));
  border: 1px solid rgba(74,144,217,0.3);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  backdrop-filter: blur(12px);
}
.mission-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.mission-title-wrap { }
.mission-eyebrow { font-size: 11px; font-weight: 700; color: var(--sky); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.mission-title { font-size: 16px; font-weight: 700; color: var(--white); }
.mission-reward { font-size: 11px; color: var(--gold); font-weight: 700; }
.mission-progress-bar { height: 6px; border-radius: 3px; margin-bottom: 8px; }
.mission-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 20px;
}
.menu-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 8px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.menu-item:hover, .menu-item:active {
  border-color: var(--sky);
  background: rgba(74,144,217,0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,144,217,0.25);
}
.menu-icon { font-size: 26px; display: block; margin-bottom: 6px; }
.menu-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ============================================
   SCREEN 6 - ATC SIMULATOR
   ============================================ */
#screen-atc {
  padding-bottom: 80px;
}

.radar-container {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 20px;
}
.radar-bg {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,30,10,0.9) 0%, rgba(0,20,8,0.95) 100%);
  border: 2px solid rgba(0,255,80,0.3);
  position: relative;
  overflow: hidden;
}
.radar-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, transparent 33%, rgba(0,255,80,0.06) 33%, rgba(0,255,80,0.06) 34%, transparent 34%),
    radial-gradient(circle, transparent 66%, rgba(0,255,80,0.04) 66%, rgba(0,255,80,0.04) 67%, transparent 67%),
    linear-gradient(rgba(0,255,80,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,80,0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px;
}
.radar-line {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,255,80,0.8));
  transform-origin: 0 50%;
  transform: translateY(-50%);
  animation: radarSpin 3s linear infinite;
  box-shadow: 0 0 8px rgba(0,255,80,0.5);
}
.radar-blip {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00FF50;
  box-shadow: 0 0 8px #00FF50;
}
.radar-blip-ring {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,80,0.5);
  animation: radarBlip 2s ease-out infinite;
}

.atc-scenario-select {
  padding: 0 20px 12px;
}
.scenario-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.scenario-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.scenario-chips::-webkit-scrollbar { display: none; }
.scenario-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.scenario-chip.active {
  background: rgba(74,144,217,0.2);
  border-color: var(--sky);
  color: var(--sky);
}

.atc-chat {
  margin: 0 20px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  display: flex;
  gap: 10px;
}
.chat-msg-atc .chat-bubble {
  background: rgba(0,100,40,0.25);
  border: 1px solid rgba(0,200,80,0.2);
}
.chat-msg-user .chat-bubble {
  background: rgba(74,144,217,0.15);
  border: 1px solid rgba(74,144,217,0.25);
  margin-left: auto;
}
.chat-msg-ai .chat-bubble {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
}
.chat-bubble {
  border-radius: var(--radius-md);
  padding: 10px 14px;
  max-width: 85%;
}
.chat-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--text-muted);
}
.chat-msg-atc .chat-role { color: #00CC50; }
.chat-msg-user .chat-role { color: var(--sky); }
.chat-msg-ai .chat-role { color: var(--gold); }
.chat-text { font-size: 13px; color: var(--white); line-height: 1.5; }
.chat-feedback { font-size: 12px; line-height: 1.5; }

.atc-scoring {
  margin: 0 20px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}
.score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.score-row:last-child { margin-bottom: 0; }
.score-name { font-size: 12px; font-weight: 600; color: var(--text-secondary); width: 100px; flex-shrink: 0; }
.score-bar-wrap { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 3px; transition: width 1.5s ease; }
.score-num { font-size: 12px; font-weight: 700; color: var(--sky); width: 35px; text-align: right; }

.mic-zone {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mic-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A90D9, #2575B8);
  border: 3px solid rgba(74,144,217,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 24px rgba(74,144,217,0.5);
  position: relative;
}
.mic-btn.active {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  border-color: rgba(231,76,60,0.5);
  box-shadow: 0 0 24px rgba(231,76,60,0.5);
  animation: pulse 1s ease-in-out infinite;
}
.mic-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(74,144,217,0.3);
  animation: pulse 2s ease-in-out infinite;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  opacity: 0.4;
}
.waveform.active { opacity: 1; }
.wave-bar {
  width: 4px;
  background: var(--sky);
  border-radius: 2px;
  min-height: 4px;
}
.waveform.active .wave-bar:nth-child(1) { animation: waveform 0.8s ease-in-out infinite 0s; height: 80%; }
.waveform.active .wave-bar:nth-child(2) { animation: waveform 0.8s ease-in-out infinite 0.1s; height: 60%; }
.waveform.active .wave-bar:nth-child(3) { animation: waveform 0.8s ease-in-out infinite 0.2s; height: 100%; }
.waveform.active .wave-bar:nth-child(4) { animation: waveform 0.8s ease-in-out infinite 0.15s; height: 70%; }
.waveform.active .wave-bar:nth-child(5) { animation: waveform 0.8s ease-in-out infinite 0.05s; height: 85%; }
.waveform.active .wave-bar:nth-child(6) { animation: waveform 0.8s ease-in-out infinite 0.25s; height: 55%; }
.waveform.active .wave-bar:nth-child(7) { animation: waveform 0.8s ease-in-out infinite 0.12s; height: 90%; }
.waveform.active .wave-bar:nth-child(8) { animation: waveform 0.8s ease-in-out infinite 0.18s; height: 65%; }

.timer-display {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  color: var(--text-muted);
}
.timer-display.urgent { color: var(--red); animation: pulse 1s ease-in-out infinite; }

/* ============================================
   SCREEN 7 - ICAO EVALUATOR
   ============================================ */
#screen-icao {
  padding-bottom: 80px;
}

.icao-gauge-wrap {
  display: flex;
  justify-content: center;
  padding: 20px;
}
.icao-gauge {
  position: relative;
  width: 140px; height: 140px;
}
.gauge-svg { width: 100%; height: 100%; }
.gauge-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 10; }
.gauge-fill {
  fill: none;
  stroke: url(#gaugeGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 169.64;
  transform: rotate(-90deg);
  transform-origin: 70px 70px;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}
.gauge-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.gauge-val {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 900;
  color: var(--sky);
  line-height: 1;
}
.gauge-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.icao-scale {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}
.icao-scale-item {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  transition: var(--transition);
}
.icao-scale-item.current {
  background: linear-gradient(135deg, rgba(74,144,217,0.3), rgba(74,144,217,0.1));
  border-color: var(--sky);
  box-shadow: 0 0 16px rgba(74,144,217,0.3);
}
.scale-num {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
}
.icao-scale-item.current .scale-num { color: var(--sky); }
.scale-name { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.icao-scale-item.current .scale-name { color: var(--sky-light); }

.eval-categories {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eval-cat {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.eval-cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.eval-cat-name { font-size: 13px; font-weight: 600; color: var(--white); }
.eval-cat-score { font-family: 'Orbitron', monospace; font-size: 14px; font-weight: 700; color: var(--sky); }
.eval-cat-bar { height: 6px; border-radius: 3px; }

/* ============================================
   SCREEN 8 - SELECTION PROCESS
   ============================================ */
#screen-interview {
  padding-bottom: 80px;
}

.interview-timeline {
  display: flex;
  gap: 0;
  padding: 16px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.interview-timeline::-webkit-scrollbar { display: none; }
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex-shrink: 0;
  min-width: 64px;
}
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--glass-border);
}
.timeline-step.done:not(:last-child)::after { background: var(--sky); }
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  z-index: 1;
}
.timeline-step.done .step-circle { background: rgba(74,144,217,0.2); border-color: var(--sky); }
.timeline-step.active .step-circle {
  background: var(--sky);
  border-color: var(--sky);
  box-shadow: 0 0 16px rgba(74,144,217,0.5);
  animation: glow 2s ease-in-out infinite;
}
.step-label { font-size: 10px; color: var(--text-muted); text-align: center; line-height: 1.3; }
.timeline-step.active .step-label { color: var(--sky); font-weight: 700; }

.recruiter-zone {
  margin: 0 20px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  backdrop-filter: blur(12px);
}
.recruiter-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A2F4A, #4A90D9);
  border: 2px solid var(--sky);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  position: relative;
}
.recruiter-status {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--navy-deep);
}
.recruiter-info { flex: 1; }
.recruiter-name { font-size: 14px; font-weight: 700; color: var(--white); }
.recruiter-role { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.recruiter-bubble {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
}
.recruiter-q { font-size: 14px; color: var(--white); line-height: 1.5; }

.interview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 12px;
}
.interview-progress-text { font-size: 12px; color: var(--text-muted); }
.interview-timer {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  color: var(--orange);
}

.answer-zone {
  margin: 0 20px 16px;
}
.answer-feedback {
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.feedback-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.feedback-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.feedback-scores { display: flex; gap: 12px; margin-top: 10px; }
.feedback-score-item { font-size: 12px; font-weight: 600; }

/* ============================================
   SCREEN 9 - SPEECH TRAINING
   ============================================ */
#screen-speech {
  padding-bottom: 80px;
}

.speech-tabs {
  display: flex;
  gap: 0;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.speech-tabs::-webkit-scrollbar { display: none; }
.speech-tab {
  flex-shrink: 0;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.speech-tab.active {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

.speech-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 20px 12px;
}
.speech-mode-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}
.speech-mode-btn .mode-icon { font-size: 18px; display: block; margin-bottom: 4px; }
.speech-mode-btn.active {
  background: rgba(74,144,217,0.2);
  border-color: var(--sky);
  color: var(--sky);
}

.speech-text-card {
  margin: 0 20px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  max-height: 200px;
  overflow-y: auto;
}
.speech-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.speech-text .word { transition: var(--transition); cursor: pointer; }
.speech-text .word.current {
  color: var(--sky);
  background: rgba(74,144,217,0.2);
  border-radius: 3px;
  padding: 0 2px;
}
.speech-text .word.done { color: var(--green); }

.speech-controls {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ai-feedback-card {
  margin: 0 20px 16px;
  background: rgba(74,144,217,0.06);
  border: 1px solid rgba(74,144,217,0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.ai-feedback-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ai-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #4A90D9, #2575B8);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.ai-feedback-title { font-size: 13px; font-weight: 700; color: var(--sky); }
.ai-feedback-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

/* ============================================
   SCREEN 10 - RANKING / GAMIFICATION
   ============================================ */
#screen-ranking {
  padding-bottom: 80px;
}

.rank-card {
  margin: 16px 20px;
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(74,144,217,0.12));
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.rank-badge {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #FFD700, #F0A500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 900;
  color: #0D1B2A;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
}
.rank-info { flex: 1; }
.rank-name { font-size: 16px; font-weight: 700; color: var(--white); }
.rank-details { font-size: 12px; color: var(--text-secondary); margin: 3px 0 8px; }
.rank-xp-bar { height: 5px; border-radius: 3px; }

.leaderboard {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.lb-item:hover { border-color: rgba(74,144,217,0.4); }
.lb-item.top-1 { background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,165,0,0.06)); border-color: rgba(255,215,0,0.3); }
.lb-item.top-2 { background: linear-gradient(135deg, rgba(192,192,192,0.08), transparent); border-color: rgba(192,192,192,0.25); }
.lb-item.top-3 { background: linear-gradient(135deg, rgba(205,127,50,0.08), transparent); border-color: rgba(205,127,50,0.25); }
.lb-item.me { background: linear-gradient(135deg, rgba(74,144,217,0.12), transparent); border-color: rgba(74,144,217,0.4); }

.lb-rank {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.lb-item.top-1 .lb-rank { color: var(--gold); }
.lb-item.top-2 .lb-rank { color: #C0C0C0; }
.lb-item.top-3 .lb-rank { color: #CD7F32; }

.lb-info { flex: 1; }
.lb-name { font-size: 13px; font-weight: 600; color: var(--white); }
.lb-detail { font-size: 11px; color: var(--text-muted); }
.lb-xp { font-family: 'Orbitron', monospace; font-size: 12px; font-weight: 700; color: var(--sky); }

.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px 16px;
}
.badge-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.badge-item.unlocked { border-color: rgba(74,144,217,0.4); }
.badge-item.unlocked:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(74,144,217,0.2); }
.badge-item.locked { opacity: 0.4; }
.badge-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.badge-item.unlocked .badge-icon-wrap {
  background: linear-gradient(135deg, rgba(74,144,217,0.2), rgba(74,144,217,0.05));
  border-color: rgba(74,144,217,0.3);
  box-shadow: 0 0 20px rgba(74,144,217,0.2);
}
.badge-name { font-size: 11px; font-weight: 700; color: var(--white); line-height: 1.3; }
.badge-status { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.badge-item.unlocked .badge-status { color: var(--green); }

/* ============================================
   SCREEN 11 - PROGRESS
   ============================================ */
#screen-progress {
  padding-bottom: 80px;
}

.radar-chart-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 20px;
}

.heatmap {
  padding: 0 20px 16px;
}
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.heat-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.03);
  transition: var(--transition);
}
.heat-cell.l1 { background: rgba(74,144,217,0.2); }
.heat-cell.l2 { background: rgba(74,144,217,0.4); }
.heat-cell.l3 { background: rgba(74,144,217,0.65); }
.heat-cell.l4 { background: rgba(74,144,217,0.9); }
.heatmap-days { display: flex; justify-content: space-around; margin-top: 6px; }
.heatmap-day { font-size: 10px; color: var(--text-muted); }

.chart-container {
  margin: 0 20px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  height: 180px;
  position: relative;
  backdrop-filter: blur(10px);
}

/* ============================================
   SCREEN 12 - SUBSCRIPTION
   ============================================ */
#screen-plans {
  padding-bottom: 80px;
}

.plans-header {
  padding: 24px 20px 20px;
  text-align: center;
}

.plans-grid {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.plan-card.popular {
  border-color: var(--sky);
  background: linear-gradient(135deg, rgba(74,144,217,0.15), rgba(36,59,85,0.5));
  box-shadow: 0 8px 32px rgba(74,144,217,0.25);
}
.plan-card.pro {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(36,59,85,0.5));
  box-shadow: 0 8px 32px rgba(255,215,0,0.2);
}
.plan-badge-wrap {
  position: absolute;
  top: 16px; right: 16px;
}
.plan-name {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.plan-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--sky);
  margin-bottom: 2px;
  line-height: 1;
}
.plan-card.pro .plan-price { color: var(--gold); }
.plan-price-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.plan-features { list-style: none; margin-bottom: 20px; }
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.plan-feature-check { flex-shrink: 0; }
.feature-yes { color: var(--green); }
.feature-no { color: var(--text-muted); }

/* ============================================
   SCREEN 13 - AVATAR SELECTION
   ============================================ */
#screen-avatar {
  padding-bottom: 80px;
}

.avatar-category-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.avatar-category-tabs::-webkit-scrollbar { display: none; }
.avatar-cat-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.avatar-cat-btn.active {
  background: rgba(74,144,217,0.2);
  border-color: var(--sky);
  color: var(--sky);
}

.avatars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px 16px;
}
.avatar-choice {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.avatar-choice:hover { border-color: rgba(74,144,217,0.5); transform: translateY(-3px); }
.avatar-choice.selected {
  border-color: var(--sky);
  background: rgba(74,144,217,0.15);
  box-shadow: 0 0 20px rgba(74,144,217,0.3);
}
.avatar-choice-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.avatar-choice-name { font-size: 11px; font-weight: 600; color: var(--text-secondary); line-height: 1.3; }
.avatar-choice .selected-check {
  display: none;
  position: absolute;
  top: 8px; right: 8px;
  color: var(--sky);
  font-size: 16px;
}
.avatar-choice.selected .selected-check { display: block; }
.avatar-choice { position: relative; }

.avatar-preview-card {
  margin: 0 20px 16px;
  background: linear-gradient(135deg, rgba(74,144,217,0.15), rgba(36,59,85,0.5));
  border: 1px solid rgba(74,144,217,0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
}
.avatar-preview-icon { font-size: 64px; display: block; margin-bottom: 12px; animation: float 3s ease-in-out infinite; }
.avatar-preview-env {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.avatar-preview-name { font-size: 18px; font-weight: 700; color: var(--white); }

/* ============================================
   NOTIFICATIONS / TOASTS
   ============================================ */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 360px;
  width: calc(100% - 40px);
}
.toast {
  background: rgba(26,47,74,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease;
  pointer-events: all;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast-success { border-color: rgba(46,204,113,0.4); }
.toast-error { border-color: rgba(231,76,60,0.4); }
.toast-info { border-color: rgba(74,144,217,0.4); }
.toast-icon { font-size: 20px; }
.toast-text { font-size: 13px; font-weight: 500; color: var(--white); line-height: 1.4; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 480px) {
  #app { border-left: 1px solid var(--glass-border); border-right: 1px solid var(--glass-border); }
}

@media (min-width: 768px) {
  #screen-language { padding: 60px 40px; }
  h1 { font-size: 32px; }
  .lang-logo { width: 340px; }
}

/* ============================================
   DEMO INTERATIVA — ESTILOS ESPECÍFICOS
   ============================================ */

/* Card de seleção hover */
.demo-role-card {
  position: relative;
  z-index: 20;
  pointer-events: all;
  cursor: pointer;
}
.demo-role-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px rgba(74,144,217,0.25) !important;
}
.demo-role-card:active {
  transform: scale(0.98) !important;
}

/* Waveform animado na demo */
.demo-waveform.active > div:nth-child(1) { animation: waveform 0.8s ease-in-out infinite 0s; }
.demo-waveform.active > div:nth-child(2) { animation: waveform 0.8s ease-in-out infinite 0.1s; }
.demo-waveform.active > div:nth-child(3) { animation: waveform 0.8s ease-in-out infinite 0.2s; }
.demo-waveform.active > div:nth-child(4) { animation: waveform 0.8s ease-in-out infinite 0.15s; }
.demo-waveform.active > div:nth-child(5) { animation: waveform 0.8s ease-in-out infinite 0.05s; }
.demo-waveform.active > div:nth-child(6) { animation: waveform 0.8s ease-in-out infinite 0.25s; }
.demo-waveform.active > div:nth-child(7) { animation: waveform 0.8s ease-in-out infinite 0.12s; }
.demo-waveform.active > div:nth-child(8) { animation: waveform 0.8s ease-in-out infinite 0.18s; }
.demo-waveform.active > div:nth-child(9) { animation: waveform 0.8s ease-in-out infinite 0.08s; }
.demo-waveform.active > div:nth-child(10) { animation: waveform 0.8s ease-in-out infinite 0.22s; }
.demo-waveform.active { opacity: 1 !important; }

/* Mic botão ativo na demo */
#demoMicBtn.active {
  background: linear-gradient(135deg, #E74C3C, #C0392B) !important;
  border-color: rgba(231,76,60,0.5) !important;
  box-shadow: 0 0 24px rgba(231,76,60,0.5) !important;
  animation: pulse 1s ease-in-out infinite;
}

/* Chat bubble da demo */
.demo-chat-atc {
  background: rgba(0,80,30,0.25);
  border: 1px solid rgba(0,200,80,0.2);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  padding: 14px 18px;
}
.demo-chat-user {
  background: rgba(74,144,217,0.15);
  border: 1px solid rgba(74,144,217,0.25);
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  padding: 14px 18px;
  margin-left: auto;
  max-width: 85%;
}
.demo-chat-feedback {
  background: rgba(255,215,0,0.07);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 18px;
  padding: 14px 18px;
}

/* Blinking cursor on ATC text */
.typing-cursor::after {
  content: '|';
  animation: pulse 0.8s step-end infinite;
  color: #4A90D9;
}

/* Step indicator na demo */
.demo-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,144,217,0.12);
  border: 1px solid rgba(74,144,217,0.25);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #4A90D9;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Score reveal animation */
@keyframes scoreReveal {
  0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  60% { transform: scale(1.1) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.score-reveal { animation: scoreReveal 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* Paywall locked items */
.locked-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  opacity: 0.5;
  filter: blur(0.5px);
  font-size: 13px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.locked-item:last-child { border-bottom: none; }

/* WhatsApp button hover */
#btnWhatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.55) !important;
}
#btnCheckout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,215,0,0.45) !important;
}

@media (max-width: 360px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
}
