:root {
  --sfi-red: #ff3131;
  --sfi-dark: #06080a;
  --glass-bg: rgba(6, 8, 10, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(30px);
  
  --answered: #10B981;
  --viewed: #F43F5E;
  --marked: #3B82F6;
  --unvisited: rgba(255, 255, 255, 0.05);
  --question-scale: 1;
}

/* Global Component Tokens - Use these for UI elements */

/* Atmosphere Background */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 49, 49, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
  filter: blur(80px);
}

/* Glass System */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Black Glossy Nav Header */
.nav-panel {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.97) 0%, rgba(6, 8, 10, 0.96) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(0, 0, 0, 0.8);
}

.glass-button {
  --btn-bg: rgba(6, 8, 10, 0.4);
  background: var(--btn-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.glass-button:hover {
  background: rgba(255, 49, 49, 0.8);
  transform: translateY(-2px);
  border-color: var(--sfi-red);
  color: white;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Typography Highlights */
.text-sfi-red {
  color: var(--sfi-red);
  text-shadow: 0 0 4px rgba(255, 49, 49, 0.2);
  filter: brightness(1.1);
}

.font-display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Components */
.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--sfi-red);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox.checked { background: var(--sfi-red); }
.custom-checkbox.checked::after { content: '✓'; font-weight: bold; font-size: 12px; }

/* Palette Grid Styles */
.palette-btn {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palette-btn.current { border: 2px solid white; transform: scale(1.1); }
.palette-btn.answered { background: var(--answered); border-color: transparent; }
.palette-btn.viewed { background: var(--viewed); border-color: transparent; }
.palette-btn.marked { background: var(--marked); border-color: transparent; }
.palette-btn.unvisited { opacity: 0.4; }

/* Option Selection */
.option-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.option-item:hover { background: rgba(255, 255, 255, 0.06); }
.option-item.selected { background: rgba(255, 49, 49, 0.1); border-color: var(--sfi-red); }

.option-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-right: 1rem;
}

.option-item.selected .option-circle { background: var(--sfi-red); color: white; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sfi-dark); }
::-webkit-scrollbar-thumb { background: var(--sfi-red); border-radius: 10px; }

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--sfi-dark);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

#mobile-menu.active { transform: translateX(0); }

.mobile-nav-link {
  font-size: 4rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.active .mobile-nav-link { opacity: 1; transform: translateY(0); }

/* Screen Transitions */
.screen {
  display: none !important;
  min-height: 100vh;
  width: 100%;
}

.screen.active {
  display: flex !important;
}

body {
  background-color: var(--sfi-dark);
  color: white;
  margin: 0;
  overflow-x: hidden;
}

/* Scroll Alignment Fix */
#mock-tests-tile {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  #mock-tests-tile {
    scroll-margin-top: 100px;
  }
}
