/* FluentAI Core Stylesheet - Modern Glassmorphic PTE Cockpit UI */

:root {
  /* Futuristic Color Tokens */
  --bg-app: #080A10;
  --bg-sidebar: #0C0F19;
  --bg-card: rgba(18, 22, 35, 0.65);
  --bg-card-hover: rgba(26, 32, 53, 0.85);
  --bg-input: rgba(10, 12, 22, 0.8);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --primary: #3B82F6;           /* Brand Blue for Dark Mode */
  --primary-rgb: 59, 130, 246;
  --accent: #0099FF;            /* Brand Cyan */
  --accent-rgb: 0, 153, 255;
  
  --success: #10B981;           /* Emerald */
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #F59E0B;           /* Amber */
  --warning-bg: rgba(245, 158, 11, 0.15);
  --error: #EF4444;             /* Coral Red */
  --error-bg: rgba(239, 68, 68, 0.15);
  
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-round: 9999px;
  
  --shadow-neon-primary: 0 0 20px rgba(59, 130, 246, 0.25);
  --shadow-neon-accent: 0 0 20px rgba(0, 153, 255, 0.25);
  --glass-filter: blur(16px);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Logo color adaptors for dark mode */
  --text-logo-primary: #FFFFFF;
  --text-logo-secondary: #9CA3AF;
}

/* LIGHT THEME OVERRIDES */
body.light-theme {
  --bg-app: #FAFBFD;            /* Very clean soft warm white background */
  --bg-sidebar: #FFFFFF;        /* Pure white sidebar (logo blends 100% transparently!) */
  --bg-card: #FFFFFF;           /* Pure white cards */
  --bg-card-hover: #F8FAFC;
  --bg-input: #F8FAFC;
  --border-color: #E2E8F0;      /* Soft light grey border */
  --border-color-hover: #CBD5E1;
  
  --text-primary: #0F172A;      /* Deep Slate Navy (ASPIRE text color) */
  --text-secondary: #475569;    /* Medium Slate Gray */
  --text-muted: #64748B;       /* Muted Slate Gray */
  
  --primary: #122c5e;           /* Premium Royal Midnight Navy (ASPIRE text) */
  --primary-rgb: 18, 44, 94;
  --accent: #1396e2;            /* Premium Sky/Cyan Blue (Education text) */
  --accent-rgb: 19, 150, 226;
  
  --text-logo-primary: #122c5e;
  --text-logo-secondary: #1396e2;
  
  --shadow-neon-primary: 0 4px 20px rgba(18, 44, 94, 0.08);
  --shadow-neon-accent: 0 4px 20px rgba(19, 150, 226, 0.08);
}

/* Light mode adjustments */
body.light-theme .card-glass,
body.light-theme .card-glass-glow {
  box-shadow: 0 8px 30px rgba(18, 44, 94, 0.03);
  border: 1px solid #E2E8F0;
}

body.light-theme .pricing-card.premium {
  background: linear-gradient(180deg, rgba(19, 150, 226, 0.04) 0%, #FFFFFF 100%);
  box-shadow: 0 12px 30px rgba(19, 150, 226, 0.12);
  border: 1.5px solid var(--accent);
}

body.light-theme .hero-title {
  background: linear-gradient(135deg, var(--primary) 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .hero-subtitle {
  color: var(--text-secondary);
}

body.light-theme .visual-brain-glow {
  background: radial-gradient(circle, rgba(19, 150, 226, 0.15) 0%, transparent 70%);
}

body.light-theme .feature-icon-wrapper {
  background: rgba(19, 150, 226, 0.08);
  color: var(--accent);
  border: 1px solid rgba(19, 150, 226, 0.15);
}

body.light-theme .landing-stats-panel {
  background: linear-gradient(135deg, rgba(18, 44, 94, 0.04), rgba(19, 150, 226, 0.04));
  border: 1px solid var(--border-color);
}

body.light-theme .billing-toggle {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-color);
}

body.light-theme .q-row {
  background-color: #FFFFFF;
}

body.light-theme .tracker-title, 
body.light-theme .countdown-lbl, 
body.light-theme .filter-title, 
body.light-theme .metric-title {
  color: var(--text-secondary);
}

body.light-theme .streak-day .day-indicator {
  background-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .visualizer-wrapper {
  background-color: #E2E8F0;
}

body.light-theme .essay-editor-wrapper {
  background-color: #FFFFFF;
}

body.light-theme .draggable-words-pool {
  background-color: #F8FAFC;
}

body.light-theme .word-pill {
  background-color: #FFFFFF;
}

body.light-theme .tutor-bubble-msg.tutor {
  background-color: #FFFFFF;
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
  height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-round);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Layout Framework */
.app-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* SIDEBAR NAV */
.sidebar {
  position: fixed;
  left: 0;
  top: 24px;
  bottom: 24px;
  height: calc(100vh - 48px);
  width: 280px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 10px 0 30px rgba(18, 44, 94, 0.05);
  display: flex;
  flex-direction: column;
  transform: translateX(-115%);
  transition: transform var(--transition-normal);
  z-index: 1000;
  margin-left: 24px;
}

.sidebar.open {
  transform: translateX(0);
}

/* Sidebar Overlay Backdrop */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(4px);
  z-index: 999;
  transition: opacity var(--transition-normal);
  opacity: 1;
}

.sidebar-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.sidebar-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: var(--shadow-neon-primary);
}

.brand-logo svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(to right, #FFF, #C7D2FE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-name span {
  background: linear-gradient(to right, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(108, 99, 255, 0.15) 0%, rgba(0, 198, 255, 0.03) 100%);
  border-left: 3px solid var(--primary);
  color: var(--text-primary);
}

.nav-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link.active .nav-icon, .nav-link:hover .nav-icon {
  color: var(--accent);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(0, 198, 255, 0.2) 100%);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
  position: relative;
}

.status-indicator-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-sidebar);
}

.status-indicator-dot.online {
  background-color: var(--success);
}

.profile-details {
  overflow: hidden;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-tier {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-logout {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.btn-logout svg {
  width: 16px;
  height: 16px;
}

/* MAIN LAYOUT */
.main-layout {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
}

/* TOP BAR */
.top-bar {
  height: 80px;
  border: 1px solid var(--border-color);
  margin: 16px 24px 0 24px;
  width: calc(100% - 48px);
  border-radius: 9999px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background-color: var(--bg-card);
  box-shadow: 0 4px 20px rgba(18, 44, 94, 0.03);
  z-index: 90;
  transition: all var(--transition-normal);
}

.topbar-logo-img {
  height: 50px;
  width: auto;
  transition: height var(--transition-fast);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-logo-area {
  display: none;
  align-items: center;
  gap: 8px;
}

.logo-svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
}

.logo-text span {
  color: var(--primary);
}

.view-title {
  font-size: 20px;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Header widgets */
.streak-widget {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--warning);
}

.points-widget {
  background: rgba(0, 198, 255, 0.08);
  border: 1px solid rgba(0, 198, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.btn-icon-only {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-round);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-only:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  color: var(--accent);
}

.btn-icon-only svg {
  width: 18px;
  height: 18px;
}

.relative {
  position: relative;
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* User Menu Trigger */
.user-menu-trigger {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.user-menu-trigger:hover {
  border-color: var(--accent);
}

.user-menu-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* DROP-DOWN MENU STYLES */
.dropdown-menu {
  position: absolute;
  top: 55px;
  right: 0;
  width: 280px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 16px;
  display: flex;
  flex-direction: column;
  z-index: 120;
  animation: slideDown var(--transition-fast);
}

.dropdown-menu.hidden {
  display: none !important;
}

.dropdown-user-header {
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.dropdown-name {
  font-weight: 600;
  font-size: 15px;
}

.dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
}

.dropdown-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 12px 0;
}

.dropdown-item {
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.dropdown-item.text-danger:hover {
  background-color: rgba(239, 68, 68, 0.08);
  color: #EF4444;
}

/* Notifications Dropdown Specifics */
.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dropdown-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.btn-text-only {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
}

.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.notification-item {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--primary);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-item.unread {
  border-left-color: var(--accent);
  background: rgba(0, 198, 255, 0.03);
}

.notification-time {
  font-size: 10px;
  color: var(--text-muted);
}

/* VIEWPORT CONTAINER */
.viewport-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

/* GENERAL GRID SYSTEM */
.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-dashboard {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

/* PREMIUM UTILITIES & CARD DESIGNS */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--glass-filter);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
}

.card-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.card-glass-glow {
  background: var(--bg-card);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--glass-filter);
  box-shadow: var(--shadow-neon-primary);
  position: relative;
  overflow: hidden;
}

.card-glow-accent {
  border: 1px solid rgba(0, 198, 255, 0.15);
  box-shadow: var(--shadow-neon-accent);
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5b54db);
  color: #FFF;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #00addc);
  color: #080A10;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline-glow {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(0, 198, 255, 0.3);
  color: var(--accent);
}

.btn-outline-glow:hover {
  background: rgba(0, 198, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.25);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #d32f2f);
  color: #FFF;
}

.btn-danger:hover {
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.btn-outline-danger {
  background: transparent;
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  color: var(--error);
}

.btn-outline-danger:hover {
  background: var(--error-bg);
  color: #FFF;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

.shadow-neon {
  box-shadow: var(--shadow-neon-primary);
}

/* Forms styling */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.input-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-group input, .input-group select, .input-group textarea {
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 198, 255, 0.2);
}

/* SKELETON LOADER */
.loading-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-hero {
  height: 200px;
  width: 100%;
}

.skeleton-card {
  height: 120px;
  width: 100%;
}

/* ==========================================================================
   VIEW: LANDING PAGE
   ========================================================================== */
.landing-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 500px;
  padding: 40px 0;
  gap: 40px;
}

.hero-text {
  max-width: 600px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFF 40%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

/* Animated visual mockup */
.hero-visual {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.visual-brain-glow {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  position: absolute;
  animation: breathe 4s ease-in-out infinite alternate;
}

.visual-canvas-wave {
  width: 100%;
  height: 200px;
  z-index: 10;
}

/* Features grid */
.section-heading-center {
  text-align: center;
  margin: 80px 0 40px;
}

.section-heading-center h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.section-heading-center p {
  color: var(--text-secondary);
  font-size: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.feature-card {
  text-align: left;
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* STATS */
.landing-stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(0, 198, 255, 0.05));
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 60px 0;
}

.stat-item h3 {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* PRICING */
.pricing-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 80px 0 40px;
}

.billing-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-round);
  padding: 4px;
}

.billing-toggle button {
  background: none;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.billing-toggle button.active {
  background-color: var(--primary);
  color: #FFF;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  margin-bottom: 80px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 36px;
}

.pricing-card.premium {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(108, 99, 255, 0.05) 0%, rgba(18, 22, 35, 0.65) 100%);
  box-shadow: var(--shadow-neon-primary);
}

.price-header h3 {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-val {
  font-size: 48px;
  font-weight: 800;
  margin: 16px 0;
  display: flex;
  align-items: baseline;
  color: var(--text-primary);
}

.price-val span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
  flex-grow: 1;
}

.price-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

/* ==========================================================================
   VIEW: DASHBOARD
   ========================================================================== */
.overview-score-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.score-details h3 {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.huge-score {
  font-size: 54px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.huge-score span {
  font-size: 24px;
  color: var(--text-muted);
}

.overall-progress-indicator {
  position: relative;
  width: 100px;
  height: 100px;
}

.svg-ring {
  transform: rotate(-90deg);
}

.svg-ring-bg {
  stroke: rgba(255, 255, 255, 0.03);
}

.svg-ring-fill {
  stroke: url(#ring-gradient);
  stroke-dasharray: 282.6;
  stroke-dashoffset: 84.7; /* Simulated Progress around 70% */
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-slow);
}

.ring-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
}

.streak-tracker-widget {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tracker-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.streak-days-row {
  display: flex;
  justify-content: space-between;
}

.streak-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.day-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.day-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.streak-day.completed .day-indicator {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}

.streak-day.today .day-indicator {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
}

/* Skills Cards Grid */
.dashboard-skills-section {
  margin-top: 36px;
}

.skills-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.mini-skill-card {
  padding: 20px;
}

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

.skill-icon-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-circle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-circle-icon svg {
  width: 16px;
  height: 16px;
}

.skill-name-label {
  font-size: 14px;
  font-weight: 600;
}

.skill-score-label {
  font-size: 15px;
  font-weight: 700;
}

.progressbar-outer {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-round);
  overflow: hidden;
  margin-bottom: 12px;
}

.progressbar-inner {
  height: 100%;
  border-radius: var(--radius-round);
}

.speaking-color { background-color: var(--accent); }
.writing-color  { background-color: var(--primary); }
.reading-color  { background-color: var(--success); }
.listening-color { background-color: var(--warning); }

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* AI Recommendation Card */
.ai-recommendation-card {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 198, 255, 0.03) 100%);
  border: 1px dashed rgba(0, 198, 255, 0.4);
}

.ai-recommend-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-spark-icon {
  animation: pulse 2s infinite;
  color: var(--accent);
}

.ai-recommend-body h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.ai-recommend-body p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Charts and widgets row */
.dashboard-analytics-row {
  margin-top: 32px;
}

.chart-canvas-wrapper {
  height: 220px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}

/* Custom SVG Chart Styling */
.svg-chart {
  width: 100%;
  height: 100%;
}

.chart-line {
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0px 8px 8px rgba(0, 198, 255, 0.2));
}

.chart-dots {
  fill: var(--accent);
  stroke: var(--bg-app);
  stroke-width: 2;
  cursor: pointer;
  transition: r var(--transition-fast);
}

.chart-dots:hover {
  r: 7;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 1;
}

.chart-axis-text {
  fill: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

/* Spider/Radar Chart */
.radar-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
}

.radar-web {
  stroke: rgba(255, 255, 255, 0.05);
  fill: none;
}

.radar-polygon {
  fill: rgba(108, 99, 255, 0.25);
  stroke: var(--primary);
  stroke-width: 2;
}

.radar-axis-line {
  stroke: rgba(255, 255, 255, 0.08);
}

/* Countdown Widgets */
.dashboard-countdown-box {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 12px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 55px;
}

.countdown-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.countdown-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Focus goals */
.focus-goals-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.focus-goal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  font-size: 13.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.focus-goal-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.btn-checkbox {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--text-muted);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.focus-goal-item.completed .btn-checkbox {
  background-color: var(--success);
  border-color: var(--success);
}

.focus-goal-item.completed .btn-checkbox::after {
  content: "✓";
  color: #FFF;
  font-size: 12px;
  font-weight: bold;
}

.focus-goal-item.completed span {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ==========================================================================
   VIEW: PRACTICE MODE
   ========================================================================== */
.practice-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.filters-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.filter-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-btn {
  text-align: left;
  background: none;
  border: 1px solid transparent;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.2);
  color: var(--primary);
  font-weight: 600;
}

.filter-count {
  background-color: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-round);
  color: var(--text-muted);
}

.filter-btn.active .filter-count {
  background-color: var(--primary);
  color: #FFF;
}

/* Question bank view content */
.practice-main-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-bar-row {
  display: flex;
  gap: 12px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-input-wrapper input {
  width: 100%;
  padding-left: 44px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
  outline: none;
}

.search-input-wrapper input:focus {
  border-color: var(--accent);
}

/* Practice deck rows */
.practice-questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.q-row:hover {
  border-color: var(--border-color-hover);
  transform: translateX(4px);
}

.q-left {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.q-status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.q-status-icon.done {
  background-color: var(--success-bg);
  color: var(--success);
}

.q-status-icon.pending {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.q-details {
  display: flex;
  flex-direction: column;
}

.q-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.q-meta-badges {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.badge-q-type {
  font-size: 10.5px;
  background-color: rgba(108, 99, 255, 0.12);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}

.badge-difficulty {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}

.badge-difficulty.easy { background-color: var(--success-bg); color: var(--success); }
.badge-difficulty.medium { background-color: var(--warning-bg); color: var(--warning); }
.badge-difficulty.hard { background-color: var(--error-bg); color: var(--error); }

.badge-uncleared {
  font-size: 10.5px;
  background-color: var(--error-bg);
  color: var(--error);
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.q-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.q-score-stamp {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}

/* Vocabulary flashcard builder */
.flashcards-layout-box {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flashcard-3d-wrapper {
  perspective: 1000px;
  width: 320px;
  height: 200px;
  cursor: pointer;
  margin-bottom: 24px;
}

.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashcard-3d-wrapper.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.flashcard-front {
  background: linear-gradient(135deg, rgba(18, 22, 35, 0.9) 0%, rgba(10, 12, 22, 0.9) 100%);
  color: var(--text-primary);
}

.flashcard-back {
  background: linear-gradient(135deg, var(--bg-sidebar) 0%, var(--bg-card) 100%);
  transform: rotateY(180deg);
}

.vocab-word {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 6px;
}

.vocab-ipa {
  font-size: 13px;
  color: var(--text-muted);
}

.vocab-pos {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.vocab-def {
  font-size: 14px;
  text-align: center;
  margin-bottom: 8px;
}

.vocab-example {
  font-size: 12px;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
}

.flashcard-tip {
  font-size: 11px;
  color: var(--text-muted);
  position: absolute;
  bottom: 16px;
}

.flashcard-nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   VIEW: MOCK TEST SIMULATOR
   ========================================================================== */
.mock-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.mock-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-status.active { background-color: var(--success-bg); color: var(--success); }
.badge-status.locked { background-color: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.mock-card-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 10px 0;
}

/* Active Simulation View */
.simulator-card {
  padding: 32px;
  min-height: 480px;
}

.simulator-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.simulator-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.simulator-timer {
  background-color: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error);
  padding: 6px 14px;
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 600;
}

.simulator-content-box {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}

.simulator-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border-color);
  padding-right: 16px;
}

.sim-step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.sim-step-indicator.active {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-weight: 600;
}

.sim-step-indicator.done {
  color: var(--success);
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

.sim-step-indicator.active .step-circle {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 198, 255, 0.2);
}

.sim-step-indicator.done .step-circle {
  background-color: var(--success);
  border-color: var(--success);
  color: #FFF;
}

.sim-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-instructions {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sim-prompt-box {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
}

/* Audio Recording & Waveform controls */
.audio-recorder-deck {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: rgba(255,255,255,0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

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

.rec-status {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rec-status-dot {
  width: 10px;
  height: 10px;
  background-color: var(--text-muted);
  border-radius: 50%;
}

.rec-status-dot.pulse-red {
  background-color: var(--error);
  animation: pulse 1s infinite alternate;
}

.visualizer-wrapper {
  background-color: #040509;
  border-radius: var(--radius-sm);
  height: 80px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visualizer-canvas {
  width: 100%;
  height: 100%;
}

.visualizer-placeholder {
  position: absolute;
  color: var(--text-muted);
  font-size: 12px;
}

/* Audio Player Component */
.lecture-player-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.player-details-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-pulse-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-pulse-icon svg {
  width: 18px;
  height: 18px;
}

.player-controls-flex {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-play-trigger {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  border: none;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-play-trigger:hover {
  transform: scale(1.08);
}

.btn-play-trigger svg {
  width: 14px;
  height: 14px;
}

.player-timeline-outer {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-round);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.player-timeline-inner {
  height: 100%;
  background-color: var(--primary);
  width: 0%;
}

.player-time-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

/* Editor container */
.essay-editor-wrapper {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  font-size: 12.5px;
}

.word-count-badge {
  background-color: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: var(--radius-round);
  font-weight: 600;
}

.word-count-badge.invalid {
  color: var(--error);
  background-color: var(--error-bg);
}

.essay-editor-wrapper textarea {
  width: 100%;
  height: 180px;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

/* Drag Drop fill in the blanks */
.drag-text-box {
  font-size: 15px;
  line-height: 2;
}

.blank-box {
  display: inline-flex;
  width: 110px;
  height: 26px;
  border-bottom: 2px solid var(--primary);
  background-color: rgba(255, 255, 255, 0.02);
  margin: 0 4px;
  vertical-align: middle;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.blank-box.drag-over {
  background-color: rgba(0, 198, 255, 0.1);
  border-color: var(--accent);
}

.blank-box .word-pill {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: none;
  border: none;
}

.draggable-words-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.word-pill {
  padding: 4px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  cursor: grab;
  user-select: none;
  transition: all var(--transition-fast);
}

.word-pill:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 198, 255, 0.15);
}

.word-pill:active {
  cursor: grabbing;
}

/* ==========================================================================
   VIEW: AI SCORING & FEEDBACK PAGE
   ========================================================================== */
.scoring-header {
  margin-bottom: 24px;
}

.scoring-metrics-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  text-align: center;
}

.metric-title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.metric-score {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}

.metric-score span {
  font-size: 16px;
  color: var(--text-muted);
}

.scoring-detailed-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
}

.response-card-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* text highlighter errors markup */
.markup-panel {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 15px;
  line-height: 1.8;
}

.word-good {
  color: var(--success);
  border-bottom: 1.5px solid rgba(16, 185, 129, 0.3);
}

.word-warn {
  color: var(--warning);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.3);
  cursor: help;
  position: relative;
}

.word-bad {
  color: var(--error);
  border-bottom: 1.5px solid rgba(239, 68, 68, 0.3);
  text-decoration: line-through;
  cursor: help;
  position: relative;
}

/* Suggestions breakdown */
.scoring-sidebar-panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.critic-item {
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--primary);
  border-radius: 0 4px 4px 0;
  font-size: 13px;
}

.critic-item.grammar-err { border-left-color: var(--error); }
.critic-item.vocab-tip { border-left-color: var(--accent); }

.synonyms-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.synonym-item {
  background-color: rgba(0, 198, 255, 0.08);
  border: 1px solid rgba(0, 198, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--accent);
}

/* ==========================================================================
   VIEW: PROFILE & SETTINGS
   ========================================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.profile-sidebar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
}

.profile-large-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-neon-accent);
  margin-bottom: 16px;
}

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

/* Planner table styling */
.plan-generator-wrapper {
  margin-top: 24px;
}

.weekly-schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.weekly-schedule-table th, .weekly-schedule-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
}

.weekly-schedule-table th {
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.01);
}

.weekly-schedule-table tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

/* ==========================================================================
   COMPONENT: FLOATING AI TUTOR CHAT
   ========================================================================== */
.tutor-widget-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tutor-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
  position: relative;
  transition: transform var(--transition-fast);
}

.tutor-bubble:hover {
  transform: scale(1.08) rotate(-5deg);
}

.tutor-icon-inner svg {
  width: 26px;
  height: 26px;
}

.tutor-status-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: var(--success);
  border-radius: 50%;
  border: 2px solid var(--bg-app);
}

/* Expanded Tutor Panel */
.tutor-panel-card {
  width: 360px;
  height: 480px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 16px;
  animation: slideInUp var(--transition-normal);
}

.tutor-panel-card.hidden {
  display: none !important;
}

.tutor-panel-header {
  padding: 16px 20px;
  background-color: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tutor-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tutor-avatar-circle {
  width: 36px;
  height: 36px;
  background: rgba(0, 198, 255, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutor-avatar-circle svg {
  width: 18px;
  height: 18px;
}

.tutor-header-text h3 {
  font-size: 14px;
  font-weight: 600;
}

.tutor-online-status {
  font-size: 10px;
  color: var(--success);
}

.btn-close-only {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-close-only:hover {
  color: var(--text-primary);
}

.btn-close-only svg {
  width: 18px;
  height: 18px;
}

.tutor-messages-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tutor-bubble-msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  max-width: 85%;
  line-height: 1.5;
}

.tutor-bubble-msg.tutor {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
  align-self: flex-start;
  border: 1px solid var(--border-color);
}

.tutor-bubble-msg.user {
  background-color: var(--primary);
  color: #FFF;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}

.tutor-suggested-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 12px;
}

.tutor-prompt-btn {
  background-color: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-round);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.tutor-prompt-btn:hover {
  background-color: var(--primary);
  color: #FFF;
}

.tutor-chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(255,255,255,0.01);
  display: flex;
  gap: 10px;
}

.tutor-chat-input-area input {
  flex-grow: 1;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.tutor-chat-input-area input:focus {
  border-color: var(--accent);
}

.btn-send {
  background-color: var(--accent);
  color: #080A10;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

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

.btn-send svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   VIEW: AUTH OVERLAY MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 5, 9, 0.8);
  backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalEnter var(--transition-normal);
}

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

.modal-header {
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #FFF, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-header p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
  font-size: 13px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  display: none;
}

.checkbox-mark {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1.5px solid var(--text-muted);
  display: inline-block;
  position: relative;
}

.checkbox-container input:checked + .checkbox-mark {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkbox-container input:checked + .checkbox-mark::after {
  content: "✓";
  color: #080A10;
  font-size: 10px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.forgot-password, .modal-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover, .modal-footer a:hover {
  text-decoration: underline;
}

.modal-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.modal-divider::before, .modal-divider::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-color);
}

.modal-divider span {
  padding: 0 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-social-google {
  gap: 12px;
  background-color: rgba(255,255,255,0.02);
}

.btn-social-google:hover {
  background-color: rgba(255,255,255,0.06);
}

.google-signin-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 16px 0;
  min-height: 44px;
}

.modal-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 24px;
}

/* ==========================================================================
   GLOBAL UTILITIES
   ========================================================================== */
.hidden {
  display: none !important;
}

.mobile-only {
  display: none;
}

.pulse-hover:hover {
  animation: pulse 1s infinite alternate;
}

.pulse-glow {
  animation: pulseGlow 3s infinite;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes loadingShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes breathe {
  0% { transform: scale(0.96); opacity: 0.7; }
  100% { transform: scale(1.04); opacity: 0.95; }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(var(--primary-rgb), 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(var(--primary-rgb), 0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(108, 99, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}

@keyframes slideDown {
  0% { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes modalEnter {
  0% { transform: scale(0.95) translateY(-20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .grid-dashboard {
    grid-template-columns: 1fr;
  }
  
  .practice-container {
    grid-template-columns: 1fr;
  }
  
  .scoring-detailed-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    top: 12px;
    bottom: 12px;
    height: calc(100vh - 24px);
    margin-left: 12px;
    width: calc(100% - 24px);
    max-width: 320px;
    transform: translateX(-110%);
    box-shadow: 10px 0 30px rgba(18, 44, 94, 0.1);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .mobile-only {
    display: flex;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  .mobile-logo-area {
    display: flex;
  }
  
  .top-bar {
    margin: 10px 12px 0 12px;
    width: calc(100% - 24px);
    padding: 0 16px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
  }
  
  .topbar-logo-img {
    height: 40px !important;
  }
  
  .viewport-content {
    padding: 24px 16px;
  }
  
  .landing-hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    min-height: auto;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-visual {
    height: 250px;
    width: 100%;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .landing-stats-panel {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
  }
  
  .simulator-content-box {
    grid-template-columns: 1fr;
  }
  
  .simulator-steps-list {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 16px;
    flex-direction: row;
    overflow-x: auto;
  }
  
  .sim-step-indicator {
    flex-shrink: 0;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .scoring-metrics-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   PTE PRACTICE LAB MODERN REDESIGN (HORIZONTAL GRID CARDS LAYOUT)
   ========================================================================== */

.practice-container-horizontal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.practice-header {
  margin-bottom: 8px;
}

.practice-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.practice-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.control-panel-glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Skills Tab Bar */
.skills-tab-row {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.skills-tab-row::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.skill-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.skill-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.skill-tab-btn.active {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.35);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.2);
}

.tab-icon {
  font-size: 15px;
}

.tab-count {
  font-size: 11px;
  background-color: rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: var(--radius-round);
  color: var(--text-muted);
  margin-left: 4px;
  transition: all var(--transition-fast);
}

.skill-tab-btn.active .tab-count {
  background-color: var(--accent);
  color: #FFF;
}

/* Secondary Filters Bar */
.secondary-filters-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pills-stack {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pill-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.pill-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.pill-btn.active {
  background: var(--accent);
  color: #FFF;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
}

.pill-badge {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: var(--radius-round);
  font-weight: 700;
}

/* Search Bar (Horizontal version) */
.search-input-wrapper-horizontal {
  position: relative;
  width: 250px;
}

.search-input-wrapper-horizontal svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.search-input-wrapper-horizontal input {
  width: 100%;
  padding-left: 36px;
  padding-right: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13.5px;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input-wrapper-horizontal input:focus {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.15);
}

/* Practice Cards Grid */
.practice-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.q-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

/* Glow effects depending on category */
.q-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transition: all var(--transition-medium);
}

.q-card.speaking-accent::before { background: var(--primary); }
.q-card.writing-accent::before { background: var(--accent); }
.q-card.reading-accent::before { background: linear-gradient(90deg, #10b981, #059669); }
.q-card.listening-accent::before { background: linear-gradient(90deg, #f59e0b, #d97706); }

.q-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.q-card.speaking-accent:hover { box-shadow: var(--shadow-neon-primary); border-color: var(--primary); }
.q-card.writing-accent:hover { box-shadow: var(--shadow-neon-accent); border-color: var(--accent); }
.q-card.reading-accent:hover { box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.25); }
.q-card.listening-accent:hover { box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.25); }

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

.skill-circle-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.q-card:hover .skill-circle-icon {
  transform: scale(1.05);
}

.q-card.speaking-accent .skill-circle-icon { background: rgba(108, 99, 255, 0.08); border-color: rgba(108, 99, 255, 0.15); }
.q-card.writing-accent .skill-circle-icon { background: rgba(0, 198, 255, 0.08); border-color: rgba(0, 198, 255, 0.15); }
.q-card.reading-accent .skill-circle-icon { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.15); }
.q-card.listening-accent .skill-circle-icon { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.15); }

.card-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.q-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-card-id {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.q-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.q-card-meta {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.card-badge-type {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.card-badge-difficulty {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
}

.card-badge-difficulty.easy { background: var(--success-bg); color: var(--success); }
.card-badge-difficulty.medium { background: var(--warning-bg); color: var(--warning); }
.card-badge-difficulty.hard { background: var(--error-bg); color: var(--error); }

.q-card-footer {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .secondary-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .search-input-wrapper-horizontal {
    width: 100%;
  }
  #generate-ai-question-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Brand Logo Adaptors */
.sidebar-logo-wrapper {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

body:not(.light-theme) .sidebar-logo-wrapper {
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.topbar-logo-wrapper {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

body:not(.light-theme) .topbar-logo-wrapper {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Navigation link styling in Light Mode */
body.light-theme .nav-link {
  color: var(--text-secondary);
}

body.light-theme .nav-link:hover {
  background-color: rgba(19, 150, 226, 0.06); /* soft sky blue tint */
  color: var(--primary);
}

body.light-theme .nav-link.active {
  background: linear-gradient(90deg, rgba(18, 44, 94, 0.08) 0%, rgba(19, 150, 226, 0.02) 100%);
  border-left: 3px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}

body.light-theme .nav-link.active .nav-icon {
  color: var(--primary);
}

body.light-theme .nav-link:hover .nav-icon {
  color: var(--accent);
}

/* Profile summary avatar styling */
body.light-theme .profile-avatar {
  background: linear-gradient(135deg, rgba(18, 44, 94, 0.1) 0%, rgba(19, 150, 226, 0.1) 100%);
  color: var(--primary);
  border: 1.5px solid var(--border-color);
}

/* Dashboard Panel Overrides (Sleek Borderless Look) */
body.light-theme .grid-dashboard .card-glass,
body.light-theme .grid-dashboard .card-glass-glow {
  background: #FFFFFF;
  border: none;
  box-shadow: 0 1px 3px rgba(18, 44, 94, 0.05), 0 4px 16px rgba(18, 44, 94, 0.02);
  border-radius: var(--radius-lg) !important;
}

/* AI Recommendation Card */
body.light-theme .ai-recommendation-card {
  background: linear-gradient(135deg, rgba(18, 44, 94, 0.04) 0%, rgba(19, 150, 226, 0.02) 100%);
  border: 1px dashed rgba(19, 150, 226, 0.4);
}

/* Progression Trend Card Custom Background and Colors */
body.light-theme .progression-trend-card {
  background: linear-gradient(135deg, #ffffff 0%, rgba(19, 150, 226, 0.02) 100%) !important;
  border: 1px solid rgba(19, 150, 226, 0.12) !important;
  box-shadow: 0 4px 20px rgba(18, 44, 94, 0.03) !important;
}

body.light-theme .progression-trend-card h3 {
  color: #122c5e !important;
}

/* Chart & Graph Color Adaptors */
body.light-theme .chart-grid-line {
  stroke: rgba(15, 23, 42, 0.06);
}

body.light-theme .chart-line {
  filter: drop-shadow(0px 8px 8px rgba(19, 150, 226, 0.15));
}

body.light-theme .radar-web {
  stroke: rgba(15, 23, 42, 0.06);
}

body.light-theme .radar-axis-line {
  stroke: rgba(15, 23, 42, 0.08);
}

body.light-theme .radar-polygon {
  fill: rgba(19, 150, 226, 0.15);
  stroke: var(--accent);
}

/* Countdown Widgets */
body.light-theme .countdown-unit {
  background-color: rgba(19, 150, 226, 0.04);
  border: 1px solid rgba(19, 150, 226, 0.1);
}

/* Premium Apple Liquid Glass Link styling */
.nav-link-cockpit-glass {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-round);
  color: var(--primary);
  background: linear-gradient(135deg, rgba(19, 150, 226, 0.12) 0%, rgba(18, 44, 94, 0.03) 100%);
  border: 1.5px solid rgba(19, 150, 226, 0.25);
  box-shadow: 0 4px 15px rgba(19, 150, 226, 0.05), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  margin-top: 8px;
}

.nav-link-cockpit-glass:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(19, 150, 226, 0.22) 0%, rgba(18, 44, 94, 0.06) 100%);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(19, 150, 226, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.nav-link-cockpit-glass.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(19, 150, 226, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.nav-link-cockpit-glass .cockpit-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: color var(--transition-fast);
}

.nav-link-cockpit-glass.active .cockpit-icon {
  color: #FFFFFF;
}

.cockpit-glass-glow-dot {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(19, 150, 226, 0.4) 0%, transparent 70%);
  pointer-events: none;
  animation: breathe 3s ease-in-out infinite alternate;
}

/* ==========================================================================
   22 PTE CATEGORIES PRACTICE ARENA STYLING
   ========================================================================== */
.categories-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .categories-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .categories-grid-container {
    grid-template-columns: 1fr;
  }
}

.category-column-glass {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-color);
}

.category-column-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

body.light-theme .category-column-header h3 {
  color: #1e3a8a !important; /* Dark Blue from screenshot */
}

.category-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Color codes for PTE weightings based on skill */
.color-speaking { color: #f39c12 !important; font-weight: 700; }
.color-writing { color: #3498db !important; font-weight: 700; }
.color-reading { color: #2ecc71 !important; font-weight: 700; }
.color-listening { color: #2c3e50 !important; font-weight: 700; }

body:not(.light-theme) .color-listening { color: #60a5fa !important; } /* lighter blue for dark mode listening */
body:not(.light-theme) .color-speaking { color: #fbbf24 !important; }
body:not(.light-theme) .color-writing { color: #38bdf8 !important; }
body:not(.light-theme) .color-reading { color: #34d399 !important; }

/* Practice Board Card container */
.practice-board-card {
  transition: all var(--transition-normal);
}

body.light-theme .practice-board-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

/* Row List layout */
.category-item-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  background: transparent;
  transition: all var(--transition-fast);
}

body.light-theme .category-item-card-row {
  border-bottom: 1px solid #f1f5f9;
}

.category-item-card-row:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

body.light-theme .category-item-card-row:hover {
  background: #f8fafc;
}

.category-item-title-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
}

body.light-theme .category-item-title-text {
  color: #1e293b; /* Slate 800 */
}

.weight-separator {
  color: var(--text-muted);
  font-size: 11px;
  margin: 0 4px;
}

/* Legend items hover effects */
.legend-filter-btn:hover {
  transform: scale(1.05);
}

/* Sparkle animation */
.sparkle-icon {
  animation: sparkle-glow 3s infinite alternate;
}

@keyframes sparkle-glow {
  0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 1px rgba(236, 72, 153, 0.3)); }
  100% { transform: scale(1.1) rotate(10deg); filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.7)); }
}


/* Sortable lists for reorder paragraphs */
.sortable-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.sortable-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: grab;
  user-select: none;
  transition: all var(--transition-fast);
}

.sortable-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--accent);
}

.sortable-item:active {
  cursor: grabbing;
}

.sortable-item.dragging {
  opacity: 0.5;
  background: rgba(0, 198, 255, 0.05);
  border: 2px dashed var(--accent);
}

.sort-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
}

.sort-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Clickable word styles for highlight incorrect words */
.interactive-text-paragraph {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-primary);
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.clickable-word {
  display: inline-block;
  padding: 0 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.clickable-word:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.clickable-word.selected {
  background: rgba(245, 158, 11, 0.25);
  color: var(--warning);
  font-weight: 600;
  border-bottom: 2px solid var(--warning);
}

/* Custom Glassmorphic Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99999;
  max-width: 380px;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(18, 22, 35, 0.1);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  color: var(--text-primary);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  pointer-events: auto;
}

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

.toast-item.success {
  border-left: 4px solid var(--success);
}

.toast-item.error {
  border-left: 4px solid var(--error);
}

.toast-item.info {
  border-left: 4px solid var(--primary);
}

.toast-item.warning {
  border-left: 4px solid var(--warning);
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: -1px;
}

.toast-content {
  flex-grow: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: -4px -4px 0 0;
  line-height: 1;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   APPLE SONOMA STYLE PREMIUM UI OVERRIDES (PRACTICE LAB REDESIGN)
   ========================================================================== */

/* 1. Translucent Frosted Glass Cards (macOS Ventura/Sonoma style) */
.card-glass, .card-glass-glow {
  background: rgba(18, 22, 35, 0.45) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

body.light-theme .card-glass, body.light-theme .card-glass-glow {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03), 0 1px 4px rgba(0, 0, 0, 0.01) !important;
}

/* 2. Premium Pill-Shaped Buttons (macOS Control Center Capsule design) */
.btn {
  border-radius: 9999px !important;
  padding: 10px 24px !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  letter-spacing: -0.01em !important;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: none !important;
  border: none !important;
  cursor: pointer !important;
}

.btn:hover {
  transform: scale(1.02) translateY(-0.5px) !important;
}

.btn:active {
  transform: scale(0.98) !important;
}

.btn-primary {
  background: #007AFF !important; /* Premium macOS Blue */
  color: #FFFFFF !important;
}

.btn-primary:hover {
  background: #0062CC !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-primary) !important;
}

body.light-theme .btn-outline {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #333333 !important;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.light-theme .btn-outline:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #EF4444 !important;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

/* 3. Apple Music Style audio player controls */
.player-card-horizontal {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .player-card-horizontal {
  background: rgba(0, 0, 0, 0.015) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.01) !important;
}

.btn-play-trigger {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #007AFF !important;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-play-trigger:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4) !important;
}

.btn-play-trigger svg {
  width: 16px !important;
  height: 16px !important;
}

.player-timeline-outer {
  height: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  position: relative !important;
  cursor: pointer !important;
}

body.light-theme .player-timeline-outer {
  background: rgba(0, 0, 0, 0.08) !important;
}

.player-timeline-inner {
  height: 100% !important;
  background: #007AFF !important;
  border-radius: 999px !important;
}

.player-pulse-icon {
  width: 40px !important;
  height: 40px !important;
  background: rgba(0, 122, 255, 0.1) !important;
  color: #007AFF !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(0, 122, 255, 0.15) !important;
}

/* 4. Elegant Textarea, Input, and Select Controls */
textarea, input[type="text"], input[type="email"], input[type="password"], select {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  color: var(--text-primary) !important;
  font-size: 14.5px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

body.light-theme textarea, body.light-theme input[type="text"], body.light-theme input[type="email"], body.light-theme input[type="password"], body.light-theme select {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

textarea:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus {
  border-color: #007AFF !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

body.light-theme textarea:focus, body.light-theme input[type="text"]:focus, body.light-theme select:focus {
  background: #FFFFFF !important;
}

.essay-editor-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) !important;
  background: rgba(255, 255, 255, 0.01) !important;
}

body.light-theme .essay-editor-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.editor-toolbar {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 12px 18px !important;
}

body.light-theme .editor-toolbar {
  background: rgba(0, 0, 0, 0.01) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* 5. Minimalist Practice Cards (Replacing loud neon glows with soft borders/shadows) */
.q-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

body.light-theme .q-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
}

.q-card::before {
  display: none !important; /* Remove the top neon accent bar */
}

.q-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(0, 122, 255, 0.3) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

body.light-theme .q-card:hover {
  border-color: rgba(0, 122, 255, 0.25) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04) !important;
  background: #FFFFFF !important;
}

.q-card.speaking-accent:hover,
.q-card.writing-accent:hover,
.q-card.reading-accent:hover,
.q-card.listening-accent:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .q-card.speaking-accent:hover,
body.light-theme .q-card.writing-accent:hover,
body.light-theme .q-card.reading-accent:hover,
body.light-theme .q-card.listening-accent:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04) !important;
}

/* 6. Drag & Drop Paragraphs */
.draggable-row {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  margin-bottom: 10px !important;
  cursor: grab !important;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .draggable-row {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01) !important;
}

.draggable-row:hover {
  transform: translateY(-2px) !important;
  border-color: #007AFF !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .draggable-row:hover {
  background: #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02) !important;
}

/* 7. Premium FIB word pills */
.word-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 8px 16px !important;
  transition: all 0.2s ease !important;
  cursor: grab !important;
}

body.light-theme .word-pill {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.word-pill:hover {
  background: #007AFF !important;
  color: #FFFFFF !important;
  border-color: #007AFF !important;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
}

/* ==========================================================================
   APPLE SONOMA STYLE SPLIT PANES & BENTO GRIDS (PRACTICE LAB REDESIGN)
   ========================================================================== */

/* Split Layout Shell */
.practice-split-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 16px;
  width: 100%;
}

@media (max-width: 992px) {
  .practice-split-layout {
    flex-direction: column;
    gap: 24px;
  }
}

/* Left Sidebar Navigation Dock */
.practice-sidebar-dock {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px !important;
  background: rgba(18, 22, 35, 0.35) !important;
  backdrop-filter: blur(30px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(210%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 20px !important;
}

body.light-theme .practice-sidebar-dock {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 992px) {
  .practice-sidebar-dock {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px !important;
    gap: 12px;
    border-radius: 16px !important;
  }
}

/* Sidebar Dock Option Button */
.dock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14px;
  background: transparent;
  border: 1px solid transparent;
}

@media (max-width: 992px) {
  .dock-item {
    flex-shrink: 0;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
  }
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

body.light-theme .dock-item:hover {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-primary);
}

.dock-item.active {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #007AFF !important;
  border-color: rgba(0, 122, 255, 0.15) !important;
}

.dock-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .dock-icon-circle {
    margin-right: 0;
  }
}

.dock-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

body.light-theme .dock-badge {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}

.dock-item.active .dock-badge {
  background: rgba(0, 122, 255, 0.2);
  color: #007AFF;
}

/* Right Content Area & Bento Grid */
.practice-bento-grid-container {
  flex-grow: 1;
  width: 100%;
}

.practice-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Premium Apple Bento Option Tile */
.bento-widget-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 24px !important;
  cursor: pointer;
  background: rgba(18, 22, 35, 0.45) !important;
  backdrop-filter: blur(30px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(210%) !important;
  border: 0.75px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

body.light-theme .bento-widget-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 0.75px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
}

.bento-widget-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  border-color: rgba(10, 132, 255, 0.35) !important;
  box-shadow: 0 20px 40px rgba(10, 132, 255, 0.12) !important;
}

body.light-theme .bento-widget-card:hover {
  border-color: rgba(10, 132, 255, 0.3) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04) !important;
}

@media (min-width: 768px) {
  .bento-widget-card.bento-large {
    grid-column: span 2;
  }
}

.bento-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.bento-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bento-card-body {
  flex-grow: 1;
  margin-bottom: 16px;
}

.bento-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bento-card-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

.bento-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bento-weight-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-block;
}

.bento-action-arrow {
  color: #007AFF;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.bento-widget-card:hover .bento-action-arrow {
  transform: translateX(3px);
}

/* Category Color Systems */
.bg-speaking { background: linear-gradient(135deg, #FF453A, #FF6961) !important; color: #fff !important; }
.bg-writing { background: linear-gradient(135deg, #FF9F0A, #FFB340) !important; color: #fff !important; }
.bg-reading { background: linear-gradient(135deg, #30D158, #34C759) !important; color: #fff !important; }
.bg-listening { background: linear-gradient(135deg, #0A84FF, #5AC8FA) !important; color: #fff !important; }

.text-speaking { color: #FF453A !important; }
.text-writing { color: #FF9F0A !important; }
.text-reading { color: #30D158 !important; }
.text-listening { color: #0A84FF !important; }

.badge-speaking { background: rgba(255, 69, 58, 0.12) !important; color: #FF453A !important; }
.badge-writing { background: rgba(255, 159, 10, 0.12) !important; color: #FF9F0A !important; }
.badge-reading { background: rgba(48, 209, 88, 0.12) !important; color: #30D158 !important; }
.badge-listening { background: rgba(10, 132, 255, 0.12) !important; color: #0A84FF !important; }

/* iOS/macOS Preferences style Segmented Control Dock */
.segmented-control-container {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.light-theme .segmented-control-container {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02);
}

.segmented-control-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.segmented-control-btn:hover {
  color: var(--text-primary);
}

.segmented-control-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

body.light-theme .segmented-control-btn.active {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.02);
}

/* Audio Recorder Card Overrides */
.audio-recorder-deck {
  background: rgba(18, 22, 35, 0.5) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  position: relative;
  overflow: hidden;
}

body.light-theme .audio-recorder-deck {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02) !important;
}

.visualizer-wrapper {
  position: relative;
  background: rgba(0, 0, 0, 0.45) !important;
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.light-theme .visualizer-wrapper {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.visualizer-canvas {
  display: block;
  width: 100%;
  height: 80px;
}

/* Siri-style record pulse indicator */
.rec-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.rec-status-dot.pulse-red {
  background-color: #FF453A !important;
  box-shadow: 0 0 15px rgba(255, 69, 58, 0.7);
  animation: siri-pulse 1.4s infinite ease-in-out;
}

@keyframes siri-pulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 69, 58, 0.5); }
  50% { transform: scale(1.35); box-shadow: 0 0 25px rgba(255, 69, 58, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 69, 58, 0.5); }
}

/* Apple Music Timeline Player Overrides */
.lecture-player-container {
  background: rgba(18, 22, 35, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .lecture-player-container {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.01) !important;
}

.btn-play-trigger {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0;
}

.btn-play-trigger:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 14px rgba(0, 122, 255, 0.4);
}

.btn-play-trigger svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.btn-play-trigger.playing svg {
  margin-left: 0;
}

.player-timeline-outer {
  height: 4px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 2px !important;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

body.light-theme .player-timeline-outer {
  background: rgba(0, 0, 0, 0.08) !important;
}

.player-timeline-outer:hover {
  height: 6px !important;
}

.player-timeline-inner {
  background: #007AFF !important;
  border-radius: 2px !important;
}

/* Metal slider knob for Timeline */
.player-timeline-outer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--progress-pct, 0%) !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.player-timeline-outer:hover::after {
  opacity: 1;
}

/* macOS Notes-style Textarea Overrides */
.notes-paper-textarea {
  width: 100%;
  min-height: 180px;
  border-radius: 16px !important;
  padding: 20px !important;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(0, 0, 0, 0.2) !important;
  color: var(--text-primary) !important;
  outline: none;
  resize: vertical;
  transition: all 0.25s ease;
}

body.light-theme .notes-paper-textarea {
  background: #FCF9F2 !important; /* soft warm paper yellow tint */
  background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
  background-size: 100% 28px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #2C2C2E !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
}

.notes-paper-textarea:focus {
  border-color: rgba(10, 132, 255, 0.35) !important;
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.12) !important;
}

body.light-theme .notes-paper-textarea:focus {
  border-color: rgba(10, 132, 255, 0.25) !important;
}

/* Circular Word Count Progress Indicator */
.circular-progress-container {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 3.5;
}

body.light-theme .circular-progress-bg {
  stroke: rgba(0, 0, 0, 0.04);
}

.circular-progress-bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.35s ease;
}

.circular-progress-text {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  color: var(--text-secondary);
}

/* ==========================================================================
   STAGE MANAGER STYLE COCKPIT LAYOUT FOR PRACTICE LAB
   ========================================================================== */

.stage-manager-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 992px) {
  .stage-manager-layout {
    flex-direction: column-reverse;
    gap: 24px;
  }
}

.stage-sidebar-stacks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 200px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .stage-sidebar-stacks {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 12px;
  }
}

.stage-stack-card {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .stage-stack-card {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.stage-stack-card:hover {
  transform: translateX(4px) scale(1.02) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 992px) {
  .stage-stack-card:hover {
    transform: translateY(-2px) scale(1.02) !important;
  }
}

body.light-theme .stage-stack-card:hover {
  background: rgba(255, 255, 255, 0.85) !important;
}

.stage-stack-card.active {
  background: rgba(0, 122, 255, 0.05) !important;
  border-color: rgba(0, 122, 255, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.08) !important;
}

body.light-theme .stage-stack-card.active {
  background: rgba(0, 122, 255, 0.08) !important;
}

.stage-stack-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-stack-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  transition: color 0.2s ease;
}

.stage-stack-card.active .stage-stack-title {
  color: #007AFF;
}

.stage-stack-count {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.stage-center-content {
  flex-grow: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: stageIn 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes stageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Category Hero Panel Dashboard */
.category-hero-panel {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 24px !important;
  padding: 24px 30px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

body.light-theme .category-hero-panel {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
}

.category-hero-details {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-hero-title {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.category-hero-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.category-stats-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .category-stat-pill {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
}

/* Category Accent Text Utility classes */
.text-speaking {
  color: #FF453A !important;
}
.text-writing {
  color: #FF9500 !important;
}
.text-reading {
  color: #34C759 !important;
}
.text-listening {
  color: #0A84FF !important;
}

/* ==========================================================================
   APP-STORE STYLE PREMIUM LIQUID GLASS PRACTICE WORKSPACE
   ========================================================================== */

/* Ambient macOS-style liquid glass background blobs */
.glass-ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: all 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.45) 0%, rgba(100, 210, 255, 0.1) 85%);
  top: -15%;
  left: 5%;
  animation: floatBlob1 28s infinite alternate ease-in-out;
}

.blob-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 69, 58, 0.28) 0%, rgba(255, 159, 10, 0.05) 85%);
  bottom: -20%;
  right: 10%;
  animation: floatBlob2 32s infinite alternate ease-in-out;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(52, 199, 89, 0.28) 0%, rgba(48, 176, 199, 0.05) 85%);
  top: 30%;
  right: 35%;
  animation: floatBlob3 24s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, 50px) scale(1.15); }
}

@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-90px, -60px) scale(0.92); }
}

@keyframes floatBlob3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 80px) scale(1.12); }
}

/* Morphing Liquid Blobs Keyframes */
@keyframes liquidBlob {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: translate(40px, -50px) rotate(120deg);
  }
  66% {
    border-radius: 28% 72% 35% 65% / 40% 60% 40% 60%;
    transform: translate(-30px, 30px) rotate(240deg);
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) rotate(360deg);
  }
}

.blob-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(175, 82, 222, 0.3) 0%, rgba(255, 45, 85, 0.05) 80%);
  bottom: 20%;
  left: 20%;
  animation: liquidBlob 22s infinite alternate ease-in-out;
}

/* Practice Hub Container */
.practice-hub-container {
  width: 100%;
  min-height: calc(100vh - 120px);
  position: relative;
  z-index: 1;
  padding: 10px 0;
  background: radial-gradient(at 0% 0%, rgba(240, 244, 255, 0.4) 0px, transparent 50%),
              radial-gradient(at 50% 0%, rgba(255, 240, 245, 0.4) 0px, transparent 50%),
              radial-gradient(at 100% 0%, rgba(240, 255, 244, 0.4) 0px, transparent 50%);
  border-radius: 32px;
}

/* Main Hub Content wrapper */
.hub-main-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px;
}

/* Hub Header Styles */
.hub-header {
  text-align: center;
  margin-bottom: 36px;
}

.hub-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.hub-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 26px;
  font-weight: 500;
}

/* Apple-style Segmented Control */
.hub-tabs {
  display: inline-flex;
  gap: 3px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.01);
}

.hub-tab-btn {
  padding: 9px 22px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.hub-tab-btn:hover {
  color: var(--text-primary);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
  padding: 4px;
}

/* App-Store style Glass Cards */
.category-card {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.95), 
    0 1px 3px rgba(0, 0, 0, 0.01),
    0 10px 40px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.95), 
    0 20px 45px rgba(0, 0, 0, 0.06);
}

.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.category-card-icon {
  font-size: 28px;
}

.category-card-weight {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
}

.category-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  font-family: 'Outfit', sans-serif;
}

.category-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 22px;
  flex-grow: 1;
}

.category-card-progress {
  margin-bottom: 22px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.progress-bar-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.category-card-btn {
  background: rgba(0, 0, 0, 0.03);
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-align: center;
}

/* Category Detail split view styles */
.detail-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.btn-back-hub {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-hub:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  transform: translateX(-2px);
}

.detail-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-cat-icon {
  font-size: 26px;
}

.detail-cat-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

.detail-split-workspace {
  display: flex;
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .detail-split-workspace {
    flex-direction: column;
  }
}

/* Base style for all columns (macOS Liquid Glassmorphism) */
.cockpit-col {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.95), 
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 10px 40px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

body.light-theme .cockpit-col {
  background: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 1024px) {
  .cockpit-col {
    width: 100% !important;
    height: auto;
    min-height: 300px;
  }
}

/* Custom macOS-style Scrollbars */
.cockpit-col::-webkit-scrollbar,
.cockpit-questions-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.cockpit-col::-webkit-scrollbar-track,
.cockpit-questions-list::-webkit-scrollbar-track {
  background: transparent;
}
.cockpit-col::-webkit-scrollbar-thumb,
.cockpit-questions-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}
.cockpit-col::-webkit-scrollbar-thumb:hover,
.cockpit-questions-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.16);
}

/* Column 2: Question Directory (Left in detail split) */
.cockpit-questions-col {
  width: 340px;
  flex-shrink: 0;
  padding: 20px;
}

.cockpit-search-wrapper {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cockpit-search-wrapper:focus-within {
  background: #FFFFFF;
  border-color: rgba(0, 122, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.cockpit-search-input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  outline: none;
  font-size: 13px;
  width: 100%;
  font-weight: 500;
}

.cockpit-filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}

.cockpit-filter-select {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.01);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align-last: center;
}

.cockpit-filter-select:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.cockpit-filter-select:focus {
  background: #FFFFFF;
  border-color: rgba(0, 122, 255, 0.2);
}

.cockpit-questions-list {
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

/* Compact Question List Cards (Floating Glass Tiles) */
.cockpit-q-card {
  background: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.005);
}

.cockpit-q-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 122, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.cockpit-q-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.cockpit-q-id-title {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.cockpit-q-id {
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 5px;
}

.cockpit-q-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.15px;
}

.cockpit-q-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.cockpit-q-diff {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cockpit-q-diff.easy { color: #34C759; }
.cockpit-q-diff.medium { color: #FF9500; }
.cockpit-q-diff.hard { color: #FF453A; }

/* Glowing task status indicator dots */
.cockpit-q-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.cockpit-q-status-dot.completed {
  background-color: #34C759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.4);
}
.cockpit-q-status-dot.uncleared {
  background-color: #FF453A;
  box-shadow: 0 0 8px rgba(255, 69, 58, 0.4);
}
.cockpit-q-status-dot.available {
  background-color: var(--text-muted);
}


/* Column 3: Active Stage Welcome Panel (Right in detail split) */
.cockpit-stage-col {
  flex-grow: 1;
  padding: 24px;
}

/* Category welcome screen in Stage */
.cockpit-welcome-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 10px;
  gap: 20px;
  height: 100%;
}

.cockpit-welcome-banner {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 24px 28px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cockpit-welcome-banner:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    0 15px 40px rgba(0, 0, 0, 0.04);
}

.circular-ring-small {
  width: 110px;
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-small-pct {
  position: absolute;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   FULLSCREEN FOCUS PRACTICE MODE OVERLAY
   ========================================================================== */

.focus-workspace-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(55px) saturate(220%);
  -webkit-backdrop-filter: blur(55px) saturate(220%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: overlayFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.focus-workspace-overlay.hidden {
  display: none !important;
}

/* Center Focus Card */
.focus-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 32px;
  width: 100%;
  max-width: 1020px;
  height: 100%;
  max-height: 840px;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 30px 100px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 36px;
  position: relative;
  z-index: 1001;
  animation: cardScaleUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
  flex-shrink: 0;
}

.focus-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.focus-cat-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.focus-q-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
  font-family: 'Outfit', sans-serif;
}

.btn-focus-close {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 69, 58, 0.08);
  border: none;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #FF453A;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-focus-close:hover {
  background: #FF453A;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(255, 69, 58, 0.25);
  transform: translateY(-1px);
}

.focus-workspace-body {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 4px;
}

/* Custom scrollbar inside workspace */
.focus-workspace-body::-webkit-scrollbar {
  width: 6px;
}
.focus-workspace-body::-webkit-scrollbar-track {
  background: transparent;
}
.focus-workspace-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}
.focus-workspace-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.16);
}

.focus-workspace-toolbar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

/* Workspace Glass container override for Focus Mode */
.focus-card .card-glass {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Animations */
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardScaleUp {
  from { transform: scale(0.93) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DYNAMIC SKILL COLOR THEMES
   ========================================================================== */

/* SPEAKING Accent color theme overrides */
.hub-main-content.skill-speaking .hub-tab-btn.active { background: linear-gradient(135deg, #FF453A, #FF9F0A) !important; color: #FFFFFF !important; }
.hub-main-content.skill-speaking .category-card:hover { border-color: rgba(255, 69, 58, 0.25) !important; box-shadow: inset 0 1px 1px rgba(255,255,255,0.95), 0 20px 45px rgba(255, 69, 58, 0.05) !important; }
.hub-main-content.skill-speaking .category-card:hover .category-card-btn { background: linear-gradient(135deg, #FF453A, #FF9F0A) !important; color: #FFFFFF !important; }
.hub-main-content.skill-speaking .category-card-progress .progress-bar-fill { background: linear-gradient(90deg, #FF453A, #FF9F0A) !important; }
.hub-main-content.skill-speaking .cockpit-col { border-color: rgba(255, 69, 58, 0.15) !important; }
.hub-main-content.skill-speaking .cockpit-search-wrapper:focus-within { border-color: rgba(255, 69, 58, 0.4); box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.1); }
.hub-main-content.skill-speaking .cockpit-q-card:hover { border-color: rgba(255, 69, 58, 0.25); }
.hub-main-content.skill-speaking #stage-quick-btn { background: linear-gradient(135deg, #FF453A, #FF9F0A) !important; box-shadow: 0 4px 15px rgba(255, 69, 58, 0.25) !important; }
.focus-workspace-overlay.skill-speaking .focus-cat-badge { color: #FF453A !important; }
.focus-workspace-overlay.skill-speaking .focus-card { border-color: rgba(255, 69, 58, 0.25) !important; }
.focus-workspace-overlay.skill-speaking #stage-quick-btn { background: linear-gradient(135deg, #FF453A, #FF9F0A) !important; box-shadow: 0 4px 15px rgba(255, 69, 58, 0.25) !important; }
.focus-workspace-overlay.skill-speaking #practice-hint-card h4 { color: #FF453A !important; }

/* WRITING Accent color theme overrides */
.hub-main-content.skill-writing .hub-tab-btn.active { background: linear-gradient(135deg, #FF9500, #FFCC00) !important; color: #FFFFFF !important; }
.hub-main-content.skill-writing .category-card:hover { border-color: rgba(255, 149, 0, 0.25) !important; box-shadow: inset 0 1px 1px rgba(255,255,255,0.95), 0 20px 45px rgba(255, 149, 0, 0.05) !important; }
.hub-main-content.skill-writing .category-card:hover .category-card-btn { background: linear-gradient(135deg, #FF9500, #FFCC00) !important; color: #FFFFFF !important; }
.hub-main-content.skill-writing .category-card-progress .progress-bar-fill { background: linear-gradient(90deg, #FF9500, #FFCC00) !important; }
.hub-main-content.skill-writing .cockpit-col { border-color: rgba(255, 149, 0, 0.15) !important; }
.hub-main-content.skill-writing .cockpit-search-wrapper:focus-within { border-color: rgba(255, 149, 0, 0.4); box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1); }
.hub-main-content.skill-writing .cockpit-q-card:hover { border-color: rgba(255, 149, 0, 0.25); }
.hub-main-content.skill-writing #stage-quick-btn { background: linear-gradient(135deg, #FF9500, #FFCC00) !important; box-shadow: 0 4px 15px rgba(255, 149, 0, 0.25) !important; }
.focus-workspace-overlay.skill-writing .focus-cat-badge { color: #FF9500 !important; }
.focus-workspace-overlay.skill-writing .focus-card { border-color: rgba(255, 149, 0, 0.25) !important; }
.focus-workspace-overlay.skill-writing #stage-quick-btn { background: linear-gradient(135deg, #FF9500, #FFCC00) !important; box-shadow: 0 4px 15px rgba(255, 149, 0, 0.25) !important; }
.focus-workspace-overlay.skill-writing #practice-hint-card h4 { color: #FF9500 !important; }

/* READING Accent color theme overrides */
.hub-main-content.skill-reading .hub-tab-btn.active { background: linear-gradient(135deg, #34C759, #30B0C7) !important; color: #FFFFFF !important; }
.hub-main-content.skill-reading .category-card:hover { border-color: rgba(52, 199, 89, 0.25) !important; box-shadow: inset 0 1px 1px rgba(255,255,255,0.95), 0 20px 45px rgba(52, 199, 89, 0.05) !important; }
.hub-main-content.skill-reading .category-card:hover .category-card-btn { background: linear-gradient(135deg, #34C759, #30B0C7) !important; color: #FFFFFF !important; }
.hub-main-content.skill-reading .category-card-progress .progress-bar-fill { background: linear-gradient(90deg, #34C759, #30B0C7) !important; }
.hub-main-content.skill-reading .cockpit-col { border-color: rgba(52, 199, 89, 0.15) !important; }
.hub-main-content.skill-reading .cockpit-search-wrapper:focus-within { border-color: rgba(52, 199, 89, 0.4); box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1); }
.hub-main-content.skill-reading .cockpit-q-card:hover { border-color: rgba(52, 199, 89, 0.25); }
.hub-main-content.skill-reading #stage-quick-btn { background: linear-gradient(135deg, #34C759, #30B0C7) !important; box-shadow: 0 4px 15px rgba(52, 199, 89, 0.25) !important; }
.focus-workspace-overlay.skill-reading .focus-cat-badge { color: #34C759 !important; }
.focus-workspace-overlay.skill-reading .focus-card { border-color: rgba(52, 199, 89, 0.25) !important; }
.focus-workspace-overlay.skill-reading #stage-quick-btn { background: linear-gradient(135deg, #34C759, #30B0C7) !important; box-shadow: 0 4px 15px rgba(52, 199, 89, 0.25) !important; }
.focus-workspace-overlay.skill-reading #practice-hint-card h4 { color: #34C759 !important; }

/* LISTENING Accent color theme overrides */
.hub-main-content.skill-listening .hub-tab-btn.active { background: linear-gradient(135deg, #0A84FF, #64D2FF) !important; color: #FFFFFF !important; }
.hub-main-content.skill-listening .category-card:hover { border-color: rgba(10, 132, 255, 0.25) !important; box-shadow: inset 0 1px 1px rgba(255,255,255,0.95), 0 20px 45px rgba(10, 132, 255, 0.05) !important; }
.hub-main-content.skill-listening .category-card:hover .category-card-btn { background: linear-gradient(135deg, #0A84FF, #64D2FF) !important; color: #FFFFFF !important; }
.hub-main-content.skill-listening .category-card-progress .progress-bar-fill { background: linear-gradient(90deg, #0A84FF, #64D2FF) !important; }
.hub-main-content.skill-listening .cockpit-col { border-color: rgba(10, 132, 255, 0.15) !important; }
.hub-main-content.skill-listening .cockpit-search-wrapper:focus-within { border-color: rgba(10, 132, 255, 0.4); box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1); }
.hub-main-content.skill-listening .cockpit-q-card:hover { border-color: rgba(10, 132, 255, 0.25); }
.hub-main-content.skill-listening #stage-quick-btn { background: linear-gradient(135deg, #0A84FF, #64D2FF) !important; box-shadow: 0 4px 15px rgba(10, 132, 255, 0.25) !important; }
.focus-workspace-overlay.skill-listening .focus-cat-badge { color: #0A84FF !important; }
.focus-workspace-overlay.skill-listening .focus-card { border-color: rgba(10, 132, 255, 0.25) !important; }
.focus-workspace-overlay.skill-listening #stage-quick-btn { background: linear-gradient(135deg, #0A84FF, #64D2FF) !important; box-shadow: 0 4px 15px rgba(10, 132, 255, 0.25) !important; }
.focus-workspace-overlay.skill-listening #practice-hint-card h4 { color: #0A84FF !important; }

/* ==========================================================================
   PTE PRACTICE LAB EXTRA PREMIUM STYLES
   ========================================================================== */

/* 1. Mouse-Tracking Radial Sheen Effect for Category Cards */
.category-card {
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    320px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 255, 255, 0.75),
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}

.category-card:hover::before {
  opacity: 1;
}

/* 2. macOS-Style Window Dots */
.mac-window-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: 18px;
  flex-shrink: 0;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mac-dot:hover {
  transform: scale(1.08);
  filter: brightness(0.9);
}

.mac-dot::after {
  content: '';
  font-size: 8px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.15s ease;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1;
  position: absolute;
}

.focus-header:hover .mac-dot::after {
  opacity: 1;
}

.mac-dot.close {
  background-color: #FF5F56;
}
.mac-dot.close::after {
  content: '×';
  font-size: 10px;
  top: 0px;
}

.mac-dot.minimize {
  background-color: #FFBD2E;
}
.mac-dot.minimize::after {
  content: '−';
  font-size: 8px;
  top: 1px;
}

.mac-dot.maximize {
  background-color: #27C93F;
}
.mac-dot.maximize::after {
  content: '+';
  font-size: 8px;
  top: 1px;
}

/* 3. Split Layout inside Focus Modal Workspace */
.focus-split-layout {
  display: flex;
  gap: 28px;
  flex-grow: 1;
  overflow: hidden;
  height: 100%;
}

.focus-main-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.focus-glass-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 4px 20px rgba(0, 0, 0, 0.02);
}

.focus-glass-sidebar::-webkit-scrollbar {
  width: 4px;
}
.focus-glass-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
}

.sidebar-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
}

/* 4. Zen Mode / Fullscreen toggles */
.focus-card.zen-active .focus-glass-sidebar {
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  border: none !important;
  pointer-events: none;
}

.focus-card.zen-active .focus-header {
  opacity: 0.15;
  transition: opacity 0.3s ease;
}
.focus-card.zen-active .focus-header:hover {
  opacity: 1;
}

.focus-card.zen-active .focus-workspace-toolbar {
  opacity: 0.1;
  transition: opacity 0.3s ease;
}
.focus-card.zen-active .focus-workspace-toolbar:hover {
  opacity: 1;
}

.focus-card.max-width-full {
  max-width: 100% !important;
  max-height: 100% !important;
  height: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 24px 36px !important;
}

/* 5. Procedural Waveform Visualizer */
.waveform-vis-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  height: 38px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  width: 100%;
  margin: 14px auto;
  box-sizing: border-box;
}

.waveform-bar {
  flex-grow: 1;
  width: 3.5px;
  max-width: 4px;
  height: 15%;
  background-color: var(--accent);
  border-radius: 2px;
  transition: height 0.3s ease, background-color 0.3s ease;
}

.waveform-vis-container.playing .waveform-bar {
  animation: bounceWave 1.2s ease-in-out infinite alternate;
}

/* Waveform dynamic speeds and delays */
.waveform-vis-container.playing .waveform-bar:nth-child(2n) { animation-delay: 0.15s; animation-duration: 0.9s; }
.waveform-vis-container.playing .waveform-bar:nth-child(3n) { animation-delay: 0.3s; animation-duration: 1.4s; }
.waveform-vis-container.playing .waveform-bar:nth-child(4n) { animation-delay: 0.45s; animation-duration: 1.1s; }
.waveform-vis-container.playing .waveform-bar:nth-child(5n) { animation-delay: 0.6s; animation-duration: 0.85s; }

@keyframes bounceWave {
  0% { height: 10%; }
  100% { height: 95%; }
}

/* Accent color waveform fills */
.focus-workspace-overlay.skill-speaking .waveform-bar { background-color: #FF453A; }
.focus-workspace-overlay.skill-writing .waveform-bar { background-color: #FF9500; }
.focus-workspace-overlay.skill-reading .waveform-bar { background-color: #34C759; }
.focus-workspace-overlay.skill-listening .waveform-bar { background-color: #0A84FF; }

/* 6. Staggered Entries Animations */
.animate-fade-in-up {
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 7. Rubrics lists and gauges styles */
.rubric-list {
  padding-left: 18px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.rubric-list li {
  margin-bottom: 6px;
}

.rubric-list b {
  color: var(--text-primary);
}

.gauge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gauge-name {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.gauge-bar-outer {
  width: 140px;
  height: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
  overflow: hidden;
}

.gauge-bar-inner {
  height: 100%;
  border-radius: 3px;
  background-color: var(--accent);
  transition: width 0.8s ease;
}

/* Accent coloring for inner gauges */
.focus-workspace-overlay.skill-speaking .gauge-bar-inner { background-color: #FF453A; }
.focus-workspace-overlay.skill-writing .gauge-bar-inner { background-color: #FF9500; }
.focus-workspace-overlay.skill-reading .gauge-bar-inner { background-color: #34C759; }
.focus-workspace-overlay.skill-listening .gauge-bar-inner { background-color: #0A84FF; }

/* Zen mode active banner alert tooltip */
.zen-mode-alert {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1010;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

.focus-card.zen-active .zen-mode-alert {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.focus-sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.focus-sidebar-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

/* ==========================================================================
   PRICING PAGE STYLES
   ========================================================================== */

.pricing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.pricing-page-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.pricing-page-header p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Billing Toggle */
.pricing-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 40px;
}

.pricing-billing-toggle .toggle-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.pricing-billing-toggle .toggle-label.active {
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
  background: #E2E8F0;
  border-radius: 15px;
  cursor: pointer;
  transition: background var(--transition-normal);
  border: none;
  padding: 0;
}

.pricing-toggle-switch.yearly {
  background: linear-gradient(135deg, #8B5CF6, #1396e2);
}

.pricing-toggle-switch .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-normal);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.pricing-toggle-switch.yearly .toggle-knob {
  transform: translateX(26px);
}

.pricing-savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  color: #059669;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-round);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-family: 'Inter', sans-serif;
}

/* Pricing Cards Grid */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Pricing Card */
.pricing-card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.pricing-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: var(--border-color-hover);
}

.pricing-card-premium.recommended {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), 
                    linear-gradient(135deg, #8B5CF6, #1396e2, #8B5CF6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(19, 150, 226, 0.12);
}

.pricing-card-premium.recommended:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 25px 60px rgba(19, 150, 226, 0.18);
}

.pricing-popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8B5CF6, #1396e2);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 20px;
  border-radius: 0 0 12px 12px;
}

.pricing-card-premium .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.pricing-card-premium .plan-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.pricing-card-premium .plan-price {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.1;
}

.pricing-card-premium .plan-price .currency {
  font-size: 22px;
  font-weight: 500;
  vertical-align: super;
}

.pricing-card-premium .plan-price .period {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card-premium .plan-price-yearly {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
  font-family: 'Inter', sans-serif;
}

.pricing-card-premium .plan-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 12px 0 24px;
  line-height: 1.5;
}

/* Feature List */
.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.pricing-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pricing-feature-list li:last-child {
  border-bottom: none;
}

.pricing-feature-list li .feat-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.pricing-feature-list li .feat-check.yes {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.pricing-feature-list li .feat-check.no {
  background: rgba(239, 68, 68, 0.08);
  color: #DC2626;
}

/* Pricing CTA Button */
.pricing-cta-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-align: center;
}

.pricing-cta-btn.btn-upgrade-pro {
  background: linear-gradient(135deg, #1396e2, #0d7bc5);
  color: white;
  box-shadow: 0 4px 15px rgba(19, 150, 226, 0.3);
}

.pricing-cta-btn.btn-upgrade-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(19, 150, 226, 0.4);
}

.pricing-cta-btn.btn-upgrade-elite {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.pricing-cta-btn.btn-upgrade-elite:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.pricing-cta-btn.btn-current {
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: default;
  border: 1px solid var(--border-color);
}

/* Comparison Table */
.pricing-comparison-section {
  margin-bottom: 64px;
}

.pricing-comparison-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 32px;
}

.pricing-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.pricing-comparison-table thead th {
  background: var(--bg-input);
  padding: 16px 20px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

.pricing-comparison-table thead th:first-child {
  text-align: left;
}

.pricing-comparison-table tbody td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.pricing-comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}

.pricing-comparison-table tbody tr:hover {
  background: rgba(19, 150, 226, 0.03);
}

.pricing-comparison-table .check-yes {
  color: #059669;
  font-weight: 600;
}

.pricing-comparison-table .check-no {
  color: #DC2626;
  opacity: 0.5;
}

/* FAQ Section */
.pricing-faq-section {
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-faq-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 32px;
}

.pricing-faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.pricing-faq-item:hover {
  border-color: var(--border-color-hover);
}

.pricing-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  background: var(--bg-card);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition-fast);
}

.pricing-faq-question:hover {
  background: var(--bg-card-hover);
}

.pricing-faq-question .faq-chevron {
  transition: transform var(--transition-normal);
  color: var(--text-muted);
  flex-shrink: 0;
}

.pricing-faq-item.open .pricing-faq-question .faq-chevron {
  transform: rotate(180deg);
}

.pricing-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--bg-card);
}

.pricing-faq-item.open .pricing-faq-answer {
  max-height: 300px;
  padding: 0 20px 20px;
}

/* Trust Badges */
.pricing-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
}

.pricing-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-trust-badge .badge-icon {
  font-size: 18px;
}

/* ==========================================================================
   PAYMENT STATUS PAGE STYLES
   ========================================================================== */

.payment-status-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 24px;
}

.payment-status-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 48px;
}

.payment-status-icon.success {
  background: rgba(16, 185, 129, 0.12);
  animation: pulseSuccess 2s ease infinite;
}

.payment-status-icon.cancel {
  background: rgba(245, 158, 11, 0.12);
}

@keyframes pulseSuccess {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
}

@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 99998;
  animation: confetti-fall linear forwards;
  pointer-events: none;
}

@keyframes pricingFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-animate-in {
  animation: pricingFadeInUp 0.6s ease forwards;
  opacity: 0;
}

.pricing-animate-in:nth-child(1) { animation-delay: 0.1s; }
.pricing-animate-in:nth-child(2) { animation-delay: 0.2s; }
.pricing-animate-in:nth-child(3) { animation-delay: 0.3s; }

/* Sidebar Upgrade Link Hover */
.nav-link-upgrade:hover {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(19,150,226,0.15)) !important;
  border-color: rgba(139,92,246,0.3) !important;
  transform: translateX(2px);
  transition: all var(--transition-normal);
}

@media (max-width: 768px) {
  .pricing-page-header h1 {
    font-size: 26px;
  }
  
  .pricing-card-premium .plan-price {
    font-size: 34px;
  }
  
  .pricing-card-premium.recommended {
    transform: scale(1);
  }
  
  .pricing-card-premium.recommended:hover {
    transform: translateY(-4px);
  }
  
  .pricing-comparison-table {
    font-size: 12px;
  }
  
  .pricing-comparison-table thead th,
  .pricing-comparison-table tbody td {
    padding: 10px 8px;
  }
  
  .pricing-trust-badges {
    gap: 16px;
  }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE FIXES
   ========================================================================== */

@media (max-width: 992px) {
  /* Practice Mode Workspace Responsive Adjustments */
  .focus-split-layout {
    flex-direction: column !important;
    overflow-y: auto !important;
  }
  .focus-glass-sidebar {
    width: 100% !important;
    flex-shrink: 0 !important;
    margin-top: 16px !important;
  }
}

@media (max-width: 768px) {
  /* Scrollable Tall Modals */
  .modal-overlay {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 24px 12px !important;
  }
  .modal-card {
    padding: 24px 20px !important;
    margin: 20px auto !important;
    width: 100% !important;
    max-width: 440px !important;
  }
  .modal-close-btn {
    top: 16px !important;
    right: 16px !important;
  }

  /* Workspace Focus Card Responsiveness */
  .focus-workspace-overlay {
    padding: 8px !important;
  }
  .focus-card {
    padding: 20px 16px !important;
    border-radius: var(--radius-lg) !important;
    height: 100% !important;
    max-height: calc(100vh - 16px) !important;
  }
  .focus-header {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }

  /* Active Simulation (Mocktest) View */
  .simulator-card {
    padding: 16px !important;
  }
  .simulator-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

@media (max-width: 600px) {
  /* Floating AI Tutor Responsive Constraints */
  .tutor-widget-container {
    bottom: 16px !important;
    right: 16px !important;
  }
  .tutor-panel-card {
    width: calc(100vw - 32px) !important;
    max-width: 360px !important;
    height: 420px !important;
  }

  /* Scrollable Practice Hub Tabs Segmented Control */
  .hub-tabs {
    display: flex !important;
    overflow-x: auto !important;
    width: 100% !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 4px !important;
  }
  .hub-tab-btn {
    padding: 8px 16px !important;
    flex-shrink: 0 !important;
  }
}









