/* ===================================================
   DeutschMeister — Premium Design System v2.0
   Font: Syne (display) + DM Sans (body)
   Theme: Dark Indigo / Electric Blue / Amber XP
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --c-bg:          #0a0f1e;
  --c-surface:     #111827;
  --c-surface2:    #1a2235;
  --c-border:      rgba(255,255,255,0.08);
  --c-text:        #e2e8f0;
  --c-text-muted:  #64748b;
  --c-text-soft:   #94a3b8;

  --c-primary:     #3b82f6;
  --c-primary-dark:#2563eb;
  --c-primary-glow:rgba(59,130,246,0.35);
  --c-accent:      #06b6d4;
  --c-amber:       #f59e0b;
  --c-amber-glow:  rgba(245,158,11,0.3);
  --c-success:     #10b981;
  --c-danger:      #ef4444;

  --grad-hero:   linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
  --grad-btn:    linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --grad-amber:  linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-card:   linear-gradient(145deg, #1a2235, #111827);

  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 0 1px var(--c-border), 0 8px 32px rgba(59,130,246,0.15);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --spring:     0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--c-bg);
  font-family: 'DM Sans', sans-serif;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-surface); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-primary); }

/* Selection */
::selection { background: var(--c-primary); color: #fff; }

/* ── GRID NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, .brand-font { font-family: 'Syne', sans-serif; }

.display-hero {
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-amber-gradient {
  background: var(--grad-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAVBAR ── */
.navbar-pro {
  background: rgba(10, 15, 30, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
  transition: var(--transition);
}

.navbar-pro.scrolled {
  background: rgba(10, 15, 30, 0.98) !important;
  padding: 10px 0;
}

.navbar-brand-pro {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-btn);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px var(--c-primary-glow);
}

.nav-link-pro {
  color: rgba(255,255,255,0.65) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link-pro:hover, .nav-link-pro.active {
  color: #fff !important;
  background: rgba(255,255,255,0.07);
}

.nav-link-pro.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 99px;
}

/* Dropdown */
.dropdown-pro {
  background: var(--c-surface) !important;
  border: 1px solid var(--c-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card) !important;
  padding: 8px !important;
  min-width: 200px;
  margin-top: 8px !important;
}

.dropdown-pro .dropdown-item {
  color: var(--c-text-soft) !important;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-pro .dropdown-item:hover {
  background: rgba(59,130,246,0.12) !important;
  color: var(--c-primary) !important;
}

.dropdown-pro .dropdown-header {
  color: var(--c-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px 6px;
}

/* ── BUTTONS ── */
.btn-primary-pro {
  background: var(--grad-btn);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--c-primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn-primary-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--c-primary-glow);
  color: #fff;
  text-decoration: none;
}

.btn-primary-pro:hover::before { background: rgba(255,255,255,0.08); }
.btn-primary-pro:active { transform: translateY(0); }

.btn-ghost-pro {
  background: transparent;
  color: var(--c-text-soft);
  border: 1px solid var(--c-border);
  border-radius: 99px;
  padding: 11px 28px;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-ghost-pro:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: rgba(59,130,246,0.08);
  text-decoration: none;
}

/* ── XP BADGE ── */
.xp-badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--c-amber);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 7px 16px;
  border-radius: 99px;
  transition: var(--transition);
  cursor: default;
}

.xp-badge-pro:hover {
  background: rgba(245,158,11,0.2);
  box-shadow: 0 0 16px var(--c-amber-glow);
}

.xp-badge-pro.bump { animation: xpBump 0.45s var(--spring); }

@keyframes xpBump {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.25) rotate(-5deg); }
  60% { transform: scale(1.15) rotate(3deg); }
}

/* ── CARDS ── */
.card-pro {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.card-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.card-pro:hover {
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.15);
}

/* Module Cards */
.module-card-pro {
  background: var(--grad-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--c-text);
  display: block;
  overflow: hidden;
  position: relative;
}

.module-card-pro::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.module-card-pro:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.2);
  color: var(--c-text);
  text-decoration: none;
}

.module-card-pro:hover::after { opacity: 1; }

.module-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: var(--spring);
}

.module-card-pro:hover .module-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}

/* Hero Card (quiz preview in landing) */
.hero-quiz-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(59,130,246,0.1);
  position: relative;
}

/* ── TABS ── */
.tabs-pro {
  display: inline-flex;
  gap: 4px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 99px;
  padding: 5px;
}

.tab-btn-pro {
  background: transparent;
  border: none;
  color: var(--c-text-muted);
  padding: 8px 22px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn-pro:hover { color: var(--c-text); }

.tab-btn-pro.active {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 12px var(--c-primary-glow);
}

/* ── QUIZ ELEMENTS ── */
.option-btn-pro {
  width: 100%;
  text-align: left;
  background: var(--c-surface2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  color: var(--c-text);
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.option-btn-pro .option-label {
  min-width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.option-btn-pro:hover:not(:disabled) {
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.07);
  transform: translateX(4px);
}

.option-btn-pro:hover:not(:disabled) .option-label {
  background: var(--c-primary);
  color: #fff;
}

.option-btn-pro.correct {
  border-color: var(--c-success);
  background: rgba(16,185,129,0.1);
}

.option-btn-pro.correct .option-label {
  background: var(--c-success);
  color: #fff;
}

.option-btn-pro.wrong {
  border-color: var(--c-danger);
  background: rgba(239,68,68,0.08);
  opacity: 0.7;
}

.option-btn-pro.wrong .option-label {
  background: var(--c-danger);
  color: #fff;
}

/* Audio Player */
.audio-player-pro {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-btn-pro {
  width: 48px;
  height: 48px;
  background: var(--grad-btn);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--spring);
  box-shadow: 0 4px 12px var(--c-primary-glow);
}

.play-btn-pro:hover { transform: scale(1.1); }
.play-btn-pro:active { transform: scale(0.95); }

.audio-progress-track {
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
  flex: 1;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
  border-radius: 99px;
  transition: width 0.1s linear;
}

/* ── LEADERBOARD ── */
.rank-item-pro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  margin-bottom: 10px;
  background: var(--c-surface2);
  transition: var(--transition);
}

.rank-item-pro:hover {
  border-color: rgba(59,130,246,0.25);
  background: rgba(59,130,246,0.05);
}

.rank-item-pro.rank-1 {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.3);
}

.rank-item-pro.rank-2 {
  background: rgba(148,163,184,0.08);
  border-color: rgba(148,163,184,0.25);
}

.rank-item-pro.rank-3 {
  background: rgba(180,83,9,0.08);
  border-color: rgba(180,83,9,0.25);
}

.rank-item-pro.active-user {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.4);
}

.rank-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--c-text-muted);
  min-width: 24px;
  text-align: center;
}

/* ── FORMS ── */
.form-control-pro {
  background: var(--c-surface2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
  outline: none;
}

.form-control-pro::placeholder { color: var(--c-text-muted); }

.form-control-pro:focus {
  border-color: var(--c-primary);
  background: rgba(59,130,246,0.05);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-label-pro {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

/* ── POPUP FEEDBACK ── */
.feedback-popup {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  white-space: nowrap;
  border-radius: 99px;
  padding: 14px 28px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: bottom 0.4s var(--spring);
}

.feedback-popup.show { bottom: 40px; }

.feedback-popup.correct-popup {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}

.feedback-popup.wrong-popup {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #fff;
}

/* ── STATS/XP PROGRESS ── */
.xp-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.xp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
  border-radius: 99px;
  transition: width 0.6s var(--spring);
}

/* ── STAT CARD ── */
.stat-card {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

/* ── HERO SECTION ── */
.hero-section-pro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

@media (max-width: 991px) {
  .hero-section-pro {
    padding: 88px 0 48px;
    min-height: auto;
  }
}

/* Animated gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.12), transparent 70%);
  bottom: -50px;
  left: -80px;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 70%);
  top: 30%;
  left: 40%;
  animation-delay: -2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Hero grid lines */
.hero-section-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* ── SECTION LAYOUTS ── */
.section-pro {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 99px;
}

/* ── DIVIDER LINE ── */
.divider-pro {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
  border: none;
  margin: 0;
}

/* ── BADGE ── */
.badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--c-accent);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── AVATAR RING ── */
.avatar-pro {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-border);
}

/* ── LOADING SPINNER ── */
.spinner-pro {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 30px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── SCROLL ANIMATIONS ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }

/* ── FOOTER ── */
.footer-pro {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 48px 0 32px;
}

/* ── QUIZ PAGE SPECIFIC ── */
.quiz-container-pro {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.quiz-header-bar {
  background: linear-gradient(135deg, #1e3a5f, #0c4a6e);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── DASHBOARD WELCOME CARD ── */
.welcome-card-pro {
  background: linear-gradient(135deg, #0f2456 0%, #1a3a6e 40%, #0c4a6e 100%);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.welcome-card-pro::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
}

/* ── ADMIN PANEL ── */
.admin-surface {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-table th {
  background: rgba(255,255,255,0.03);
  color: var(--c-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--c-text-soft);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── AUTH PAGES ── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}

/* ── MOBILE MENU ── */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    padding: 16px;
    margin-top: 12px;
    box-shadow: var(--shadow-card);
  }
}

/* ── UTILITIES ── */
.text-muted-pro { color: var(--c-text-muted) !important; }
.text-soft-pro  { color: var(--c-text-soft) !important; }
.bg-surface     { background: var(--c-surface) !important; }
.bg-surface2    { background: var(--c-surface2) !important; }
.border-pro     { border: 1px solid var(--c-border) !important; }
.rounded-pro    { border-radius: var(--radius-lg) !important; }

/* Number counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE FIXES — Mobile & Tablet
══════════════════════════════════════════════ */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .display-hero {
    font-size: clamp(1.7rem, 5.5vw, 2.5rem);
    letter-spacing: -0.015em;
  }

  .section-pro { padding: 64px 0; }

  .welcome-card-pro { padding: 28px 24px; }

  .auth-card { padding: 36px 28px; }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
  .display-hero {
    font-size: clamp(1.55rem, 6vw, 2rem);
    line-height: 1.28;
  }

  .hero-section-pro {
    padding: 80px 0 40px;
    text-align: center;
  }

  /* Center badge and buttons on mobile */
  .badge-pro { display: inline-flex; }

  .hero-section-pro .d-flex.flex-wrap {
    justify-content: center;
  }

  .hero-section-pro p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Hero stats row */
  .hero-section-pro .d-flex.gap-4 {
    justify-content: center;
  }

  /* Hero quiz card: smaller on mobile */
  .hero-quiz-card {
    margin-top: 32px;
  }

  /* Section headings */
  .section-pro h2 {
    font-size: 1.55rem !important;
  }

  /* Module cards: 1 column on small phones */
  .module-card-pro {
    padding: 22px 18px;
  }

  .module-icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  /* Auth pages */
  .auth-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  /* Navbar: tighter */
  .navbar-pro { padding: 10px 0; }

  .brand-icon { width: 30px; height: 30px; font-size: .85rem; }

  .navbar-brand-pro { font-size: 1.15rem; }

  /* Welcome card */
  .welcome-card-pro { padding: 24px 20px; border-radius: 20px; }

  /* Quiz container */
  .quiz-container-pro { border-radius: 16px; }

  .quiz-header-bar { padding: 16px 18px; }

  /* Admin table */
  .admin-table th,
  .admin-table td { padding: 10px 12px; font-size: .8rem; }

  /* Leaderboard items */
  .rank-item-pro { padding: 12px 14px; }

  /* Feedback popup */
  .feedback-popup { font-size: .88rem; padding: 12px 22px; }

  /* Tabs pill */
  .tabs-pro { flex-wrap: wrap; border-radius: 16px; }
  .tab-btn-pro { padding: 7px 16px; font-size: .82rem; }

  /* XP badge nav */
  .xp-badge-pro { font-size: .8rem; padding: 6px 12px; }

  /* Footer */
  .footer-pro { padding: 36px 0 24px; }

  /* Stat card numbers */
  .stat-number { font-size: 1.8rem; }

  /* Section label */
  .section-label { font-size: .75rem; }
}

/* Small phones (max 480px) */
@media (max-width: 480px) {
  .display-hero {
    font-size: 1.45rem;
  }

  .btn-primary-pro,
  .btn-ghost-pro {
    padding: 11px 22px;
    font-size: .88rem;
  }

  .hero-section-pro .d-flex.flex-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-section-pro .btn-primary-pro,
  .hero-section-pro .btn-ghost-pro {
    justify-content: center;
  }

  /* --- TAMBAHAN FIX NAVBAR HP KECIL --- */
  .navbar-brand-pro { 
    font-size: 1rem !important; 
    gap: 6px !important; 
  }
  .brand-icon { 
    width: 26px !important; 
    height: 26px !important; 
    font-size: 0.75rem !important; 
  }
  .xp-badge-pro { 
    font-size: 0.75rem !important; 
    padding: 5px 8px !important; 
  }
  .avatar-pro { 
    width: 30px !important; 
    height: 30px !important; 
  }
  .navbar-pro .container { 
    padding-left: 14px; 
    padding-right: 14px; 
  }
}
/* --- FIX KOTAK PUTIH HAMBURGER MENU BAWAAN BOOTSTRAP --- */
.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}