/* ============================================================================
   THINKRIGHT UTME PRACTICE GROUND STYLES (css/practice.css)
   ============================================================================ */

.page-practice {
  overflow-x: hidden;
  background: var(--surface-bg);
  color: var(--text-primary);
  font-family: var(--font-body, 'Manrope', system-ui, -apple-system, sans-serif);
}

.practice-container {
  width: 100%;
  max-width: 1160px;
  margin: 1.5rem auto 5rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.practice-main {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  min-width: 0;
}

/* ----------------------------------------------------------------------------
   1. UNBOXED HERO & WELCOME
   ---------------------------------------------------------------------------- */
.practice-hero {
  position: relative;
  background: transparent;
  border: none;
  padding: 0.5rem 0 0;
}

.practice-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.practice-brand-prefix {
  display: inline-block;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-primary, #1d4ed8);
  margin-bottom: 0.25rem;
}

html[data-theme='dark'] .practice-brand-prefix {
  color: #60a5fa;
}

.practice-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  color: #059669;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme='dark'] .practice-live-chip {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.practice-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: practicePulse 1.8s infinite;
}

@keyframes practicePulse {
  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 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.practice-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(2.1rem, 3.8vw, 2.85rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.practice-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 1.25rem 0;
}

/* Random Drill Quick Trigger */
.practice-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.practice-random-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(99, 102, 241, 0.12) 100%);
  border: 1px solid rgba(29, 78, 216, 0.25);
  color: var(--accent-primary, #1d4ed8);
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-random-btn:hover {
  background: var(--accent-primary, #1d4ed8);
  color: #ffffff;
  border-color: var(--accent-primary, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.25);
}

html[data-theme='dark'] .practice-random-btn {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

html[data-theme='dark'] .practice-random-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.practice-syllabus-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.practice-syllabus-link:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* ----------------------------------------------------------------------------
   2. PERFORMANCE RADAR & STREAK (UNBOXED ARCHITECTURE)
   ---------------------------------------------------------------------------- */
.practice-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.25rem;
}

/* Streak Card Widget */
.practice-hud-card {
  background: var(--surface-bg);
  border: 1px solid var(--line-subtle);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.03);
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

html[data-theme='dark'] .practice-hud-card {
  background: rgba(17, 24, 39, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.practice-hud-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.practice-hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* Animated Dancing Flame & Embers */
.streak-interactive-box {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, rgba(234, 88, 12, 0.1) 100%);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.streak-interactive-box:hover {
  border-color: #ea580c;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.15);
}

html[data-theme='dark'] .streak-interactive-box {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.15) 0%, rgba(180, 83, 9, 0.12) 100%);
  border-color: rgba(249, 115, 22, 0.35);
}

html[data-theme='dark'] .streak-interactive-box:hover {
  border-color: #f97316;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}

.streak-flame-stage {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.streak-flame-halo {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.45) 0%, rgba(234, 88, 12, 0) 70%);
  animation: flameHaloPulse 2s ease-in-out infinite alternate;
}

@keyframes flameHaloPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0.95; filter: blur(2px); }
}

.streak-flame-icon {
  font-size: 1.85rem;
  color: #ea580c;
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.8));
  animation: flameFlicker 1.8s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.7)); }
  50% { transform: scale(1.1) rotate(3deg); filter: drop-shadow(0 0 14px rgba(234, 88, 12, 0.9)); }
  100% { transform: scale(0.96) rotate(-1deg); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8)); }
}

/* Rising Ember Sparks */
.streak-ember {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fbbf24;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.streak-ember--1 {
  left: 20%;
  animation: emberRise1 2.2s infinite ease-out;
}
.streak-ember--2 {
  left: 55%;
  animation: emberRise2 1.9s 0.6s infinite ease-out;
}
.streak-ember--3 {
  left: 75%;
  animation: emberRise3 2.4s 1.1s infinite ease-out;
}

@keyframes emberRise1 {
  0% { bottom: 10px; opacity: 1; transform: scale(1) translateX(0); }
  100% { bottom: 44px; opacity: 0; transform: scale(0.4) translateX(-8px); }
}
@keyframes emberRise2 {
  0% { bottom: 12px; opacity: 1; transform: scale(1.2) translateX(0); }
  100% { bottom: 48px; opacity: 0; transform: scale(0.3) translateX(10px); }
}
@keyframes emberRise3 {
  0% { bottom: 10px; opacity: 1; transform: scale(0.9) translateX(0); }
  100% { bottom: 42px; opacity: 0; transform: scale(0.2) translateX(-5px); }
}

/* 7-Day Gamified Week Streak Tracker */
.streak-week-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(249, 115, 22, 0.25);
  margin-top: 0.75rem;
}

.streak-day-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.streak-day-dot__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.streak-day-dot__bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  background: var(--surface-subtle);
  border: 1px solid var(--line-subtle);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.streak-day-dot.is-completed .streak-day-dot__bubble {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: #f97316;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

.streak-day-dot.is-today .streak-day-dot__bubble {
  border-color: #ea580c;
  animation: todayRingPulse 1.8s infinite;
}

@keyframes todayRingPulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

/* Projection Score Display inside HUD */
.practice-score-display {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0.65rem 0;
}

.practice-score-num {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-primary, #1d4ed8);
  line-height: 1;
}

html[data-theme='dark'] .practice-score-num {
  color: #60a5fa;
}

.practice-score-max {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* ----------------------------------------------------------------------------
   3. COMPACT TARGET FACULTY HUB & RECOMMENDED DRILLS (DEFAULT BRAND COLORS)
   ---------------------------------------------------------------------------- */
.practice-spotlight-hub {
  position: relative;
  background: var(--surface-bg);
  border: 1px solid var(--line-subtle);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

html[data-theme='dark'] .practice-spotlight-hub {
  background: rgba(17, 24, 39, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.practice-spotlight-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.practice-spotlight-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.practice-faculty-chips {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.faculty-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-subtle);
  background: var(--surface-subtle);
  color: var(--text-primary);
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.faculty-preset-chip:hover {
  border-color: var(--accent-primary);
  background: var(--surface-bg);
}

.faculty-preset-chip.is-active {
  background: rgba(29, 78, 216, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

html[data-theme='dark'] .faculty-preset-chip.is-active {
  background: rgba(59, 130, 246, 0.15);
  border-color: #60a5fa;
  color: #93c5fd;
  box-shadow: 0 0 0 1px #60a5fa;
}

.faculty-preset-chip__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.faculty-preset-chip__name {
  font-size: 0.82rem;
  font-weight: 700;
}

/* Compact Curated Recommendations Rail */
.practice-curated-rail {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-subtle);
}

.practice-curated-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.practice-curated-chips {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.practice-curated-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-bg);
  border: 1px solid var(--line-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.practice-curated-pill:hover {
  background: var(--surface-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.practice-curated-pill__icon {
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.practice-curated-pill__action {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Hide Navbar Search on Practice Page (Mobile & Desktop) */
.page-practice .tr-navbar__search-toggle,
.page-practice .tr-navbar__search-row,
.page-practice #tr-navbar-search-toggle,
.page-practice #tr-navbar-search-row {
  display: none !important;
}

/* ----------------------------------------------------------------------------
   4. STREAM FILTER TABS & LIVE SEARCH BAR
   ---------------------------------------------------------------------------- */
.practice-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.practice-stream-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-subtle);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--line-subtle);
  overflow-x: auto;
  max-width: 100%;
}

html[data-theme='dark'] .practice-stream-tabs {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.practice-stream-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.practice-stream-tab i {
  font-size: 0.9rem;
}

.practice-stream-tab:hover {
  color: var(--text-primary);
}

.practice-stream-tab.is-active {
  background: var(--accent-primary, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* Search Input */
.practice-search-wrap {
  position: relative;
  min-width: 240px;
  max-width: 320px;
  flex: 1;
}

.practice-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border-radius: 12px;
  border: 1px solid var(--line-subtle);
  background: var(--surface-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.practice-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.practice-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   5. SUBJECTS GRID & MODERN SUBJECT CARDS
   ---------------------------------------------------------------------------- */
.practice-deck-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.practice-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.practice-deck-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.practice-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--surface-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Grid Layout */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

/* Individual Modern Subject Card - Sturdy & rock-solid without any hover jumps */
.subject-card,
body.page-practice .subject-card {
  position: relative;
  background: var(--surface-bg);
  border: 1px solid var(--line-subtle);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.03);
  box-sizing: border-box;
  text-decoration: none;
  min-height: 200px;
  transform: none !important;
}

html[data-theme='dark'] .subject-card,
html[data-theme='dark'] body.page-practice .subject-card {
  background: rgba(17, 24, 39, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Strictly no hover movement, lift, scale, or elevation jumps */
.subject-card:hover,
.subject-card:active,
.subject-card:focus,
body.page-practice .subject-card:hover,
body.page-practice .subject-card:active,
body.page-practice .subject-card:focus {
  transform: none !important;
  border-color: var(--subject-accent, var(--accent-primary));
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.03);
}

html[data-theme='dark'] .subject-card:hover,
html[data-theme='dark'] body.page-practice .subject-card:hover {
  transform: none !important;
  border-color: var(--subject-accent, #60a5fa);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.subject-card:hover *,
body.page-practice .subject-card:hover * {
  transform: none !important;
}

/* Combo Highlight Ring */
.subject-card.is-combo-highlighted {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 2px var(--accent-primary), 0 8px 24px rgba(29, 78, 216, 0.2) !important;
  background: rgba(29, 78, 216, 0.04) !important;
}

html[data-theme='dark'] .subject-card.is-combo-highlighted {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 2px #60a5fa, 0 8px 24px rgba(59, 130, 246, 0.3) !important;
  background: rgba(59, 130, 246, 0.08) !important;
}

.subject-card.is-hidden {
  display: none !important;
}

/* Card Top: Icon Pod & Stream Badge */
.subject-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1rem;
}

.subject-icon-pod {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--subject-bg, rgba(29, 78, 216, 0.1));
  color: var(--subject-accent, var(--accent-primary));
}

.subject-faculty-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--text-muted);
}

/* Card Body: Title & Topic Scope */
.subject-card h3 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
}

.subject-topic-snippet {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0 0 1rem 0;
  flex: 1;
}

/* Card Bottom: Question Count & Action Arrow */
.subject-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-subtle);
  margin-top: auto;
}

.subject-q-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.subject-q-count i {
  font-size: 0.78rem;
  color: var(--accent-primary);
}

.subject-start-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-primary);
}

/* ----------------------------------------------------------------------------
   6. UNBOXED 3-STEP PRACTICE GUIDANCE (HOW IT WORKS)
   ---------------------------------------------------------------------------- */
.practice-guide-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.practice-guide-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.practice-guide-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.practice-guide-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}

.practice-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.practice-step-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem;
  background: var(--surface-bg);
  border: 1px solid var(--line-subtle);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.02);
}

html[data-theme='dark'] .practice-step-item {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.practice-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(29, 78, 216, 0.1);
  color: var(--accent-primary);
}

html[data-theme='dark'] .practice-step-icon {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.practice-step-item h4 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.practice-step-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* ----------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .practice-container {
    margin: 1rem auto 4rem;
    padding: 0 1rem;
  }

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

  .practice-hud-grid {
    grid-template-columns: 1fr;
  }

  .practice-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .practice-search-wrap {
    min-width: 100%;
    max-width: 100%;
  }

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

/* Floating Action Toast */
.tr-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  background: var(--surface-bg, #ffffff);
  border: 1px solid var(--line-subtle, rgba(0, 0, 0, 0.1));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme='dark'] .tr-toast {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.tr-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .tr-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.5rem;
    justify-content: center;
  }
}

