/* static/css/style.css
   --------------------------------------------------------------------------
   Global styles for Startup, Quiz, and Review pages (dark theme)
   + dedicated styling for the “wrong answers” modal
   -------------------------------------------------------------------------- */

/* ─── IMPORT FONT ───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

:root,
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #121212;     /* global dark bg */
  color: #E0E0E0;                /* light text */
  height: 100vh;
  box-sizing: border-box;
}

/* ─── COMMON FLEX CONTAINERS ───────────────────────────────────────────────── */

.startup-main,
.quiz-main,
.review-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 4rem;       /* bottom padding in case of footer */
  min-height: 100vh;
  box-sizing: border-box;
}

/* ─── SECTION TITLES ───────────────────────────────────────────────────────── */

.title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #F5F5F5;
}

/* ─────────────────────────────────────────────────────────────────────────────
   STARTUP PAGE
   ─────────────────────────────────────────────────────────────────────────── */

.startup-main {
  justify-content: center;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Animated background elements */
.startup-main::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translateX(-20px) translateY(-20px) rotate(0deg); }
  33% { transform: translateX(20px) translateY(-30px) rotate(120deg); }
  66% { transform: translateX(-10px) translateY(20px) rotate(240deg); }
}

/* page title */
.startup-main .title {
  font-size: 3.5rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(45deg, #1E88E5, #42A5F5, #64B5F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

/* card */
.startup-card {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(30, 136, 229, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 3rem 2.5rem 3.5rem;
  width: 100%;
  max-width: 480px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.startup-card:hover {
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 16px 32px rgba(30, 136, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* instructions */
.startup-instruction {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #E0E0E0;
  font-weight: 500;
}

/* controls container */
.startup-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

/* Quiz selection styling */
#quiz-selection {
  width: 100%;
  font-size: 1rem;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.8);
  color: #E0E0E0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#quiz-selection:focus {
  outline: none;
  border-color: #1E88E5;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.2);
  background: rgba(18, 18, 18, 0.95);
}

/* Number input container */
.number-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 18, 18, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.number-input-wrapper:focus-within {
  border-color: #1E88E5;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.2);
  background: rgba(18, 18, 18, 0.8);
}

/* number input */
#num-questions-input {
  width: 60px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #1E88E5;
  transition: all 0.3s ease;
}

#num-questions-input:focus {
  outline: none;
  color: #42A5F5;
}

#max-questions-label {
  font-weight: 600;
  color: #9E9E9E;
  font-size: 1.1rem;
}

/* timer input container */
.timer-input-container {
  width: 100%;
  max-width: 200px;
}

/* timer input */
#timer-input {
  width: 100%;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.6);
  color: #E0E0E0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#timer-input:focus {
  outline: none;
  border-color: #1E88E5;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.2);
  background: rgba(18, 18, 18, 0.8);
}

#timer-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(18, 18, 18, 0.3);
}

/* Checkbox styling */
.form-check {
  background: rgba(30, 30, 30, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-check:hover {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked ~ .form-check-label {
  color: #1E88E5;
  font-weight: 600;
}

/* Teaching mode toggle button */
.btn-outline-primary {
  background: rgba(30, 136, 229, 0.1);
  border: 2px solid #1E88E5;
  color: #1E88E5;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
  background: rgba(30, 136, 229, 0.2);
  border-color: #42A5F5;
  color: #42A5F5;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(30, 136, 229, 0.3);
}

.btn-check:checked + .btn-outline-primary {
  background: linear-gradient(45deg, #1E88E5, #42A5F5);
  border-color: #1E88E5;
  color: white;
  box-shadow: 0 8px 16px rgba(30, 136, 229, 0.4);
}

/* shared button base (Startup & Quiz) */
button,
.startup-controls .btn {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

/* primary start */
#start-btn {
  background: linear-gradient(45deg, #1E88E5, #42A5F5);
  color: #fff;
  border: none;
  box-shadow: 0 8px 16px rgba(30, 136, 229, 0.3);
  position: relative;
  overflow: hidden;
}

#start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

#start-btn:hover::before {
  left: 100%;
}

#start-btn:hover {
  background: linear-gradient(45deg, #1565C0, #1E88E5);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(30, 136, 229, 0.4);
}

#start-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(30, 136, 229, 0.3);
}

/* secondary */
.startup-controls .btn-secondary {
  background: rgba(42, 42, 42, 0.8);
  color: #E0E0E0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.startup-controls .btn-secondary:hover {
  background: rgba(51, 51, 51, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.startup-controls .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Form labels */
.form-label {
  font-weight: 600;
  color: #B0B0B0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* Ensure the controls stack vertically */
.startup-card .startup-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Additional modern styling improvements */

/* Add subtle animations to form elements */
.form-select, .form-control, .form-check {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Enhanced form select styling */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23E0E0E0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Improved section spacing */
.startup-card > .mb-4:first-child {
  margin-top: 0.5rem;
}

/* Add subtle glow effects */
.startup-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 26px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.startup-card:hover::after {
  opacity: 0.3;
}

/* Loading animation for buttons */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(30, 136, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0); }
}

#start-btn:focus {
  animation: pulse 2s infinite;
}

/* Improved text selection */
::selection {
  background-color: rgba(30, 136, 229, 0.3);
  color: #fff;
}

::-moz-selection {
  background-color: rgba(30, 136, 229, 0.3);
  color: #fff;
}

/* responsive adjustments */
@media (max-width: 576px) {
  .startup-main { 
    padding: 1.5rem 1rem; 
  }
  
  .startup-card { 
    padding: 2rem 1.5rem 2.5rem; 
    max-width: 95%;
  }
  
  .startup-main .title { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
  }
  
  .startup-instruction { 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
  }
  
  #num-questions-input { 
    width: 60px; 
    padding: 0.5rem; 
  }
  
  #timer-input { 
    padding: 0.8rem; 
  }
  
  .startup-controls .btn { 
    font-size: 1rem; 
    padding: 0.8rem 1.5rem; 
  }
  
  .button-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .startup-main .title {
    font-size: 2.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   QUIZ PAGE
   ─────────────────────────────────────────────────────────────────────────── */

.quiz-main {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

/* Animated background elements for quiz page */
.quiz-main::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.05) 0%, transparent 70%);
  animation: float-reverse 25s ease-in-out infinite;
  z-index: 0;
}

@keyframes float-reverse {
  0%, 100% { transform: translateX(20px) translateY(20px) rotate(0deg); }
  33% { transform: translateX(-20px) translateY(30px) rotate(-120deg); }
  66% { transform: translateX(10px) translateY(-20px) rotate(-240deg); }
}

.quiz-main .title {
  position: relative;
  z-index: 1;
  background: linear-gradient(45deg, #1E88E5, #42A5F5, #64B5F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
}

/* progress bar track */
#progress-container {
  width: 100%;
  max-width: 600px;
  height: 12px;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,.6),
    0 1px 2px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* progress bar fill */
#progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1E88E5, #42A5F5);
  transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(30, 136, 229, 0.4);
  position: relative;
}

#progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 8px;
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* flashcard */
.flashcard {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(30, 136, 229, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 680px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.flashcard:hover {
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(30, 136, 229, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Subtle glow effect for flashcard */
.flashcard::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #1E88E5, #42A5F5, #64B5F6, #1E88E5);
  border-radius: 26px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flashcard:hover::after {
  opacity: 0.2;
}

/* question indicator */
.question-number {
  font-size: 1rem;
  color: #9E9E9E;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.5px;
  font-weight: 500;
  background: rgba(30, 136, 229, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(30, 136, 229, 0.2);
}

/* actual question */
.question {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: center;
  color: #F5F5F5;
  white-space: pre-line;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* answer list */
.options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* answer row */
.quiz-main .form-check {
  background: rgba(30, 30, 30, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.quiz-main .form-check::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.1), transparent);
  transition: left 0.5s;
}

.quiz-main .form-check:hover::before {
  left: 100%;
}

.quiz-main .form-check:hover {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* checkbox */
.form-check-input {
  position: absolute;   /* take it out of the flex flow */
  width: 0;
  height: 0;
  opacity: 0;           /* invisible, but still tabbable */
  pointer-events: none; /* mouse clicks land on the label instead */
}

/* 2. When that hidden checkbox is checked,
      turn the entire answer pill blue & invert the text colour.
      Modern browsers (all evergreen since 2024) support :has().  */
.form-check:has(.form-check-input:checked) {
  background-color: #1E88E5;
  border-color:     #1E88E5;
  color: #fff;
}

/* 3. Make sure the label’s colour follows suit */
.form-check:has(.form-check-input:checked) .form-check-label {
  color: inherit;
}

/* 4. Optional: keep the neutral hover only for un-selected rows */
.form-check:hover:not(:has(.form-check-input:checked)) {
  background-color: #313131;
  border-color:     #4c4c4c;
}

/* option label */
.form-check-label {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 1.05rem;
  color: #E0E0E0;
  user-select: none;
}

/* controls row */
.controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

/* base btn tweaks */
.quiz-main button { 
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quiz-main button:disabled {
  background-color: #555;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

/* submit */
#submit-btn {
  background: linear-gradient(45deg, #1E88E5, #42A5F5);
  color: #fff;
  box-shadow: 0 8px 16px rgba(30, 136, 229, 0.3);
}

#submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

#submit-btn:hover::before {
  left: 100%;
}

#submit-btn:hover:not(:disabled) {
  background: linear-gradient(45deg, #1565C0, #1E88E5);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(30, 136, 229, 0.4);
}

#submit-btn:active:not(:disabled) { 
  background: linear-gradient(45deg, #0D47A1, #1565C0);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(30, 136, 229, 0.3);
}

/* skip */
#skip-btn {
  background: rgba(42, 42, 42, 0.8);
  color: #E0E0E0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

#skip-btn:hover {
  background: rgba(51, 51, 51, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#skip-btn:active { 
  background: rgba(38, 38, 38, 0.9);
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* finish screen container */
#finish-container {
  display: none;
  flex-direction: column;
  align-items: center;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(30, 136, 229, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 600px;
  text-align: center;
  position: relative;
  z-index: 1;
}

#finish-container.show { 
  display: flex;
  animation: slideInUp 0.5s ease-out;
}

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

/* finish text */
#finish-container h2,
#finish-container h3 { 
  color: #F5F5F5;
  background: linear-gradient(45deg, #1E88E5, #42A5F5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

#finish-container .final-msg {
  color: #E0E0E0;
  font-size: 1.2rem;
  margin: 1.5rem 0;
  line-height: 1.6;
}

/* restart btn */
#restart-btn {
  background: linear-gradient(45deg, #37A64E, #4CAF50);
  color: #fff;
  border: none;
  box-shadow: 0 8px 16px rgba(55, 166, 78, 0.3);
  position: relative;
  overflow: hidden;
}

#restart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

#restart-btn:hover::before {
  left: 100%;
}

#restart-btn:hover {
  background: linear-gradient(45deg, #2C8A3F, #37A64E);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(55, 166, 78, 0.4);
}

#restart-btn:active { 
  background: linear-gradient(45deg, #256532, #2C8A3F);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(55, 166, 78, 0.3);
}



/* ─────────────────────────────────────────────────────────────────────────────
   NAVBAR STYLING
   ─────────────────────────────────────────────────────────────────────────── */

.navbar {
  background: rgba(18, 18, 18, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, #1E88E5, #42A5F5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.navbar-brand:hover {
  background: linear-gradient(45deg, #42A5F5, #64B5F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
}

.navbar-toggler {
  border: 2px solid rgba(30, 136, 229, 0.3);
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  border-color: #1E88E5;
  background: rgba(30, 136, 229, 0.1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 136, 229, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  color: #E0E0E0 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  color: #1E88E5 !important;
  background: rgba(30, 136, 229, 0.1);
  transform: translateY(-1px);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.1), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.dropdown-menu {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-top: 0.5rem;
  padding: 0.5rem;
}

.dropdown-item {
  color: #E0E0E0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(30, 136, 229, 0.15);
  color: #1E88E5;
  transform: translateX(4px);
}

.dropdown-item:focus {
  background: rgba(30, 136, 229, 0.2);
  color: #1E88E5;
}

/* Profile picture styling */
.nav-link img.rounded-circle {
  border: 2px solid rgba(30, 136, 229, 0.3);
  transition: all 0.3s ease;
}

.nav-link:hover img.rounded-circle {
  border-color: #1E88E5;
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

/* Navbar timer enhanced styling */
#navbar-timer {
  background: rgba(30, 30, 30, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: none; /* Hidden by default */
}

#navbar-timer:not(:empty) {
  display: block; /* Show when it has content */
}

#navbar-timer.flash {
  background: rgba(244, 67, 54, 0.2);
  border-color: #f44336;
  animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    background: rgba(244, 67, 54, 0.2);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(244, 67, 54, 0);
    background: rgba(244, 67, 54, 0.4);
  }
}

/* Responsive navbar adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(18, 18, 18, 0.98);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .nav-link {
    text-align: center;
  }
}

/* Enhanced container styling */
.navbar .container-fluid {
  position: relative;
}

/* Add subtle glow effect to navbar on scroll */
.navbar.scrolled {
  background: rgba(18, 18, 18, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REVIEW PAGE
   ─────────────────────────────────────────────────────────────────────────── */

.review-main {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

/* Animated background elements for review page */
.review-main::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.03) 0%, transparent 70%);
  animation: float-slow 30s ease-in-out infinite;
  z-index: 0;
}

@keyframes float-slow {
  0%, 100% { transform: translateX(-10px) translateY(-10px) rotate(0deg); }
  33% { transform: translateX(15px) translateY(-20px) rotate(60deg); }
  66% { transform: translateX(-5px) translateY(15px) rotate(-60deg); }
}

.review-main .title {
  position: relative;
  z-index: 1;
  background: linear-gradient(45deg, #1E88E5, #42A5F5, #64B5F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
}

.all-qa-list {
  width: 100%;
  max-width: 750px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.all-qa-list .card {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(30, 136, 229, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.all-qa-list .card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #1E88E5, #42A5F5, #64B5F6, #1E88E5);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.all-qa-list .card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(30, 136, 229, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.all-qa-list .card:hover::after {
  opacity: 0.15;
}

.all-qa-list .card-body {
  padding: 2rem 2rem 1rem;
  background: transparent;
}

.all-qa-list .card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #1E88E5, #42A5F5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(30, 136, 229, 0.2);
}

.all-qa-list .question {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #E0E0E0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.all-qa-list .list-group {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  border-radius: 0 0 20px 20px;
}

.all-qa-list .list-group-item {
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(18, 18, 18, 0.6);
  color: #E0E0E0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.all-qa-list .list-group-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s;
}

.all-qa-list .list-group-item:hover::before {
  left: 100%;
}

.all-qa-list .list-group-item:last-child { 
  border-bottom: none;
  border-radius: 0 0 20px 20px;
}

.all-qa-list .list-group-item:hover {
  background: rgba(30, 30, 30, 0.8);
  transform: translateX(4px);
  color: #F0F0F0;
}

.all-qa-list .list-group-item-success {
  background: linear-gradient(135deg, rgba(55, 166, 78, 0.2), rgba(76, 175, 80, 0.15));
  border-left: 4px solid #4CAF50;
  font-weight: 600;
  color: #A8D5AA;
  box-shadow: inset 0 1px 0 rgba(76, 175, 80, 0.2);
}

.all-qa-list .list-group-item-success:hover {
  background: linear-gradient(135deg, rgba(55, 166, 78, 0.3), rgba(76, 175, 80, 0.25));
  color: #C8E6C9;
}

/* back button */
#back-btn {
  align-self: flex-start;
  margin-left: 15px;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  background: rgba(42, 42, 42, 0.8);
  color: #E0E0E0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#back-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

#back-btn:hover::before {
  left: 100%;
}

#back-btn:hover {
  background: rgba(51, 51, 51, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  color: #F0F0F0;
}

#back-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
  .all-qa-list { 
    padding: 0 1rem; 
    max-width: 95%;
  }
  
  .all-qa-list .card-body { 
    padding: 1.5rem 1.5rem 1rem; 
  }
  
  .all-qa-list .card-title { 
    font-size: 1.2rem; 
  }
  
  .all-qa-list .question { 
    font-size: 1rem; 
  }
  
  .all-qa-list .list-group-item { 
    font-size: 1rem; 
    padding: 0.8rem 1.25rem; 
  }
  
  #back-btn {
    margin-left: 0;
    align-self: center;
    width: 90%;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.8rem 1.25rem;
  }
  
  /* Old wrong answers modal styles removed - replaced with comprehensive styling above */
}

/* ─── MOBILE RESPONSIVENESS FOR QUIZ AND HOME PAGES ─────────────────────── */

/* Mobile startup/home page improvements */
@media (max-width: 768px) {
  .startup-main {
    padding: 1rem;
  }
  
  .startup-main .title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .startup-card {
    padding: 2rem 1.5rem 2.5rem;
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
  }
  
  .startup-instruction {
    font-size: 1rem;
  }
  
  .number-input-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .timer-input-container {
    width: 100%;
    max-width: 250px;
  }
  
  .startup-buttons-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .startup-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}

/* Mobile quiz page improvements */
@media (max-width: 768px) {
  .quiz-main {
    padding: 1rem;
  }
  
  .quiz-main .title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  #quiz-container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  
  #flashcard-container {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .quiz-question {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
  .quiz-choices {
    gap: 0.75rem;
  }
  
  .quiz-choice {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .controls {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .controls button {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  #topbar-progress {
    height: 6px;
  }
  
  #progress-bar {
    height: 6px;
  }
}

/* Mobile review page improvements */
@media (max-width: 768px) {
  .review-main {
    padding: 1rem;
  }
  
  .review-main .title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .review-summary {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .review-score {
    font-size: 2rem;
  }
  
  .review-stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .review-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .review-actions .btn {
    width: 100%;
    padding: 0.875rem;
  }
  
  .question-review {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

/* Modal improvements for mobile */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .modal-content {
    border-radius: 16px;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-body {
    padding: 1rem 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .btn-close {
    background-size: 1.2em;
    padding: 0.5rem;
  }
}

/* Code block improvements for mobile */
@media (max-width: 768px) {
  pre {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  code {
    font-size: 0.85rem;
    word-break: break-word;
  }
  
  pre code {
    font-size: 0.85rem;
  }
}

/* Navbar mobile improvements */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Smaller mobile screens */
@media (max-width: 480px) {
  .startup-main .title,
  .quiz-main .title,
  .review-main .title {
    font-size: 1.75rem;
  }
  
  .startup-card {
    padding: 1.5rem 1rem 2rem;
    margin: 0 0.25rem;
  }
  
  #flashcard-container {
    padding: 1rem;
  }
  
  .quiz-choice {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
  
  .controls button {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  .modal-dialog {
    margin: 0.25rem;
    max-width: calc(100% - 0.5rem);
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 0.75rem 1rem;
  }
}

/* ─── MOBILE RESPONSIVENESS FOR SPA SECTIONS ─────────────────────────────── */

/* Mobile Hero Section */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .hero-cta {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-width: 140px;
  }
  
  .hero-visual {
    display: none; /* Hide floating cards on mobile */
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .hero-cta {
    min-height: 48px; /* Apple's recommended touch target size */
  }
  
  .nav-dot {
    min-width: 24px; /* Smaller touch target size */
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
  }
  
  .nav-dot.active::before {
    background: #42A5F5;
    box-shadow: 0 0 20px rgba(66, 165, 245, 0.6);
  }
  
  .feature-card,
  .benefit-item {
    min-height: 48px; /* Ensure touch-friendly cards */
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .hero-visual {
    order: 0;
    height: 150px;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
}

/* Very small screens (older phones) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .feature-card,
  .benefit-item {
    padding: 1rem;
  }
  
  .login-section {
    padding: 1rem 0;
  }
  
  .login-container {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
    max-width: calc(100% - 2rem);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SPA SECTIONS BASE STYLING
   ─────────────────────────────────────────────────────────────────────────── */

/* Base section styling */
section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  padding: 2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

section.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Section transition animations */
section.entering-from-below {
  transform: translateY(100%);
}

section.entering-from-above {
  transform: translateY(-100%);
}

section.exiting-to-above {
  transform: translateY(-100%);
}

section.exiting-to-below {
  transform: translateY(100%);
}

/* Container base styles */
.hero-container,
.features-container,
.benefits-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── MOBILE FORM AND INPUT IMPROVEMENTS ────────────────────────────────── */

/* Form control improvements for mobile */
@media (max-width: 768px) {
  .form-control,
  .form-select {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 48px; /* Touch-friendly minimum height */
  }
  
  .form-label {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .btn {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
  }
}

/* Input focus improvements for better mobile UX */
@media (max-width: 768px) {
  .form-control:focus,
  .form-select:focus {
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.25);
    border-color: #42A5F5;
    outline: none;
  }
  
  /* Prevent zoom on input focus in iOS Safari */
  input[type="number"],
  input[type="text"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px;
  }
}

/* Better spacing for mobile form groups */
@media (max-width: 768px) {
  .mb-3 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-4 {
    margin-bottom: 2rem !important;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
}

/* Loading states and disabled elements */
@media (max-width: 768px) {
  .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .form-control:disabled,
  .form-select:disabled {
    opacity: 0.6;
    background-color: rgba(255, 255, 255, 0.05);
  }
}

/* Better contrast for mobile viewing */
@media (max-width: 768px) {
  .text-muted {
    color: #B0BEC5 !important;
  }
  
  .text-secondary {
    color: #90A4AE !important;
  }
  
  /* Ensure sufficient contrast for readability */
  p, span, div {
    color: #E0E0E0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #F5F5F5;
  }
}

/* ─── SAFE AREA AND DEVICE-SPECIFIC IMPROVEMENTS ────────────────────────── */

/* Safe area for devices with notches (iPhone X and newer) */
@supports (padding: max(0px)) {
  section {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    padding-top: max(2rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
  
  .spa-navigation {
    right: max(2rem, env(safe-area-inset-right));
  }
  
  .scroll-indicator {
    bottom: max(2rem, env(safe-area-inset-bottom));
  }
  
  @media (max-width: 768px) {
    .spa-navigation {
      bottom: max(2rem, env(safe-area-inset-bottom));
    }
    
    .scroll-indicator {
      bottom: max(6rem, calc(env(safe-area-inset-bottom) + 4rem));
    }
  }
}

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Improve tap highlighting */
* {
  -webkit-tap-highlight-color: rgba(66, 165, 245, 0.2);
  -webkit-touch-callout: none;
}

/* Button and interactive element tap highlighting */
button,
.btn,
.nav-dot,
.hero-cta,
.login-btn,
.feature-card,
.benefit-item {
  -webkit-tap-highlight-color: rgba(66, 165, 245, 0.3);
}

/* Prevent text selection on UI elements */
.nav-dot,
.hero-cta,
.login-btn,
.btn,
button {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Optimize images for mobile */
img {
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* Smooth momentum scrolling for iOS */
section {
  -webkit-overflow-scrolling: touch;
}

/* Hardware acceleration for animations */
.hero-cta,
.nav-dot,
.floating-card,
.feature-card,
.benefit-item {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Optimize for high DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-dot {
    border-width: 0.5px;
  }
  
  .feature-card,
  .benefit-item,
  .hero-cta,
  .login-btn {
    border-width: 0.5px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SPA SECTIONS STYLING
   ─────────────────────────────────────────────────────────────────────────── */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(30, 136, 229, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 77, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 193, 7, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #1E88E5, #42A5F5, #FFD54F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  text-shadow: 0 0 40px rgba(30, 136, 229, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #B0BEC5;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta {
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hero-cta.primary {
  background: linear-gradient(45deg, #1E88E5, #42A5F5);
  color: white;
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.3);
}

.hero-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 136, 229, 0.4);
  background: linear-gradient(45deg, #42A5F5, #64B5F6);
}

.hero-cta.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(66, 165, 245, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-cta.secondary:hover {
  transform: translateY(-2px);
  background: rgba(66, 165, 245, 0.2);
  border-color: rgba(66, 165, 245, 0.8);
  box-shadow: 0 8px 30px rgba(66, 165, 245, 0.3);
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.hero-cta.primary:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-icon {
  transition: transform 0.3s ease;
}

.hero-cta.secondary:hover .cta-icon {
  transform: scale(1.2);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floating-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  position: absolute;
  text-align: center;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-card.delay-1 {
  animation-delay: -2s;
  top: -50px;
  right: 50px;
}

.floating-card.delay-2 {
  animation-delay: -4s;
  bottom: -30px;
  left: 50px;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #B0BEC5;
}

/* Features Section */
.features-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Section styling that works with Bootstrap containers */
.features-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-section .container {
  padding: 2rem 15px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #42A5F5, #64B5F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(66, 165, 245, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #F5F5F5;
}

.feature-description {
  color: #B0BEC5;
  line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits-section .container {
  padding: 2rem 15px;
}

.benefits-content {
  margin-bottom: 3rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(10px);
}

.benefit-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(45deg, #1E88E5, #42A5F5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 60px;
}

.benefit-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #F5F5F5;
  text-align: left;
}

.benefit-text p {
  color: #B0BEC5;
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

/* Login Section */
.login-section {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f0f23 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.login-section .container {
  width: 100%;
}

.login-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 1;
  position: relative;
  transition: all 0.3s ease;
  margin: 0 auto;
  max-width: 500px;
  width: 100%;
}

.login-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #1E88E5, #42A5F5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: #B0BEC5;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-discord {
  background: linear-gradient(45deg, #5865F2, #7289DA);
  color: white;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
  color: white;
}

.btn-discord svg {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  fill: currentColor;
}

.btn-google {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: #333;
  background: white;
}

.btn-google img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.back-btn {
  background: transparent;
  color: #B0BEC5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: 100%;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #F5F5F5;
  border-color: rgba(255, 255, 255, 0.3);
}

/* SPA Navigation */
.spa-navigation {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
  pointer-events: all;
}

.nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.nav-dot:hover {
  background: rgba(66, 165, 245, 0.7);
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-dot.active {
  background: #42A5F5;
  transform: scale(1.4);
  box-shadow: 0 0 20px rgba(66, 165, 245, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-dot::after {
  content: attr(title);
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dot:hover::after {
  opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-5px); }
  60% { transform: translateX(-50%) translateY(-3px); }
}

/* Enhanced floating cards animation */
.floating-card {
  animation: floatEnhanced 8s ease-in-out infinite;
}

.floating-card.delay-1 {
  animation-delay: -2.5s;
}

.floating-card.delay-2 {
  animation-delay: -5s;
}

@keyframes floatEnhanced {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
    opacity: 0.9;
  }
  25% { 
    transform: translateY(-15px) rotate(1deg) scale(1.05); 
    opacity: 1;
  }
  50% { 
    transform: translateY(-5px) rotate(-0.5deg) scale(1.02); 
    opacity: 0.95;
  }
  75% { 
    transform: translateY(-20px) rotate(0.8deg) scale(1.03); 
    opacity: 1;
  }
}

/* Mobile Features Section */
@media (max-width: 768px) {
  .features-container {
    padding: 1rem;
    min-height: auto;
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .features-carousel .carousel-control-prev,
  .features-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .features-carousel .carousel-control-prev {
    left: -20px;
  }

  .features-carousel .carousel-control-next {
    right: -20px;
  }

  .features-carousel .carousel-control-prev-icon,
  .features-carousel .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }

  .benefit-item {
    flex-direction: column;
    text-align: center;
  }

  .benefit-number {
    margin-bottom: 1rem;
    margin-right: 0 !important;
  }

  .spa-navigation {
    bottom: 1rem;
    right: 1rem;
    scale: 0.8;
  }

  .spa-navigation .nav-dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

/* Bootstrap responsive grid overrides */
.features-grid.d-none.d-md-block {
  margin-bottom: 3rem;
}

.features-carousel.d-block.d-md-none {
  margin-bottom: 3rem;
}

/* Carousel specific styles for mobile */
.features-carousel .carousel-item {
  padding: 1rem 0.5rem;
}

.features-carousel .carousel-indicators {
  margin-bottom: 2rem;
}

.features-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
}

.features-carousel .carousel-indicators button.active {
  background-color: rgba(255, 255, 255, 0.8);
}

.features-carousel .carousel-control-prev,
.features-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.features-carousel .carousel-control-prev {
  left: -25px;
}

.features-carousel .carousel-control-next {
  right: -25px;
}

.features-carousel .carousel-control-prev:hover,
.features-carousel .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.features-carousel .carousel-control-prev-icon,
.features-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Mobile responsive improvements */
@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-cta {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

/* Wrong Answers Modal Custom Styles - Blue Glassmorphism Theme */
.glassmorphism-modal {
  background: rgba(15, 25, 45, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 150, 255, 0.2);
  border-radius: 20px;
  box-shadow: 
    0 25px 50px rgba(0, 10, 30, 0.6),
    inset 0 1px 0 rgba(100, 150, 255, 0.1);
  color: #fff;
  overflow: hidden;
}

.glassmorphism-header {
  background: linear-gradient(135deg, rgba(100, 150, 255, 0.15), rgba(50, 100, 200, 0.08));
  border-bottom: 1px solid rgba(100, 150, 255, 0.2);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 2rem;
  position: relative;
}

.glassmorphism-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2196F3, #42A5F5, #64B5F6);
  border-radius: 20px 20px 0 0;
}

.glassmorphism-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(100, 150, 255, 0.03);
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 150, 255, 0.4) transparent;
}

.glassmorphism-body::-webkit-scrollbar {
  width: 8px;
}

.glassmorphism-body::-webkit-scrollbar-track {
  background: rgba(100, 150, 255, 0.08);
  border-radius: 4px;
}

.glassmorphism-body::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, rgba(100, 150, 255, 0.4), rgba(50, 120, 220, 0.2));
  border-radius: 4px;
  transition: all 0.3s ease;
}

.glassmorphism-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, rgba(100, 150, 255, 0.6), rgba(50, 120, 220, 0.3));
}

.glassmorphism-footer {
  background: linear-gradient(135deg, rgba(100, 150, 255, 0.12), rgba(50, 100, 200, 0.05));
  border-top: 1px solid rgba(100, 150, 255, 0.2);
  border-radius: 0 0 20px 20px;
  padding: 1.5rem 2rem;
  justify-content: center;
}

#wrong-answers-modal .modal-dialog {
  max-width: 90%;
  width: 100%;
  margin: 2rem auto;
}

#wrong-answers-modal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#wrong-answers-modal .btn-close-white {
  background: rgba(100, 150, 255, 0.15);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  opacity: 1;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  padding: 0.5rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wrong-answers-modal .btn-close-white span {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}

#wrong-answers-modal .btn-close-white:hover {
  background: rgba(100, 150, 255, 0.25);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

#wrong-answers-modal .btn-close-white:hover span {
  color: #fff;
}

#wrong-answers-modal .btn-outline-light {
  border: 2px solid rgba(100, 150, 255, 0.4);
  background: rgba(100, 150, 255, 0.15);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#wrong-answers-modal .btn-outline-light:hover {
  border-color: rgba(100, 150, 255, 0.6);
  background: rgba(100, 150, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

/* Wrong answers content styling */
#wrongAnswersBody .qa-block {
  background: linear-gradient(135deg, rgba(100, 150, 255, 0.12), rgba(50, 120, 220, 0.06));
  border: 1px solid rgba(100, 150, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

#wrongAnswersBody .qa-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2196F3, #42A5F5);
  border-radius: 16px 16px 0 0;
}

#wrongAnswersBody .qa-block:hover {
  background: linear-gradient(135deg, rgba(100, 150, 255, 0.18), rgba(50, 120, 220, 0.10));
  border-color: rgba(100, 150, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
}

#wrongAnswersBody .qa-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#wrongAnswersBody .qa-correct,
#wrongAnswersBody .qa-chosen {
  padding: 1rem 1rem 1rem 3rem;
  margin: 0.75rem 0;
  border-radius: 12px;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  font-weight: 500;
}

#wrongAnswersBody .qa-correct {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.15));
  border: 1px solid rgba(100, 200, 120, 0.5);
  color: #C8E6C9;
  box-shadow: inset 0 1px 0 rgba(100, 200, 120, 0.2);
}

#wrongAnswersBody .qa-correct::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #66BB6A;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#wrongAnswersBody .qa-chosen {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.25), rgba(244, 67, 54, 0.15));
  border: 1px solid rgba(255, 120, 120, 0.5);
  color: #FFCDD2;
  box-shadow: inset 0 1px 0 rgba(255, 120, 120, 0.2);
}

#wrongAnswersBody .qa-chosen::before {
  content: "✗";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #EF5350;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile wrong answers modal adjustments */
@media (max-width: 768px) {
  #wrong-answers-modal .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .glassmorphism-header,
  .glassmorphism-footer {
    padding: 1rem 1.5rem;
  }
  
  .glassmorphism-body {
    padding: 1.5rem;
    max-height: 60vh;
  }
  
  #wrongAnswersBody .qa-block {
    padding: 1.25rem;
  }
  
  #wrongAnswersBody .qa-question {
    font-size: 1rem;
  }
  
  #wrongAnswersBody .qa-correct,
  #wrongAnswersBody .qa-chosen {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.9rem;
  }
  
  #wrongAnswersBody .qa-correct::before,
  #wrongAnswersBody .qa-chosen::before {
    left: 0.75rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  #wrong-answers-modal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .glassmorphism-header,
  .glassmorphism-footer {
    padding: 0.75rem 1rem;
  }
  
  .glassmorphism-body {
    padding: 1rem;
  }
  
  #wrongAnswersBody .qa-block {
    padding: 1rem;
  }
  
  #wrong-answers-modal .modal-title {
    font-size: 1.25rem;
  }
  
  #wrong-answers-modal .btn-outline-light {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ACTIVE QUIZZES SECTION
   ─────────────────────────────────────────────────────────────────────────── */

.active-quizzes-section {
  width: 100%;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #F5F5F5;
  text-align: center;
}

.active-quizzes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.active-quiz-card {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.active-quiz-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 6px 12px rgba(30, 136, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.quiz-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #F5F5F5;
  margin: 0;
  line-height: 1.3;
}

.quiz-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.quiz-badges .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
}

.quiz-progress {
  margin-bottom: 0.75rem;
}

.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #1e88e5, #42a5f5);
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #B0B0B0;
}

.quiz-stats {
  margin-bottom: 0.75rem;
  text-align: left;
}

.quiz-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.quiz-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.continue-quiz-btn {
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
  border: none;
  color: white;
}

.continue-quiz-btn:hover {
  background: linear-gradient(135deg, #1976d2, #1e88e5);
  transform: translateY(-2px);
}

.close-quiz-btn {
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

.close-quiz-btn:hover {
  background: rgba(244, 67, 54, 0.2);
  border-color: #f44336;
  color: #ff5252;
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .active-quizzes-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .active-quiz-card {
    padding: 0.875rem;
  }
  
  .quiz-header {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }
  
  .quiz-badges {
    align-self: flex-start;
  }
  
  .quiz-actions {
    flex-direction: column;
  }
  
  .quiz-actions .btn {
    flex: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* ERROR PAGE */
/* ─────────────────────────────────────────────────────────────────────── */

.error-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 2rem 0;
}

.error-page .glassmorphism-card {
  max-width: 500px;
  margin: 0 auto;
}

.error-page .error-message {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.error-page .error-actions .btn {
  min-width: 120px;
}

.error-page .fa-exclamation-triangle {
  text-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* MODERN PROFILE PAGE */
/* ─────────────────────────────────────────────────────────────────────── */

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .profile-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-info-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1E88E5, #42A5F5, #64B5F6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-info-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(30, 136, 229, 0.15);
}

.profile-info-item:hover::before {
  opacity: 1;
}

.profile-info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #A0A0A0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.profile-info-value {
  font-size: 1rem;
  font-weight: 500;
  color: #E0E0E0;
  line-height: 1.4;
}

/* Profile buttons styling */
.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #E0E0E0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline-primary {
  border: 2px solid rgba(30, 136, 229, 0.5);
  color: #42A5F5;
  background: rgba(30, 136, 229, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-primary:hover {
  background: rgba(30, 136, 229, 0.2);
  border-color: rgba(30, 136, 229, 0.8);
  color: #64B5F6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.3);
}

/* Enhanced badges for profile */
.profile-info-value .badge {
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.profile-info-value .badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PREMIUM USER STYLING
   ─────────────────────────────────────────────────────────────────────────── */

.premium-crown {
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  animation: crownGlow 2s ease-in-out infinite alternate;
}

@keyframes crownGlow {
  from {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.6);
  }
}

/* Premium badge styling */
.badge.bg-premium {
  background: linear-gradient(45deg, #FFD700, #FFA500) !important;
  color: #000 !important;
  border: 1px solid #FFB000;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}