/* ================================================================
   H8xESPORTS — نظام التصميم الكامل
   Gaming Esports Dark Theme — Red/Orange Accent
   ================================================================ */

/* Fonts loaded via <link> in HTML with preconnect — no @import needed here */

/* ===== Design Tokens ===== */
:root {
  --bg:           #000000;
  --bg-2:         #0d0d0d;
  --bg-3:         #111111;
  --card-bg:      rgba(255,255,255,0.028);
  --card-border:  rgba(255,69,0,0.18);
  --accent:       #ff4500;
  --accent-2:     #cc2200;
  --accent-glow:  rgba(255,69,0,0.35);
  --accent-light: rgba(255,69,0,0.08);
  --text:         #ffffff;
  --text-2:       #c0c0c0;
  --text-3:       #666666;
  --success:      #00ff88;
  --success-bg:   rgba(0,255,136,0.08);
  --error:        #ff3333;
  --error-bg:     rgba(255,51,51,0.08);
  --warning:      #ffaa00;
  --warning-bg:   rgba(255,170,0,0.08);
  --input-bg:     rgba(255,255,255,0.05);
  --input-border: rgba(255,255,255,0.1);
  --radius:       10px;
  --transition:   0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 15%, rgba(255,69,0,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 85%, rgba(204,34,0,0.04) 0%, transparent 70%);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* ===== Particle Canvas (fixed bg) ===== */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== Splash Screen ===== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#splash.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  animation: splashPulse 1.2s ease-in-out infinite;
  border-radius: 16px;
}
.splash-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 18px;
  animation: splashGlow 1.2s ease-in-out infinite;
}
.splash-sub {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 3px;
  margin-top: 6px;
  text-transform: uppercase;
}
.splash-progress {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 30px;
  overflow: hidden;
}
.splash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 2px;
  animation: splashLoad 0.4s linear forwards;
}

@keyframes splashPulse {
  0%,100% { transform: scale(1);    filter: drop-shadow(0 0 20px var(--accent-glow)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 40px var(--accent-glow)); }
}
@keyframes splashGlow {
  0%,100% { text-shadow: 0 0 20px var(--accent-glow); }
  50%      { text-shadow: 0 0 50px var(--accent-glow), 0 0 100px rgba(255,69,0,0.2); }
}
@keyframes splashLoad { 0% { width: 0% } 100% { width: 100% } }

/* ===== Navigation ===== */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255,69,0,0.1);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
}
.nav-logo-text em { color: var(--accent); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--accent);
  transition: all var(--transition);
  transform: translateX(-50%);
}
.nav-link:hover {
  color: var(--accent);
}
.nav-link:hover::after {
  width: 100%;
}
/* active nav link */
.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  width: 100%;
}
/* reject nav link tint */

/* status card — rejected state */
#status-section.rejected .status-card {
  border-color: rgba(255,51,51,0.3);
}
#status-section.rejected .status-card h3 {
  color: var(--error);
}
/* status card — accepted state */
#status-section.accepted .status-card {
  border-color: rgba(0,255,136,0.3);
}

/* ===== Smooth exit button ===== */
#btn-status-exit {
  transition: all 0.2s ease;
}
#btn-status-exit:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
#btn-status-another {
  transition: all 0.2s ease;
}
#btn-status-another:hover {
  background: rgba(255,255,255,0.1) !important;
  color: var(--text) !important;
}

/* ===== Main wrapper ===== */
main { position: relative; z-index: 1; }

/* ===== Hero Section ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('logo.png') center/45% no-repeat;
  opacity: 0.025;
  pointer-events: none;
}
.hero-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 0 35px var(--accent-glow));
  animation: heroFloat 5s ease-in-out infinite;
  margin-bottom: 28px;
  border-radius: 16px;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(135deg, #fff 20%, #ff8060 60%, #cc2200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  letter-spacing: 1.5px;
  margin-bottom: 40px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  letter-spacing: 1px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  animation: ctaPulse 2.5s ease-in-out infinite;
}
.hero-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.6s ease;
}
.hero-cta:hover::before { left: 100%; }
.hero-cta:hover {
  box-shadow: 0 0 45px var(--accent-glow), 0 8px 25px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 0 15px var(--accent-glow); }
  50%      { box-shadow: 0 0 35px var(--accent-glow), 0 0 70px rgba(255,69,0,0.15); }
}

/* ===== Hero Cards ===== */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  width: 100%;
  margin-top: 50px;
}

.hero-action-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 69, 0, 0.15);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: right;
}

.hero-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-action-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 69, 0, 0.5);
  box-shadow: 0 15px 35px rgba(255, 69, 0, 0.15), 0 0 0 1px rgba(255, 69, 0, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.hero-action-card:hover::before {
  opacity: 1;
}

.hac-icon {
  font-size: 2.2rem;
  background: rgba(255, 69, 0, 0.08);
  border: 1px solid rgba(255, 69, 0, 0.2);
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.hero-action-card:hover .hac-icon {
  background: rgba(255, 69, 0, 0.2);
  border-color: rgba(255, 69, 0, 0.6);
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.hac-body {
  flex: 1;
}

.hac-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.hero-action-card:hover .hac-body h3 {
  color: var(--accent);
}

.hac-body p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.hero-action-card:hover .hac-body p {
  color: var(--text-2);
}

.hac-arrow {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-3);
  transition: all 0.4s ease;
  transform: scaleX(-1);
  display: inline-block;
}

.hero-action-card:hover .hac-arrow {
  color: var(--accent);
  transform: scaleX(-1) translateX(-6px);
}

/* Custom card overrides */
.hero-action-card.hac-track {
  border-color: rgba(0, 136, 255, 0.15);
}
.hero-action-card.hac-track .hac-icon {
  background: rgba(0, 136, 255, 0.08);
  border-color: rgba(0, 136, 255, 0.2);
}
.hero-action-card.hac-track:hover {
  border-color: rgba(0, 136, 255, 0.5);
  box-shadow: 0 15px 35px rgba(0, 136, 255, 0.12), 0 0 0 1px rgba(0, 136, 255, 0.3);
}
.hero-action-card.hac-track:hover .hac-icon {
  background: rgba(0, 136, 255, 0.2);
  border-color: rgba(0, 136, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.3);
}
.hero-action-card.hac-track:hover .hac-body h3 {
  color: #33aaff;
}
.hero-action-card.hac-track:hover .hac-arrow {
  color: #33aaff;
}

/* ===== Back Bar & Breadcrumbs ===== */
.page-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.back-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.back-btn:hover {
  background: rgba(255, 69, 0, 0.12);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(-4px);
}

.page-breadcrumb {
  font-size: 0.88rem;
  color: var(--text-3);
  font-weight: 600;
}

/* ===== Application Section ===== */
#apply {
  padding: 80px 20px 40px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.section-title h2 span { color: var(--accent); }
.section-title p { color: var(--text-3); margin-top: 10px; font-size: 0.95rem; }

/* ===== Form Cards ===== */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}
.form-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.form-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}
.form-card:hover {
  border-color: rgba(255,69,0,0.38);
  box-shadow: 0 0 30px rgba(255,69,0,0.05);
}
.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,69,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Form Layout ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.col-full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.req { color: var(--accent); font-size: 1rem; }

/* ===== Inputs & Selects ===== */
.form-input, .form-select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.93rem;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(255,69,0,0.04);
}
.form-select option { background: #1c1c1c; color: #fff; }
.form-input.is-valid   { border-color: var(--success); box-shadow: 0 0 0 3px rgba(0,255,136,0.15); }
.form-input.is-invalid { border-color: var(--error);   box-shadow: 0 0 0 3px rgba(255,51,51,0.15); }

/* ===== Phone Row ===== */
.phone-row { display: flex; gap: 10px; }
.phone-row .form-select { width: 135px; flex-shrink: 0; font-size: 0.82rem; }
.phone-row .form-input  { flex: 1; }

/* ===== Game ID field ===== */
.id-wrap { position: relative; }
.id-wrap .form-input { padding-left: 155px; direction: ltr; }
.id-badge {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  display: none;
  white-space: nowrap;
  direction: ltr;
}
.id-badge.global  { display:inline-block; background:rgba(0,200,100,0.15); border:1px solid rgba(0,200,100,0.35); color:#00ff88; }
.id-badge.korea   { display:inline-block; background:rgba(50,100,255,0.15); border:1px solid rgba(50,100,255,0.35); color:#66aaff; }
.id-badge.bad     { display:inline-block; background:var(--error-bg); border:1px solid rgba(255,51,51,0.35); color:var(--error); }

/* ===== Device → FPS Grid ===== */
.device-fps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fps-hint {
  font-size: 0.78rem;
  margin-top: 5px;
  min-height: 18px;
  transition: color var(--transition);
  color: var(--text-3);
}
.fps-hint.detecting { color: var(--warning); }
.fps-hint.detected  { color: var(--success); }

/* ===== Position Grid ===== */
.position-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pos-btn {
  padding: 14px 8px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 9px;
  color: var(--text-3);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  transition: all var(--transition);
}
.pos-btn .pos-icon { display: block; font-size: 1.5rem; margin-bottom: 6px; }
.pos-btn:hover     { border-color: var(--accent); color: var(--text); }
.pos-btn.active    {
  background: rgba(255,69,0,0.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(255,69,0,0.2);
}

/* ===== Toggle Yes/No ===== */
.toggle-row { display: flex; gap: 10px; }
.toggle-btn {
  flex: 1;
  padding: 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-3);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}
.toggle-btn:hover { border-color: var(--accent); color: var(--text); }
.toggle-btn.yes   { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.toggle-btn.no    { background: var(--error-bg);   border-color: var(--error);   color: var(--error);   }

/* ===== Field Message ===== */
.field-msg {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  display: none;
  animation: fadeIn 0.25s ease;
}
.field-msg.show         { display: block; }
.field-msg.is-error     { color: var(--error);   background: var(--error-bg); }
.field-msg.is-success   { color: var(--success); background: var(--success-bg); }
.field-msg.is-info      { color: var(--warning); background: var(--warning-bg); }

/* ===== Note Box ===== */
.note-box {
  background: var(--warning-bg);
  border: 1px solid rgba(255,170,0,0.2);
  border-radius: 9px;
  padding: 14px 18px;
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.note-box .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.note-box p { font-size: 0.88rem; color: var(--warning); line-height: 1.6; }

/* ===== Submit Button ===== */
.submit-btn {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.6s ease;
}
.submit-btn:not(:disabled):hover::before { left: 100%; }
.submit-btn:not(:disabled) {
  animation: submitPulse 2.2s ease-in-out infinite;
}
.submit-btn:not(:disabled):hover {
  box-shadow: 0 0 50px var(--accent-glow), 0 6px 25px rgba(0,0,0,0.5);
  transform: translateY(-2px);
  animation: none;
}
.submit-btn:disabled { opacity: 0.35; cursor: not-allowed; }

@keyframes submitPulse {
  0%,100% { box-shadow: 0 0 18px var(--accent-glow); }
  50%      { box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(255,69,0,0.12); }
}

/* ===== AI Review Overlay ===== */
.ai-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}
.ai-overlay.show { display: flex; }
.ai-card {
  background: var(--bg-3);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 44px 56px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  animation: popIn 0.4s ease;
}
@keyframes popIn {
  0%   { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}
.ai-spinner {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
  animation: spin 3s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.ai-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 8px;
}
.ai-desc { color: var(--text-3); font-size: 0.88rem; }

/* ===== Status Section ===== */
#status-section {
  display: none;
  padding: 70px 20px 50px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
#status-section.show { display: block; }

.status-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,255,136,0.18);
  border-radius: 18px;
  padding: 48px 40px;
  text-align: center;
  animation: popIn 0.5s ease;
}
.status-card .status-icon {
  font-size: 3.5rem;
  margin-bottom: 18px;
  display: block;
  animation: popIn 0.4s ease;
}
.status-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--success);
  margin-bottom: 10px;
}
.status-msg {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 28px;
  min-height: 22px;
  transition: color 0.5s;
}

.tracking-box {
  background: rgba(0,255,136,0.05);
  border: 1px dashed rgba(0,255,136,0.3);
  border-radius: 9px;
  padding: 14px 20px;
  margin-bottom: 36px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 4px;
  color: var(--success);
}

/* ===== Status Timeline ===== */
.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  margin: 10px 0 28px;
  flex-wrap: wrap;
  row-gap: 10px;
}
.t-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 72px;
}
.t-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  transition: all 0.6s ease;
}
.t-label {
  font-size: 0.7rem;
  color: var(--text-3);
  text-align: center;
  font-family: 'Cairo', sans-serif;
  transition: color 0.6s;
  white-space: nowrap;
}
.t-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  min-width: 30px;
  margin-bottom: 22px;
  transition: background 0.8s ease;
}

/* Timeline states */
.t-step.green .t-circle {
  background: rgba(0,255,136,0.12);
  border-color: var(--success);
  box-shadow: 0 0 16px rgba(0,255,136,0.3);
}
.t-step.green .t-label { color: var(--success); }
.t-step.red .t-circle {
  background: var(--error-bg);
  border-color: var(--error);
  box-shadow: 0 0 16px rgba(255,51,51,0.3);
}
.t-step.red .t-label { color: var(--error); }
.t-line.green  { background: var(--success); }
.t-line.red    { background: var(--error); }

/* Rejection reason */
.reject-box {
  background: var(--error-bg);
  border: 1px solid rgba(255,51,51,0.25);
  border-radius: 9px;
  padding: 16px 20px;
  text-align: right;
  display: none;
  animation: fadeIn 0.4s ease;
}
.reject-box.show { display: block; }
.reject-box p { color: var(--error); font-size: 0.9rem; line-height: 1.6; }

/* ===== Footer ===== */
footer {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,69,0,0.1);
  margin-top: 30px;
}
.footer-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-3); }

/* ===== Toast notification ===== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  padding: 16px 28px;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  min-width: 280px;
  z-index: 9998;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: rgba(0,50,25,0.97); border: 1px solid var(--success); color: var(--success); }
.toast.error   { background: rgba(50,0,0,0.97);  border: 1px solid var(--error);   color: var(--error);   }

/* ===== Animations ===== */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
    padding: 0 16px;
  }
}

@media (max-width: 760px) {
  /* ── Nav: stack logo on top, links scroll below ── */
  nav {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nav-logo {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-logo img {
    width: 34px;
    height: 34px;
  }
  .nav-logo-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .nav-links {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  .nav-link {
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── Hero: more top padding to clear the taller nav ── */
  #hero {
    padding-top: 140px;
  }

  /* ── Forms ── */
  .form-grid            { grid-template-columns: 1fr; }
  .position-grid        { grid-template-columns: repeat(2, 1fr); }
  .device-fps-grid      { grid-template-columns: 1fr; }
  .form-card            { padding: 26px 18px; }
  .status-card          { padding: 36px 18px; }
  .t-line               { min-width: 16px; }
  .page-back-bar        { margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .ai-card        { padding: 34px 20px; }
  .timeline       { flex-wrap: wrap; }
  .hero-logo      { width: 120px; height: 120px; }
  .hero-title     { letter-spacing: 4px; }
  .hero-sub       { font-size: 0.88rem; }
  .submit-btn     { font-size: 1rem; padding: 16px 24px; }
  .page-back-bar  { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Switcher for Apply Type (Solo / Roster) */
.apply-type-switcher {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
}
.apply-type-switcher .toggle-btn {
  flex: 1;
  max-width: 200px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-3);
}
.apply-type-switcher .toggle-btn.active {
  background: rgba(255, 69, 0, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
}


