:root {
  /* Dark / Neo-Brutalist Colors based on reference */
  --bg-primary: #121A16; /* Deep dark greenish-grey */
  --bg-secondary: #19241E;
  --bg-card: rgba(30, 42, 35, 0.7); /* Translucent dark card */
  --bg-card-hover: rgba(30, 42, 35, 0.9);
  --bg-elevated: #1F2D25;

  --accent-primary: #D2F54B; /* Vibrant Lime Green */
  --accent-primary-hover: #E2FF66;
  --accent-secondary: #CCA8FF; /* Soft lavender purple */
  --accent-secondary-hover: #DDBEFF;
  
  --green: #15D275;
  --green-bg: rgba(21, 210, 117, 0.15);
  --red: #FF4A5A;
  --red-bg: rgba(255, 74, 90, 0.15);
  
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-inverted: #000000;

  --border: rgba(255, 255, 255, 0.08); /* Subtle glass border */
  --border-active: var(--accent-primary);
  
  --glass-bg: rgba(25, 36, 30, 0.6);
  --glass-blur: blur(24px);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(210, 245, 75, 0.2);

  /* Typography */
  --font-display: 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --max-width: 480px;
  --max-width-desktop: 1200px;
  --nav-height: 80px;
  --nav-width-desktop: 240px;
  --safe-bottom: env(safe-area-inset-bottom, 20px);
}

[data-theme="light"] {
  --bg-primary: #F0F4F2;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-elevated: #E5EBE8;

  --accent-primary: #BCE219; /* Slightly darker lime for light mode contrast */
  --accent-primary-hover: #C9F025;
  --accent-secondary: #B982FF;
  --accent-secondary-hover: #C598FF;

  --text-primary: #121A16;
  --text-secondary: #4A5C52;
  --text-muted: #8E9F96;
  --text-inverted: #FFFFFF;

  --border: rgba(0, 0, 0, 0.06);
  --border-active: var(--accent-primary);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(188, 226, 25, 0.3);
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  height: 100%;
  width: 100%;
  overflow: hidden;
  transition: background-color 0.3s;
}

body {
  display: flex;
  justify-content: center;
  padding: 0;
}

#app {
  width: 100%;
  max-width: var(--max-width);
  height: 100%;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
  transition: max-width 0.3s;
}

/* Layout */
.screen {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 120px; /* space for pill nav */
  position: relative;
  scrollbar-width: none;
  border-radius: inherit;
  background: var(--bg-primary);
}
.screen::-webkit-scrollbar { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--text-inverted);
}
.btn:active { transform: scale(0.96); }

.btn-primary { background: var(--accent-primary); box-shadow: var(--shadow-glow); color: #000; font-weight: 700; }
.btn-secondary { background: var(--accent-secondary); color: #000; font-weight: 700; }
.btn-full { width: 100%; }

/* Inputs */
.input-group { margin-bottom: 20px; }
.input-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px; }
.input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s;
  outline: none;
}
.input:focus {
  border-color: var(--accent-secondary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(204, 168, 255, 0.1);
}
.input::placeholder { color: var(--text-muted); opacity: 0.5; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}
.icon-btn:hover { background: var(--bg-elevated); }

/* Navigation Bottom Bar (Mobile Floating Pill) */
.bottom-nav {
  position: absolute;
  bottom: var(--safe-bottom, 20px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 440px;
  height: auto;
  padding: 12px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-radius: 99px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: all 0.3s;
}

.nav-item {
  background: transparent; border: none;
  color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 50px; height: 50px;
  border-radius: 50%;
}
.nav-item svg { width: 24px; height: 24px; stroke-width: 2; transition: 0.3s; color: currentColor; }
.nav-item:hover { color: var(--text-primary); }

.nav-item.active { 
  background: var(--bg-card); 
  color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.nav-item.active svg { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(210, 245, 75, 0.3)); }

/* =========================================
   Home Screen (Dashboard)
   ========================================= */
.home-screen { padding: 0; }

.screen-header {
  padding: 24px 20px;
  padding-top: max(24px, env(safe-area-inset-top));
  background: var(--bg-primary); /* Solid to translucent */
  position: sticky;
  top: 0; z-index: 40;
}
.header-content {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.screen-label { font-size: 13px; font-weight: 600; color: var(--accent-secondary); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 4px; }
.screen-title { font-size: 32px; font-weight: 700; letter-spacing: -1px; }

.stats-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-box {
  padding: 16px; border-radius: 20px; display: flex; align-items: center; gap: 12px;
}
.stat-box.primary { background: var(--accent-primary); color: #000; }
.stat-box.secondary { background: var(--accent-secondary); color: #000; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; }
.stat-value { font-size: 20px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; font-weight: 500; opacity: 0.8; }

.blocks-container { padding: 20px; }

.block-section { margin-bottom: 40px; position: relative; }
.block-header { margin-bottom: 24px; }
.block-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-bottom: 6px; }
.block-title { font-size: 22px; font-weight: 700; }

/* Timeline Structure */
.timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 10px;
  position: relative;
}
.timeline-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 -4px;
  z-index: 1;
}
.timeline-line.completed { background: var(--accent-primary); }

.timeline-dot-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.timeline-dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 2px solid var(--border);
  color: var(--text-muted); font-size: 12px;
}
.timeline-dot.completed { background: var(--accent-primary); border-color: var(--accent-primary); color: #000; box-shadow: 0 0 10px rgba(210, 245, 75, 0.4); }
.timeline-dot.active { border-color: var(--accent-secondary); background: var(--accent-secondary); box-shadow: 0 0 10px rgba(204, 168, 255, 0.4); }
.timeline-dot-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }

/* Day Cards */
.day-cards {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}

.day-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}
.day-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
}
.day-card.completed::before { background: var(--green); }
.day-card.current { border-color: var(--accent-secondary); cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.day-card.current::before { background: var(--accent-secondary); }
.day-card.current:active { transform: scale(0.98); }
.day-card.locked { opacity: 0.5; filter: grayscale(1); }

.day-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.day-card-number { font-size: 32px; font-weight: 800; color: var(--text-muted); line-height: 1; font-family: var(--font-display); }
.day-card-tags { display: flex; gap: 6px; }

.tag { padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; text-transform: uppercase; }
.tag-accent { background: rgba(204, 168, 255, 0.15); color: var(--accent-secondary); }
.tag-locked { background: rgba(255,255,255,0.05); color: var(--text-muted); }

.day-card-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.day-card-subtitle { font-size: 14px; color: var(--text-secondary); line-height: 1.4; }

.day-card-footer { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.status-indicator { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.status-indicator.completed { color: var(--green); }
.status-indicator.active { color: var(--accent-secondary); }
.status-indicator.locked { color: var(--text-muted); }

/* =========================================
   Chat Window (Lesson)
   ========================================= */
.chat-container { display: flex; flex-direction: column; height: 100vh; background: var(--bg-primary); }

.chat-header {
  padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top));
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; z-index: 10;
}
.chat-header-info { flex: 1; }
.chat-header-title { font-size: 16px; font-weight: 700; }
.chat-header-status { font-size: 12px; color: var(--text-muted); }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth;
}

.message-wrapper { display: flex; gap: 12px; align-items: flex-end; max-width: 88%; animation: slideUp 0.3s ease; }
.message-wrapper.you { align-self: flex-end; flex-direction: row-reverse; }
.message-wrapper.coach { align-self: center; max-width: 95%; flex-direction: column; align-items: stretch; margin: 16px 0; }
.message-wrapper.her { align-self: flex-start; } /* If we want regular messages */

.msg-bubble {
  padding: 14px 18px; font-size: 15px; line-height: 1.5; position: relative; border-radius: 20px;
}
.msg-bubble.you {
  background: var(--accent-primary); color: #000; border-bottom-right-radius: 4px; font-weight: 500;
}
.msg-bubble.coach {
  background: var(--bg-card); border: 1px solid var(--accent-secondary);
  color: var(--text-primary); border-radius: 20px; box-shadow: 0 4px 20px rgba(204, 168, 255, 0.05);
}
.coach-header {
  display: flex; align-items: center; gap: 6px; color: var(--accent-secondary);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-size: 11px;
}

.chat-controls-area {
  padding: 16px 20px; padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--bg-secondary); border-top: 1px solid var(--border);
}

.chat-choices { display: flex; flex-direction: column; gap: 12px; }
.choice-btn {
  background: var(--bg-primary); border: 1px solid var(--border);
  padding: 18px; border-radius: 20px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 15px; text-align: left;
  cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: space-between;
}
.choice-btn:hover { border-color: var(--accent-secondary); background: var(--bg-card); }
.choice-btn.selected-correct { border-color: var(--green); background: var(--green-bg); color: var(--green); }
.choice-btn.selected-wrong { border-color: var(--red); background: var(--red-bg); color: var(--red); }

/* Toasts */
.toast {
  position: fixed;
  top: -100px; /* Hidden above screen initially */
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
  max-width: 90%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  top: max(20px, env(safe-area-inset-top, 20px)); /* Slide in with default value */
}

.toast.error {
  border-color: var(--red);
  background: var(--bg-elevated);
}
.toast.success {
  border-color: var(--green);
  background: var(--bg-elevated);
}

/* Auth Styles */
.auth-screen {
  height: 100vh;
  width: 100%;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
  overflow-y: auto;
}
.auth-logo-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.auth-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -1px; text-align: center; }
.auth-subtitle { color: var(--text-secondary); font-size: 15px; margin-bottom: 40px; text-align: center; max-width: 260px; line-height: 1.4; }
.auth-form { width: 100%; max-width: 360px; }
.auth-switch { margin-top: 24px; font-size: 14px; color: var(--text-muted); text-align: center; }
.auth-switch a { color: var(--accent-secondary); cursor: pointer; font-weight: 600; text-decoration: none; margin-left: 4px; }
.auth-error { 
  background: var(--red-bg); color: var(--red); padding: 12px 16px; border-radius: 12px; font-size: 13px; 
  margin-bottom: 20px; border: 1px solid rgba(255, 68, 102, 0.2); animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Animations */
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Utils */
.loading-spinner {
  width: 30px; height: 30px; border: 3px solid var(--border);
  border-top-color: var(--accent-primary); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   Desktop Responsiveness (>= 768px)
   ========================================= */
@media (min-width: 768px) {
  body {
    padding: 32px;
    align-items: flex-start;
    background: var(--bg-primary); 
    gap: 32px;
  }
  
  #app {
    max-width: var(--max-width-desktop);
    background: var(--bg-card); 
    border-radius: 40px;
    margin-left: 0;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
    min-height: calc(100vh - 64px);
  }

  /* Sidebar Navigation floating pill */
  .bottom-nav {
    position: sticky;
    top: 32px;
    order: -1;
    bottom: auto;
    left: auto;
    transform: none;
    width: 280px;
    height: auto;
    min-height: calc(100vh - 64px);
    max-width: unset;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 32px 0;
    gap: 8px;
    background: var(--bg-card); /* Match app card background */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    z-index: 2;
  }

  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 24px;
    margin: 4px 24px; /* Centered inside sidebar */
    font-size: 16px;
    font-weight: 600;
    width: auto;
    height: auto;
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  
  .nav-item::after { 
    content: attr(data-route);
    text-transform: capitalize;
    margin-left: 16px;
  }
  
  .nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
  }
  
  /* Active item - Neon Lime highlight */
  .nav-item.active {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 8px 24px rgba(210, 245, 75, 0.3);
  }
  
  .nav-item.active svg {
    color: #000;
  }
  
  .screen {
    padding-bottom: 0;
    border-radius: inherit;
  }

  /* Grid layouts */
  .day-cards {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  
  .stats-panel {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Chat Centering */
  .chat-container {
    max-width: 800px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* --- DUOLINGO STYLE LESSON UI --- */
body.in-lesson .sidebar,
body.in-lesson .mobile-nav,
body.in-lesson .bottom-nav {
    display: none !important;
}

.lesson-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.lesson-top-bar {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-primary);
}

.progress-container {
    flex: 1;
    height: 10px;
    background: transparent;
    display: flex;
    gap: 6px;
    align-items: center;
}

.progress-segment {
    flex: 1;
    height: 8px;
    background: var(--surface-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-segment.completed {
    background: var(--accent-primary);
}

.progress-segment.active {
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(210, 245, 75, 0.4);
}

.lesson-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 20px 140px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card {
    max-width: 500px;
    width: 100%;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.step-title {
    font-size: 24px;
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--text-primary);
}

.step-text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
    white-space: pre-wrap;
}

.situation-box {
    background: rgba(204, 168, 255, 0.08);
    border: 1px solid rgba(204, 168, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.situation-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-secondary);
}

.theory-block {
    background: var(--surface-light);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.theory-block.example-good { border-color: var(--accent-primary); background: rgba(210, 245, 75, 0.05); }
.theory-block.example-bad { border-color: #FF4B4B; background: rgba(255, 75, 75, 0.05); }

.block-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.choices-grid {
    display: grid;
    gap: 12px;
    width: 100%;
}

.choice-option {
    background: var(--surface-light);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 4px 0 var(--border-subtle);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.choice-index {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--bg-primary);
}

.choice-option:hover .choice-index {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.choice-option.selected .choice-index {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.choice-option:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.choice-option:active {
    transform: translateY(2px);
    box-shadow: 0 0px 0 var(--border-subtle);
}

.choice-option.selected {
    border-color: var(--accent-primary);
    background: rgba(210, 245, 75, 0.1);
    box-shadow: 0 4px 0 var(--accent-primary);
}

.lesson-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    z-index: 1050;
}

.lesson-footer .btn {
    max-width: 400px;
    width: 100%;
    height: 52px;
    font-size: 16px;
}

.result-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    padding: 20px 20px 32px 20px;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    border-radius: 24px 24px 0 0;
}

.result-panel.show {
    bottom: 0;
}

.result-panel .btn-full {
    height: 48px;
    font-size: 15px;
}

.result-panel.success { background: #A5CC28; color: #121A16; }
.result-panel.error { background: #FF4B4B; color: white; }

.result-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-explanation {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 24px;
}

