/* ============================================
   HOLY ENGLISH v2 – FULL STYLES
   ============================================ */
:root {
  --gold: #ffcc00;
  --gold-light: #ffe066;
  --gold-dark: #cc9900;
  --navy: #000000;
  --navy-mid: #161616;
  --navy-light: #121212;
  --navy-card: #121212;
  --blue: #ffcc00;
  --blue-glow: rgba(255, 204, 0, 0.4);
  --purple: #ffcc00;
  --purple-light: #ffe066;
  --white: #ffffff;
  --w80: #ffffff;
  --w60: #b3b3b3;
  --w20: #262626;
  --w10: #1c1c1c;
  --w05: #0d0d0d;
  --success: #ffcc00;
  --error: #ff4b4b;
  --warning: #ff9600;
  --font-d: 'Poppins', sans-serif;
  --font-b: 'Poppins', sans-serif;
  --font-s: 'Poppins', sans-serif;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --shadow-gold: 0 4px 0 #cc9900;
  --shadow-card: 0 8px 0 #262626;
  --tr: all .15s ease;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-b);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden
}

a {
  text-decoration: none;
  color: inherit
}

ul {
  list-style: none
}

::-webkit-scrollbar {
  width: 6px
}

::-webkit-scrollbar-track {
  background: var(--navy)
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

.gold {
  color: var(--gold)
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

/* ============ AUTH SCREEN ============ */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
  background: var(--navy)
}

.auth-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, .15) 0%, transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(109, 40, 217, .2) 0%, transparent 50%), linear-gradient(180deg, #0A0E1A 0%, #0D1525 100%);
  pointer-events: none
}

.auth-particles {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0)
  }

  10% {
    opacity: .6
  }

  90% {
    opacity: .3
  }

  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1)
  }
}

.auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px
}

.auth-brand {
  text-align: center
}

.auth-cross {
  font-size: 3rem;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 175, 55, .6);
  display: block;
  margin-bottom: 8px
}

.auth-title {
  font-family: var(--font-d);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white)
}

.auth-tagline {
  color: var(--w60);
  font-size: .95rem;
  margin-top: 6px
}

.auth-card {
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: var(--r-xl);
  padding: 36px;
  width: 100%;
  animation: slideUp .4s ease
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.auth-card-title {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px
}

.auth-card-sub {
  color: var(--w60);
  font-size: .9rem;
  margin-bottom: 24px
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--w80)
}

.form-input {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--w20);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--white);
  font-size: .95rem;
  font-family: var(--font-b);
  outline: none;
  transition: var(--tr)
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .15)
}

.form-input::placeholder {
  color: var(--w60)
}

.btn-auth {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  border: none;
  padding: 14px;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b)
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, .4)
}

.btn-auth:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none
}

.btn-auth-outline {
  background: transparent;
  border: 1px solid var(--w20);
  color: var(--white);
  padding: 12px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b)
}

.btn-auth-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light)
}

.btn-auth-ghost {
  background: none;
  border: none;
  color: var(--w60);
  padding: 8px;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b);
  text-align: center
}

.btn-auth-ghost:hover {
  color: var(--white)
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  border: 1px solid var(--w20);
  color: var(--white);
  padding: 12px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b);
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--w40);
  transform: translateY(-2px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--w60);
  font-size: .85rem
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--w10)
}

.auth-error {
  background: rgba(239, 68, 68, .15);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #FCA5A5;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: .85rem
}

.auth-success {
  background: rgba(16, 185, 129, .15);
  border: 1px solid rgba(16, 185, 129, .3);
  color: #6EE7B7;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: .85rem
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20000;
  padding: 14px 0;
  transition: var(--tr);
  background: transparent
}

.navbar.scrolled {
  background: rgba(10, 14, 26, .95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, .2);
  padding: 10px 0
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, .6)
}

.logo-accent {
  color: var(--gold)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 500;
  color: var(--w60);
  transition: var(--tr);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-b);
  gap: 4px;
  text-align: center;
  line-height: 1.15;
}

.nav-link i {
  width: 20px;
  height: 20px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--w10);
}

.mobile-menu-header {
  display: none;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 998;
}

.mobile-menu-overlay.open {
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}

.xp-badge {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap
}

.user-menu {
  position: relative
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--tr)
}

.user-avatar:hover {
  transform: scale(1.05)
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: var(--r-md);
  padding: 8px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-card);
  z-index: 100
}

.user-dropdown.open {
  display: flex
}

.user-info {
  padding: 8px 12px;
  border-bottom: 1px solid var(--w10);
  margin-bottom: 4px
}

.user-info span {
  display: block;
  font-size: .9rem;
  font-weight: 600
}

.dropdown-email {
  font-size: .75rem !important;
  color: var(--w60) !important;
  font-weight: 400 !important
}

.dropdown-divider {
  height: 1px;
  background: var(--w10);
  margin: 4px 0
}

.dropdown-item {
  background: none;
  border: none;
  color: var(--w80);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: var(--tr);
  font-family: var(--font-b)
}

.dropdown-item:hover {
  background: var(--w10);
  color: var(--white)
}

.speech-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px;
  cursor: default;
}

.speech-control:hover {
  background: transparent !important;
}

.speech-control label {
  font-size: 0.75rem;
  color: var(--w60);
  display: flex;
  justify-content: space-between;
}

.speech-control input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
  height: 4px;
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, .15);
  color: #FCA5A5
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--tr)
}

/* ============ APP SECTIONS ============ */
.app-section {
  display: none;
  min-height: 100vh;
  padding-top: 70px
}

.app-section.active {
  display: block
}

.section-header-bar {
  padding: 32px 24px 24px;
  max-width: 1200px;
  margin: 0 auto
}

.section-bar-title {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--white), var(--w80));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.section-bar-sub {
  color: var(--w60);
  font-size: .95rem
}

/* ============ HOME ============ */
.hero-mini {
  position: relative;
  padding: 40px 24px 32px;
  overflow: hidden
}

.hero-mini-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, .12) 0%, transparent 70%);
  pointer-events: none
}

.hero-mini-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto
}

.welcome-greeting {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px
}

.hero-mini-title {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 8px
}

.hero-mini-sub {
  color: var(--w60);
  font-size: .95rem
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px
}

.verse-day-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, .1), rgba(109, 40, 217, .1));
  border: 1px solid rgba(212, 175, 55, .25);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden
}

.verse-day-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px
}

.verse-day-en {
  font-family: var(--font-s);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.6
}

.verse-day-pt {
  font-size: .9rem;
  color: var(--w60);
  margin-bottom: 6px;
  font-style: italic
}

.verse-day-ref {
  font-size: .85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px
}

.btn-listen {
  background: rgba(212, 175, 55, .15);
  border: 1px solid rgba(212, 175, 55, .3);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b)
}

.btn-listen:hover {
  background: rgba(212, 175, 55, .25);
  transform: scale(1.05)
}

.btn-listen-sm {
  background: rgba(212, 175, 55, .15);
  border: 1px solid rgba(212, 175, 55, .3);
  color: var(--gold-light);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .8rem;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b)
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.stat-card {
  background: var(--navy-card);
  border: 1px solid var(--w10);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--tr)
}

.stat-card:hover {
  border-color: rgba(212, 175, 55, .2);
  transform: translateY(-2px)
}

.stat-icon {
  font-size: 1.8rem
}

.stat-val {
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold)
}

.stat-lbl {
  font-size: .75rem;
  color: var(--w60);
  text-transform: uppercase;
  letter-spacing: .5px
}

.home-section-title {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white)
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px
}

.quick-card {
  background: var(--navy-card);
  border: 1px solid var(--w10);
  border-radius: var(--r-lg);
  padding: 24px;
  cursor: pointer;
  transition: var(--tr);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden
}

.quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--tr)
}

.quick-card:hover {
  border-color: rgba(212, 175, 55, .3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card)
}

.quick-card:hover::before {
  transform: scaleX(1)
}

.quick-icon {
  font-size: 2rem
}

.quick-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white)
}

.quick-desc {
  font-size: .82rem;
  color: var(--w60)
}

.quick-xp {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px
}

.achievements-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--w10);
  font-size: 1.5rem;
  min-width: 80px;
  transition: var(--tr);
  cursor: default
}

.achievement-badge.locked {
  opacity: .3;
  filter: grayscale(1)
}

.achievement-badge.unlocked {
  background: rgba(212, 175, 55, .1);
  border-color: rgba(212, 175, 55, .3);
  animation: pulse-gold .5s ease
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, .4)
  }

  50% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0)
  }
}

.ach-title {
  font-size: .65rem;
  font-weight: 600;
  color: var(--w60);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .3px
}

/* ============ CHARACTERS ============ */
.characters-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 0 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 600px
}

.characters-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 180px)
}

.char-card {
  background: var(--navy-card);
  border: 1px solid var(--w10);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--tr);
  position: relative;
  overflow: hidden
}

.char-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--char-color, var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--tr)
}

.char-card:hover,
.char-card.active {
  border-color: rgba(212, 175, 55, .3);
  transform: translateX(4px)
}

.char-card:hover::before,
.char-card.active::before {
  transform: scaleY(1)
}

.char-img-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 2px solid var(--w10);
  padding: 3px;
  transition: var(--tr)
}

.char-card:hover .char-img-wrapper,
.char-card.active .char-img-wrapper {
  border-color: var(--gold)
}

.char-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-light)
}

.char-emoji-overlap {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--navy-card);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  border: 1px solid var(--w10);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5)
}


.char-name {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px
}

.char-era {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px
}

.char-desc {
  font-size: .82rem;
  color: var(--w60);
  line-height: 1.5
}

.character-chat {
  background: var(--navy-card);
  border: 1px solid var(--w10);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 180px)
}

.chat-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--w60);
  text-align: center;
  padding: 40px
}

.chat-placeholder-icon {
  font-size: 3rem
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 2px solid var(--gold-dark);
  background: rgba(212, 175, 55, .05)
}

.chat-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold)
}


.chat-char-name {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light)
}

.chat-char-era {
  font-size: .75rem;
  color: var(--w60)
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start
}

.chat-msg.user {
  flex-direction: row-reverse
}

.msg-avatar-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--w10)
}

.msg-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.user-avatar-chat {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-color: var(--blue-glow)
}


.msg-bubble-char {
  background: var(--navy-mid);
  border: 1px solid var(--w10);
  border-radius: var(--r-md);
  padding: 12px 16px;
  max-width: 85%;
  position: relative;
  white-space: pre-line;
}

.msg-bubble-char p {
  margin-bottom: 0;
}

.msg-bubble-char hr {
  border: 0;
  border-top: 1px solid var(--w10);
  margin: 12px 0;
}

.msg-bubble-char .tip {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 8px;
  display: block;
}


.chat-msg.user .msg-bubble-char {
  background: rgba(212, 175, 55, .1);
  border-color: rgba(212, 175, 55, .2)
}

.msg-bubble-char p {
  font-size: .9rem;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 6px
}

.msg-speak {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: .8rem;
  padding: 2px 4px;
  transition: var(--tr)
}

.msg-speak:hover {
  transform: scale(1.1)
}

.thinking .dots {
  animation: blink 1s infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--w10);
  background: rgba(0, 0, 0, .2)
}

.chat-input {
  flex: 1;
  background: var(--w05);
  border: 1px solid var(--w20);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: var(--white);
  font-size: .9rem;
  font-family: var(--font-b);
  outline: none;
  transition: var(--tr)
}

.chat-input:focus {
  border-color: var(--gold)
}

.chat-input::placeholder {
  color: var(--w60)
}

.chat-send-btn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  border: none;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b);
  font-size: .85rem;
  white-space: nowrap
}

.chat-send-btn:hover {
  transform: scale(1.05)
}

.chat-voice-btn {
  background: var(--w05);
  border: 1px solid var(--w10);
  color: var(--white);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--tr);
  font-size: 1rem
}

.chat-voice-btn:hover {
  background: rgba(212, 175, 55, .15);
  border-color: rgba(212, 175, 55, .3)
}

.chat-hint {
  padding: 8px 20px 12px;
  font-size: .75rem;
  color: var(--w60);
  text-align: center
}

/* ============ SPEAKING ============ */
.speaking-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 0 24px 60px;
  max-width: 1200px;
  margin: 0 auto
}

.speaking-topics-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px
}

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

.speaking-topic-btn {
  background: var(--navy-card);
  border: 1px solid var(--w10);
  border-radius: var(--r-md);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b);
  color: var(--w80);
  font-size: .9rem
}

.speaking-topic-btn:hover,
.speaking-topic-btn.active {
  border-color: rgba(212, 175, 55, .4);
  background: rgba(212, 175, 55, .08);
  color: var(--gold-light)
}

.speaking-main {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.speaking-prompt-card {
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: var(--r-xl);
  padding: 32px;
  text-align: center
}

.prompt-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px
}

.prompt-text {
  font-family: var(--font-s);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.5
}

.prompt-pt {
  font-size: .95rem;
  color: var(--w60)
}

.speaking-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px
}

.record-btn {
  background: var(--navy-card);
  border: 2px solid rgba(212, 175, 55, .3);
  border-radius: 50px;
  padding: 20px 40px;
  cursor: pointer;
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-b)
}

.record-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .08)
}

.record-btn.recording {
  border-color: var(--error);
  background: rgba(239, 68, 68, .1);
  animation: pulse-record 1s infinite
}

@keyframes pulse-record {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .4)
  }

  50% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0)
  }
}

.record-icon {
  font-size: 1.5rem
}

.record-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white)
}

.recording-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  opacity: 0;
  transition: var(--tr)
}

.recording-wave.active {
  opacity: 1
}

.recording-wave span {
  display: block;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite
}

.recording-wave span:nth-child(1) {
  animation-delay: 0s;
  height: 20px
}

.recording-wave span:nth-child(2) {
  animation-delay: .1s;
  height: 32px
}

.recording-wave span:nth-child(3) {
  animation-delay: .2s;
  height: 40px
}

.recording-wave span:nth-child(4) {
  animation-delay: .3s;
  height: 28px
}

.recording-wave span:nth-child(5) {
  animation-delay: .4s;
  height: 16px
}

@keyframes wave {

  0%,
  100% {
    transform: scaleY(1)
  }

  50% {
    transform: scaleY(1.5)
  }
}

.speaking-transcript {
  background: var(--navy-card);
  border: 1px solid var(--w10);
  border-radius: var(--r-md);
  padding: 20px
}

.transcript-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--w60);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px
}

.transcript-text {
  font-size: 1.1rem;
  color: var(--white);
  font-style: italic
}

.ai-feedback {
  background: rgba(109, 40, 217, .1);
  border: 1px solid rgba(109, 40, 217, .3);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.ai-avatar {
  font-size: 2rem;
  flex-shrink: 0
}

.ai-feedback-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px
}

.ai-feedback-text {
  font-size: .95rem;
  color: var(--w80);
  line-height: 1.6
}

/* ============ LESSONS ============ */
#section-lessons .container {
  padding: 0 24px 60px
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px
}

.lesson-card {
  background: var(--navy-card);
  border: 1px solid var(--w10);
  border-radius: var(--r-lg);
  padding: 28px;
  cursor: pointer;
  transition: var(--tr);
  position: relative;
  overflow: hidden
}

.lesson-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--tr)
}

.lesson-card:hover {
  border-color: rgba(212, 175, 55, .3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card)
}

.lesson-card:hover::before,
.lesson-card.completed::before {
  transform: scaleX(1)
}

.lesson-card.completed::before {
  background: linear-gradient(90deg, #059669, #10B981)
}

.lesson-emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block
}

.lesson-level {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 12px
}

.level-beginner {
  background: rgba(16, 185, 129, .2);
  color: #10B981
}

.level-intermediate {
  background: rgba(245, 158, 11, .2);
  color: #F59E0B
}

.level-advanced {
  background: rgba(239, 68, 68, .2);
  color: #EF4444
}

.lesson-title {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white)
}

.lesson-desc {
  font-size: .875rem;
  color: var(--w60);
  line-height: 1.6;
  margin-bottom: 16px
}

.lesson-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--w60)
}

.lesson-xp {
  color: var(--gold);
  font-weight: 600
}

.lesson-completed-badge {
  background: rgba(16, 185, 129, .2);
  color: #10B981;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 600
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px
}

.modal-overlay.active {
  display: flex
}

.modal-content {
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: var(--r-xl);
  padding: 40px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .3s ease
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--w10);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--tr);
  display: flex;
  align-items: center;
  justify-content: center
}

.modal-close:hover {
  background: var(--w20)
}

.modal-lesson-emoji {
  font-size: 3rem;
  margin-bottom: 16px
}

.modal-lesson-title {
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold-light)
}

.modal-verse-block {
  background: rgba(212, 175, 55, .08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  margin: 20px 0
}

.modal-verse-en {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 6px
}

.modal-verse-pt {
  font-size: .9rem;
  color: var(--w60);
  font-style: italic
}

.modal-verse-ref {
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 6px
}

.modal-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px
}

.modal-vocab-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px
}

.modal-vocab-item {
  background: var(--w05);
  border: 1px solid var(--w10);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px
}

.modal-vocab-en {
  font-weight: 600;
  color: var(--white);
  font-size: .9rem
}

.modal-vocab-pt {
  font-size: .8rem;
  color: var(--w60)
}

.modal-vocab-speak {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px;
  transition: var(--tr)
}

.modal-vocab-speak:hover {
  transform: scale(1.2)
}

.modal-phrases-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.modal-phrase-item {
  background: var(--w05);
  border: 1px solid var(--w10);
  border-radius: var(--r-sm);
  padding: 14px 16px
}

.modal-phrase-en {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px
}

.modal-phrase-pt {
  font-size: .85rem;
  color: var(--w60)
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  border: none;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, .4)
}

.btn-secondary {
  background: var(--w10);
  color: var(--white);
  border: 1px solid var(--w20);
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b)
}

.btn-secondary:hover {
  background: var(--w20)
}

/* ============ VOCABULARY ============ */
#section-vocabulary .container {
  padding: 0 24px 60px
}

.vocab-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  margin-top: 8px
}

.vocab-search {
  width: 100%;
  background: var(--navy-card);
  border: 1px solid var(--w20);
  border-radius: var(--r-sm);
  padding: 12px 20px;
  color: var(--white);
  font-size: .95rem;
  font-family: var(--font-b);
  outline: none;
  transition: var(--tr)
}

.vocab-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .15)
}

.vocab-search::placeholder {
  color: var(--w60)
}

.vocab-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.filter-btn {
  background: var(--w05);
  border: 1px solid var(--w10);
  color: var(--w60);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b)
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(212, 175, 55, .15);
  border-color: rgba(212, 175, 55, .4);
  color: var(--gold-light)
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px
}

.vocab-card {
  background: var(--navy-card);
  border: 1px solid var(--w10);
  border-radius: var(--r-md);
  padding: 20px;
  transition: var(--tr)
}

.vocab-card:hover {
  border-color: rgba(212, 175, 55, .3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card)
}

.vocab-card.learned {
  border-color: rgba(16, 185, 129, .3)
}

.vocab-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px
}

.vocab-word {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white)
}

.vocab-category-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 8px
}

.cat-biblical {
  background: rgba(212, 175, 55, .2);
  color: var(--gold)
}

.cat-faith {
  background: rgba(139, 92, 246, .2);
  color: #A78BFA
}

.cat-daily {
  background: rgba(59, 130, 246, .2);
  color: #60A5FA
}

.cat-prayer {
  background: rgba(16, 185, 129, .2);
  color: #34D399
}

.vocab-pronunciation {
  font-size: .8rem;
  color: var(--w60);
  font-style: italic;
  margin-bottom: 6px
}

.vocab-translation {
  font-size: .95rem;
  color: var(--w80);
  margin-bottom: 10px
}

.vocab-example {
  font-size: .8rem;
  color: var(--w60);
  font-style: italic;
  border-top: 1px solid var(--w10);
  padding-top: 10px;
  line-height: 1.5
}

.vocab-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px
}

.vocab-btn {
  flex: 1;
  background: var(--w05);
  border: 1px solid var(--w10);
  color: var(--w60);
  padding: 6px;
  border-radius: var(--r-sm);
  font-size: .8rem;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b)
}

.vocab-btn:hover {
  background: var(--w10);
  color: var(--white)
}

.vocab-btn.learned-btn.active {
  background: rgba(16, 185, 129, .2);
  border-color: rgba(16, 185, 129, .4);
  color: #10B981
}

.vocab-practice-area {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--w10);
  margin-bottom: 5px;
}

.vocab-practice-transcript {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.2em;
}

/* ============ QUIZ ============ */
#section-quiz .container {
  padding: 0 24px 60px
}

.quiz-container {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 8px
}

.quiz-start {
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center
}

.quiz-start-icon {
  font-size: 4rem;
  margin-bottom: 20px
}

.quiz-start h3 {
  font-family: var(--font-d);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--gold-light)
}

.quiz-start p {
  color: var(--w60);
  margin-bottom: 28px
}

.quiz-difficulty {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px
}

.diff-btn {
  background: var(--w05);
  border: 1px solid var(--w10);
  color: var(--w60);
  padding: 10px 22px;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font-b)
}

.diff-btn:hover,
.diff-btn.active {
  background: rgba(212, 175, 55, .15);
  border-color: rgba(212, 175, 55, .4);
  color: var(--gold-light)
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px
}

.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--w10);
  border-radius: 3px;
  overflow: hidden
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 3px;
  transition: width .5s ease
}

.quiz-counter {
  font-size: .85rem;
  color: var(--w60);
  white-space: nowrap
}

.quiz-score-live {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap
}

.quiz-question-card {
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, .15);
  border-radius: var(--r-xl);
  padding: 36px
}

.quiz-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.5;
  text-align: center
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.quiz-option {
  background: var(--w05);
  border: 2px solid var(--w10);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  transition: var(--tr);
  text-align: left;
  font-family: var(--font-b)
}

.quiz-option:hover:not(:disabled) {
  border-color: rgba(212, 175, 55, .4);
  background: rgba(212, 175, 55, .08)
}

.quiz-option.correct {
  border-color: var(--success);
  background: rgba(16, 185, 129, .15);
  color: #10B981
}

.quiz-option.wrong {
  border-color: var(--error);
  background: rgba(239, 68, 68, .15);
  color: #EF4444
}

.quiz-result {
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 16px
}

.quiz-result h3 {
  font-family: var(--font-d);
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 12px
}

.quiz-result p {
  color: var(--w60);
  margin-bottom: 20px
}

.result-score {
  font-size: 3rem;
  font-family: var(--font-d);
  font-weight: 700;
  color: var(--gold);
  margin: 16px 0
}

.result-verse {
  background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: var(--r-md);
  padding: 16px;
  margin: 20px 0;
  font-family: var(--font-s);
  font-style: italic;
  color: var(--w80);
  font-size: .95rem
}

/* ============ PROFILE ============ */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px
}

.profile-card {
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: var(--r-xl);
  padding: 40px;
  text-align: center
}

.profile-avatar-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 16px
}

.profile-name {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px
}

.profile-email {
  font-size: .9rem;
  color: var(--w60);
  margin-bottom: 20px
}

.profile-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px
}

.level-badge {
  background: rgba(212, 175, 55, .15);
  border: 1px solid rgba(212, 175, 55, .3);
  color: var(--gold);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 700
}

.level-bar-wrap {
  width: 200px;
  height: 8px;
  background: var(--w10);
  border-radius: 4px;
  overflow: hidden
}

.level-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 4px;
  transition: width 1s ease
}

.level-xp-text {
  font-size: .8rem;
  color: var(--w60)
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.profile-stat {
  background: var(--navy-card);
  border: 1px solid var(--w10);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.ps-icon {
  font-size: 1.5rem
}

.ps-val {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold)
}

.ps-lbl {
  font-size: .75rem;
  color: var(--w60);
  text-transform: uppercase;
  letter-spacing: .5px
}

.profile-achievements h3 {
  font-family: var(--font-d);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 16px
}

.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

/* ============ TOAST ============ */
#toastContainer {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none
}

.toast-item {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(212, 175, 55, .4);
  transform: translateX(120%);
  transition: transform .3s ease;
  pointer-events: auto
}

.toast-item.show {
  transform: translateX(0)
}

/* ============ RESPONSIVE ============ */
@media(max-width:1024px) {
  .characters-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr
  }

  .characters-grid {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 8px
  }

  .char-card {
    min-width: 200px
  }

  .speaking-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    padding: 0 0 60px;
    /* Remove side padding to allow full-width scroll */
    gap: 16px;
  }

  .speaking-container .section-header-bar {
    padding: 0 16px;
  }

  .speaking-topics-title {
    padding: 0 16px;
    margin-bottom: 8px;
  }

  .speaking-topics-list {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 16px 20px;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    width: 100vw;
  }

  .speaking-topics-list::-webkit-scrollbar {
    display: none;
  }

  .speaking-topic-btn {
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .speaking-main {
    padding: 0 16px;
  }

  .speaking-prompt-card {
    padding: 30px 20px;
    border-radius: var(--r-lg);
  }

  .prompt-text {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .record-btn {
    padding: 16px 30px;
    width: 100%;
    justify-content: center;
  }

  .record-label {
    font-size: 0.9rem;
  }
}

@media(max-width:768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 90vw;
    background: var(--navy);
    padding: 32px 24px;
    gap: 8px;
    z-index: 999;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.6);
    border-bottom: none;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .mobile-menu-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }

  .mobile-logo-text {
    font-family: var(--font-b);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: -0.5px;
  }

  .mobile-menu-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links.open .nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 18px;
    font-size: 1.15rem;
    font-weight: 500;
    border-radius: 12px;
    color: #E2E8F0;
    gap: 16px;
    transition: all 0.2s ease;
  }

  .nav-links.open .nav-link i {
    width: 24px;
    height: 24px;
    opacity: 0.9;
  }

  .nav-links.open .nav-link.active {
    background: transparent;
    color: #FFFFFF;
    font-weight: 700;
  }

  .nav-links.open .nav-link:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-links.open .nav-link.highlight {
    background: #D9A835;
    color: #FFFFFF;
    font-weight: 700;
  }

  .nav-links.open .nav-link[onclick*="music"] {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
  }

  .hamburger {
    display: flex
  }

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

  .quiz-options {
    grid-template-columns: 1fr
  }

  .modal-vocab-list {
    grid-template-columns: 1fr
  }

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

  .auth-card {
    padding: 24px;
  }

  .auth-title {
    font-size: 2rem;
  }

  .verse-day-card {
    padding: 24px 20px;
  }

  .hero-mini {
    padding: 30px 16px 20px;
  }

  .stat-val {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 15px;
  }

  #toastContainer {
    left: 20px;
    right: 20px;
    bottom: 20px;
    align-items: center;
  }

  .toast-item {
    width: 100%;
    text-align: center;
    transform: translateY(200%);
  }

  .toast-item.show {
    transform: translateY(0);
  }

  .modal-content {
    padding: 24px;
    max-height: 90vh;
    border-radius: var(--r-lg);
  }

  .modal-content {
    padding: 24px;
    max-height: 90vh;
    border-radius: var(--r-lg);
  }
}

@media(max-width:480px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lessons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vocab-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .verse-day-en {
    font-size: 1.1rem;
  }

  .nav-container {
    padding: 0 12px;
    gap: 10px;
  }

  .nav-logo {
    gap: 6px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo-icon {
    font-size: 1.1rem;
  }

  .nav-right {
    gap: 10px;
  }

  .xp-badge {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .hero-mini-title {
    font-size: 1.6rem;
  }

  .section-bar-title {
    font-size: 1.3rem;
  }

  .section-bar-sub {
    font-size: 0.8rem;
  }

  .speaking-topics-title {
    font-size: 0.75rem;
    margin-top: 10px;
  }

  .container {
    padding: 0 16px;
  }

  .home-container {
    padding: 0 16px 40px;
  }
}

/* ===== BIBLE SECTION ===== */
.bible-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.bible-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
}

.bible-select {
  flex: 1;
  background: #1a1a1a !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bible-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.bible-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bible-verse-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
  border-left: 4px solid transparent;
}

.bible-verse-row:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(5px);
  border-left: 4px solid var(--gold);
}

.verse-num {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-family: 'Cinzel', serif;
}

.verse-en {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.verse-pt {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #b0b0b0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 20px;
}

.bible-empty-state {
  text-align: center;
  padding: 100px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
  opacity: 0.5;
}

.bible-loading {
  text-align: center;
  padding: 100px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(212, 175, 55, 0.1);
  border-top: 5px solid var(--gold);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin-bible 1s linear infinite;
}

@keyframes spin-bible {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ============ MUSIC ============ */
.music-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  min-height: 600px;
}

.music-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 20px;
}

.music-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.music-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.music-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(5px);
}

.music-item-icon {
  font-size: 1.5rem;
}

.music-item-title {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.music-item-artist {
  font-size: 0.8rem;
  color: var(--w60);
}

.music-player-area {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.song-header {
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 15px;
}

.song-header h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 5px;
}

.interactive-lyrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lyrics-line {
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.lyrics-line:hover {
  background: rgba(255, 255, 255, 0.07);
}

.lyrics-en {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lyrics-en:hover {
  color: var(--gold);
}

.lyrics-pt {
  font-size: 0.95rem;
  color: var(--w60);
  font-style: italic;
}

.lyrics-spacer {
  height: 20px;
}

@media (max-width: 1024px) {
  .music-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bible-verse-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .verse-pt {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 15px;
  }

  .bible-selector {
    flex-direction: column;
  }
}

.bible-vocabulary-discovery {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 25px;
}

.bible-vocabulary-discovery h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bible-vocab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vocab-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vocab-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.word-explorer-content {
  text-align: center;
  padding: 10px 0;
}

.word-definition {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  text-align: left;
}

/* ============ STUDY PATH ============ */
.study-path-section {
  margin: 40px 0;
}

.home-section-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.quick-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quick-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.quick-card:hover::after {
  opacity: 1;
}

.quick-icon {
  font-size: 2.5rem;
}

.quick-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.quick-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--w60);
}

@media (max-width: 900px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

.bible-error {
  text-align: center;
  padding: 40px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  border-radius: 12px;
  color: var(--error);
  font-weight: 600;
}

/* ===== EXERCISES ===== */
.exercise-container {
  padding: 20px 0;
}

.exercise-title {
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: center;
}

.exercise-question {
  font-size: 1.4rem;
  font-family: 'Lora', serif;
  color: white;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.4;
}

/* ============ ASSESSMENT / MENTOR ============ */
.assessment-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

.assessment-intro {
  text-align: center;
  padding: 60px 40px;
  background: var(--navy-card);
  border-radius: var(--r-xl);
  border: 1px solid rgba(212, 175, 55, .2);
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.6s ease;
}

.mentor-avatar-glow {
  font-size: 4rem;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.assessment-title {
  font-family: var(--font-d);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.assessment-subtitle {
  color: var(--w60);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.assessment-footer {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--w20);
}

.assessment-header {
  margin-bottom: 40px;
}

.assessment-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.assessment-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--w10);
  border-radius: 4px;
  overflow: hidden;
}

.assessment-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#assessmentStepCounter {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 40px;
}

.assessment-card {
  background: var(--navy-card);
  border-radius: var(--r-xl);
  padding: 40px;
  border: 1px solid var(--w10);
  box-shadow: var(--shadow-card);
}

.assessment-q-text {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 32px;
  line-height: 1.4;
  color: var(--white);
}

.assessment-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.assessment-opt-btn {
  background: var(--w05);
  border: 1px solid var(--w10);
  padding: 24px;
  border-radius: var(--r-md);
  color: var(--white);
  cursor: pointer;
  transition: var(--tr);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.assessment-opt-btn:hover {
  background: var(--w10);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.assessment-opt-emoji {
  font-size: 2rem;
}

.assessment-opt-label {
  font-weight: 500;
  font-size: 1rem;
}

/* Results */
.assessment-result {
  animation: fadeIn 0.8s ease;
}

.result-badge-halo {
  font-size: 3rem;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.result-title {
  text-align: center;
  font-family: var(--font-d);
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.profile-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.report-card {
  background: var(--w05);
  border-radius: var(--r-md);
  padding: 24px;
  border-left: 4px solid var(--gold);
}

.report-card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}

.report-card-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.personalized-strategy {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(30, 64, 175, 0.1));
  padding: 32px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.personalized-strategy h3 {
  font-family: var(--font-d);
  margin-bottom: 20px;
  color: var(--gold-light);
}

.strategy-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.strategy-icon {
  font-size: 1.2rem;
  background: var(--w10);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.strategy-text {
  font-size: 0.95rem;
  color: var(--w80);
}

.animate-in {
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============ MENTOR TOAST ============ */
.mentor-toast {
  background: var(--navy-card);
  border: 1px solid var(--gold);
  border-left: 5px solid var(--gold);
  border-radius: var(--r-md);
  padding: 16px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
  position: relative;
  z-index: 9999;
}

.mentor-toast-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mentor-toast-emoji {
  font-size: 1.2rem;
}

.mentor-toast-name {
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

.mentor-toast-body {
  font-size: 0.85rem;
  color: var(--w80);
  line-height: 1.4;
}

.animate-out {
  animation: slideDownOut 0.4s forwards;
}

@keyframes slideDownOut {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.mentor-card-highlight {
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(11, 24, 43, 0.9)) !important;
}

.mentor-card-highlight:hover {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

/* ============ EVOLUTION TRACKER ============ */
.evolution-tracker {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(11, 24, 43, 0.8));
  border: 1px solid var(--w10);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-card);
}

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

.evolution-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.evolution-icon {
  font-size: 1.8rem;
  background: var(--w05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--w10);
}

.evolution-title {
  font-family: var(--font-d);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.evolution-desc {
  font-size: 0.85rem;
  color: var(--w60);
}

.evolution-level {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.evolution-progress-bar {
  height: 12px;
  background: var(--w10);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.evolution-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, var(--gold));
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.evolution-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--w40);
  font-weight: 500;
}

.evolution-percentage {
  color: var(--gold);
}

/* Mobile Nav Tweak */
@media (max-width: 480px) {
  .nav-links.open li a {
    font-size: 0.9rem;
    padding: 12px;
  }

  .assessment-title {
    font-size: 1.6rem;
  }
}

/* ============ SKILL TREE PATH ============ */
.quiz-path-header {
  margin-bottom: 24px;
}

.path-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--glass);
  border: 1px solid var(--w10);
  border-radius: 16px;
  padding: 14px 24px;
}

.path-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--w80);
  font-weight: 600;
}

.path-stat span {
  color: var(--gold);
  font-weight: 700;
}

.skill-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 30px 0 40px;
  position: relative;
}

.path-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  padding: 10px 0;
}

.path-row.left {
  justify-content: flex-start;
  padding-left: 20%;
}

.path-row.center {
  justify-content: center;
}

.path-row.right {
  justify-content: flex-end;
  padding-right: 20%;
}

.path-connector {
  width: 4px;
  height: 32px;
  margin: 0 auto;
  background: var(--w10);
  border-radius: 2px;
  position: relative;
}

.path-connector.completed {
  background: var(--success);
}

.path-node {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s;
}

.path-node:hover {
  transform: scale(1.08);
}

.node-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-ring > svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.node-ring > svg circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.node-ring .ring-bg {
  stroke: var(--w10);
}

.node-ring .ring-progress {
  stroke: var(--success);
  transition: stroke-dashoffset 0.6s ease;
}

.node-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 2;
  transition: all 0.3s;
}

.node-icon i, .node-icon svg {
  width: 26px;
  height: 26px;
}

.node-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.path-node.locked .node-3d-img {
  filter: grayscale(1) opacity(0.5) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.chest-img {
  border-radius: 12px;
}

/* States */
.path-node.completed .node-icon {
  background: var(--success);
  color: white;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.path-node.active .node-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
  animation: node-pulse 2s infinite;
}

.path-node.locked .node-icon {
  background: var(--w10);
  color: var(--w40);
  cursor: not-allowed;
}

.path-node.locked:hover {
  transform: none;
}

.path-node.active .node-label-tag {
  display: block;
}

@keyframes node-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  }

  50% {
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.7);
  }
}

.node-label {
  font-size: 0.75rem;
  color: var(--w60);
  font-weight: 600;
  text-align: center;
  max-width: 100px;
  line-height: 1.2;
}

.path-node.completed .node-label {
  color: var(--success);
}

.path-node.active .node-label {
  color: var(--w95);
  font-weight: 700;
}

.node-label-tag {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--w20);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--w95);
  white-space: nowrap;
  position: relative;
  margin-top: -2px;
  animation: bounce-tag 1s infinite;
}

.node-label-tag::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--w20);
}

@keyframes bounce-tag {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.node-check {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.4);
}

.node-check i {
  width: 14px;
  height: 14px;
}

.node-lock {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--w20);
  color: var(--w50);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.node-lock i {
  width: 12px;
  height: 12px;
}

.path-chest {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto;
  font-size: 1.3rem;
}

.path-chest.locked {
  background: var(--w10);
  color: var(--w30);
  border: 2px dashed var(--w20);
}

.path-chest.unlocked {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(218, 165, 32, 0.05));
  border: 2px solid var(--gold);
  color: var(--gold);
  animation: chest-glow 2s infinite;
}

@keyframes chest-glow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
  }

  50% {
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.5);
  }
}

/* ============ PROFESSOR CRISTÃO ============ */
.mentor-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.mentor-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--w80);
  border: 1px solid var(--w10);
}

.mentor-speaking-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(218, 165, 32, 0.03));
  border: 1px solid rgba(218, 165, 32, 0.2);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--gold);
}

.mentor-speaking-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.mentor-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--success);
  margin-bottom: 20px;
}

.mentor-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}

.mentor-step-msg {
  font-style: italic;
  color: var(--w60);
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--glass);
  border-radius: 12px;
  border-left: 3px solid var(--gold);
  line-height: 1.5;
}

.assessment-test-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.mentor-diagnosis-box {
  background: var(--glass);
  border: 1px solid var(--w10);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}

.diagnosis-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--w10);
}

.diagnosis-icon {
  font-size: 1.5rem;
}

.diagnosis-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.diagnosis-content p {
  color: var(--w80);
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.diagnosis-content p strong {
  color: var(--w95);
}

.result-subtitle {
  color: var(--w60);
  font-size: 1rem;
  margin-bottom: 24px;
}

.report-card-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.report-card-icon i {
  width: 28px;
  height: 28px;
}

/* ============ YOUTUBE STUDY ============ */
.youtube-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.youtube-input-area {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.youtube-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .youtube-workspace {
    grid-template-columns: 1fr;
  }
}

.youtube-video-container {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--w20);
  background: var(--dark);
}

.youtube-video-container iframe {
  width: 100%;
  height: 100%;
}

.youtube-chat-container {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--w20);
  border-radius: var(--r-md);
  overflow: hidden;
  height: calc(100vh - 250px);
  min-height: 400px;
  max-height: 600px;
}

.yt-chat-header {
  padding: 16px;
  border-bottom: 1px solid var(--w20);
  background: rgba(0, 0, 0, 0.2);
}

.yt-chat-header h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.yt-chat-header p {
  font-size: 0.85rem;
  color: var(--w60);
}

.yt-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-subtitle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--w20);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-subtitle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.live-subtitle-btn.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ============ MOBILE ADJUSTMENTS ============ */
@media (max-width: 768px) {
  .evolution-tracker {
    padding: 16px;
  }

  .evolution-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .evolution-info {
    gap: 12px;
  }

  .evolution-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .evolution-level {
    align-self: flex-start;
    padding: 4px 12px;
    font-size: 0.8rem;
  }

  .music-layout {
    flex-direction: column;
  }

  .music-sidebar {
    width: 100%;
    max-height: 250px;
  }

  .assessment-container {
    padding: 0 16px;
    margin: 20px auto;
  }

  .assessment-intro {
    padding: 30px 20px;
  }

  .assessment-title {
    font-size: 1.8rem;
  }

  .assessment-card {
    padding: 24px;
  }

  .assessment-q-text {
    font-size: 1.2rem;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .mentor-toast {
    width: calc(100vw - 40px);
    max-width: 320px;
    left: 20px;
  }

  .song-player-container h2 {
    font-size: 1.2rem;
  }

  .video-wrapper iframe {
    height: 200px;
  }

  .assessment-opt-btn {
    padding: 16px;
    gap: 8px;
  }

  .result-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .profile-report-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .personalized-strategy {
    padding: 20px;
  }

  .lyrics-line {
    font-size: 0.9rem;
    padding: 10px;
  }

  .lyrics-en {
    padding: 8px 12px;
  }

  .user-dropdown {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
  }
}

/* ============ SHEPHERD ASSISTANT ============ */
.shepherd-assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.shepherd-avatar {
  height: 180px;
  max-width: 250px;
  width: auto;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
  margin-right: -10px;
  margin-bottom: -15px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

.shepherd-avatar img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  transition: transform 0.3s;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.shepherd-avatar:hover {
  animation-play-state: paused;
  transform: scale(1.08);
  /* slight zoom out of float */
}

.shepherd-avatar:hover img {
  transform: scale(1.1);
}

.shepherd-bubble {
  width: 300px;
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  position: relative;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
}

.shepherd-bubble.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.shepherd-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 30px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: var(--navy-card) transparent transparent transparent;
}

.shepherd-close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--w60);
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.shepherd-close:hover {
  color: var(--white);
}

.shepherd-bubble p {
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 20px;
  font-family: var(--font-b);
}

.shepherd-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shepherd-options button {
  background: var(--navy-light);
  border: 1px solid var(--w20);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.shepherd-options button i {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
  transition: var(--tr);
}

.shepherd-options button:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.shepherd-options button:hover i {
  color: var(--navy);
}

@media(max-width:768px) {
  .shepherd-assistant {
    bottom: 20px;
    right: 15px;
    z-index: 10000;
  }

  .shepherd-avatar {
    height: 130px;
    max-width: 180px;
  }

  .shepherd-bubble {
    width: 260px;
    padding: 20px;
  }

  .shepherd-bubble::after {
    right: 50px;
  }
}
/* ============================================================
   DESKTOP UI REDESIGN (Figma Match)
   ============================================================ */
@media (min-width: 1024px) {
  body {
    overflow: hidden;
  }
  #mainApp {
    display: flex !important;
    height: 100vh;
    overflow: hidden;
  }
  .desktop-only {
    display: block !important;
  }
  .app-section {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
  }
  .navbar {
    position: static;
    width: 250px;
    height: 100vh;
    background: #0f0f11;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 20px 20px;
    overflow-y: auto;
    flex-shrink: 0;
  }
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
  }
  .nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
  }
  .nav-logo .logo-icon {
    font-size: 24px;
    margin-bottom: 5px;
  }
  .nav-logo .logo-text {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .nav-logo .logo-sub {
    font-size: 10px;
    color: var(--w60);
    letter-spacing: 1px;
    margin-top: 2px;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }
  .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: var(--w80);
    border-radius: 6px;
    align-items: center;
    text-align: left;
  }
  .nav-link i {
    width: 18px;
    height: 18px;
    margin-right: 12px;
  }
  .nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0;
  }
  .content-container {
    flex: 1;
    height: 100vh;
    padding: 50px;
    background: #141416;
    overflow-y: auto;
  }
  .home-container {
    max-width: 1100px;
  }
  .desktop-home-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
  }
  .d-h-greet {
    font-family: var(--font-d);
    font-size: 2rem;
    font-weight: 400;
  }
  .d-h-greet span {
    color: var(--gold);
  }
  .d-h-sub {
    font-size: 0.9rem;
    color: var(--w60);
    font-style: italic;
    margin-top: 5px;
  }
  .d-h-badge {
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    color: var(--gold);
    font-size: 13px;
    background: rgba(212, 175, 55, 0.05);
  }
  
  /* Versiculo horizontal full */
  .verse-day-card {
    border: 1px solid rgba(255,255,255,0.08);
    background: #1A1A1E;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    padding: 30px;
  }
  
  /* Stats grid */
  .d-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .d-stat-card {
    background: #1A1A1E;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  .d-stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .d-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-d);
  }
  .d-stat-label {
    font-size: 12px;
    color: var(--w60);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
  }
  
  /* Hide the old study path cards when on desktop */
  .quick-actions {
    display: none !important;
  }
  /* Show desktop versions */
  .desktop-quick-actions {
    display: grid !important;
  }
}
.desktop-only { display: none; }
.desktop-quick-actions { display: none; }

/* ============================================================
   MOBILE-FIRST COMPREHENSIVE IMPROVEMENTS v3.0
   ============================================================ */

/* ---- BOTTOM NAVIGATION (Mobile Only) ---- */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Show bottom nav, hide hamburger menu */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 19000;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
    justify-content: space-around;
    align-items: center;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    min-width: 56px;
    min-height: 52px;
    border-radius: 12px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-b);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item i {
    width: 22px;
    height: 22px;
    transition: all 0.2s ease;
  }

  .bottom-nav-item.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
  }

  .bottom-nav-item.active i {
    color: var(--gold);
    filter: drop-shadow(0 0 6px rgba(212,175,55,0.5));
  }

  .bottom-nav-item:active {
    transform: scale(0.92);
    background: rgba(255,255,255,0.08);
  }

  /* Reserve space for bottom nav */
  .app-section {
    padding-bottom: 80px !important;
  }

  /* Toast offset for bottom nav */
  #toastContainer {
    bottom: 90px !important;
  }

  /* Hide hamburger since we have bottom nav */
  .hamburger {
    display: none !important;
  }

  /* XP badge – compact */
  .nav-right {
    gap: 8px;
  }

  /* Navbar just shows logo + XP + avatar */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #0a0a0a;
    padding: 28px 20px;
    gap: 6px;
    z-index: 999;
    box-shadow: 4px 0 32px rgba(0,0,0,0.7);
    border-right: 1px solid rgba(212,175,55,0.1);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.open {
    transform: translateX(0);
  }
}

/* ---- GLOBAL MOBILE FIXES ---- */
@media (max-width: 768px) {
  /* Prevent iOS input zoom */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Better touch targets for all interactive elements */
  .btn-auth,
  .btn-auth-outline,
  .btn-auth-ghost,
  .btn-primary,
  .btn-listen,
  .filter-btn,
  .chat-send-btn {
    min-height: 44px;
  }

  .filter-btn {
    padding: 10px 16px;
    min-height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Scrollable filter rows */
  .vocab-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 8px;
    padding-bottom: 4px;
  }

  .vocab-filters::-webkit-scrollbar {
    display: none;
  }

  /* ---- AUTH SCREEN ---- */
  .auth-screen {
    padding: 16px;
    align-items: flex-start;
    padding-top: max(40px, env(safe-area-inset-top, 40px));
  }

  .auth-container {
    gap: 20px;
  }

  .auth-card {
    padding: 24px 20px;
    border-radius: var(--r-lg);
  }

  .auth-title {
    font-size: 1.8rem;
  }

  /* ---- NAVBAR MOBILE ---- */
  .navbar {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-container {
    padding: 0 14px;
    gap: 8px;
  }

  .nav-logo {
    gap: 6px;
    font-size: 1rem;
  }

  .logo-icon {
    font-size: 1.1rem;
  }

  .xp-badge {
    font-size: 0.7rem;
    padding: 4px 9px;
  }

  /* ---- SECTION HEADERS ---- */
  .section-header-bar {
    padding: 20px 16px 16px;
  }

  .section-bar-title {
    font-size: 1.3rem;
  }

  /* ---- HOME SECTION ---- */
  .hero-mini {
    padding: 24px 16px 16px;
  }

  .home-container {
    padding: 0 16px 24px;
    gap: 20px;
  }

  .verse-day-card {
    padding: 20px 16px;
    border-radius: var(--r-md);
  }

  .verse-day-en {
    font-size: 1rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px 10px;
  }

  .stat-val {
    font-size: 1.4rem;
  }

  .quick-actions {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .quick-card {
    padding: 16px 14px;
    gap: 8px;
    border-radius: var(--r-md);
  }

  .quick-icon {
    font-size: 1.8rem;
  }

  .quick-title {
    font-size: 0.9rem;
  }

  .quick-desc {
    font-size: 0.78rem;
  }

  /* ---- CHARACTERS SECTION ---- */
  .characters-layout {
    display: block;
  }

  .characters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
    max-height: none;
    overflow: visible;
  }

  .char-card {
    min-width: unset;
    width: 100%;
  }

  .character-chat {
    position: fixed;
    inset: 0;
    z-index: 5000;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .character-chat.mobile-open {
    transform: translateX(0);
  }

  .char-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-b);
    -webkit-tap-highlight-color: transparent;
  }

  .char-back-btn i {
    width: 20px;
    height: 20px;
  }

  /* ---- SPEAKING SECTION ---- */
  .speaking-container {
    grid-template-columns: 1fr;
    padding: 0 0 16px;
  }

  /* ---- LESSONS SECTION ---- */
  .lessons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ---- VOCABULARY SECTION ---- */
  .vocab-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .vocab-controls {
    gap: 10px;
  }

  /* ---- QUIZ SECTION ---- */
  .quiz-question-card {
    padding: 20px 16px;
  }

  .quiz-question {
    font-size: 1rem;
  }

  .quiz-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .path-row.left {
    padding-left: 8%;
  }

  .path-row.right {
    padding-right: 8%;
  }

  .node-ring {
    width: 64px;
    height: 64px;
  }

  .node-ring > svg {
    width: 64px;
    height: 64px;
  }

  .node-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  /* ---- BIBLE SECTION ---- */
  .bible-container {
    padding: 0 14px 24px;
  }

  .bible-selector {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .bible-selector .btn-primary {
    width: 100%;
  }

  .bible-verse-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .verse-pt {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-left: 0;
    padding-top: 12px;
  }

  /* ---- MUSIC SECTION ---- */
  .music-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .music-sidebar {
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.06);
  }

  .music-player-area {
    min-height: 50vh;
  }

  /* ---- YOUTUBE SECTION ---- */
  .youtube-layout {
    gap: 16px;
  }

  .youtube-workspace {
    grid-template-columns: 1fr !important;
  }

  .youtube-video-container {
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: var(--r-md);
    overflow: hidden;
  }

  .yt-chat-messages {
    max-height: 45vh;
  }

  /* ---- CHAT INPUT ---- */
  .chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .chat-input {
    min-width: 0;
    flex: 1;
    font-size: 16px !important;
  }

  .chat-send-btn {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }

  /* ---- ASSESSMENT / MENTOR ---- */
  .assessment-container {
    padding: 0 14px;
    margin: 16px auto;
  }

  .assessment-intro {
    padding: 32px 20px;
  }

  .assessment-title {
    font-size: 1.5rem;
  }

  .assessment-card {
    padding: 20px 16px;
  }

  .profile-report-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Result buttons stacked on mobile */
  div[style*="display:flex; gap:15px; justify-content:center"] {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  /* Mentor chat compact */
  .mentor-diagnosis-box {
    padding: 16px;
  }

  /* ---- MODALS ---- */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px 18px;
    margin: 0;
    width: 100%;
  }

  /* ---- PROFILE SECTION ---- */
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ---- SHEPHERD ASSISTANT ---- */
  .shepherd-assistant {
    bottom: 90px;
    right: 12px;
  }

  /* ---- MENTOR FEATURES GRID ---- */
  .mentor-features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* ---- STRATEGY LIST ---- */
  .strategy-list {
    gap: 10px;
  }

  /* Personalized strategy section */
  .personalized-strategy {
    padding: 16px;
    border-radius: var(--r-md);
  }
}

/* Extra small phones (< 390px) */
@media (max-width: 390px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .vocab-grid {
    grid-template-columns: 1fr;
  }

  .characters-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-logo .logo-text {
    font-size: 0.9rem;
  }
}

/* Safe area for notched phones (iPhone X+) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .mobile-bottom-nav {
      padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
    }

    .app-section {
      padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
  }
}
}
/* ============================================================
   CEFR PLACEMENT TEST STYLES (DUOLINGO DESIGN SYSTEM)
   ============================================================ */

#section-placement {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

#section-placement h2, 
#section-placement h3, 
#section-placement h4, 
#section-placement button, 
#section-placement div {
  font-family: 'Nunito', sans-serif !important;
}

.nav-link.highlight-level {
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  background: rgba(212, 175, 55, 0.06) !important;
  color: var(--gold) !important;
  font-weight: 800 !important;
}

.nav-link.highlight-level:hover {
  background: rgba(212, 175, 55, 0.15) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.nav-links.open .nav-link.highlight-level {
  background: #D4AF37 !important;
  color: #0A0E1A !important;
  font-weight: 800 !important;
}

.placement-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 10px 180px 10px; /* Add extra spacing at bottom to prevent footer overlap on mobile */
}

@media (min-width: 769px) {
  .placement-container {
    padding: 24px 24px 180px 24px;
  }
}

.placement-intro {
  text-align: center;
  background: #ffffff !important;
  border: 2px solid #e5e5e5 !important;
  border-bottom: 4px solid #e5e5e5 !important;
  border-radius: 20px !important;
  padding: 40px 30px !important;
  color: #3c3c3c !important;
}

.level-badge-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.level-crown-emoji {
  font-size: 44px;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.level-badge-glow-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px dashed var(--gold);
  animation: rotate-ring 12s linear infinite;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

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

@keyframes rotate-ring {
  100% { transform: rotate(360deg); }
}

.placement-title {
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  color: #3c3c3c !important;
  margin-bottom: 12px;
}

.placement-subtitle {
  color: #777777 !important;
  font-size: 1.05rem;
  font-weight: 700 !important;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.cefr-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.cefr-legend-card {
  background: #ffffff !important;
  border: 2px solid #e5e5e5 !important;
  border-bottom: 4px solid #e5e5e5 !important;
  border-radius: 16px !important;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.15s ease;
  color: #3c3c3c !important;
}

.cefr-legend-card:hover {
  transform: translateY(-2px);
  border-bottom-width: 5px !important;
}

.cefr-lbl {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.cefr-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #3c3c3c;
}

.cefr-desc {
  font-size: 0.75rem;
  color: #777777;
  font-weight: 600;
  margin-top: 2px;
}

/* CEFR Legend Card colors */
.c-a1 .cefr-lbl { color: #3b82f6; }
.c-a1 { border-top: 3px solid #3b82f6; }
.c-a2 .cefr-lbl { color: #10b981; }
.c-a2 { border-top: 3px solid #10b981; }
.c-b1 .cefr-lbl { color: #6366f1; }
.c-b1 { border-top: 3px solid #6366f1; }
.c-b2 .cefr-lbl { color: #8b5cf6; }
.c-b2 { border-top: 3px solid #8b5cf6; }
.c-c1 .cefr-lbl { color: #f59e0b; }
.c-c1 { border-top: 3px solid #f59e0b; }
.c-c2 .cefr-lbl { color: #f43f5e; }
.c-c2 { border-top: 3px solid #f43f5e; }

.placement-rules-list {
  background: #f7f7f7 !important;
  border: 2px dashed #e5e5e5 !important;
  border-radius: 16px !important;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b4b4b !important;
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.rule-item:last-child {
  margin-bottom: 0;
}

.rule-item i {
  color: #1cb0f6;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Active Quiz */
.placement-active {
  background: #ffffff !important;
  border: 2px solid #e5e5e5 !important;
  border-bottom: 4px solid #e5e5e5 !important;
  border-radius: 20px !important;
  padding: 30px 24px;
  color: #3c3c3c !important;
}

.placement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 20px;
}

.placement-progress-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.placement-progress-bar {
  flex: 1;
  height: 16px !important;
  background: #e5e5e5 !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.placement-progress-fill {
  height: 100%;
  background: #58cc02 !important;
  border-radius: 12px !important;
  position: relative;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.25);
  width: 0%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.placement-progress-fill::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.placement-level-indicator-badge {
  background: #ddf4ff !important;
  border: 2px solid #84d8ff !important;
  color: #1899d6 !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800 !important;
  white-space: nowrap;
}

.placement-card {
  animation: fadeIn 0.4s ease;
}

/* Mascot speaking row (Duolingo style) */
.duo-mascot-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
  justify-content: center;
}

.duo-mascot-avatar {
  font-size: 56px;
  animation: float 2.5s ease-in-out infinite;
  user-select: none;
  flex-shrink: 0;
}

.duo-bubble {
  position: relative;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 18px;
  padding: 16px 20px;
  color: #3c3c3c;
  font-size: 1.15rem;
  font-weight: 700;
  max-width: 500px;
  flex-grow: 1;
  box-shadow: 0 4px 0 #e5e5e5;
  text-align: left;
}

.duo-bubble-arrow {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-left: 2px solid #e5e5e5;
  border-bottom: 2px solid #e5e5e5;
}

.duo-bubble-text {
  line-height: 1.5;
  font-family: 'Nunito', sans-serif;
}

.placement-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
}

/* Option Buttons */
.placement-opt-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff !important;
  border: 2px solid #e5e5e5 !important;
  border-bottom: 4px solid #e5e5e5 !important;
  border-radius: 16px !important;
  padding: 14px 20px !important;
  text-align: left;
  cursor: pointer;
  transition: all 0.1s ease;
  min-height: 56px;
  color: #3c3c3c !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800;
  box-shadow: none !important;
  transform: none !important;
  outline: none;
  user-select: none;
  width: 100%;
}

.placement-opt-btn:hover {
  background: #f7f7f7 !important;
}

.placement-opt-btn:active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
}

.placement-opt-btn.selected {
  background: #ddf4ff !important;
  border-color: #84d8ff !important;
  border-bottom-color: #1899d6 !important;
  color: #1899d6 !important;
}

.placement-opt-btn.correct {
  background: #e6f9d2 !important;
  border-color: #58cc02 !important;
  border-bottom-color: #46a302 !important;
  color: #2b7a01 !important;
}

.placement-opt-btn.incorrect {
  background: #ffebd2 !important;
  border-color: #ff4b4b !important;
  border-bottom-color: #ea2b2b !important;
  color: #ea2b2b !important;
}

.placement-opt-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  color: #afafaf;
  flex-shrink: 0;
  transition: all 0.1s ease;
}

.placement-opt-btn:hover .placement-opt-letter {
  border-color: #afafaf;
}

.placement-opt-btn.selected .placement-opt-letter {
  background: #ffffff;
  border-color: #1cb0f6;
  color: #1cb0f6;
}

.placement-opt-btn.correct .placement-opt-letter {
  background: #58cc02;
  border-color: #58cc02;
  color: #ffffff;
}

.placement-opt-btn.incorrect .placement-opt-letter {
  background: #ff4b4b;
  border-color: #ff4b4b;
  color: #ffffff;
}

.placement-opt-label {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Duolingo 3D Button Style */
.duo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: filter 0.1s ease, transform 0.1s ease;
  border: none;
  outline: none;
  user-select: none;
  text-align: center;
}

.duo-btn:active {
  transform: translateY(4px);
  border-bottom-width: 0 !important;
}

.duo-btn-disabled {
  background: #e5e5e5 !important;
  color: #afafaf !important;
  border-bottom: 4px solid #afafaf !important;
  cursor: not-allowed;
  pointer-events: none;
}

.duo-btn-active {
  background: #1cb0f6 !important;
  color: #ffffff !important;
  border-bottom: 4px solid #1899d6 !important;
}

.duo-btn-active:hover {
  filter: brightness(1.05);
}

.duo-btn-green {
  background: #58cc02 !important;
  color: #ffffff !important;
  border-bottom: 4px solid #46a302 !important;
}

.duo-btn-green:hover {
  filter: brightness(1.05);
}

.duo-btn-blue {
  background: #1cb0f6 !important;
  color: #ffffff !important;
  border-bottom: 4px solid #1899d6 !important;
}

.duo-btn-blue:hover {
  filter: brightness(1.05);
}

.duo-btn-red {
  background: #ff4b4b !important;
  color: #ffffff !important;
  border-bottom: 4px solid #ea2b2b !important;
}

.duo-btn-red:hover {
  filter: brightness(1.05);
}

/* Duolingo Slide-up Verification Footer */
.duo-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid #e5e5e5;
  padding: 24px 16px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.duo-footer-bar.correct {
  background: #d7f5b7;
  border-top-color: #a5e068;
}

.duo-footer-bar.incorrect {
  background: #ffd8d8;
  border-top-color: #ff9d9d;
}

.duo-footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.duo-status-message {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  text-align: left;
}

.duo-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #afafaf;
  flex-shrink: 0;
}

.duo-status-icon i {
  width: 22px;
  height: 22px;
}

.duo-status-icon.correct {
  background: #ffffff;
  color: #58cc02;
}

.duo-status-icon.incorrect {
  background: #ffffff;
  color: #ff4b4b;
}

.duo-status-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.duo-status-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #3c3c3c;
}

.duo-status-title.correct {
  color: #2b7a01;
}

.duo-status-title.incorrect {
  color: #ea2b2b;
}

.duo-status-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #777777;
  font-weight: 600;
  line-height: 1.4;
}

.duo-status-desc.correct {
  color: #2b7a01;
}

.duo-status-desc.incorrect {
  color: #ea2b2b;
}

/* Results section styling */
.placement-result {
  background: #ffffff !important;
  border: 2px solid #e5e5e5 !important;
  border-bottom: 4px solid #e5e5e5 !important;
  border-radius: 20px !important;
  padding: 40px 30px !important;
  color: #3c3c3c !important;
}

.result-title {
  color: #3c3c3c !important;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.cefr-result-box {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #f7f7f7 !important;
  border: 2px solid #e5e5e5 !important;
  border-radius: 20px !important;
  padding: 24px;
  margin-bottom: 30px;
  text-align: left;
}

.cefr-main-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cefr-result-info h4 {
  font-size: 1.4rem;
  color: #3c3c3c !important;
  margin-bottom: 8px;
  font-weight: 900 !important;
}

.cefr-result-info p {
  color: #777777 !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 600 !important;
}

/* CEFR Bars Grid */
.cefr-bars-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff !important;
  border: 2px solid #e5e5e5 !important;
  border-radius: 20px !important;
  padding: 24px;
  margin-bottom: 30px;
}

.cefr-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cefr-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cefr-bar-level-code {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
}

.cefr-bar-stats {
  font-size: 0.85rem;
  color: #777777;
  font-weight: 700;
}

.cefr-bar-outer {
  height: 12px !important;
  background: #e5e5e5 !important;
  border-radius: 6px !important;
  overflow: hidden;
}

.cefr-bar-inner {
  height: 100%;
  border-radius: 6px !important;
  width: 0%;
  transition: width 0.6s ease;
}

/* Review elements */
.cefr-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.review-card {
  border-radius: 16px !important;
  padding: 20px;
  background: #ffffff !important;
  border: 2px solid #e5e5e5 !important;
  border-bottom: 4px solid #e5e5e5 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card.correct {
  border-left: 6px solid #58cc02 !important;
}

.review-card.incorrect {
  border-left: 6px solid #ff4b4b !important;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-q-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: #777777;
}

.review-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.review-status-badge.correct {
  background: #e6f9d2;
  color: #2b7a01;
}

.review-status-badge.incorrect {
  background: #ffebd2;
  color: #ea2b2b;
}

.review-status-badge i {
  width: 12px;
  height: 12px;
}

.review-q-text {
  font-size: 1.1rem;
  color: #3c3c3c !important;
  font-weight: 800;
  line-height: 1.4;
}

.review-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-choice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.review-choice.correct {
  background: #e6f9d2 !important;
  border: 2px solid #58cc02 !important;
  color: #2b7a01 !important;
}

.review-choice.selected-incorrect {
  background: #ffebd2 !important;
  border: 2px solid #ff4b4b !important;
  color: #ea2b2b !important;
}

.review-explanation {
  background: #f7f7f7 !important;
  border: 2px solid #e5e5e5 !important;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  color: #4b4b4b;
  line-height: 1.5;
  font-weight: 600;
}

.review-explanation i {
  width: 14px;
  height: 14px;
}

/* Badge specific colors */
.badge-A1 { background: #3b82f6; }
.badge-A2 { background: #10b981; }
.badge-B1 { background: #6366f1; }
.badge-B2 { background: #8b5cf6; }
.badge-C1 { background: #f59e0b; }
.badge-C2 { background: #f43f5e; }

.bar-color-A1 { background: #3b82f6; }
.bar-color-A2 { background: #10b981; }
.bar-color-B1 { background: #6366f1; }
.bar-color-B2 { background: #8b5cf6; }
.bar-color-C1 { background: #f59e0b; }
.bar-color-C2 { background: #f43f5e; }

/* Dashboard card styling */
.placement-card-highlight {
  border: 2px solid rgba(212, 175, 55, 0.4) !important;
  border-bottom: 4px solid rgba(212, 175, 55, 0.6) !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.95)) !important;
}

.placement-card-highlight:hover {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15) !important;
}

/* Responsive updates */
@media (max-width: 768px) {
  .cefr-legend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cefr-result-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }
  
  .placement-intro {
    padding: 30px 16px !important;
  }
  
  .placement-active {
    padding: 20px 16px;
    padding-bottom: 150px; /* spacing for fixed footer */
  }
  
  .duo-footer-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .duo-btn {
    width: 100%;
  }
  
  .duo-mascot-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .duo-bubble-arrow {
    left: 50%;
    top: -10px;
    transform: translateX(-50%) rotate(45deg);
    border-left: 2px solid #e5e5e5;
    border-top: 2px solid #e5e5e5;
    border-bottom: none;
    border-right: none;
  }
}

@media (max-width: 480px) {
  .cefr-legend-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DUOLINGO BLACK AND YELLOW THEME OVERRIDES
   ============================================================ */

body {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
}

.app-section {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* 1. Header Bar Redesign */
.section-header-bar {
  background: #121212 !important;
  border: 2px solid #262626 !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 4px 0 #262626 !important;
}

.section-bar-title {
  color: #ffcc00 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  display: flex;
  align-items: center;
}

.section-bar-title i {
  color: #ffcc00 !important;
}

.section-bar-sub {
  color: #b3b3b3 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  margin-top: 4px;
}

/* 2. Left Sidebar (Navbar) on Desktop */
@media (min-width: 1024px) {
  .navbar {
    background-color: #0c0c0c !important;
    border-right: 2px solid #262626 !important;
    box-shadow: none !important;
  }
  
  .nav-logo {
    border-bottom: 2px solid #262626 !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
  }
  
  .nav-logo .logo-icon {
    color: #ffcc00 !important;
    text-shadow: none !important;
  }
  
  .nav-logo .logo-text {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 900 !important;
  }
  
  .logo-accent {
    color: #ffcc00 !important;
  }
  
  .nav-link {
    color: #b3b3b3 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 2px 0 !important;
    transition: all 0.1s ease !important;
    border: 2px solid transparent !important;
  }
  
  .nav-link:hover {
    background-color: #1c1c1c !important;
    color: #ffffff !important;
  }
  
  .nav-link.active {
    background-color: rgba(255, 204, 0, 0.1) !important;
    color: #ffcc00 !important;
    border: 2px solid #ffcc00 !important;
    border-left-width: 2px !important;
    border-radius: 12px !important;
  }
  
  .xp-sidebar-badge {
    border-bottom: 2px solid #262626 !important;
    margin-bottom: 20px !important;
  }
}

/* 3. Mobile Navigation updates */
@media (max-width: 1023px) {
  .navbar {
    background-color: #0c0c0c !important;
    border-bottom: 2px solid #262626 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  }
  
  .nav-logo .logo-text {
    color: #ffffff !important;
  }
  
  .nav-links {
    background-color: #0c0c0c !important;
    border-right: 2px solid #262626 !important;
  }
}

/* 4. Duolingo Universal 3D Buttons */
.btn-primary, .btn-auth, .btn-primary-alt {
  background: #ffcc00 !important;
  color: #000000 !important;
  border: none !important;
  border-bottom: 4px solid #cc9900 !important;
  border-radius: 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  padding: 12px 28px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  cursor: pointer !important;
  transition: filter 0.1s, transform 0.1s !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-primary:hover, .btn-auth:hover, .btn-primary-alt:hover {
  filter: brightness(1.05) !important;
}

.btn-primary:active, .btn-auth:active, .btn-primary-alt:active {
  transform: translateY(4px) !important;
  border-bottom-width: 0 !important;
}

.btn-secondary, .btn-auth-outline, .btn-secondary-alt {
  background: #000000 !important;
  color: #ffcc00 !important;
  border: 2px solid #ffcc00 !important;
  border-bottom: 4px solid #ffcc00 !important;
  border-radius: 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  padding: 12px 28px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-secondary:hover, .btn-auth-outline:hover, .btn-secondary-alt:hover {
  background: #1c1c1c !important;
  color: #ffcc00 !important;
  border-color: #ffcc00 !important;
  border-bottom-color: #ffcc00 !important;
}

.btn-secondary:active, .btn-auth-outline:active, .btn-secondary-alt:active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
}

/* 5. Clean 3D Cards */
.char-card, .vocab-card, .lesson-card, .quick-card, .d-stat-card, .verse-day-card, .auth-card, .mentor-diagnosis-box, .personalized-strategy {
  background-color: #121212 !important;
  border: 2px solid #262626 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 0 #262626 !important;
  color: #ffffff !important;
  transition: all 0.1s ease !important;
  padding: 24px !important;
}

.char-card:hover, .vocab-card:hover, .lesson-card:hover, .quick-card:hover, .d-stat-card:hover, .verse-day-card:hover {
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 #262626 !important;
}

/* 6. Dashboard Hero and Specific Card Updates */
.hero-mini {
  background: #121212 !important;
  border: 2px solid #ffcc00 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 0 #ffcc00 !important;
  padding: 30px !important;
  margin-bottom: 30px !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.hero-mini-title {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.8rem !important;
}

.hero-mini-title .gradient-text {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

.welcome-greeting {
  color: #ffffff !important;
}

.hero-mini-sub {
  color: #b3b3b3 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
}

.d-h-greet {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 900 !important;
}

.d-h-sub {
  color: #b3b3b3 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
}

.d-h-badge {
  background-color: rgba(255, 204, 0, 0.1) !important;
  color: #ffcc00 !important;
  border: 2px solid #ffcc00 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
}

/* Verse of the day styles */
.verse-day-label {
  color: #ffcc00 !important;
  font-weight: 800 !important;
  font-family: 'Poppins', sans-serif !important;
}

.verse-day-en {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
}

.verse-day-pt {
  color: #b3b3b3 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
}

.verse-day-ref {
  color: #777777 !important;
  font-weight: 700 !important;
}

/* 7. Auth Screens */
.auth-bg {
  background: #000000 !important;
}

.auth-title {
  color: #ffcc00 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 900 !important;
  font-size: 2.5rem !important;
}

.auth-tagline {
  color: #b3b3b3 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
}

.auth-card-title {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
}

.auth-card-sub {
  color: #b3b3b3 !important;
}

.form-group label {
  color: #b3b3b3 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
}

.form-input {
  background-color: #121212 !important;
  border: 2px solid #262626 !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  padding: 14px 20px !important;
}

.form-input:focus {
  border-color: #ffcc00 !important;
  outline: none !important;
}

/* 8. IA Mentor Chat Styles */
.yt-chat-header {
  background-color: #121212 !important;
  border-bottom: 2px solid #262626 !important;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.yt-chat-messages {
  background-color: #000000 !important;
}

.chat-message.bot {
  align-self: flex-start;
  background-color: #121212 !important;
  color: #ffffff !important;
  border: 2px solid #262626 !important;
  border-radius: 18px !important;
  padding: 12px 18px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  max-width: 75%;
  box-shadow: 0 2px 0 #262626 !important;
}

.chat-message.user {
  align-self: flex-end;
  background-color: rgba(255, 204, 0, 0.1) !important;
  color: #ffcc00 !important;
  border: 2px solid #ffcc00 !important;
  border-radius: 18px !important;
  padding: 12px 18px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  max-width: 75%;
  box-shadow: 0 2px 0 #ffcc00 !important;
}

.chat-input-area {
  background-color: #121212 !important;
  border-top: 2px solid #262626 !important;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.chat-input-wrapper {
  background-color: #000000 !important;
  border: 2px solid #262626 !important;
  border-radius: 16px !important;
}

.chat-input {
  background-color: transparent !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
}

.chat-send-btn {
  background-color: #ffcc00 !important;
  color: #000000 !important;
  border-radius: 12px !important;
}

/* 9. PWA & Misc Fixes */
.xp-badge {
  background-color: #ffcc00 !important;
  color: #000000 !important;
  border-bottom: 4px solid #cc9900 !important;
  border-radius: 12px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
}

.user-avatar {
  background-color: #ffcc00 !important;
  color: #000000 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 900 !important;
}

.bible-select {
  background-color: #121212 !important;
  border: 2px solid #262626 !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
}

/* 10. Placement Level Test Black/Yellow overrides */
.placement-opt-btn {
  background-color: #121212 !important;
  border-color: #262626 !important;
  border-bottom-color: #262626 !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
}

.placement-opt-btn.selected {
  background-color: rgba(255, 204, 0, 0.1) !important;
  border-color: #ffcc00 !important;
  border-bottom-color: #cc9900 !important;
  color: #ffcc00 !important;
}

.placement-opt-btn.correct {
  background-color: rgba(88, 204, 2, 0.15) !important;
  border-color: #58cc02 !important;
  border-bottom-color: #46a302 !important;
  color: #58cc02 !important;
}

.placement-opt-btn.incorrect {
  background-color: rgba(255, 75, 75, 0.15) !important;
  border-color: #ff4b4b !important;
  border-bottom-color: #ea2b2b !important;
  color: #ff4b4b !important;
}

.placement-opt-btn.selected .placement-opt-letter {
  border-color: #ffcc00;
  color: #ffcc00;
}

.placement-opt-btn.correct .placement-opt-letter {
  background-color: #58cc02;
  border-color: #58cc02;
  color: #ffffff;
}

.placement-opt-btn.incorrect .placement-opt-letter {
  background-color: #ff4b4b;
  border-color: #ff4b4b;
  color: #ffffff;
}

.duo-footer-bar {
  background-color: #121212 !important;
  border-top: 2px solid #262626 !important;
}

.duo-footer-bar.correct {
  background-color: #263c12 !important;
  border-top-color: #46a302 !important;
}

.duo-footer-bar.incorrect {
  background-color: #3d1414 !important;
  border-top-color: #ea2b2b !important;
}

.duo-status-title {
  color: #ffffff !important;
}

.duo-status-title.correct {
  color: #58cc02 !important;
}

.duo-status-title.incorrect {
  color: #ff4b4b !important;
}

.duo-status-desc {
  color: #b3b3b3 !important;
}

.duo-status-desc.correct {
  color: #c9f2a0 !important;
}

.duo-status-desc.incorrect {
  color: #ffb3b3 !important;
}

.duo-bubble {
  background-color: #121212 !important;
  border: 2px solid #262626 !important;
  box-shadow: 0 4px 0 #262626 !important;
  color: #ffffff !important;
}

.duo-bubble-arrow {
  background-color: #121212 !important;
  border-left-color: #262626 !important;
  border-bottom-color: #262626 !important;
}

.duo-status-icon.correct {
  background-color: #58cc02 !important;
  color: #ffffff !important;
}

.duo-status-icon.incorrect {
  background-color: #ff4b4b !important;
  color: #ffffff !important;
}

.placement-result {
  background-color: #121212 !important;
  border: 2px solid #262626 !important;
  border-bottom-width: 4px !important;
  color: #ffffff !important;
}

.result-title {
  color: #ffffff !important;
}

.review-card.correct {
  background-color: #263c12 !important;
  border-color: #46a302 !important;
  color: #ffffff !important;
}

.review-card.incorrect {
  background-color: #3d1414 !important;
  border-color: #ea2b2b !important;
  color: #ffffff !important;
}

.review-q-text {
  color: #ffffff !important;
}

.review-choice.correct {
  background-color: rgba(88, 204, 2, 0.15) !important;
  color: #58cc02 !important;
  border-color: #58cc02 !important;
}

.review-choice.selected-incorrect {
  background-color: rgba(255, 75, 75, 0.15) !important;
  color: #ff4b4b !important;
  border-color: #ff4b4b !important;
}

.review-explanation {
  background-color: #000000 !important;
  border-color: #262626 !important;
  color: #b3b3b3 !important;
}
