/* ==========================================================================
   LOUIS 8A LEARNING HUB - DESIGN SYSTEM & STYLESHEET
   Brand: SISS Sydney International School System
   ========================================================================== */

:root {
  /* Brand Palettes */
  --siss-primary: #8A1538;
  --siss-primary-hover: #A31C44;
  --siss-primary-light: rgba(138, 21, 56, 0.15);
  --siss-gold: #E5A823;

  /* Neutrals & Surfaces */
  --bg-dark: #090D16;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(26, 35, 54, 0.95);
  --bg-surface: #111726;
  --bg-surface-elevated: #1A2234;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(138, 21, 56, 0.5);

  /* Typography Colors */
  --text-main: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #090D16;

  /* Subject Accent Colors */
  --subj-english: #38BDF8;
  --subj-english-bg: rgba(56, 189, 248, 0.12);
  --subj-maths: #A855F7;
  --subj-maths-bg: rgba(168, 85, 247, 0.12);
  --subj-toan: #C084FC;
  --subj-toan-bg: rgba(192, 132, 252, 0.12);
  --subj-science: #34D399;
  --subj-science-bg: rgba(52, 211, 153, 0.12);
  --subj-khtn: #2DD4BF;
  --subj-khtn-bg: rgba(45, 212, 191, 0.12);
  --subj-hsie: #FBBF24;
  --subj-hsie-bg: rgba(251, 191, 36, 0.12);
  --subj-van: #FB7185;
  --subj-van-bg: rgba(251, 113, 133, 0.12);
  --subj-sudia: #FB923C;
  --subj-sudia-bg: rgba(251, 146, 60, 0.12);
  --subj-pdhpe: #F87171;
  --subj-pdhpe-bg: rgba(248, 113, 113, 0.12);
  --subj-ict: #22D3EE;
  --subj-ict-bg: rgba(34, 211, 238, 0.12);
  --subj-arts: #F472B6;
  --subj-arts-bg: rgba(244, 114, 182, 0.12);
  --subj-music: #818CF8;
  --subj-music-bg: rgba(129, 140, 248, 0.12);

  /* Shadows & Glass */
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.7), 0 0 15px rgba(138, 21, 56, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-normal: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glow Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--siss-primary) 0%, transparent 70%);
  top: -150px;
  left: -150px;
}
.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #1E3A8A 0%, transparent 70%);
  top: 40%;
  right: -100px;
}
.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0F766E 0%, transparent 70%);
  bottom: -150px;
  left: 20%;
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================= HEADER ================= */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-crest {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--siss-primary) 0%, #4E0B1E 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #FFF;
  box-shadow: 0 4px 15px rgba(138, 21, 56, 0.4);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.school-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--siss-gold);
  text-transform: uppercase;
}

.portal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
}

.student-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFF;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-info {
  display: flex;
  flex-direction: column;
}

.student-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-role {
  background: var(--siss-primary);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.student-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-clock-card {
  text-align: right;
}

.clock-time {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.clock-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sync-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ================= NAVIGATION ================= */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition-normal);
}

.tab-icon {
  width: 18px;
  height: 18px;
}

.nav-tab:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #FFF;
  background: linear-gradient(135deg, var(--siss-primary) 0%, #680E28 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(138, 21, 56, 0.35);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

.tab-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}
.nav-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFF;
}

.day-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switcher-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.custom-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: var(--transition-normal);
}
.custom-select:focus {
  border-color: var(--siss-primary);
  box-shadow: 0 0 0 2px rgba(138, 21, 56, 0.2);
}

/* ================= TAB PANES ================= */
.content-wrapper {
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}
.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= TAB 1: PREPARATION WIZARD ================= */
.prep-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(138, 21, 56, 0.25) 0%, rgba(18, 24, 38, 0.9) 60%, rgba(30, 58, 138, 0.2) 100%);
  border: 1px solid rgba(138, 21, 56, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.prep-sub-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--siss-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.prep-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 8px;
}

.prep-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.prep-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  min-width: 380px;
}

.prep-stat-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}
.prep-stat-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.prep-stat-icon {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prep-stat-info {
  display: flex;
  flex-direction: column;
}

.prep-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
}

.prep-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.prep-section-block {
  margin-bottom: 24px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-icon {
  width: 20px;
  height: 20px;
  color: var(--siss-gold);
}

.section-tag {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Period Cards in Prep View - 2 Column Grid */
.tomorrow-periods-grid,
.tomorrow-periods-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.period-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.period-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.period-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--subj-accent, #3B82F6);
}

.period-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.period-time-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.period-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--subj-accent-bg, rgba(59, 130, 246, 0.15));
  color: var(--subj-accent, #38BDF8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.period-subject-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 6px;
}

.period-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prep-instructions-box {
  background: linear-gradient(135deg, rgba(229, 168, 35, 0.1) 0%, rgba(20, 26, 40, 0.6) 100%);
  border-left: 4px solid var(--siss-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #F1F5F9;
  margin-bottom: 14px;
  border-top: 1px solid rgba(229, 168, 35, 0.15);
  border-right: 1px solid rgba(229, 168, 35, 0.1);
  border-bottom: 1px solid rgba(229, 168, 35, 0.1);
}
.prep-prep-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--siss-gold);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prep-prep-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.45;
}

/* Attached Files inside Period Card */
.attached-docs-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.attached-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.attached-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attached-file-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  text-decoration: none;
  color: inherit;
}
.attached-file-pill:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.15);
}

.attached-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.file-ext-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.file-ext-badge.pptx { background: #E11D48; color: #FFF; }
.file-ext-badge.pdf { background: #DC2626; color: #FFF; }
.file-ext-badge.docx { background: #2563EB; color: #FFF; }

.attached-file-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.btn-open-file {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  cursor: pointer;
  transition: var(--transition-normal);
}
.btn-open-file:hover {
  background: #38BDF8;
  color: #090D16;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--siss-gold);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-normal);
}
.btn-text-action:hover {
  color: #FFF;
  transform: translateX(3px);
}

/* ================= SECTION 3: ESSENTIAL REMINDERS GRID ================= */
.prep-reminders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.reminder-card-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}
.reminder-card-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.reminder-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.reminder-text-box {
  flex: 1;
}

.reminder-item-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
}

.reminder-item-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.reminder-item-desc strong {
  color: var(--siss-gold);
}

/* ================= TAB 2: TIMETABLE VIEW ================= */
.timetable-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFF;
}
.section-subheading {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.day-filter-pills {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.pill {
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
}
.pill:hover {
  color: #FFF;
}
.pill.active {
  background: var(--siss-primary);
  color: #FFF;
}

.timetable-grid-view {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.timetable-day-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timetable-day-col.today {
  border-color: var(--siss-primary);
  box-shadow: 0 0 20px rgba(138, 21, 56, 0.25);
}

.day-col-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.day-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
}
.day-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--siss-primary-light);
  color: #FFA5B8;
}

.timetable-period-block {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
  position: relative;
}
.timetable-period-block:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.timetable-period-block.break-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  padding: 8px 12px;
}

.block-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.block-subject {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.block-teacher {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.block-room {
  font-size: 0.68rem;
  color: var(--siss-gold);
  font-weight: 600;
  margin-top: 2px;
}

/* ================= TAB 3: RESOURCE LIBRARY ================= */
.resources-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 320px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.search-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFF;
  font-size: 0.85rem;
  outline: none;
}
.search-box input:focus {
  border-color: var(--siss-primary);
}

.filter-dropdowns {
  display: flex;
  gap: 8px;
}

.resource-summary-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.resource-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: var(--transition-normal);
}
.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-hover);
}

.res-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.res-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.res-icon-box.pptx { background: rgba(225, 29, 72, 0.2); color: #FB7185; border: 1px solid rgba(225, 29, 72, 0.4); }
.res-icon-box.pdf { background: rgba(220, 38, 38, 0.2); color: #F87171; border: 1px solid rgba(220, 38, 38, 0.4); }
.res-icon-box.docx { background: rgba(37, 99, 235, 0.2); color: #60A5FA; border: 1px solid rgba(37, 99, 235, 0.4); }

.res-details {
  overflow: hidden;
}

.res-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-folder {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.res-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-size {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.res-subject-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.res-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-card-open {
  background: var(--siss-primary-light);
  border: 1px solid rgba(138, 21, 56, 0.3);
  color: #FFA5B8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.btn-card-open:hover {
  background: var(--siss-primary);
  color: #FFF;
}

.btn-card-canvas {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25) 0%, rgba(159, 18, 57, 0.35) 100%);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #FECDD3;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.btn-card-canvas:hover {
  background: #E11D48;
  color: #FFF;
  border-color: #E11D48;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.btn-open-canvas {
  font-size: 0.75rem;
  font-weight: 700;
  color: #FDA4AF;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(225, 29, 72, 0.18);
  border: 1px solid rgba(225, 29, 72, 0.35);
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}
.btn-open-canvas:hover {
  background: #E11D48;
  color: #FFF;
}

.res-week-tag {
  background: rgba(14, 165, 233, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ================= TAB 4: TASK TRACKER ================= */
.tasks-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}

.task-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.custom-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group textarea,
.form-group input[type="date"] {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #FFF;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}
.form-group textarea:focus,
.form-group input[type="date"]:focus {
  border-color: var(--siss-primary);
}

.form-row {
  display: flex;
  gap: 12px;
}
.col-half {
  flex: 1;
}

.btn-primary-full {
  background: linear-gradient(135deg, var(--siss-primary) 0%, var(--siss-primary-hover) 100%);
  border: none;
  color: #FFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  margin-top: 8px;
}
.btn-primary-full:hover {
  box-shadow: 0 4px 15px rgba(138, 21, 56, 0.4);
}

.task-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.task-filter-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.task-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}
.task-tab-btn:hover {
  color: #FFF;
}
.task-tab-btn.active {
  color: #FFF;
  background: var(--bg-surface-elevated);
}

.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}
.task-card-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.task-card-item.done {
  opacity: 0.6;
}

.task-main-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  margin-top: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.task-card-item.done .task-checkbox {
  background: #10B981;
  border-color: #10B981;
}

.task-desc-block {
  flex: 1;
}
.task-title-line {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}
.task-card-item.done .task-title-line {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.priority-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}
.priority-pill.high { background: rgba(239, 68, 68, 0.2); color: #F87171; }
.priority-pill.medium { background: rgba(234, 179, 8, 0.2); color: #FACC15; }
.priority-pill.low { background: rgba(16, 185, 129, 0.2); color: #34D399; }

.btn-delete-task {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.btn-delete-task:hover {
  color: #EF4444;
}

/* ================= TOMORROW VOCABULARY FOCUS WIDGET ================= */
.tomorrow-vocab-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  margin-top: 20px;
}

.tomorrow-vocab-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.tomorrow-vocab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}
.tomorrow-vocab-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.tv-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.tv-subject-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tv-term-block {
  display: flex;
  flex-direction: column;
}

.tv-term-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tv-term {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  color: #FFFFFF;
}

.tv-phonetic {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.tv-pos {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 500;
}

.tv-meaning {
  font-size: 0.82rem;
  color: #CBD5E1;
  margin-top: 2px;
  line-height: 1.35;
}

.tv-audio-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38BDF8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.tv-audio-btn:hover {
  background: #38BDF8;
  color: #0B1120;
  transform: scale(1.1);
}

.empty-vocab-hint {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ================= BNSW VOCABULARY HERO & STATS ================= */
.vocab-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(138, 21, 56, 0.25) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 1px solid rgba(138, 21, 56, 0.35);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.vocab-hero-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(138, 21, 56, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.vocab-hero-main {
  max-width: 680px;
}

.vocab-hero-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 6px 0 10px;
  letter-spacing: -0.3px;
}

.vocab-hero-desc {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.55;
}

.vocab-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.btn-primary-accent {
  background: linear-gradient(135deg, #8A1538 0%, #B91C1C 100%);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(138, 21, 56, 0.4);
  transition: var(--transition-fast);
}
.btn-primary-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 21, 56, 0.6);
  background: linear-gradient(135deg, #A81D46 0%, #DC2626 100%);
}

.vocab-quick-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.vstat-item strong {
  color: #FFFFFF;
  font-weight: 700;
}
.vstat-dot {
  color: rgba(255, 255, 255, 0.2);
}

/* ================= VOCABULARY TOOLBAR ================= */
.vocab-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.vocab-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.vocab-subject-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vpill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vpill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}
.vpill.active {
  background: #FFFFFF;
  color: #090D16;
  border-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
}

/* Subject Specific Accents */
.vpill-eng.active { background: #A855F7; color: #FFFFFF; border-color: #A855F7; box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4); }
.vpill-sci.active { background: #10B981; color: #042F2E; border-color: #10B981; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
.vpill-mat.active { background: #38BDF8; color: #082F49; border-color: #38BDF8; box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4); }
.vpill-hsi.active { background: #F97316; color: #FFFFFF; border-color: #F97316; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4); }
.vpill-custom.active { background: #EC4899; color: #FFFFFF; border-color: #EC4899; box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4); }

.vocab-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vocab-search {
  flex: 1;
  min-width: 280px;
}

.vocab-select {
  min-width: 240px;
}

.vocab-toolbar-right {
  display: flex;
  align-items: center;
}

.view-mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.view-btn:hover {
  color: var(--text-primary);
}
.view-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* ================= 3D FLASHCARD SPOTLIGHT ================= */
.flashcard-spotlight-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.spotlight-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.spotlight-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.flashcard-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.fc-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.fc-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}
.fc-nav-btn svg {
  width: 22px;
  height: 22px;
}

.flashcard-3d-wrap {
  width: 100%;
  max-width: 640px;
  height: 350px;
  perspective: 1200px;
  cursor: pointer;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-xl);
}

.flashcard-3d-wrap.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
}

/* Front Face */
.flashcard-front {
  background: linear-gradient(145deg, rgba(26, 36, 56, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.fc-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fc-subject-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.6px;
}
.fc-subject-tag.eng { background: rgba(168, 85, 247, 0.2); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.3); }
.fc-subject-tag.sci { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.fc-subject-tag.mat { background: rgba(56, 189, 248, 0.2); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.3); }
.fc-subject-tag.hsi { background: rgba(249, 115, 22, 0.2); color: #FB923C; border: 1px solid rgba(249, 115, 22, 0.3); }
.fc-subject-tag.custom { background: rgba(236, 72, 153, 0.2); color: #F472B6; border: 1px solid rgba(236, 72, 153, 0.3); }

.fc-pos-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.fc-center-content {
  text-align: center;
  margin: auto 0;
}

.fc-term {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.fc-phonetic-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fc-phonetic {
  font-size: 1.05rem;
  color: #94A3B8;
  font-family: 'Outfit', sans-serif;
}

.fc-audio-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.fc-audio-btn:hover {
  background: #38BDF8;
  color: #0B1120;
  transform: scale(1.12);
}

.fc-audio-btn-sm {
  width: 30px;
  height: 30px;
}

.fc-topic-label {
  display: inline-block;
  font-size: 0.78rem;
  color: #64748B;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 20px;
}

.fc-flip-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Back Face */
.flashcard-back {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.99));
  border: 1px solid rgba(138, 21, 56, 0.5);
  transform: rotateY(180deg);
}

.fc-back-meaning-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #F43F5E;
  letter-spacing: 0.5px;
}

.fc-back-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: auto 0;
}

.fc-meaning-vi {
  font-size: 1.15rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.4;
}

.fc-definition-en {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.45;
  font-style: italic;
}

.fc-example-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #8A1538;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

.fc-ex-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 4px;
}

.fc-example-text {
  font-size: 0.86rem;
  color: #E2E8F0;
  line-height: 1.4;
}

.fc-source-meta {
  font-size: 0.72rem;
  color: #64748B;
}

.spotlight-controls {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.btn-subtle-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-subtle-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* ================= VOCABULARY CARDS GRID ================= */
.vocab-grid-header {
  margin-top: 32px;
  margin-bottom: 18px;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.vocab-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  position: relative;
}
.vocab-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.vc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vc-term-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vc-term {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.vc-phonetic-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.vc-phonetic {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.vc-meaning-vi {
  font-size: 0.9rem;
  font-weight: 600;
  color: #F1F5F9;
  line-height: 1.4;
  margin-top: 4px;
}

.vc-definition-en {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.35;
  font-style: italic;
}

.vc-example {
  background: rgba(0, 0, 0, 0.2);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.35;
}

.vc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-delete-custom-vocab {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-delete-custom-vocab:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ================= VOCABULARY TABLE VIEW ================= */
.vocab-table-view {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.custom-vocab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.custom-vocab-table th {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.custom-vocab-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  vertical-align: middle;
}

.custom-vocab-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.vt-term {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.vt-phonetic {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ================= MODAL: ADD CUSTOM VOCABULARY ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon-badge {
  font-size: 1.4rem;
  background: rgba(138, 21, 56, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.btn-close-modal:hover {
  color: #FFFFFF;
}

.modal-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.required {
  color: #EF4444;
}

/* ================= BNSW ACADEMY & THE TIME MACHINE NOVEL STUDY ================= */

.bnsw-pill-badge {
  background: linear-gradient(135deg, var(--siss-gold) 0%, #D97706 100%) !important;
  color: #090D16 !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(229, 168, 35, 0.4);
}

.bnsw-academy-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(18, 24, 38, 0.95) 50%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.bnsw-hero-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--siss-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bnsw-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 8px;
}

.bnsw-hero-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.5;
}

.bnsw-subject-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  min-width: 380px;
}

.bnsw-subj-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: left;
}
.bnsw-subj-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.bnsw-subj-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: #38BDF8;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}
.bnsw-subj-btn[data-subject="science"].active { border-color: #34D399; box-shadow: 0 4px 20px rgba(52, 211, 153, 0.25); }
.bnsw-subj-btn[data-subject="mathematics"].active { border-color: #A855F7; box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25); }
.bnsw-subj-btn[data-subject="hsie"].active { border-color: #FBBF24; box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25); }

.bnsw-subj-btn .btn-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-label-group {
  display: flex;
  flex-direction: column;
}

.btn-subj-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFF;
}

.btn-sub-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Subject Panels */
.bnsw-subject-panel {
  display: none;
  animation: fadeInPane 0.3s ease;
}
.bnsw-subject-panel.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Novel Showcase Card */
.novel-showcase-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 30px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.novel-cover-frame {
  width: 100%;
  height: 330px;
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  border: 2px solid var(--siss-gold);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(229, 168, 35, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.novel-cover-art {
  height: 100%;
  border: 1px dashed rgba(229, 168, 35, 0.5);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.novel-art-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--siss-gold);
  margin-bottom: 12px;
}

.novel-art-clock {
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(229, 168, 35, 0.6));
}

.novel-art-title {
  font-family: 'Outfit', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 1.5px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.novel-art-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.novel-art-year {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  background: rgba(229, 168, 35, 0.15);
  color: var(--siss-gold);
  border-radius: 4px;
  border: 1px solid rgba(229, 168, 35, 0.3);
}

.novel-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.novel-meta-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.n-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}
.n-tag.genre { background: rgba(56, 189, 248, 0.15); color: #38BDF8; border-color: rgba(56, 189, 248, 0.3); }
.n-tag.term { background: rgba(168, 85, 247, 0.15); color: #A855F7; border-color: rgba(168, 85, 247, 0.3); }
.n-tag.school { background: rgba(229, 168, 35, 0.15); color: var(--siss-gold); border-color: rgba(229, 168, 35, 0.3); }

.novel-main-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 10px;
}

.novel-synopsis-intro {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.novel-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.n-stat-item {
  display: flex;
  flex-direction: column;
}
.n-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #38BDF8;
}
.n-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.novel-view-switchers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.novel-view-btn {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}
.novel-view-btn:hover {
  background: var(--bg-surface-elevated);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.15);
}
.novel-view-btn.active {
  background: #38BDF8;
  color: #090D16;
  border-color: #38BDF8;
  font-weight: 700;
}

/* Novel Subviews */
.novel-subview {
  display: none;
  animation: fadeInPane 0.25s ease;
}
.novel-subview.active {
  display: block;
}

/* Week Timeline Bar */
.week-timeline-bar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.week-btn-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}
.week-btn-pill:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.week-btn-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(18, 24, 38, 0.9) 100%);
  border-color: #38BDF8;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.w-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}
.w-chapters {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
}
.w-pages {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Active Week Detail Card */
.week-detail-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}

.week-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.week-title-group {
  display: flex;
  flex-direction: column;
}
.week-title-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.week-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF;
}
.week-meta-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Dual Synopsis Columns */
.synopsis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.synopsis-col {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.synopsis-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.synopsis-col.vi .synopsis-col-title { color: #38BDF8; }
.synopsis-col.en .synopsis-col-title { color: var(--siss-gold); }

.synopsis-body-text {
  font-size: 0.88rem;
  color: #E2E8F0;
  line-height: 1.6;
}

/* Callout Boxes */
.callout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.callout-box {
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.callout-box.clues {
  background: linear-gradient(135deg, rgba(229, 168, 35, 0.08) 0%, rgba(18, 24, 38, 0.7) 100%);
  border: 1px solid rgba(229, 168, 35, 0.25);
  border-left: 4px solid var(--siss-gold);
}

.callout-box.discussion {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(18, 24, 38, 0.7) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid #38BDF8;
}

.callout-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout-box.clues .callout-title { color: var(--siss-gold); }
.callout-box.discussion .callout-title { color: #38BDF8; }

.symbols-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.symbol-item {
  font-size: 0.85rem;
  color: #E2E8F0;
  line-height: 1.45;
}
.symbol-item strong {
  color: #FFF;
}

.discussion-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prompt-item {
  font-size: 0.88rem;
  color: #F1F5F9;
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border-left: 3px solid #38BDF8;
}

/* Quotes Section */
.quotes-block {
  margin-bottom: 28px;
}
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-card {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}
.quote-text {
  font-size: 0.9rem;
  font-style: italic;
  color: #F8FAFC;
  line-height: 1.5;
  margin-bottom: 8px;
}
.quote-meta {
  font-size: 0.75rem;
  color: var(--siss-gold);
  font-weight: 600;
}

/* Chapter Vocabulary Grid */
.chapter-vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.novel-vocab-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.novel-vocab-card:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.nv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.nv-word-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nv-word {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #38BDF8;
}

.nv-phonetic {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nv-btn-speak {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
}
.nv-btn-speak:hover {
  background: #38BDF8;
  color: #090D16;
  border-color: #38BDF8;
  transform: scale(1.08);
}

.nv-pos-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  display: inline-block;
  margin-bottom: 8px;
}

.nv-def-vi {
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFF;
  margin-bottom: 6px;
  line-height: 1.4;
}

.nv-def-en {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.nv-example {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--siss-gold);
  border-left: 2px solid var(--siss-gold);
  padding-left: 8px;
  margin-top: 6px;
}

/* Characters Grid */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.character-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: var(--transition-normal);
}
.character-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.char-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.char-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
}

.char-role-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(229, 168, 35, 0.15);
  color: var(--siss-gold);
  border: 1px solid rgba(229, 168, 35, 0.3);
}

.char-desc {
  font-size: 0.88rem;
  color: #E2E8F0;
  line-height: 1.55;
  margin-bottom: 12px;
}

.char-traits {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.char-traits strong { color: #38BDF8; }

/* Themes Grid */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.theme-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-left: 4px solid #38BDF8;
}
.theme-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 10px;
}
.theme-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Science & Math & HSIE Module Cards */
.subject-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.panel-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF;
}
.panel-subheading {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.panel-badge-code {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.science-modules-grid,
.math-units-grid,
.hsie-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.acad-module-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.acad-module-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.mod-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.mod-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  display: inline-block;
}
.mod-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
}
.mod-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
}

.mod-section-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--siss-gold);
  margin-bottom: 8px;
}

.concept-pills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.concept-pill-item {
  font-size: 0.82rem;
  color: #E2E8F0;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--border-subtle);
}
.concept-pill-item strong {
  color: #38BDF8;
}

.formula-box {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.formula-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #C084FC;
  margin-bottom: 2px;
}
.formula-code {
  font-family: 'Outfit', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFF;
}

.vocab-terms-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.term-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #E2E8F0;
}

/* ================= FOOTER ================= */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px 8px;
  margin-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .prep-hero-card,
  .bnsw-academy-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .prep-summary-stats,
  .bnsw-subject-pills {
    min-width: unset;
    width: 100%;
  }
  .prep-reminders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tasks-layout-grid {
    grid-template-columns: 1fr;
  }
  .timetable-grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .week-timeline-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .novel-showcase-card {
    grid-template-columns: 1fr;
  }
  .novel-cover-frame {
    height: 240px;
  }
  .science-modules-grid,
  .math-units-grid,
  .hsie-modules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .tomorrow-periods-grid {
    grid-template-columns: 1fr;
  }
  .prep-reminders-grid {
    grid-template-columns: 1fr;
  }
  .synopsis-grid,
  .callout-row,
  .quotes-grid,
  .characters-grid,
  .themes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 12px;
  }
  .prep-summary-stats,
  .bnsw-subject-pills {
    grid-template-columns: 1fr;
  }
  .novel-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .week-timeline-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .chapter-vocab-grid {
    grid-template-columns: 1fr;
  }
  .timetable-grid-view {
    grid-template-columns: 1fr;
  }
  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 1360px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-tabs {
    flex: 1 1 100%;
    overflow-x: auto;
  }
  .nav-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}


/* ==========================================================================
   THE FAR DIAL & STEAMPUNK READER STYLES
   ========================================================================== */
.far-dial-feature-card {
  background: linear-gradient(135deg, rgba(20, 18, 14, 0.95), rgba(31, 28, 22, 0.95));
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(201, 162, 39, 0.2);
  position: relative;
  overflow: hidden;
}

.far-dial-feature-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent 70%);
  pointer-events: none;
}

.fd-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #C9A227;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.fd-cog-icon {
  font-size: 1rem;
  display: inline-block;
  animation: cog-spin 16s linear infinite;
}

@keyframes cog-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fd-feature-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.fd-left-info {
  flex: 1;
  min-width: 280px;
}

.fd-feature-title {
  font-family: 'Iowan Old Style', Georgia, serif;
  font-size: 1.5rem;
  color: #EFE7D5;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.fd-feature-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(239, 231, 213, 0.82);
  margin-bottom: 16px;
}

.fd-feature-desc strong {
  color: #C9A227;
}

.fd-feature-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fd-chip {
  background: rgba(239, 231, 213, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: #E2D7BF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

.fd-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.btn-fd-modal {
  background: linear-gradient(135deg, #C9A227, #8A6F1C);
  color: #14120E;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-fd-modal:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-fd-modal span { font-size: 0.96rem; }
.btn-fd-modal small { font-size: 0.72rem; opacity: 0.85; font-weight: 500; }

.btn-fd-tab {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #EFE7D5;
  border-radius: 10px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-fd-tab:hover {
  background: rgba(201, 162, 39, 0.22);
  border-color: #C9A227;
}

.btn-fd-tab span { font-size: 0.9rem; color: #C9A227; }
.btn-fd-tab small { font-size: 0.7rem; color: rgba(239, 231, 213, 0.6); }

/* The Far Dial Modal */
.far-dial-modal-wrap .far-dial-dialog {
  width: 95vw;
  max-width: 1100px;
  height: 90vh;
  background: #14120E;
  border: 1.5px solid #C9A227;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  z-index: 9999;
}

.fd-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1F1C16;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

.fd-dh-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fd-cog-mini { font-size: 1.2rem; }
.fd-dh-title {
  font-family: 'Iowan Old Style', Georgia, serif;
  font-size: 1.05rem;
  color: #EFE7D5;
  font-weight: 600;
}

.fd-dh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-fd-popout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #C9A227;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.btn-close-fd {
  background: transparent;
  border: none;
  color: rgba(239, 231, 213, 0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.btn-close-fd:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

.fd-iframe-body {
  flex: 1;
  width: 100%;
  height: 100%;
}

.fd-iframe-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #14120E;
}


/* ==========================================================================
   QUIZLET 80 CORE VOCABULARY SECTION
   ========================================================================== */
.quizlet-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  gap: 16px;
}

.qh-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #C084FC;
  margin-bottom: 6px;
}

.qh-main-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.qh-sub-heading {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 680px;
}

.qh-stats-pills {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qh-stat-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.qh-stat-pill strong {
  color: #C084FC;
}

.quizlet-spotlight-box {
  margin-bottom: 30px;
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.quizlet-pos-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pos-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pos-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}

.pos-pill.active {
  background: #A855F7;
  color: #FFF;
  border-color: #A855F7;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.quizlet-vocab-summary {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.quizlet-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.quizlet-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quizlet-card-item:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.qc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.qc-term {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.qc-phonetic {
  font-family: 'Consolas', monospace;
  font-size: 0.82rem;
  color: #38BDF8;
}

.qc-pos {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qc-pos.n { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.qc-pos.v { background: rgba(52, 211, 153, 0.15); color: #34D399; }
.qc-pos.adj { background: rgba(244, 114, 182, 0.15); color: #F472B6; }

.qc-meaning {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-top: 8px;
}


/* ==========================================================================
   POKEMON COMPANION HERO & HOMEWORK TRACKER (NOTEDII SHEET)
   ========================================================================== */
.pokemon-companion-hero {
  background: linear-gradient(135deg, #111726, #1A233A);
  border: 1.5px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.pokemon-companion-hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 70%);
  pointer-events: none;
}

.poke-hero-sprite-col {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.poke-sprite-frame {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.6));
  border: 2px solid rgba(249, 115, 22, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.poke-glow-aura {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent 70%);
  animation: poke-pulse 3s infinite alternate;
}

@keyframes poke-pulse {
  0% { transform: scale(0.95); opacity: 0.4; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

.poke-active-sprite {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
  animation: poke-float 3s ease-in-out infinite;
}

@keyframes poke-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.poke-stage-badge {
  position: absolute;
  bottom: -10px;
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #FFF;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
  white-space: nowrap;
  z-index: 3;
}

.poke-hero-info-col {
  flex: 1;
  min-width: 280px;
}

.poke-trainer-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.poke-level-badge {
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #EAB308;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.poke-type-badge {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #FB923C;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.poke-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.poke-hero-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
}

.poke-hero-status {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.poke-hero-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Pokemon EXP Progress Bar */
.poke-exp-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.poke-exp-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.poke-exp-text strong {
  color: #38BDF8;
}

.poke-next-evo-hint {
  color: #EAB308;
  font-weight: 600;
}

.poke-progress-track {
  position: relative;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: visible;
}

.poke-progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #F97316, #EAB308, #10B981);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
}

.poke-marker {
  position: absolute;
  top: -3px;
  width: 3px;
  height: 18px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Starter Selector & Actions */
.poke-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.poke-starter-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.selector-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.starter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.starter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
}

.starter-btn.active {
  background: #F97316;
  color: #FFF;
  border-color: #F97316;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
}

.btn-open-poke-tracker {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-open-poke-tracker:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.poke-sparkle {
  display: inline-block;
  animation: sparkle-twinkle 1.5s infinite ease-in-out alternate;
}

@keyframes sparkle-twinkle {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0.7; }
  100% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}


/* ==========================================================================
   POKEMON HOMEWORK TRACKER MODAL (NOTEDII GOOGLE SHEET RECREATION)
   ========================================================================== */
.poke-tracker-modal-wrap .poke-tracker-dialog {
  width: 95vw;
  max-width: 1100px;
  max-height: 92vh;
  background: #0E131F;
  border: 2px solid #F97316;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  z-index: 9999;
}

.poke-dh-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 24px;
  background: #141B2D;
  border-bottom: 1px solid rgba(249, 115, 22, 0.3);
}

.poke-dh-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #F97316;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.poke-dh-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
}

.poke-dh-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.btn-close-poke {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.btn-close-poke:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

.poke-sheet-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(249, 115, 22, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.psh-avatar-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid #F97316;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psh-sprite {
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
}

.psh-info {
  flex: 1;
  min-width: 240px;
}

.psh-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.psh-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFF;
}

.psh-level {
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(234, 179, 8, 0.2);
  color: #EAB308;
  padding: 2px 8px;
  border-radius: 6px;
}

.psh-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
  padding: 2px 8px;
  border-radius: 6px;
}

.psh-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.psh-progress-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.psh-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F97316, #EAB308, #10B981);
  transition: width 0.3s ease;
}

.psh-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-psh-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-psh-tool:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
}

/* Spreadsheet Table */
.poke-sheet-table-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 20px;
}

.poke-sheet-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.88rem;
}

.poke-sheet-table th {
  background: #192238;
  color: #94A3B8;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.poke-sheet-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.poke-sheet-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.poke-sheet-table tr.row-done td {
  background: rgba(16, 185, 129, 0.06);
}

.poke-sheet-table tr.row-done .poke-hw-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.poke-hw-num {
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.poke-hw-subj-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.poke-hw-title-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  font-size: 0.88rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.poke-hw-title-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.poke-hw-title-input:focus {
  border-color: #38BDF8;
  background: rgba(0, 0, 0, 0.3);
  outline: none;
}

.poke-hw-due {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Custom Square Checkbox matching Google Sheet */
.poke-hw-check-cell {
  text-align: center;
}

.poke-hw-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.poke-hw-checkbox:hover {
  border-color: #F97316;
  transform: scale(1.1);
}

.poke-hw-checkbox.checked {
  background: #10B981;
  border-color: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.poke-sheet-footer-row td {
  background: #141B2D;
  border-top: 2px solid rgba(249, 115, 22, 0.5);
  padding: 14px;
  font-weight: 700;
}

.psf-label {
  font-size: 0.95rem;
  color: #FFF;
}

.psf-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #10B981;
  text-align: center;
}


/* ==========================================================================
   POKEMON EVOLUTION CELEBRATION MODAL
   ========================================================================== */
.poke-evo-modal-wrap .poke-evo-dialog {
  width: 90vw;
  max-width: 520px;
  background: linear-gradient(135deg, #111827, #1E293B);
  border: 2px solid #EAB308;
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(234, 179, 8, 0.3);
  z-index: 10000;
}

.poke-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.evo-sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  margin-top: -300px;
  margin-left: -300px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 0%, transparent 60%);
  animation: evo-spin 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes evo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.evo-content {
  position: relative;
  z-index: 2;
}

.evo-badge-celebrate {
  display: inline-block;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFF;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.evo-sprite-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.evo-sprite-img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  animation: evo-bounce 0.8s ease-in-out infinite alternate;
}

@keyframes evo-bounce {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.08); }
}

.evo-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.evo-title-rank {
  font-size: 0.95rem;
  font-weight: 700;
  color: #EAB308;
  margin-bottom: 14px;
}

.evo-message {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn-evo-continue {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #FFF;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-evo-continue:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ==========================================================================
   MODULE: CORE VOCABULARY CREATURES & PRONUNCIATION CUSTOMIZER
   ========================================================================== */

/* 1. Daily Creature Banner in Tab Prep */
.daily-creature-card {
  background: linear-gradient(135deg, rgba(30, 27, 46, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.daily-creature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(201, 162, 39, 0.12), transparent 60%);
  pointer-events: none;
}

.dcc-sparkles {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.2rem;
  letter-spacing: 6px;
  opacity: 0.6;
  pointer-events: none;
}

.dcc-left {
  flex: 1;
  z-index: 1;
}

.dcc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FDE68A;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.dcc-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dcc-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: 650px;
}

.dcc-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dcc-date-pill {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dcc-status-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.dcc-status-pill.caught {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FCD34D;
}

.dcc-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
  min-width: 220px;
}

.dcc-creature-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.25), rgba(15, 23, 42, 0.8));
  border: 2px solid rgba(201, 162, 39, 0.5);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
  animation: dcc-pulse 3s infinite alternate;
}

@keyframes dcc-pulse {
  0% { transform: scale(0.96); box-shadow: 0 0 15px rgba(201, 162, 39, 0.2); }
  100% { transform: scale(1.04); box-shadow: 0 0 28px rgba(201, 162, 39, 0.45); }
}

.dcc-pod-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.dcc-pod-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #FDE68A;
  margin-top: 4px;
}

.dcc-action-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-dcc-catch {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #1F1300;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.btn-dcc-catch:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-dcc-dex {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.btn-dcc-dex:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: #F59E0B;
}

/* 2. Modal Creature Reveal (Gacha Mystery Drop) */
.creature-reveal-modal-wrap {
  z-index: 1200;
}

.creature-reveal-dialog {
  position: relative;
  width: 90%;
  max-width: 580px;
  background: #12101A;
  border: 2px solid rgba(201, 162, 39, 0.6);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(201, 162, 39, 0.25);
  overflow: hidden;
  animation: cr-zoom-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cr-zoom-in {
  0% { transform: scale(0.65); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.creature-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.cr-sunburst {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22) 0%, transparent 70%);
  animation: rotateSunburst 25s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.cr-dialog-content {
  position: relative;
  z-index: 2;
}

.cr-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: #FDE68A;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.cr-card-hero {
  margin-bottom: 20px;
}

.cr-avatar-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.6));
  border: 3px solid rgba(201, 162, 39, 0.6);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.4);
  animation: cr-float 3s ease-in-out infinite;
}

@keyframes cr-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cr-creature-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 2px;
}

.cr-creature-title-vi {
  font-size: 1rem;
  font-weight: 600;
  color: #FDE68A;
  margin-bottom: 8px;
}

.cr-tier-pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cr-tier-pill.tier-common { background: rgba(16, 185, 129, 0.2); color: #10B981; border: 1px solid #10B981; }
.cr-tier-pill.tier-rare { background: rgba(59, 130, 246, 0.2); color: #60A5FA; border: 1px solid #3B82F6; }
.cr-tier-pill.tier-epic { background: rgba(168, 85, 247, 0.2); color: #C084FC; border: 1px solid #A855F7; }
.cr-tier-pill.tier-legendary { background: rgba(245, 158, 11, 0.25); color: #FCD34D; border: 1px solid #F59E0B; box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }

.cr-lore-text {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.45;
}

/* Core Vocabulary Highlight Box */
.cr-vocab-box {
  background: rgba(25, 20, 36, 0.85);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 22px;
  text-align: left;
}

.crvb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.crvb-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: 0.5px;
}

.btn-crvb-edit {
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #FDE68A;
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-crvb-edit:hover {
  background: rgba(201, 162, 39, 0.3);
  border-color: #F59E0B;
}

.crvb-term-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.crvb-term {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFF;
  text-transform: lowercase;
}

.crvb-pos {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

.btn-crvb-audio {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.1s ease;
}

.btn-crvb-audio:hover {
  transform: scale(1.2);
}

.crvb-phonetic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.crvb-ipa {
  font-family: var(--font-mono, monospace);
  font-size: 0.92rem;
  color: #38BDF8;
}

.crvb-reading-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.88rem;
  color: #FDE68A;
}

.crvb-meaning-vi {
  font-size: 0.98rem;
  font-weight: 600;
  color: #FFF;
  margin-bottom: 8px;
}

.crvb-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 2px solid rgba(201, 162, 39, 0.5);
  padding-left: 10px;
  line-height: 1.4;
}

.cr-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-cr-collect {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #1F1300;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease;
}

.btn-cr-collect:hover {
  transform: translateY(-2px);
}

.btn-cr-dex {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cr-dex:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: #F59E0B;
}

/* 3. Modal Creature Dex (Bestiary) */
.creature-dex-modal-wrap {
  z-index: 1100;
}

.creature-dex-dialog {
  width: 95%;
  max-width: 1100px;
  max-height: 90vh;
  background: #110E1B;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: cr-zoom-in 0.3s ease-out;
}

.cdx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: rgba(25, 20, 36, 0.9);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.cdx-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.cdx-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 2px;
}

.cdx-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.cdx-toolbar {
  padding: 14px 28px;
  background: rgba(15, 12, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cdx-progress-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.cdx-ps-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  gap: 6px;
}

.cdx-ps-text strong {
  color: #F59E0B;
}

.cdx-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  min-width: 120px;
}

.cdx-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #F59E0B);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.cdx-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cdx-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cdx-pill.active {
  background: rgba(201, 162, 39, 0.25);
  border-color: #F59E0B;
  color: #FFF;
}

.cdx-grid-container {
  padding: 24px 28px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  flex: 1;
}

/* Individual Creature Dex Card */
.cdx-card {
  background: rgba(26, 21, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cdx-card.unlocked:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cdx-card.tier-common.unlocked { border-color: rgba(16, 185, 129, 0.4); }
.cdx-card.tier-rare.unlocked { border-color: rgba(59, 130, 246, 0.4); }
.cdx-card.tier-epic.unlocked { border-color: rgba(168, 85, 247, 0.4); }
.cdx-card.tier-legendary.unlocked { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 0 16px rgba(245, 158, 11, 0.15); }

.cdx-card.locked {
  background: rgba(18, 15, 26, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  opacity: 0.6;
}

.cdxc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cdxc-tier-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.cdxc-tier-tag.tier-common { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.cdxc-tier-tag.tier-rare { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.cdxc-tier-tag.tier-epic { background: rgba(168, 85, 247, 0.2); color: #C084FC; }
.cdxc-tier-tag.tier-legendary { background: rgba(245, 158, 11, 0.25); color: #FCD34D; }

.cdxc-caught-badge {
  font-size: 0.72rem;
  color: #10B981;
  font-weight: 700;
}

.cdxc-avatar {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 8px;
}

.cdxc-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFF;
  text-align: center;
  margin-bottom: 2px;
}

.cdxc-name-vi {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}

/* Dex Card Vocab Section */
.cdxc-vocab-block {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 10px;
  margin-top: auto;
}

.cdxc-vb-term-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.cdxc-vb-term {
  font-size: 1rem;
  font-weight: 800;
  color: #FDE68A;
}

.cdxc-vb-reading {
  font-size: 0.78rem;
  color: #6EE7B7;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cdxc-vb-meaning {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.cdxc-locked-notice {
  text-align: center;
  padding: 20px 10px;
  color: var(--text-muted);
}

.cdxc-lock-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

.cdxc-lock-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cdxc-lock-hint {
  font-size: 0.76rem;
  line-height: 1.4;
}

/* 4. Edit Pronunciation Modal */
.custom-edit-modal-wrap {
  z-index: 1300;
}

.edit-pronunciation-dialog {
  width: 90%;
  max-width: 520px;
  background: #151221;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  animation: cr-zoom-in 0.3s ease-out;
}

.ep-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ep-icon {
  font-size: 2rem;
}

.ep-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 2px;
}

.ep-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ep-term-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ep-term-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ep-term-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FDE68A;
}

.ep-ipa-value {
  font-family: monospace;
  font-size: 0.95rem;
  color: #38BDF8;
}

.btn-ep-speak {
  margin-left: auto;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ep-speak:hover {
  background: rgba(56, 189, 248, 0.3);
}

.ep-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
}

.btn-danger-subtle {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger-subtle:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* 5. Pronunciation Pills & Edit Buttons in Flashcards & Grid */
.fc-reading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.fc-reading-pill, .qc-reading-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.88rem;
  color: #FDE68A;
}

.fc-reading-pill strong, .qc-reading-pill strong {
  color: #FFF;
  font-weight: 800;
}

.btn-fc-edit-reading, .btn-term-edit-reading {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  border-radius: 14px;
  padding: 2px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-fc-edit-reading:hover, .btn-term-edit-reading:hover {
  background: rgba(201, 162, 39, 0.25);
  border-color: #F59E0B;
  color: #FFF;
}

.qc-reading-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .daily-creature-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .dcc-meta-row {
    justify-content: center;
  }
  .dcc-action-btns {
    width: 100%;
  }
  .cdx-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .cdx-filter-pills {
    justify-content: center;
  }
}

/* Read Aloud Button in Chapter Synopsis */
.btn-synopsis-speak {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-synopsis-speak:hover {
  background: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}


/* ==========================================================================
   MODULE: IN-CLASS ASSIGNMENT EXAM HUB (TERM 1 | WEEK 4)
   SISS Grade 8A - Louis Learning Hub
   ========================================================================== */

/* Nav Tab Hot Badge */
.nav-tab-exam {
  position: relative;
}
.tab-badge-hot {
  background: linear-gradient(135deg, #EF4444, #F59E0B) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 0.68rem !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
  animation: hotBadgePulse 2s infinite ease-in-out;
}
.badge-progress {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}
@keyframes hotBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 16px rgba(239, 68, 68, 0.7); }
}

/* Tab Prep Exam Alert Card */
.exam-alert-card {
  position: relative;
  background: linear-gradient(135deg, rgba(138, 21, 56, 0.25) 0%, rgba(18, 24, 38, 0.95) 60%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(138, 21, 56, 0.25);
  overflow: hidden;
}
.eac-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  pointer-events: none;
}
.eac-content {
  flex: 1;
  position: relative;
  z-index: 1;
}
.eac-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.eac-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #FCA5A5;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.eac-date-tag {
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 8px;
}
.eac-title {
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}
.eac-desc {
  color: #CBD5E1;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.eac-subject-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.eac-chip {
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.eac-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.chip-sci:hover { border-color: #34D399; }
.chip-eng:hover { border-color: #38BDF8; }
.chip-math:hover { border-color: #A855F7; }
.chip-hsie:hover { border-color: #FBBF24; }
.chip-icon { font-size: 1.2rem; }
.chip-name {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
}
.chip-sub {
  color: #94A3B8;
  font-size: 0.72rem;
  display: block;
}
.eac-actions {
  position: relative;
  z-index: 1;
}
.btn-eac-start {
  background: linear-gradient(135deg, #8A1538, #C51D4A);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(138, 21, 56, 0.4);
  transition: all 0.2s ease;
}
.btn-eac-start:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 25px rgba(138, 21, 56, 0.6);
}

/* Tab Exam Hub Hero Card */
.exam-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(138, 21, 56, 0.3) 0%, rgba(18, 24, 38, 0.95) 50%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}
.orb-exam-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(138, 21, 56, 0.25) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  pointer-events: none;
}
.orb-exam-2 {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  bottom: -150px;
  right: -50px;
  pointer-events: none;
}
.eh-left {
  flex: 1;
  position: relative;
  z-index: 1;
}
.eh-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.eh-tag-pulse {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FCD34D;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eh-school-tag {
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 600;
}
.eh-title {
  font-family: 'Outfit', sans-serif;
  color: #F8FAFC;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.eh-desc {
  color: #CBD5E1;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 680px;
  margin-bottom: 14px;
}
.eh-quote-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #E5A823;
  padding: 10px 16px;
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 680px;
}
.eq-icon { font-size: 1.1rem; }
.eq-text {
  color: #E2E8F0;
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.45;
}
.eq-text strong {
  color: #FCD34D;
  font-style: normal;
}
.eh-right {
  position: relative;
  z-index: 1;
}
.eh-quick-stats {
  display: flex;
  gap: 16px;
}
.eh-stat-pill {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 18px;
  text-align: center;
  min-width: 95px;
  backdrop-filter: blur(10px);
}
.eh-stat-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.1;
}
.eh-stat-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Exam Schedule Block & 4 Cards Grid */
.exam-schedule-block {
  margin-bottom: 32px;
}
.exam-schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.exam-overview-card {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}
.exam-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.6);
}
.exam-overview-card.active-subj {
  border-color: var(--siss-gold);
  background: rgba(26, 35, 54, 0.95);
  box-shadow: 0 0 0 1px var(--siss-gold), 0 12px 28px -5px rgba(0, 0, 0, 0.7);
}
.eoc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.eoc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid transparent;
}
.eoc-countdown-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.cd-badge-today {
  background: rgba(239, 68, 68, 0.25);
  color: #F87171;
  border: 1px solid #EF4444;
  animation: pulse 1.5s infinite;
}
.cd-badge-urgent {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid #F59E0B;
}
.cd-badge-upcoming {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.cd-badge-past {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
}
.eoc-subject-name {
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.eoc-exam-date {
  color: #FCD34D;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.eoc-topic-desc {
  color: #94A3B8;
  font-size: 0.82rem;
  line-height: 1.4;
  flex: 1;
  margin-bottom: 12px;
}
.eoc-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.eoc-pill-format {
  color: #E2E8F0;
  font-weight: 700;
}
.eoc-pill-count {
  color: #38BDF8;
  font-weight: 700;
}
.card-best-score {
  margin-top: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  font-size: 0.74rem;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
}

/* Exam Arena Main Card */
.exam-arena-card {
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
}
.arena-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.arena-subject-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.exam-sub-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 16px;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.exam-sub-tab-btn:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}
.exam-sub-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: var(--subj-color, var(--siss-gold));
  box-shadow: 0 0 12px rgba(229, 168, 35, 0.25);
}
.btn-sub-date {
  font-size: 0.72rem;
  opacity: 0.75;
}
.arena-modes-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mode-label {
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 600;
}
.exam-mode-switcher {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
}
.exam-mode-pill {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.exam-mode-pill:hover {
  color: #FFFFFF;
}
.exam-mode-pill.active {
  background: linear-gradient(135deg, #8A1538, #A31C44);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(138, 21, 56, 0.4);
}

/* Arena Sub-banner */
.arena-sub-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.asb-title {
  color: #F8FAFC;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.asb-desc {
  color: #94A3B8;
  font-size: 0.86rem;
}
.asb-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.mock-timer-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 12px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.mock-timer-box.timer-warning {
  border-color: #F59E0B;
  animation: timerWarning 1s infinite alternate;
}
.mock-timer-box.timer-danger {
  border-color: #EF4444;
  animation: timerDanger 0.6s infinite alternate;
}
@keyframes timerWarning {
  from { box-shadow: 0 0 5px rgba(245, 158, 11, 0.3); }
  to { box-shadow: 0 0 15px rgba(245, 158, 11, 0.7); }
}
@keyframes timerDanger {
  from { box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
  to { box-shadow: 0 0 20px rgba(239, 68, 68, 0.9); }
}
.timer-icon { font-size: 1.1rem; }
.timer-value {
  font-family: 'Outfit', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FCD34D;
  letter-spacing: 0.05em;
}
.timer-bar-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.timer-bar-fill {
  height: 100%;
  background: #F59E0B;
  transition: width 1s linear;
}

/* MCQ Workspace */
.arena-workspace-mcq {
  margin-top: 10px;
}
.q-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}
.q-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.q-counter-badge {
  background: #8A1538;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.03em;
}
.q-subtopic-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
}
.q-meta-right {
  display: flex;
  gap: 8px;
}
.btn-q-speak, .btn-q-hint, .btn-q-flag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-q-speak:hover { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.btn-q-hint:hover { background: rgba(245, 158, 11, 0.15); color: #FCD34D; }
.btn-q-flag:hover { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; }
.btn-q-flag.flagged {
  background: rgba(239, 68, 68, 0.25);
  border-color: #EF4444;
  color: #F87171;
}
.q-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-bottom: 20px;
  overflow: hidden;
}
.q-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8A1538, #E5A823);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.q-prompt-card {
  background: rgba(26, 34, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.q-text {
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
}
.q-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.exam-option-card {
  background: rgba(18, 24, 38, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 56px;
}
.exam-option-card:hover {
  background: rgba(26, 35, 54, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}
.opt-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E2E8F0;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.opt-text {
  flex: 1;
  color: #E2E8F0;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 500;
}
.opt-status-icon {
  font-size: 1.3rem;
  font-weight: 900;
  flex-shrink: 0;
}
.opt-correct {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10B981 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}
.opt-correct .opt-letter {
  background: #10B981;
  color: #FFFFFF;
}
.opt-correct .opt-status-icon {
  color: #34D399;
}
.opt-wrong {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}
.opt-wrong .opt-letter {
  background: #EF4444;
  color: #FFFFFF;
}
.opt-wrong .opt-status-icon {
  color: #F87171;
}
.opt-dimmed {
  opacity: 0.5;
}
.opt-selected {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: #38BDF8 !important;
}
.opt-selected .opt-letter {
  background: #38BDF8;
  color: #090D16;
}

/* Explanation Card */
.exam-explanation-card {
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  animation: fadeInDown 0.25s ease-out;
}
.exp-correct {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.exp-wrong {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.exp-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.exp-result-pill {
  font-size: 0.88rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.pill-success {
  background: #10B981;
  color: #FFFFFF;
}
.pill-danger {
  background: #EF4444;
  color: #FFFFFF;
}
.btn-exp-speak {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-exp-speak:hover {
  background: rgba(255, 255, 255, 0.2);
}
.exp-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-en {
  color: #E2E8F0;
  font-size: 0.94rem;
  line-height: 1.55;
}
.exp-vi {
  color: #FCD34D;
  font-size: 0.92rem;
  line-height: 1.55;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: 10px;
}

/* Nav Controls */
.q-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.btn-nav-prev, .btn-nav-next, .btn-nav-submit {
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}
.btn-nav-prev {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
}
.btn-nav-prev:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}
.btn-nav-prev:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn-nav-next {
  background: linear-gradient(135deg, #38BDF8, #0284C7);
  border: none;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.btn-nav-next:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.5);
}
.btn-nav-submit {
  background: linear-gradient(135deg, #10B981, #059669);
  border: none;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-nav-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

/* Palette Drawer */
.q-palette-drawer-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
.palette-label {
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.q-palette-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 500px;
  justify-content: center;
}
.palette-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
}
.palette-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.palette-btn.current {
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}
.palette-btn.answered {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38BDF8;
  color: #FFFFFF;
}
.palette-btn.answered-correct {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: #10B981 !important;
  color: #34D399 !important;
}
.palette-btn.answered-wrong {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #EF4444 !important;
  color: #F87171 !important;
}
.palette-flag-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.65rem;
}

/* Writing Workspace */
.arena-workspace-writing {
  margin-top: 10px;
}
.writing-intro-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.wib-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wib-icon { font-size: 1.8rem; }
.wib-title {
  color: #FCD34D;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.wib-desc {
  color: #E2E8F0;
  font-size: 0.86rem;
}
.writing-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.writing-prompt-card {
  background: rgba(26, 35, 54, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px 24px;
}
.wpc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.wpc-number {
  background: #8A1538;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
}
.wpc-title {
  color: #F8FAFC;
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  flex: 1;
}
.wpc-target-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}
.wpc-question-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #38BDF8;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  color: #F1F5F9;
  font-size: 0.96rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.wpc-keywords-box {
  margin-bottom: 14px;
}
.wpc-kw-label {
  color: #CBD5E1;
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.wpc-kw-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.kw-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.kw-chip.matched {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #34D399;
}
.wpc-editor-wrap {
  margin-bottom: 12px;
}
.wpc-textarea {
  width: 100%;
  background: rgba(18, 24, 38, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: #F8FAFC;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s ease;
}
.wpc-textarea:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
.wpc-editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 10px;
}
.wpc-word-counter {
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 600;
}
.wpc-word-counter.counter-ok {
  color: #34D399;
  font-weight: 700;
}
.wpc-editor-btns {
  display: flex;
  gap: 8px;
}
.btn-save-draft {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-save-draft:hover { background: rgba(255, 255, 255, 0.18); }
.btn-toggle-model {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-toggle-model:hover { background: rgba(245, 158, 11, 0.25); }

/* Model Exemplar Accordion */
.wpc-model-accordion {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  animation: fadeInDown 0.25s ease-out;
}
.wpc-acc-title {
  color: #FCD34D;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.wpc-rubrics ul {
  padding-left: 20px;
  color: #CBD5E1;
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.wpc-exemplar {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}
.wpc-model-text {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #10B981;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: #F1F5F9;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Scorecard Modal */
.exam-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exam-modal-overlay.active {
  display: flex;
}
.exam-modal-box {
  background: #111726;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.sc-header {
  text-align: center;
  margin-bottom: 20px;
}
.sc-icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
}
.sc-title {
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.sc-grade-badge {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.badge-grade-hd {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.badge-grade-d {
  background: linear-gradient(135deg, #38BDF8, #0284C7);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}
.badge-grade-c {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
}
.badge-grade-pass {
  background: linear-gradient(135deg, #64748B, #475569);
  color: #FFFFFF;
}
.sc-score-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
}
.sc-big-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  color: #F8FAFC;
  line-height: 1;
}
.sc-big-number span {
  font-size: 1.8rem;
  color: #64748B;
  font-weight: 700;
}
.sc-pct-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #FCD34D;
}
.sc-cheer-text {
  text-align: center;
  color: #E2E8F0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 22px;
}
.sc-breakdown-section {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.sc-breakdown-title {
  color: #CBD5E1;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.sc-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.score-subtopic-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ssr-info {
  display: flex;
  justify-content: space-between;
  color: #CBD5E1;
  font-size: 0.82rem;
}
.ssr-name { font-weight: 600; }
.ssr-ratio { font-weight: 700; }
.ssr-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.ssr-bar-fill {
  height: 100%;
  border-radius: 999px;
}
.sc-actions {
  display: flex;
  gap: 12px;
}
.btn-sc-review {
  flex: 1;
  background: linear-gradient(135deg, #38BDF8, #0284C7);
  border: none;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-sc-review:hover { transform: translateY(-2px); }
.btn-sc-retry {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-sc-retry:hover { background: rgba(255, 255, 255, 0.16); }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .exam-schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .exam-hero-card {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .exam-alert-card {
    flex-direction: column;
    align-items: stretch;
  }
  .exam-schedule-grid {
    grid-template-columns: 1fr;
  }
  .arena-header-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .arena-modes-bar {
    justify-content: space-between;
  }
  .q-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .q-nav-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .q-palette-drawer-toggle {
    flex-direction: column;
  }
}

/* ========================================================================== */
/* LEVEL SWITCHER (CORE VS ADVANCED), LEVEL BADGES & CORE STUDY GUIDE MODAL   */
/* ========================================================================== */
.arena-level-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.level-switcher-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.level-label {
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.exam-level-switcher {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: 12px;
  gap: 4px;
}
.exam-level-pill {
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 6px 14px;
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.exam-level-pill:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}
.exam-level-pill.active {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.exam-level-pill.pill-core.active {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.exam-level-pill.pill-advanced.active {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.btn-core-guide {
  background: linear-gradient(135deg, rgba(229, 168, 35, 0.15), rgba(229, 168, 35, 0.05));
  border: 1px solid rgba(229, 168, 35, 0.4);
  color: #FCD34D;
  border-radius: 12px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(229, 168, 35, 0.15);
}
.btn-core-guide:hover {
  background: linear-gradient(135deg, rgba(229, 168, 35, 0.3), rgba(229, 168, 35, 0.15));
  border-color: #FBBF24;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 168, 35, 0.3);
}

/* Level Badges */
.q-level-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 7px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-core {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}
.badge-advanced {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}
.palette-btn.palette-core {
  border-color: rgba(16, 185, 129, 0.35);
}
.palette-btn.palette-adv {
  border-color: rgba(245, 158, 11, 0.35);
}

/* Guide Modal Box */
.guide-modal-box {
  max-width: 960px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #0F172A;
  border: 1px solid rgba(229, 168, 35, 0.3);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  overflow: hidden;
}
.guide-modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gmh-tag {
  color: #E5A823;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.gmh-title {
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 6px 0;
}
.gmh-desc {
  color: #94A3B8;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}
.guide-tabs-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 24px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.guide-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 16px;
  color: #94A3B8;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.guide-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}
.guide-tab-btn.active {
  background: linear-gradient(135deg, rgba(229, 168, 35, 0.2), rgba(229, 168, 35, 0.1));
  border-color: #E5A823;
  color: #FCD34D;
  box-shadow: 0 0 10px rgba(229, 168, 35, 0.2);
}
.guide-panes-container {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}
.guide-section-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.badge-core-title {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #34D399;
}
.badge-adv-title {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #F59E0B;
  color: #FBBF24;
}
.guide-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
}
.guide-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s ease;
}
.guide-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
.guide-card h4 {
  margin: 0 0 8px 0;
  color: #F1F5F9;
  font-size: 0.96rem;
  font-weight: 700;
}
.guide-card p {
  margin: 0;
  color: #CBD5E1;
  font-size: 0.86rem;
  line-height: 1.55;
}


/* ==========================================================================
   TODAY & TOMORROW DUAL PREP & HOMEWORK STYLES
   ========================================================================== */

/* Mode Switcher Bar */
.prep-mode-switcher-bar {
  display: flex;
  gap: 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.prep-mode-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.prep-mode-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.prep-mode-btn.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.prep-mode-badge {
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  color: #e2e8f0;
}

/* Today & Tomorrow Section Blocks */
.today-section-block {
  border-left: 4px solid #3b82f6;
  padding-left: 18px;
  margin-bottom: 32px;
}

.tomorrow-section-block {
  border-left: 4px solid #10b981;
  padding-left: 18px;
  margin-bottom: 32px;
}

.section-badge-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: inline-block;
}

.section-badge-pill.today-pill {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.section-badge-pill.tomorrow-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.today-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.title-left {
  display: flex;
  flex-direction: column;
}

/* Homework Progress Track */
.hw-progress-track {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
}

.hw-progress-info {
  display: flex;
  justify-content: flex-end;
}

.hw-progress-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
}

.hw-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.hw-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Homework Celebration Banner */
.hw-celebration-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.25));
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  animation: bounceCelebration 0.4s ease-out;
}

@keyframes bounceCelebration {
  0% { transform: scale(0.95); opacity: 0; }
  60% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}

.hw-celebration-banner .celeb-icon {
  font-size: 2.2rem;
}

.hw-celebration-banner h4 {
  margin: 0 0 4px 0;
  color: #a7f3d0;
  font-size: 1.05rem;
}

.hw-celebration-banner p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Today Periods Grid */
.today-periods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .today-periods-grid {
    grid-template-columns: 1fr;
  }
}

/* Today Period Card */
.today-period-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.today-period-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.today-period-card.hw-done {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
}

/* Homework Interactive Box */
.hw-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hw-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hw-label-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hw-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.hw-status-badge.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hw-status-badge.status-done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hw-toggle-btn {
  background: rgba(51, 65, 85, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  width: 100%;
  justify-content: center;
}

.hw-toggle-btn:hover {
  background: rgba(71, 85, 105, 0.9);
  color: #fff;
}

.hw-toggle-btn.checked {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.hw-note-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hw-note-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  color: #cbd5e1;
  width: 100%;
  outline: none;
}

.hw-note-input:focus {
  border-color: #38bdf8;
}


/* ===== The Time Machine Audiobook Player & Bilingual Hub ===== */
.audiobook-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--accent-gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.ipad-bg-tag {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
}
.ab-tab-highlight {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.05)) !important;
  border-color: rgba(201, 162, 39, 0.5) !important;
  color: var(--accent-gold) !important;
  font-weight: 700 !important;
}

.ab-master-player-card {
  background: linear-gradient(135deg, rgba(26, 23, 18, 0.95), rgba(38, 33, 24, 0.95));
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(201,162,39,0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 14px;
  color: var(--text-primary);
}
.ab-mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.ab-mp-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ab-mp-day-badge {
  background: var(--accent-gold);
  color: #12100C;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ab-mp-title-vn {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.ab-mp-title-en {
  font-size: 0.86rem;
  color: var(--accent-gold);
  font-family: Georgia, serif;
  display: block;
  margin-top: 2px;
}
.ab-mp-wave-box {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.25);
  padding: 6px 12px;
  border-radius: 20px;
}
.ab-wave-bar {
  width: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
  animation: abWavePulse 0.9s ease-in-out infinite alternate;
}
.ab-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.ab-wave-bar:nth-child(3) { animation-delay: 0.35s; }
.ab-wave-bar:nth-child(4) { animation-delay: 0.2s; }
.ab-wave-bar:nth-child(5) { animation-delay: 0.45s; }
@keyframes abWavePulse {
  from { height: 4px; opacity: 0.3; }
  to { height: 16px; opacity: 1; }
}

.ab-mp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}
.ab-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ab-tb-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.ab-tb-btns {
  display: inline-flex;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 8px;
  padding: 3px;
}
.ab-tb-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ab-tb-btn:hover {
  color: #FFF;
}
.ab-tb-btn.active {
  background: var(--accent-gold);
  color: #12100C;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
}

.ab-mp-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
}
.ab-btn-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ab-btn-round.secondary {
  width: 44px;
  height: 44px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
}
.ab-btn-round.secondary:hover {
  background: var(--accent-gold);
  color: #12100C;
  transform: translateY(-1px);
}
.ab-btn-round.primary {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-gold), #dfb83c);
  color: #12100C;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.5);
}
.ab-btn-round.primary:hover {
  transform: scale(1.06);
  filter: brightness(1.15);
}
.ab-status-pill {
  position: absolute;
  right: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.ab-mp-timeline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ab-tl-time {
  font-size: 0.82rem;
  font-family: monospace;
  color: var(--text-secondary);
  min-width: 38px;
}
.ab-tl-scrub {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.ab-tl-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.8);
}

.ab-mp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.ab-footer-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.ab-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ab-footer-opt {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ab-footer-select {
  background: #15130F;
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.82rem;
  outline: none;
}

/* Summary Box */
.ab-summary-box {
  background: rgba(201, 162, 39, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 16px;
}
.ab-sb-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.ab-sb-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.ab-sb-words {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ab-sb-w-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201, 162, 39, 0.2);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.ab-sb-w-chip strong {
  color: var(--accent-gold);
}

/* Passage Container */
.ab-passage-container {
  background: #181510;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  line-height: 1.75;
}
.ab-para-pair {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(201, 162, 39, 0.18);
}
.ab-para-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ab-para-vi {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #e6c86e;
  background: rgba(201, 162, 39, 0.05);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-gold);
}
.ab-para-single {
  font-family: Georgia, serif;
  font-size: 1.12rem;
  color: var(--text-primary);
  margin-bottom: 14px;
}

/* Chapter Cards Grid */
.ab-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.ab-day-card {
  background: rgba(26, 23, 18, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ab-day-card:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}
.ab-day-card.active {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.3);
}
.ab-dc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ab-dc-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(201, 162, 39, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}
.ab-dc-wc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.ab-dc-title-vn {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.ab-dc-title-en {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: Georgia, serif;
}
.btn-open-far-dial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--accent-gold);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-open-far-dial:hover {
  background: var(--accent-gold);
  color: #12100C;
}


/* ==========================================================================
   MOBILE & IPHONE / IPAD ENHANCEMENTS FOR AUDIOBOOK & QUICK LAUNCH
   ========================================================================== */

/* Floating Sticky Audiobook Launcher */
.sticky-audio-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  pointer-events: auto;
}

.btn-sticky-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(138, 21, 56, 0.95), rgba(43, 20, 28, 0.95));
  color: #F8E7D8;
  border: 1.5px solid rgba(212, 168, 83, 0.7);
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(212, 168, 83, 0.35);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-sticky-audio:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 168, 83, 0.6);
  border-color: #F8E7D8;
}

.btn-sticky-audio:active {
  transform: translateY(1px) scale(0.98);
}

.bsa-icon {
  font-size: 1.3rem;
  animation: pulse-audio-icon 2s infinite ease-in-out;
}

@keyframes pulse-audio-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(-5deg); }
}

.bsa-text {
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.bsa-pulse {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: bsa-shine 3.5s infinite;
}

@keyframes bsa-shine {
  0% { left: -100%; }
  25%, 100% { left: 200%; }
}

/* Quick Launch Banner in Prep Tab */
.prep-audiobook-banner {
  margin: 20px 0 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(30, 20, 25, 0.92), rgba(15, 12, 14, 0.96));
  border: 1.5px solid rgba(212, 168, 83, 0.45);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pab-glow-orb {
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.25), transparent 70%);
  pointer-events: none;
}

.pab-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pab-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #D4A853;
  text-transform: uppercase;
}

.pab-pill {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.25);
  color: #E2D1A6;
}

.pab-pill-ios {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
  font-weight: 600;
}

.pab-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #F8E7D8;
  margin: 0 0 8px;
  font-family: 'Outfit', sans-serif;
}

.pab-desc {
  font-size: 0.92rem;
  color: #C2B6B0;
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 800px;
}

.pab-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pab-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.pab-btn-en {
  background: linear-gradient(135deg, #D4A853, #b8862d);
  color: #1a1208;
  box-shadow: 0 4px 14px rgba(212, 168, 83, 0.35);
}

.pab-btn-en:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.55);
}

.pab-btn-vi {
  background: linear-gradient(135deg, #8A1538, #5c0e25);
  color: #F8E7D8;
  border: 1px solid rgba(212, 168, 83, 0.4);
  box-shadow: 0 4px 14px rgba(138, 21, 56, 0.35);
}

.pab-btn-vi:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 21, 56, 0.55);
}

.pab-btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #EFE7D5;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pab-btn-browse:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 168, 83, 0.5);
}

/* Daily creature audio button */
.btn-dcc-audio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.4);
  color: #F8E7D8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dcc-audio:hover {
  background: rgba(212, 168, 83, 0.3);
  transform: translateY(-1px);
}

/* Far dial card direct listen button */
.btn-fd-listen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(138, 21, 56, 0.3));
  border: 1.5px solid #D4A853;
  border-radius: 12px;
  color: #F8E7D8;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fd-listen small {
  font-size: 0.75rem;
  color: #D4A853;
  font-weight: 500;
}

.btn-fd-listen:hover {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.35), rgba(138, 21, 56, 0.45));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 168, 83, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .sticky-audio-launcher {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  .btn-sticky-audio {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .prep-audiobook-banner {
    padding: 18px 14px;
  }
  .pab-title {
    font-size: 1.18rem;
  }
  .pab-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .pab-btn-play, .pab-btn-browse {
    justify-content: center;
    width: 100%;
  }
}
