/* EnglishFlow - Resource & Info Hub Styles */

.resources-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sub-nav bar */
.resources-nav-bar {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.res-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.res-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.res-nav-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Content zones */
.section-intro {
  margin-bottom: 24px;
}

.section-intro h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.section-intro p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* --- IPA SOUNDBOARD --- */
.ipa-category-block {
  margin-bottom: 28px;
}

.ipa-cat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ipa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.ipa-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 135px;
}

.ipa-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.ipa-symbol {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.ipa-name {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 3px;
}

.ipa-example {
  font-size: 0.76rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 4px;
}

.ipa-play-hint {
  font-size: 0.68rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}

.ipa-tooltip {
  display: block;
  position: static;
  transform: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 0.66rem;
  color: #cbd5e1;
  text-align: center;
  line-height: 1.25;
  margin-top: auto;
  box-shadow: none;
  pointer-events: auto;
}

/* --- IRREGULAR VERBS --- */
.verbs-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.verbs-search-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

.verbs-search-box i {
  color: var(--text-dim);
}

.verbs-search-box input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

.table-responsive-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.irregular-verbs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.irregular-verbs-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-color);
}

.irregular-verbs-table td {
  padding: 8px 12px;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.verb-row-audio-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.verb-row-audio-btn:hover {
  background: var(--accent);
  color: white;
}

.verb-form.past {
  color: #93c5fd;
  font-weight: 600;
}

.verb-form.participle {
  color: #a7f3d0;
  font-weight: 600;
}

.verb-trans {
  color: var(--text-dim);
}

.verb-ex {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* --- GRAMMAR GUIDES ACCORDION --- */
.grammar-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.grammar-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}

.grammar-guide-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.grammar-guide-header h4 {
  font-size: 1.08rem;
  color: #ffffff;
  margin-top: 4px;
}

.grammar-guide-header i {
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.grammar-guide-card.open .grammar-guide-header i {
  transform: rotate(180deg);
  color: var(--accent);
}

.grammar-guide-content {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-color);
  animation: fadeInView 0.3s ease;
}

.grammar-guide-card.open .grammar-guide-content {
  display: block;
}

.guide-lead-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 16px 0;
  line-height: 1.4;
}

.grammar-table-wrapper {
  overflow-x: auto;
  margin-bottom: 16px;
}

.grammar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.grammar-table th, .grammar-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.grammar-table th {
  background: rgba(255, 255, 255, 0.04);
}

.grammar-alert {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fde68a;
  font-size: 0.85rem;
}

.grammar-bullets {
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.prepositions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.prep-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.prep-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.prep-in { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.prep-on { background: rgba(16, 185, 129, 0.2); color: #a7f3d0; }
.prep-at { background: rgba(245, 158, 11, 0.2); color: #fde68a; }

.prep-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 6px;
}

/* --- FAQ ACCORDION --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq-question {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: #ffffff;
}

.faq-question i {
  color: var(--accent);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
  border-top: 1px solid var(--border-color);
  margin-top: 6px;
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --- CHANGELOG & COMMUNITY --- */
.community-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(244, 63, 94, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.comm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--amber);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.comm-text h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.comm-text p {
  font-size: 0.88rem;
  color: #fde68a;
  line-height: 1.4;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 24px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-entry {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-dark);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.timeline-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.timeline-version {
  color: var(--primary);
  font-weight: 800;
}

.timeline-date {
  color: var(--text-dim);
}

.timeline-content h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-points li {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-points li i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* ==========================================================================
   ACTIVITIES & FREE TIME PRACTICE (Tareas de Tiempo Libre)
   ========================================================================== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.act-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  overflow: hidden;
  transition: var(--transition-fast);
}

.act-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.act-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.act-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.act-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.act-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.act-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Speed Verb Drill */
.speed-verb-box {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.verb-prompt {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.verb-target {
  font-size: 1.5rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.verb-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.verb-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.verb-opt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.verb-opt-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

.verb-opt-btn.correct {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
}

.verb-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
}

.act-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Dictation Box */
.dictation-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dict-play-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.dict-play-btn:hover {
  background: #4f46e5;
}

.dict-hint-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
}

.dict-input-wrap {
  display: flex;
  gap: 10px;
}

.dict-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.9rem;
}

.dict-input:focus {
  outline: none;
  border-color: var(--primary);
}

.dict-check-btn {
  background: #10b981;
  border: none;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.dict-feedback {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  display: none;
}

.dict-feedback.active {
  display: block;
}

/* Shadowing List */
.shadowing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shadow-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shadow-text {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
}

.shadow-trans {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.shadow-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shadow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.shadow-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.shadow-btn.recording {
  background: #ef4444 !important;
  animation: pulse-ring 1.2s infinite;
}

/* Micro challenges list */
.micro-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.micro-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.micro-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.micro-item.done {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.micro-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.micro-item.done .micro-check {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.micro-info {
  flex: 1;
}

.micro-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.micro-item.done .micro-title {
  text-decoration: line-through;
  color: var(--text-dim);
}

.micro-xp {
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 700;
}

/* ==========================================================================
   STUDY PLANS & TEACHER'S PEDAGOGICAL GUIDES (15m, 30m, 60m)
   ========================================================================== */

.study-plans-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Header & Level Selector */
.plans-main-header {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.plans-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  width: fit-content;
}

.plans-header-text h2 {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  margin: 10px 0 8px 0;
  letter-spacing: -0.5px;
}

.plans-header-text p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 850px;
  margin: 0;
}

/* Level Selector Pills */
.plans-level-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.plan-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.plan-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.plan-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.plan-tab-info strong {
  display: block;
  font-size: 0.98rem;
  color: #ffffff;
  font-weight: 700;
}

.plan-tab-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.plan-tab-btn.basic-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.plan-tab-btn.medium-active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.plan-tab-btn.intense-active {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Plan Hero Card & Teacher Advice */
.plan-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.plan-level-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plan-duration-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plan-hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.plan-hero-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.teacher-advice-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.teacher-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.teacher-quote-content strong {
  display: block;
  font-size: 0.88rem;
  color: #60a5fa;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.teacher-quote-content p {
  font-size: 0.92rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 0;
}

/* Sections & Titles */
.plan-section-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-section-title i {
  font-size: 1.4rem;
}

.plan-section-title h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.plan-section-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: -6px 0 4px 0;
  line-height: 1.4;
}

/* Study Timer Widget */
.study-timer-container {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.timer-display-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.timer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.timer-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-current-block {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.timer-countdown {
  font-family: 'Fira Code', monospace;
  font-size: 3.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
  line-height: 1;
  margin: 4px 0;
}

.timer-progress-track {
  width: 100%;
  max-width: 480px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.timer-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.timer-controls {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.btn-timer-primary {
  border: none;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, opacity 0.2s;
}

.btn-timer-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-timer-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-timer-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Routine Blocks Grid */
.routine-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.routine-block-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.routine-block-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.block-time-badge {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.block-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-card-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.block-icon {
  font-size: 1.2rem;
}

.block-activity {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.block-tip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.35;
}

.block-tip i {
  color: #fbbf24;
  margin-top: 2px;
}

.btn-start-block {
  background: transparent;
  border: 1px solid;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  transition: all 0.2s;
}

.btn-start-block:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* Clean Week Isolation Tabs in Resources Study Plans */
.plans-weeks-tab-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0 24px 0;
}

.plan-week-selector-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  outline: none;
}

.plan-week-selector-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-week-selector-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.pws-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-week-selector-btn.active .pws-num {
  color: #60a5fa;
}

.pws-done-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 4-Week Timeline (Filtered to Active Week) */
.weeks-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 10px;
}

.week-timeline-item {
  display: flex;
  gap: 20px;
  position: relative;
}

.week-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  margin-top: 6px;
}

.week-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  flex: 1;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.week-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.week-badge {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 6px;
}

.week-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.week-meta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.week-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.week-detail-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week-detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.week-detail-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Patterns with Audio */
.week-patterns-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pattern-audio-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.pattern-audio-card:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
}

.pattern-card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.pattern-type-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pattern-english {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.pattern-spanish {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

.btn-play-pattern {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-play-pattern:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: scale(1.05);
}

.btn-play-pattern.playing-pulse {
  animation: pulse-ring 1s infinite;
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Phonetic & Production Boxes */
.week-phonetic-box {
  background: rgba(244, 114, 182, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #fbcfe8;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.week-phonetic-box i {
  color: #f472b6;
  font-size: 1.1rem;
}

.week-production-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.week-production-box i {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-top: 2px;
}

.week-production-box strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 3px;
}

.week-production-box p {
  font-size: 0.88rem;
  color: #fef3c7;
  line-height: 1.45;
  margin: 0;
}

/* External Resource Chips */
.week-resources-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-chip-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 9px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.resource-chip-btn i.fa-globe {
  color: #38bdf8;
}

.resource-chip-btn .chip-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.5;
  transition: transform 0.2s;
}

.resource-chip-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
  transform: translateX(3px);
}

.resource-chip-btn:hover .chip-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .timer-countdown {
    font-size: 2.5rem;
  }
  .week-timeline-item {
    flex-direction: column;
    gap: 10px;
  }
  .week-marker {
    align-self: flex-start;
  }
}

/* ==========================================================================
   BLOCK STUDY MATERIAL MODAL & INTERACTIVE CARDS
   ========================================================================== */
.block-modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.block-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.modal-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.modal-block-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.block-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.block-objective-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.obj-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.obj-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.45;
  margin: 0 0 8px 0;
}

.obj-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.block-material-unit {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.material-unit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.material-unit-badge.input-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.material-unit-badge.structure-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.material-unit-badge.oral-badge {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.material-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

/* Audio Drill Cards */
.material-audio-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-drill-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.drill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.drill-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.drill-audio-controls {
  display: flex;
  gap: 6px;
}

.btn-drill-audio {
  background: var(--primary);
  color: #022c22;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.btn-drill-audio.slow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-drill-audio:hover {
  transform: scale(1.04);
}

.drill-phrase-en {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.drill-trans-toggle-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-toggle-trans {
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 0;
}

.drill-phrase-es {
  font-size: 0.85rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  animation: fadeIn 0.2s ease;
}

/* Listening Check Box */
.listening-check-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.listening-check-box h4 {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.listening-check-box p {
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.check-options-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.check-opt-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.check-opt-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.check-feedback {
  display: none;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Formula Breakdown Card */
.formula-breakdown-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.formula-breakdown-card h4 {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.formula-chips-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.formula-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.formula-chip .chip-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.formula-chip strong {
  font-size: 0.86rem;
  color: var(--text-main);
}

.formula-chip-sign {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.grammar-rule-detail-card {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.rule-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #93c5fd;
  margin-bottom: 6px;
}

.rule-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.45;
  margin: 0;
}

.pitfalls-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.pitfalls-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #fbbf24;
  margin-bottom: 8px;
}

.pitfall-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.pitfall-wrong {
  color: #f87171;
}

.pitfall-arrow {
  color: var(--text-dim);
}

.pitfall-correct {
  color: #34d399;
}

/* Shadowing Steps */
.shadowing-steps-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.oral-practice-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.target-phrase-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

.target-phrase-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.oral-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.block-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

/* --- WEEK TIMELINE ACTIONS & STATUS INDICATORS --- */
.week-footer-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.week-status-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.week-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.week-status-chip.chip-pending {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.week-status-chip.chip-done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-open-week-modal {
  padding: 9px 18px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
}

.btn-open-week-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* --- WEEK DIDACTIC CENTER MODAL (#weekStudyModal) --- */
.week-modal-container {
  width: 95%;
  max-width: 940px;
  max-height: 92vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

.week-modal-header {
  padding: 18px 24px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.week-modal-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week-modal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

.week-modal-h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.week-modal-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Week Selector Tabs (Fixed 4-Grid / Smooth Horizontal Flow) */
.week-modal-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.week-nav-tab {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.week-nav-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
  border-color: rgba(59, 130, 246, 0.4);
}

.week-nav-tab.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.tab-completed-icon {
  color: #10b981;
  font-size: 0.85rem;
}

/* Subtabs bar (Clean Sticky Row) */
.week-subtabs-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 8px 24px 0;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.week-subtabs-bar::-webkit-scrollbar {
  display: none;
}

.week-subtab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.week-subtab-btn:hover {
  color: #f1f5f9;
}

.week-subtab-btn.active {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
}

.check-mini {
  color: #10b981;
  font-size: 0.75rem;
}

/* Modal Body */
.week-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.week-tab-content {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.week-tab-content.active {
  display: block;
}

/* --- TAB 1: VIDEO & TRANSCRIPT --- */
.video-lesson-wrapper {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* Video Direct Actions & Embed Fallbacks */
.video-direct-fallback-card {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-fallback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.video-provider-badge {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-provider-badge strong {
  color: #f8fafc;
}

.video-fallback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-open-external-video {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-yt-direct {
  background: #ef4444;
  color: #ffffff;
  border: 1px solid #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-yt-direct:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5);
  color: #ffffff;
}

.btn-yt-search {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-yt-search:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.video-embed-fallback-notice {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.video-study-guide-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 6px;
}

.study-guide-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.study-guide-checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.study-guide-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.study-guide-checklist li i {
  margin-top: 3px;
  flex-shrink: 0;
}

.study-guide-checklist strong {
  color: #f8fafc;
  display: inline-block;
  margin-right: 4px;
}

.responsive-video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000000;
}

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

.video-lesson-meta {
  padding: 16px 20px;
}

.video-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.video-meta-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-duration-pill {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.video-key-points strong {
  font-size: 0.86rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 6px;
}

.video-key-points ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-key-points li {
  font-size: 0.88rem;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Bilingual Transcript */
.bilingual-transcript-wrapper {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

.transcript-header h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transcript-header p {
  margin: 0 0 16px 0;
  font-size: 0.86rem;
  color: #94a3b8;
}

.transcript-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transcript-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.2s;
}

.transcript-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

.speaker-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.speaker-profesor, .speaker-teacher, .speaker-tutor {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.speaker-estudiante, .speaker-student, .speaker-alex, .speaker-maria {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.transcript-content {
  flex: 1;
}

.transcript-en {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
}

.transcript-es {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 4px;
  font-style: italic;
}

.transcript-controls {
  display: flex;
  gap: 6px;
}

.btn-transcript-audio {
  padding: 6px 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-transcript-audio:hover {
  background: rgba(59, 130, 246, 0.3);
}

.btn-transcript-audio.slow {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.btn-transcript-audio.slow:hover {
  background: rgba(245, 158, 11, 0.25);
}

.btn-transcript-toggle {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-transcript-toggle:hover, .btn-transcript-toggle.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* --- TAB 2: FONÉTICA & ARTICULACIÓN --- */
.phonetics-deep-guide {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.phonetics-hero-card {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 12px;
  padding: 22px;
}

.phonetics-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f472b6;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.phonetics-focus-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 16px 0;
  font-family: monospace, sans-serif;
}

.mouth-placement-box {
  display: flex;
  gap: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.placement-icon {
  font-size: 1.5rem;
  color: #f472b6;
}

.placement-text strong {
  display: block;
  font-size: 0.88rem;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.placement-text p {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.contrast-spanish-box {
  display: flex;
  gap: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
}

.contrast-spanish-box strong {
  display: block;
  font-size: 0.86rem;
  color: #fbbf24;
  margin-bottom: 2px;
}

.contrast-spanish-box p {
  margin: 0;
  font-size: 0.84rem;
  color: #fde68a;
  line-height: 1.4;
}

.drill-words-section h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drill-words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.drill-word-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.drill-word-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 114, 182, 0.4);
}

.drill-word-en {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.drill-word-ipa {
  font-family: monospace;
  font-size: 0.95rem;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.drill-word-tip {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 2px 0 6px;
}

.drill-word-btns {
  display: flex;
  gap: 6px;
  width: 100%;
}

.btn-drill-speak {
  flex: 1;
  padding: 6px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-drill-speak.slow {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* --- TAB 3: APUNTES MANUSCRITOS & FOTO UPLOAD --- */
.handwriting-task-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.handwriting-intro-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

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

.handwriting-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.handwriting-header h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.handwriting-sub {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.handwriting-prompt-box {
  background: rgba(15, 23, 42, 0.6);
  border-left: 4px solid #10b981;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.handwriting-prompt-box strong {
  display: block;
  color: #34d399;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.handwriting-prompt-box p {
  margin: 0;
  font-size: 0.88rem;
  color: #f1f5f9;
  line-height: 1.5;
}

.handwriting-checklist strong {
  display: block;
  font-size: 0.86rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.handwriting-checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.handwriting-checklist li {
  font-size: 0.85rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.handwriting-checklist li i {
  color: #10b981;
}

/* Notebook upload dropzone */
.notebook-upload-zone {
  background: rgba(15, 23, 42, 0.5);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.notebook-upload-zone:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.upload-dropzone-inner {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dropzone-icon {
  font-size: 2.2rem;
  color: #60a5fa;
  margin-bottom: 4px;
}

.upload-dropzone-inner h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.upload-dropzone-inner p {
  margin: 0 0 8px 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.btn-choose-file {
  padding: 10px 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-choose-file:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* Uploaded note preview */
.uploaded-note-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

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

.preview-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.preview-timestamp {
  font-size: 0.76rem;
  color: #94a3b8;
}

.preview-img-wrapper {
  max-width: 320px;
  max-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.notebook-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-actions {
  display: flex;
  gap: 10px;
}

.btn-reupload-note {
  padding: 7px 14px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-delete-note {
  padding: 7px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- TAB 4: CLOSING VALIDATION QUIZ --- */
.closing-quiz-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-header-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

.quiz-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.quiz-meta-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #60a5fa;
  text-transform: uppercase;
}

.quiz-status-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

.quiz-status-pill.passed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.quiz-status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.quiz-header-card h4 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.quiz-header-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.4;
}

.closing-quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resource-quiz-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
}

.quiz-q-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.quiz-q-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.quiz-options-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.quiz-option-label:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-option-label input[type="radio"] {
  accent-color: #3b82f6;
  width: 16px;
  height: 16px;
}

.quiz-option-label.opt-correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
}

.quiz-option-label.opt-wrong {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
}

.quiz-q-explanation {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.quiz-q-explanation.correct {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.quiz-q-explanation.wrong {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.quiz-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.btn-submit-closing-quiz {
  padding: 12px 28px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
}

.btn-submit-closing-quiz:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.45);
}

.quiz-result-summary {
  width: 100%;
  padding: 16px 20px;
  border-radius: 10px;
  text-align: center;
}

.quiz-result-summary.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.quiz-result-summary.retry {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.result-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.quiz-result-summary p {
  margin: 0;
  font-size: 0.88rem;
  color: #e2e8f0;
}

/* Modal Footer */
.week-modal-footer {
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.week-completion-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
}

.status-indicator-dot.dot-completed {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* ==========================================================================
   NAVIGATION & CLOSE BUTTONS FOR MODALS (PREVENTS TRAP STATES)
   ========================================================================== */
.modal-sticky-nav-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.btn-back-to-resources {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-back-to-resources:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.5);
  transform: translateX(-2px);
}

/* ==========================================================================
   WEEKLY FULL STUDY GUIDE COMPONENT STYLES
   ========================================================================== */
.weekly-full-guide-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 20px;
}

.guide-hero-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.guide-hero-title {
  margin: 0 0 8px 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-hero-desc {
  margin: 0 0 18px 0;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
}

.guide-quick-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-quick-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.guide-quick-nav-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #60a5fa;
}

.guide-section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-theory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.guide-rule-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

/* Tarjeta 1: Regla Gramatical */
.rule-statement-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
}

.guide-rule-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.guide-rule-pill {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.guide-rule-header h4 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.guide-rule-text {
  margin: 0;
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Tarjeta 2: Fórmula Sintáctica */
.guide-formula-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
  border: 1px dashed rgba(59, 130, 246, 0.45);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.formula-tag {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #38bdf8;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.formula-badge-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.formula-syntax {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.02rem;
  color: #fbbf24;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  overflow-x: auto;
}

/* Real everyday example accompanying syntax formula */
.formula-real-example-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.formula-real-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #34d399;
  font-weight: 700;
  text-transform: uppercase;
}

.formula-real-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.formula-en-quote {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.formula-es-quote {
  font-size: 0.86rem;
  color: #94a3b8;
  font-style: italic;
}

.formula-note-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: #fde68a;
  line-height: 1.4;
  margin-top: 4px;
}

.formula-note-box i {
  margin-top: 2px;
  flex-shrink: 0;
}

.guide-tip-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #fde68a;
}

/* Tarjeta 3: Ejemplos de Aplicación Bilingüe */
.guide-examples-container {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.examples-heading-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.guide-examples-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-example-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.guide-example-item:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(59, 130, 246, 0.3);
}

.example-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.example-en {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.example-es {
  font-size: 0.86rem;
  color: #94a3b8;
}

.example-note {
  font-size: 0.78rem;
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.btn-play-guide-audio {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  outline: none;
}

.btn-play-guide-audio:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: scale(1.08);
}

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

/* Modern Vocab Cards with Micro-Interactions */
.guide-vocab-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.guide-vocab-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.vocab-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.vocab-category-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.vocab-word-en {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

/* Phonetic IPA Soft Pill Badge */
.vocab-word-ipa {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #10B981 !important;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.vocab-word-es {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
}

.vocab-example-box {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid #10b981;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vocab-ex-en {
  font-size: 0.86rem;
  color: #f1f5f9;
  font-style: italic;
}

.vocab-ex-es {
  font-size: 0.8rem;
  color: #94a3b8;
}

.vocab-audio-controls {
  display: flex;
  gap: 6px;
}

.btn-vocab-speak {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-vocab-speak:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #60a5fa;
  transform: translateY(-1px);
}

.btn-vocab-speak.slow {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.btn-vocab-speak.slow:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

/* Audio Pulse Animation */
.playing-pulse,
.btn-vocab-speak.playing-pulse,
.btn-play-guide-audio.playing-pulse,
.btn-play-pattern.playing-pulse {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6) !important;
  animation: audioPulseAnim 0.8s infinite alternate !important;
  transform: scale(1.05) !important;
}

@keyframes audioPulseAnim {
  0% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.3); }
  100% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.8); }
}


/* ==========================================================================
   SECCIÓN 4: PRÁCTICA VISUAL Y REDES (TIEMPO LIBRE) - MULTIMEDIA IMMERSION
   ========================================================================== */
.social-immersion-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.social-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.social-platform-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.social-platform-badge.yt {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.social-platform-badge.tt {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.social-tag-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-header-title h4 {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.social-header-title p {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.45;
}

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

.social-media-item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}

.social-media-item:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.social-type-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.social-type-pill.tip {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.social-type-pill.grammar {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.social-type-pill.idiom {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.social-duration-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

.social-item-body h5 {
  margin: 0 0 6px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}

.social-item-body p {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
}

.btn-open-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-open-social-link.yt-link {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-open-social-link.yt-link:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

.btn-open-social-link.tt-link {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
}

.btn-open-social-link.tt-link:hover {
  background: #ec4899;
  color: #ffffff;
  border-color: #ec4899;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.5);
}

.social-card-tip-footer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.social-card-tip-footer i {
  color: #f59e0b;
}

.btn-mini-audio {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-mini-audio:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: scale(1.08);
}

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

.guide-vocab-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}

.guide-vocab-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.vocab-top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vocab-word-term {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.vocab-phonetic-badge {
  font-family: monospace;
  font-size: 0.82rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

.vocab-translation {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}

.vocab-sample-en {
  font-size: 0.84rem;
  color: #e2e8f0;
  border-left: 2px solid #3b82f6;
  padding-left: 8px;
  margin: 0;
}

.reading-passage-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.passage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.passage-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #f1f5f9;
}

.passage-controls {
  display: flex;
  gap: 10px;
}

.btn-toggle-es-passage {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-toggle-es-passage:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.passage-en-content {
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.65;
  margin: 0;
}

.passage-es-content {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.passage-quiz-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 18px;
}

.passage-quiz-box h5 {
  margin: 0 0 10px 0;
  font-size: 0.92rem;
  color: #ffffff;
}

.passage-quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.passage-quiz-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.passage-quiz-btn:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: #3b82f6;
  color: #ffffff;
}

.sentence-builder-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.builder-instructions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #38bdf8;
  font-weight: 700;
}

.builder-prompt-es {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.builder-tray {
  min-height: 52px;
  background: rgba(15, 23, 42, 0.85);
  border: 2px dashed rgba(59, 130, 246, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.builder-placeholder {
  color: #64748b;
  font-size: 0.85rem;
  font-style: italic;
}

.builder-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.builder-chip {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.builder-chip:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
}

.builder-chip.placed {
  background: #2563eb;
  color: #ffffff;
  border-color: #60a5fa;
}

.builder-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-check-builder {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-check-builder:hover {
  background: #059669;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-reset-builder {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.builder-feedback {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
}

.builder-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.builder-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   LIGHT MODE CONTRAST & LEGIBILITY OVERRIDES ([data-theme="light"])
   Garantiza contraste óptimo y elimina letras blancas sobre fondos claros
   ========================================================================== */
/* ==========================================================================
   LIGHT MODE CONTRAST & LEGIBILITY OVERRIDES (body.light-theme & [data-theme="light"])
   Garantiza contraste óptimo y elimina letras blancas sobre fondos claros
   ========================================================================== */
body.light-theme .modal-sticky-nav-bar,
[data-theme="light"] .modal-sticky-nav-bar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .btn-back-to-resources,
[data-theme="light"] .btn-back-to-resources {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e40af !important;
}

body.light-theme .btn-back-to-resources:hover,
[data-theme="light"] .btn-back-to-resources:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

/* Headings and primary text */
body.light-theme .section-intro h3,
body.light-theme .ipa-cat-title,
body.light-theme .guide-hero-title,
body.light-theme .guide-section-title,
body.light-theme .week-modal-h3,
body.light-theme .modal-block-title,
body.light-theme .drill-words-section h4,
body.light-theme .drill-word-en,
body.light-theme .vocab-word-term,
body.light-theme .vocab-word-en,
body.light-theme .passage-header h4,
body.light-theme .passage-en-content,
body.light-theme .guide-rule-header h4,
body.light-theme .example-en,
body.light-theme .target-phrase-text,
body.light-theme .listening-check-box h4,
body.light-theme .irregular-verbs-table td,
body.light-theme .irregular-verbs-table th,
body.light-theme .plan-hero-title,
body.light-theme .week-title,
body.light-theme .routine-block-card h4,
body.light-theme .pattern-english,
body.light-theme .timer-countdown,
body.light-theme .exercise-title,
body.light-theme .passage-en,
body.light-theme .formula-en-quote,
body.light-theme .vocab-ex-en,
[data-theme="light"] .section-intro h3,
[data-theme="light"] .ipa-cat-title,
[data-theme="light"] .guide-hero-title,
[data-theme="light"] .guide-section-title,
[data-theme="light"] .week-modal-h3,
[data-theme="light"] .modal-block-title,
[data-theme="light"] .drill-words-section h4,
[data-theme="light"] .drill-word-en,
[data-theme="light"] .vocab-word-term,
[data-theme="light"] .vocab-word-en,
[data-theme="light"] .passage-header h4,
[data-theme="light"] .passage-en-content,
[data-theme="light"] .guide-rule-header h4,
[data-theme="light"] .example-en,
[data-theme="light"] .target-phrase-text,
[data-theme="light"] .listening-check-box h4,
[data-theme="light"] .irregular-verbs-table td,
[data-theme="light"] .irregular-verbs-table th,
[data-theme="light"] .plan-hero-title,
[data-theme="light"] .week-title,
[data-theme="light"] .routine-block-card h4,
[data-theme="light"] .pattern-english,
[data-theme="light"] .timer-countdown,
[data-theme="light"] .exercise-title,
[data-theme="light"] .passage-en,
[data-theme="light"] .formula-en-quote,
[data-theme="light"] .vocab-ex-en {
  color: #0f172a !important;
}

/* Secondary & descriptive text */
body.light-theme .section-intro p,
body.light-theme .guide-hero-desc,
body.light-theme .guide-hero-objective,
body.light-theme .guide-rule-desc,
body.light-theme .example-es,
body.light-theme .vocab-translation,
body.light-theme .vocab-word-es,
body.light-theme .vocab-ex-es,
body.light-theme .passage-es-content,
body.light-theme .week-modal-meta,
body.light-theme .obj-text,
body.light-theme .rule-text,
body.light-theme .transcript-es,
body.light-theme .drill-word-tip,
body.light-theme .builder-prompt-es,
body.light-theme .week-completion-status,
body.light-theme .plan-hero-desc,
body.light-theme .plan-section-subtitle,
body.light-theme .block-activity,
body.light-theme .week-detail-content p,
body.light-theme .pattern-spanish,
body.light-theme .timer-current-block,
body.light-theme .passage-es,
body.light-theme .formula-es-quote,
[data-theme="light"] .section-intro p,
[data-theme="light"] .guide-hero-desc,
[data-theme="light"] .guide-hero-objective,
[data-theme="light"] .guide-rule-desc,
[data-theme="light"] .example-es,
[data-theme="light"] .vocab-translation,
[data-theme="light"] .vocab-word-es,
[data-theme="light"] .vocab-ex-es,
[data-theme="light"] .passage-es-content,
[data-theme="light"] .week-modal-meta,
[data-theme="light"] .obj-text,
[data-theme="light"] .rule-text,
[data-theme="light"] .transcript-es,
[data-theme="light"] .drill-word-tip,
[data-theme="light"] .builder-prompt-es,
[data-theme="light"] .week-completion-status,
[data-theme="light"] .plan-hero-desc,
[data-theme="light"] .plan-section-subtitle,
[data-theme="light"] .block-activity,
[data-theme="light"] .week-detail-content p,
[data-theme="light"] .pattern-spanish,
[data-theme="light"] .timer-current-block,
[data-theme="light"] .passage-es,
[data-theme="light"] .formula-es-quote {
  color: #334155 !important;
}

body.light-theme .transcript-en,
[data-theme="light"] .transcript-en {
  color: #0f172a !important;
}

body.light-theme .week-modal-container,
body.light-theme .block-modal-container,
[data-theme="light"] .week-modal-container,
[data-theme="light"] .block-modal-container {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.light-theme .week-modal-header,
body.light-theme .block-modal-header,
[data-theme="light"] .week-modal-header,
[data-theme="light"] .block-modal-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .week-modal-nav,
body.light-theme .week-subtabs-bar,
[data-theme="light"] .week-modal-nav,
[data-theme="light"] .week-subtabs-bar {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .week-nav-tab,
[data-theme="light"] .week-nav-tab {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

body.light-theme .week-nav-tab.active,
[data-theme="light"] .week-nav-tab.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

body.light-theme .week-subtab-btn,
[data-theme="light"] .week-subtab-btn {
  color: #475569 !important;
}

body.light-theme .week-subtab-btn.active,
[data-theme="light"] .week-subtab-btn.active {
  color: #2563eb !important;
  border-bottom-color: #2563eb !important;
}

body.light-theme .guide-hero-banner,
[data-theme="light"] .guide-hero-banner {
  background: linear-gradient(135deg, #f8fafc, #edf2f7) !important;
  border: 1px solid #cbd5e1 !important;
}

body.light-theme .guide-rule-card,
body.light-theme .guide-vocab-card,
body.light-theme .reading-passage-box,
body.light-theme .sentence-builder-card,
body.light-theme .drill-word-card,
body.light-theme .transcript-card,
body.light-theme .audio-drill-card,
body.light-theme .oral-practice-card,
body.light-theme .plan-hero-card,
body.light-theme .routine-block-card,
body.light-theme .week-card,
body.light-theme .timer-display-card,
[data-theme="light"] .guide-rule-card,
[data-theme="light"] .guide-vocab-card,
[data-theme="light"] .reading-passage-box,
[data-theme="light"] .sentence-builder-card,
[data-theme="light"] .drill-word-card,
[data-theme="light"] .transcript-card,
[data-theme="light"] .audio-drill-card,
[data-theme="light"] .oral-practice-card,
[data-theme="light"] .plan-hero-card,
[data-theme="light"] .routine-block-card,
[data-theme="light"] .week-card,
[data-theme="light"] .timer-display-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .example-item-row,
body.light-theme .pattern-audio-card,
[data-theme="light"] .example-item-row,
[data-theme="light"] .pattern-audio-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* Formula Syntax & Practical Note in Light Theme */
body.light-theme .guide-formula-box,
[data-theme="light"] .guide-formula-box {
  background: #eff6ff !important;
  border: 1px solid #93c5fd !important;
}

body.light-theme .formula-syntax,
[data-theme="light"] .formula-syntax {
  background: #ffffff !important;
  color: #b45309 !important;
  border: 1px solid #cbd5e1 !important;
}

body.light-theme .formula-real-example-box,
[data-theme="light"] .formula-real-example-box {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
}

body.light-theme .formula-note-box,
[data-theme="light"] .formula-note-box {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
}

body.light-theme .formula-note-box span,
[data-theme="light"] .formula-note-box span {
  color: #92400e !important;
}

body.light-theme .guide-tip-box,
[data-theme="light"] .guide-tip-box {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
}

body.light-theme .guide-tip-box span,
[data-theme="light"] .guide-tip-box span {
  color: #92400e !important;
}

/* Vocab Cards & IPA Badges in Light Theme */
body.light-theme .vocab-word-ipa,
[data-theme="light"] .vocab-word-ipa {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
}

body.light-theme .btn-vocab-speak,
[data-theme="light"] .btn-vocab-speak {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

body.light-theme .btn-vocab-speak:hover,
[data-theme="light"] .btn-vocab-speak:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

body.light-theme .btn-play-guide-audio,
body.light-theme .btn-play-pattern,
[data-theme="light"] .btn-play-guide-audio,
[data-theme="light"] .btn-play-pattern {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #2563eb !important;
}

body.light-theme .btn-play-guide-audio:hover,
body.light-theme .btn-play-pattern:hover,
[data-theme="light"] .btn-play-guide-audio:hover,
[data-theme="light"] .btn-play-pattern:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Study Plans Navigation & Blocks in Light Theme */
body.light-theme .plans-weeks-tab-bar,
[data-theme="light"] .plans-weeks-tab-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .plan-week-selector-btn,
[data-theme="light"] .plan-week-selector-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.light-theme .plan-week-selector-btn.active,
[data-theme="light"] .plan-week-selector-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

body.light-theme .plan-tab-btn,
[data-theme="light"] .plan-tab-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

body.light-theme .plan-tab-info strong,
[data-theme="light"] .plan-tab-info strong {
  color: #0f172a !important;
}

body.light-theme .plan-tab-info span,
[data-theme="light"] .plan-tab-info span {
  color: #64748b !important;
}

body.light-theme .teacher-advice-box,
[data-theme="light"] .teacher-advice-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .teacher-quote-content strong,
[data-theme="light"] .teacher-quote-content strong {
  color: #0f172a !important;
}

body.light-theme .teacher-quote-content p,
[data-theme="light"] .teacher-quote-content p {
  color: #334155 !important;
}

body.light-theme .block-tip,
[data-theme="light"] .block-tip {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
}

body.light-theme .block-tip span,
[data-theme="light"] .block-tip span {
  color: #92400e !important;
}

body.light-theme .study-timer-container,
[data-theme="light"] .study-timer-container {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .btn-timer-secondary,
[data-theme="light"] .btn-timer-secondary {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.light-theme .guide-quick-nav-btn,
[data-theme="light"] .guide-quick-nav-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.light-theme .builder-tray,
[data-theme="light"] .builder-tray {
  background: #f8fafc !important;
  border-color: #93c5fd !important;
}

body.light-theme .builder-prompt-es,
[data-theme="light"] .builder-prompt-es {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .builder-chip,
[data-theme="light"] .builder-chip {
  background: #e0f2fe !important;
  border: 1px solid #7dd3fc !important;
  color: #0369a1 !important;
}

body.light-theme .builder-chip.placed,
[data-theme="light"] .builder-chip.placed {
  background: #0284c7 !important;
  color: #ffffff !important;
}

body.light-theme .vocab-sample-en,
[data-theme="light"] .vocab-sample-en {
  color: #1e293b !important;
}

body.light-theme .passage-quiz-box,
[data-theme="light"] .passage-quiz-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .passage-quiz-btn,
[data-theme="light"] .passage-quiz-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

/* Video Fallback & Study Guide Light Mode Overrides */
body.light-theme .video-direct-fallback-card,
[data-theme="light"] .video-direct-fallback-card {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .video-provider-badge,
[data-theme="light"] .video-provider-badge {
  color: #334155 !important;
}

body.light-theme .video-provider-badge strong,
[data-theme="light"] .video-provider-badge strong {
  color: #0f172a !important;
}

body.light-theme .btn-yt-search,
[data-theme="light"] .btn-yt-search {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

body.light-theme .btn-yt-search:hover,
[data-theme="light"] .btn-yt-search:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.light-theme .video-embed-fallback-notice,
[data-theme="light"] .video-embed-fallback-notice {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e40af !important;
}

body.light-theme .video-study-guide-box,
[data-theme="light"] .video-study-guide-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .study-guide-title,
[data-theme="light"] .study-guide-title {
  color: #0284c7 !important;
}

body.light-theme .study-guide-checklist li,
[data-theme="light"] .study-guide-checklist li {
  color: #334155 !important;
}

body.light-theme .study-guide-checklist strong,
[data-theme="light"] .study-guide-checklist strong {
  color: #0f172a !important;
}

body.light-theme .week-modal-footer,
body.light-theme .block-modal-footer,
[data-theme="light"] .week-modal-footer,
[data-theme="light"] .block-modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

body.light-theme .res-nav-btn,
[data-theme="light"] .res-nav-btn {
  color: #475569 !important;
}

body.light-theme .res-nav-btn.active,
[data-theme="light"] .res-nav-btn.active {
  color: #ffffff !important;
}

body.light-theme .ipa-card,
[data-theme="light"] .ipa-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .ipa-symbol,
[data-theme="light"] .ipa-symbol {
  color: #0f172a !important;
}

body.light-theme .ipa-word,
[data-theme="light"] .ipa-word {
  color: #334155 !important;
}

body.light-theme .verbs-search-box,
[data-theme="light"] .verbs-search-box {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

body.light-theme .verbs-search-box input,
[data-theme="light"] .verbs-search-box input {
  color: #0f172a !important;
}

body.light-theme .rule-statement-box,
body.light-theme .guide-examples-container,
body.light-theme .guide-example-item,
body.light-theme .social-immersion-card,
body.light-theme .social-media-item,
[data-theme="light"] .rule-statement-box,
[data-theme="light"] .guide-examples-container,
[data-theme="light"] .guide-example-item,
[data-theme="light"] .social-immersion-card,
[data-theme="light"] .social-media-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .guide-rule-header h4,
body.light-theme .social-header-title h4,
body.light-theme .social-item-body h5,
body.light-theme .examples-heading-row,
[data-theme="light"] .guide-rule-header h4,
[data-theme="light"] .social-header-title h4,
[data-theme="light"] .social-item-body h5,
[data-theme="light"] .examples-heading-row {
  color: #0f172a !important;
}

body.light-theme .guide-rule-text,
body.light-theme .social-header-title p,
body.light-theme .social-item-body p,
body.light-theme .social-card-tip-footer,
[data-theme="light"] .guide-rule-text,
[data-theme="light"] .social-header-title p,
[data-theme="light"] .social-item-body p,
[data-theme="light"] .social-card-tip-footer {
  color: #334155 !important;
}

body.light-theme .social-card-tip-footer,
[data-theme="light"] .social-card-tip-footer {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* ==========================================================================
   INTERACTIVE SYNTAX HINTS & SOCIAL GUIDED MISSIONS
   ========================================================================== */
.btn-show-syntax-hint {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.btn-show-syntax-hint:hover {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

.builder-syntax-hint-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.25s ease-out;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hint-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #60a5fa;
}

.hint-box-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0;
}

.hint-box-link-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin-top: 4px;
  text-decoration: underline;
  width: fit-content;
}

.hint-box-link-btn:hover {
  color: #93c5fd;
}

/* Guided missions for multimedia cards */
.social-mission-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #f87171;
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.mission-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.mission-row.observe {
  color: #cbd5e1;
}

.mission-row.active-task {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.08);
  padding: 6px 8px;
  border-radius: 6px;
}

.mission-row i {
  margin-top: 2px;
  flex-shrink: 0;
}

/* Touch targets optimization for mobile screens */
@media (max-width: 768px) {
  .builder-chip {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn-check-builder,
  .btn-reset-builder,
  .btn-show-syntax-hint,
  .btn-back-to-resources,
  .btn-play-guide-audio,
  .btn-vocab-speak {
    min-height: 44px !important;
  }

  .btn-play-guide-audio {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .week-modal-container,
  .block-modal-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .modal-sticky-nav-bar {
    padding: 12px 16px !important;
  }

  .guide-examples-grid {
    gap: 8px !important;
  }

  .guide-example-item {
    padding: 12px 14px !important;
  }
}



