/* ============================================
   BIBLE QUIZ - style.css (Complete with Bottom Nav + Profile)
   ============================================ */

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #e0f2fe 0%, #fef3c7 50%, #fce7f3 100%);
  min-height: 100vh;
  color: #1e293b;
}

.hidden { display: none !important; }

.app { width: 100%; min-height: 100vh; }

.screen {
  width: 100%;
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 80px;
}

.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ===== CARDS ===== */
.card {
  background: white;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 720px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.landing-card {
  text-align: center;
  padding: 48px 36px;
}

.question-card {
  margin: 16px auto;
  padding: 36px;
  animation: fadeInUp 0.4s ease;
}

/* ===== FIXED LOGOUT BUTTON ===== */
.fixed-logout {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fixed-logout:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
  width: auto;
  margin: 0;
  transform: none;
  box-shadow: none;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 2px;
}

.nav-item:hover {
  color: #3b82f6;
  background: #f0f9ff;
  transform: none;
  box-shadow: none;
}

.nav-item.active {
  color: #3b82f6;
  background: #eff6ff;
}

.nav-item.active i {
  color: #3b82f6;
}

/* ===== LANDING SCREEN ===== */
.logo {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounce 2s infinite;
}

.landing-card h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 32px;
  font-weight: 500;
}

.input-group {
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.input-group input:focus {
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.footer {
  margin-top: 24px;
  font-size: 13px;
  color: #94a3b8;
}

/* ===== TOP BAR ===== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 16px 24px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #f1f5f9;
}

.progress {
  font-weight: 600;
  color: #475569;
  font-size: 15px;
}

.timer {
  font-weight: 800;
  color: #ef4444;
  font-size: 22px;
  background: #fef2f2;
  padding: 6px 16px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.username-display {
  font-weight: 600;
  color: #3b82f6;
  font-size: 14px;
}

/* ===== QUESTION CARD ===== */
.question-number {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.question-card h2 {
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 600;
}

/* ===== OPTIONS ===== */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  padding: 18px 22px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}

.option::before {
  content: attr(data-letter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e2e8f0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateX(4px);
}

.option:hover::before {
  background: #3b82f6;
  color: white;
}

.option.selected {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.option.selected::before {
  background: #3b82f6;
  color: white;
}

.option.correct {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
  color: #166534 !important;
  animation: correctPulse 0.5s ease;
  pointer-events: none;
}

.option.correct::before {
  background: #22c55e !important;
  color: white !important;
  content: "✓" !important;
}

.option.wrong {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  animation: shake 0.5s ease;
  pointer-events: none;
}

.option.wrong::before {
  background: #ef4444 !important;
  color: white !important;
  content: "✕" !important;
}

.option.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* ===== FEEDBACK AREA ===== */
.feedback-area {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  animation: fadeInUp 0.3s ease;
}

.feedback-area.correct-feedback {
  background: #dcfce7;
  border: 2px solid #86efac;
}

.feedback-area.wrong-feedback {
  background: #fee2e2;
  border: 2px solid #fca5a5;
}

.feedback-emoji {
  font-size: 48px;
  margin-bottom: 8px;
  animation: bounceIn 0.5s ease;
}

.feedback-message {
  font-weight: 700;
  font-size: 16px;
}

.feedback-area.correct-feedback .feedback-message {
  color: #166534;
}

.feedback-area.wrong-feedback .feedback-message {
  color: #991b1b;
}

/* ===== NAV CONTROLS ===== */
.nav-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 16px auto 0;
}

.nav-controls button {
  flex: 1;
  min-width: 120px;
  margin-bottom: 0;
}

/* ===== BUTTONS ===== */
button {
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

button:active {
  transform: translateY(0);
}

.primary-btn {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.secondary-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.secondary-btn:hover {
  background: #e2e8f0;
}

.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.danger-btn {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
}

.danger-btn:hover {
  background: linear-gradient(135deg, #dc2626, #ea580c);
}

/* ===== RESULT SCREEN ===== */
.result-header {
  text-align: center;
  margin-bottom: 24px;
}

.result-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.result-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
}

#candidate-name {
  color: #64748b;
  font-size: 15px;
  margin-top: 4px;
}

.score-box {
  background: linear-gradient(135deg, #f0f9ff, #fdf4ff);
  padding: 36px;
  border-radius: 20px;
  text-align: center;
  margin: 24px 0;
  border: 1px solid #e0f2fe;
}

#score-display {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#detailed-score {
  font-size: 18px;
  color: #64748b;
  margin-top: 8px;
  font-weight: 600;
}

.score-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 24px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

.score-badge.pass {
  background: #dcfce7;
  color: #166534;
}

.score-badge.fail {
  background: #fee2e2;
  color: #991b1b;
}

.chart-area {
  max-width: 300px;
  margin: 24px auto;
}

.study-tip {
  background: #fef9c3;
  border: 1px solid #fde047;
  padding: 16px 20px;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  color: #854d0e;
  margin-bottom: 24px;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  animation: scaleIn 0.3s ease;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.modal-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.modal-content p {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 15px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions button {
  flex: 1;
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.3); }
  50%  { transform: scale(1.1); }
  70%  { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes correctPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .card {
    padding: 24px;
    border-radius: 20px;
  }

  .landing-card h1 {
    font-size: 26px;
  }

  .question-card h2 {
    font-size: 17px;
  }

  .option {
    padding: 14px 16px;
    font-size: 15px;
  }

  .top-bar {
    padding: 12px 16px;
  }

  .timer {
    font-size: 18px;
    padding: 4px 12px;
  }

  #score-display {
    font-size: 42px;
  }

  .nav-controls button {
    min-width: 100px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .bottom-nav {
    padding: 6px 0 10px;
  }

  .nav-item {
    font-size: 10px;
    padding: 4px 8px;
  }

  .nav-item i {
    font-size: 18px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   AUTH & COMPONENTS
   ============================================ */

.auth-bar {
  margin-bottom: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f0f9ff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #bae6fd;
}

#user-name {
  font-weight: 600;
  color: #0369a1;
  font-size: 14px;
}

.text-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 500;
  width: auto;
  margin: 0;
}

.text-btn:hover {
  color: #ef4444;
  transform: none;
  box-shadow: none;
}

.auth-modal-content {
  padding: 28px;
  max-width: 400px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  width: auto;
}

.auth-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.auth-tab:hover {
  transform: none;
  box-shadow: none;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form input {
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.auth-form input:focus {
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.auth-error {
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  min-height: 20px;
}

.close-auth-btn {
  margin-top: 16px;
  color: #94a3b8;
}

.close-auth-btn:hover {
  color: #64748b;
}

.points-earned {
  font-size: 18px;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 8px;
}

/* ===== DASHBOARD SECTION ===== */
.dashboard-section {
  margin: 28px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff, #fdf4ff);
  border-radius: 20px;
  border: 1px solid #e0f2fe;
}

.dashboard-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  text-align: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dash-card {
  background: white;
  padding: 18px 12px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.dash-value {
  font-size: 24px;
  font-weight: 800;
  color: #3b82f6;
  margin-bottom: 4px;
}

.dash-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== LEADERBOARD SECTION ===== */
.leaderboard-section {
  margin: 28px 0;
  padding: 24px;
  background: white;
  border-radius: 20px;
  border: 2px solid #fef3c7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.leaderboard-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.week-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.leaderboard-row:hover {
  background: #f1f5f9;
}

.leaderboard-row.current-user {
  background: #eff6ff;
  border: 2px solid #3b82f6;
}

.leaderboard-rank {
  font-size: 18px;
  font-weight: 800;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.leaderboard-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reward-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.leaderboard-points {
  font-weight: 800;
  color: #3b82f6;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  text-align: center;
  color: #94a3b8;
  padding: 24px;
  font-weight: 500;
}

.loading {
  text-align: center;
  color: #94a3b8;
  padding: 16px;
}

/* ===== REWARD SECTION ===== */
.reward-section {
  margin: 24px 0;
}

.reward-banner {
  background: linear-gradient(135deg, #dcfce7, #fef9c3);
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #86efac;
  text-align: center;
}

.reward-banner span {
  display: block;
  font-weight: 700;
  color: #166534;
  margin-bottom: 12px;
  font-size: 16px;
}

/* ===== REWARD FORM ===== */
.reward-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.reward-form select,
.reward-form input {
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: #f8fafc;
}

.reward-form select:focus,
.reward-form input:focus {
  border-color: #3b82f6;
  background: white;
}

/* ===== WELCOME SCREEN ===== */
.welcome-section {
  animation: fadeInUp 0.5s ease;
}

.welcome-message {
  text-align: center;
  margin-bottom: 28px;
}

.welcome-message h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
}

.welcome-name {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: 18px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 8px;
}

.welcome-challenge {
  font-size: 16px;
  color: #f59e0b;
  font-weight: 700;
  margin-bottom: 12px;
}

.welcome-verse {
  font-size: 14px;
  color: #64748b;
  font-style: italic;
  background: #f8fafc;
  padding: 10px 16px;
  border-radius: 10px;
  display: inline-block;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.begin-btn {
  font-size: 18px;
  padding: 18px 32px;
  animation: pulse 2s infinite;
}

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

.auth-section {
  margin-bottom: 20px;
}

.auth-prompt {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 500;
}

/* ===== LEADERBOARD SCREEN ===== */
.leaderboard-card {
  margin: 16px auto;
  padding: 28px;
}

.leaderboard-intro {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.leaderboard-intro p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 6px;
}

.leaderboard-motivation {
  font-weight: 700;
  color: #f59e0b !important;
  font-size: 14px !important;
}

/* ===== REWARDS SCREEN ===== */
.rewards-card {
  margin: 16px auto;
  padding: 28px;
}

.rewards-header {
  text-align: center;
  margin-bottom: 24px;
}

.rewards-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.rewards-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
}

.points-display {
  text-align: center;
  margin: 24px 0;
}

.current-points {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.current-points span:first-child {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.points-label {
  font-size: 18px;
  color: #64748b;
  font-weight: 600;
}

.progress-tracker-large {
  margin: 20px 0;
}

.progress-bar-large {
  width: 100%;
  height: 16px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill-large {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #f59e0b);
  border-radius: 8px;
  transition: width 0.6s ease;
  width: 0%;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

/* ===== REWARD TIERS ===== */
.reward-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.reward-tier {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.reward-tier.tier-unlocked {
  background: #dcfce7;
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.tier-icon {
  font-size: 28px;
}

.tier-info {
  flex: 1;
}

.tier-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.tier-info p {
  font-size: 13px;
  color: #64748b;
}

.tier-status {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
  min-width: 120px;
  text-align: center;
}

.tier-status.unlocked {
  background: #dcfce7;
  color: #166534;
}

.tier-status button {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  width: auto;
  margin: 0;
}

/* ===== WEEKLY REWARD INFO ===== */
.weekly-reward-info {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 16px;
  border: 1px solid #fbbf24;
}

.weekly-reward-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 12px;
  text-align: center;
}

.weekly-tiers {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.weekly-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.weekly-medal {
  font-size: 28px;
}

.weekly-tier span:last-child {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}

.weekly-note {
  text-align: center;
  font-size: 12px;
  color: #a16207;
  font-weight: 500;
}

/* ===== RESULT ACTIONS ===== */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* ===== PROFILE SCREEN ===== */
.profile-card {
  margin: 16px auto;
  padding: 28px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.profile-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.profile-info p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 2px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stat {
  background: #f8fafc;
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.profile-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #3b82f6;
  margin-bottom: 4px;
}

.profile-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-actions {
  margin-top: 8px;
}

/* ===== QUIZ ATTEMPTS LEFT ===== */
.attempts-left {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  text-align: center;
  margin-top: 8px;
  padding: 8px 16px;
  background: #f0f9ff;
  border-radius: 10px;
  border: 1px solid #bae6fd;
}

.attempts-left.hidden {
  display: none !important;
}
