/* ============================================================
   Wonderful Writers — PREMIUM CSS UPGRADE
   Glassmorphism | Animations | Micro-interactions | Premium Design
   Colors preserved: --primary: #FF7E2D
   ============================================================ */

/* ── Premium Imports ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Premium CSS Variables ── */
:root {
  /* Premium additions (brand colors unchanged) */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 126, 45, 0.15);
  --glass-shadow: 0 8px 32px rgba(255, 126, 45, 0.08);
  --glass-blur: blur(16px);
  --gradient-primary: linear-gradient(135deg, #FF7E2D 0%, #ffaa5e 100%);
  --gradient-hero: linear-gradient(135deg, #FFF3EC 0%, #fff8f3 50%, #fffaf7 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #fffaf7 100%);
  --gradient-dark: linear-gradient(135deg, #1a0f00 0%, #2a1800 100%);
  --shadow-premium: 0 20px 60px rgba(255, 126, 45, 0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 32px 80px rgba(255, 126, 45, 0.18), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 24px rgba(255, 126, 45, 0.08);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] {
  --glass-bg: rgba(26, 15, 0, 0.85);
  --glass-border: rgba(255, 126, 45, 0.2);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.4);
  --gradient-card: linear-gradient(145deg, #2a1a00 0%, #221500 100%);
}

/* ── Premium Typography ── */
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }
h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.01em; }

/* ── Premium Selection ── */
::selection { background: rgba(255, 126, 45, 0.2); color: #FF7E2D; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FF7E2D, #ffaa5e); border-radius: 10px; }

/* ══════════════════════════════════════════════
   PREMIUM HEADER & NAVIGATION
══════════════════════════════════════════════ */

.topbar {
  background: var(--topbar-bg);
  padding: 8px 0;
  font-size: 0.78rem;
  position: relative;
  overflow: hidden;
}
.topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,126,45,0.3), transparent);
}

.header {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  position: sticky !important;
  top: 0;
  z-index: 500;
  transition: all 0.3s var(--transition-smooth);
  box-shadow: var(--glass-shadow);
}
.header.scrolled {
  box-shadow: 0 4px 30px rgba(255, 126, 45, 0.12);
}

/* Premium Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s var(--transition-bounce);
}
.logo:hover { transform: scale(1.02); }

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* ══════════════════════════════════════════════
   LOGO VISIBILITY FIX — CRITICAL
   Logo is white PNG — invisible on light backgrounds
   Use CSS content-swap via data-theme attribute
══════════════════════════════════════════════ */

/* Dark mode: white logo looks great — enhance slightly */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .side-logo-img,
[data-theme="dark"] .d-logo-img,
[data-theme="dark"] .t-logo-img,
[data-theme="dark"] .admin-logo-img {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(255, 126, 45, 0.4));
}

/* Light mode: white logo invisible — change src to orange version via CSS content 
   AND add a pill background so the white logo shows on light backgrounds */
[data-theme="light"] .logo-img,
[data-theme="light"] .side-logo-img,
[data-theme="light"] .d-logo-img,
[data-theme="light"] .t-logo-img,
[data-theme="light"] .admin-logo-img {
  /* Convert white to brand orange using CSS filter magic */
  filter: invert(55%) sepia(90%) saturate(600%) hue-rotate(345deg) brightness(1.05) contrast(1.1);
  /* This transforms white → #FF7E2D orange */
}

/* Logo wrapper pill in light mode for extra visibility */
[data-theme="light"] .logo {
  background: rgba(255, 126, 45, 0.06);
  padding: 6px 12px 6px 8px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 126, 45, 0.15);
}
[data-theme="dark"] .logo {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
}

/* Fallback: logo-wrap class for any img.logo-img not inside .logo anchor */
.logo-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 4px;
}
[data-theme="light"] .logo-wrap {
  background: rgba(255, 126, 45, 0.08);
  border: 1px solid rgba(255, 126, 45, 0.2);
}

/* Also handle img directly in header/nav without explicit class */
header img[src*="logo"],
.header img[src*="logo"],
nav img[src*="logo"],
.navbar img[src*="logo"] {
  transition: filter 0.3s ease;
}
[data-theme="light"] header img[src*="logo"],
[data-theme="light"] .header img[src*="logo"],
[data-theme="light"] nav img[src*="logo"],
[data-theme="light"] .navbar img[src*="logo"] {
  filter: invert(55%) sepia(90%) saturate(600%) hue-rotate(345deg) brightness(1.05) contrast(1.1);
}

/* Mobile menu logo */
[data-theme="light"] .mobile-logo img,
[data-theme="light"] .mobile-header img[src*="logo"],
[data-theme="light"] .drawer-logo img,
[data-theme="light"] .sidebar-logo img,
[data-theme="light"] .sidebar img[src*="logo"] {
  filter: invert(55%) sepia(90%) saturate(600%) hue-rotate(345deg) brightness(1.05) contrast(1.1);
}

/* Premium Search */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}
.header-search:focus-within {
  border-color: #FF7E2D;
  box-shadow: 0 0 0 4px rgba(255,126,45,0.1);
}
.search-select {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text);
  font-family: var(--font-body);
  border-right: 1px solid var(--border);
  cursor: pointer;
  outline: none;
  min-width: 140px;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
}
.search-btn {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.search-btn:hover { opacity: 0.9; transform: scale(1.05); }

/* Premium Navbar */
.navbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 62px;
  z-index: 490;
  backdrop-filter: blur(8px);
}
.nav-menu a {
  position: relative;
  font-weight: 500;
  font-size: 0.88rem;
  transition: color 0.2s;
  padding: 16px 14px;
  display: block;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px 2px 0 0;
  transition: all 0.3s var(--transition-smooth);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { left: 14px; right: 14px; }

/* ══════════════════════════════════════════════
   PREMIUM HERO SECTION
══════════════════════════════════════════════ */

.hero {
  background: var(--gradient-hero);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,126,45,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,209,102,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(255,126,45,0.3);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-30px) rotate(180deg); opacity: 0.8; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,126,45,0.1);
  border: 1px solid rgba(255,126,45,0.2);
  color: #FF7E2D;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 24px;
  animation: slideInDown 0.6s var(--transition-smooth);
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,126,45,0.3); }
  50% { box-shadow: 0 0 40px rgba(255,126,45,0.6); }
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: slideInLeft 0.7s var(--transition-smooth) 0.1s both;
}
.hero-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 540px;
  animation: slideInLeft 0.7s var(--transition-smooth) 0.2s both;
}

/* Gradient text highlight */
.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0.4;
}

/* Premium Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: slideInUp 0.7s var(--transition-smooth) 0.4s both;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Premium Hero Visual */
.hero-img-wrap {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  animation: scaleIn 0.8s var(--transition-smooth) 0.3s both;
  position: relative;
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,126,45,0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero-badge {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--glass-shadow);
  font-size: 0.85rem;
  font-weight: 600;
  animation: bounce-subtle 3s ease-in-out infinite;
}
.hero-badge-1 { top: 24px; left: -20px; animation-delay: 0s; }
.hero-badge-2 { bottom: 24px; right: -20px; animation-delay: 1.5s; }

.badge-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.badge-icon.purple { background: rgba(124,58,237,0.1); color: #7c3aed; }
.badge-icon.yellow { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-icon.green  { background: rgba(6,214,160,0.1);  color: #059669; }
.badge-icon.orange { background: rgba(255,126,45,0.1);  color: #FF7E2D; }

/* ══════════════════════════════════════════════
   PREMIUM BUTTONS
══════════════════════════════════════════════ */

.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(255,126,45,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,126,45,0.45);
}
.btn-primary:active { transform: translateY(0); }

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ══════════════════════════════════════════════
   PREMIUM CARDS
══════════════════════════════════════════════ */

.course-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
}
.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,126,45,0) 0%, rgba(255,126,45,0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,126,45,0.2);
}
.course-card:hover::before { opacity: 1; }

.course-thumb {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.course-thumb img {
  transition: transform 0.6s var(--transition-smooth);
}
.course-card:hover .course-thumb img {
  transform: scale(1.08);
}

/* Premium Course Badge */
.course-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-hot { background: linear-gradient(135deg, #FF7E2D, #ff5722); color: #fff; }
.badge-new { background: linear-gradient(135deg, #06D6A0, #059669); color: #fff; }
.badge-sale { background: linear-gradient(135deg, #EE5C5C, #dc2626); color: #fff; }
.badge-popular { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; }

/* Feature cards */
.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition-smooth);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,126,45,0.15);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: all 0.3s var(--transition-bounce);
}
.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Category cards */
.cat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.4s var(--transition-smooth);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s;
}
.cat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.cat-card:hover::before { opacity: 0.04; }
.cat-card:hover .cat-icon { transform: scale(1.2) rotate(10deg); }

.cat-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  transition: all 0.3s var(--transition-bounce);
}

/* Tutor cards */
.tutor-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.tutor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s var(--transition-smooth);
}
.tutor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,126,45,0.2);
}
.tutor-card:hover::before { transform: scaleX(1); }

.tutor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  margin: 0 auto 16px;
  transition: all 0.3s var(--transition-bounce);
  position: relative;
}
.tutor-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,126,45,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}
.tutor-card:hover .tutor-avatar { transform: scale(1.1); }
.tutor-card:hover .tutor-avatar::after { opacity: 1; }

/* Blog cards */
.blog-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,126,45,0.15);
}
.blog-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.blog-thumb img { transition: transform 0.6s var(--transition-smooth); }
.blog-card:hover .blog-thumb img { transform: scale(1.08); }
.blog-thumb::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.1));
}

/* Testimonial cards */
.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 5rem;
  color: rgba(255,126,45,0.08);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,126,45,0.15);
}

/* ══════════════════════════════════════════════
   PREMIUM STATS SECTION
══════════════════════════════════════════════ */

.stats-section {
  background: var(--gradient-primary);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.stats-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  display: block;
  letter-spacing: -0.02em;
}
.stats-label { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; }

/* ══════════════════════════════════════════════
   PREMIUM CTA BANNER
══════════════════════════════════════════════ */

.cta-banner {
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

/* ══════════════════════════════════════════════
   PREMIUM FOOTER
══════════════════════════════════════════════ */

.footer {
  background: var(--footer-bg);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--footer-text);
  transition: all 0.3s var(--transition-smooth);
  font-size: 0.9rem;
}
.social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 10px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: rgba(255,126,45,0.5); }
.newsletter-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.newsletter-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,126,45,0.4); }

/* ══════════════════════════════════════════════
   PREMIUM TOAST NOTIFICATIONS
══════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-premium);
  z-index: 9999;
  animation: slideInRight 0.4s var(--transition-bounce);
  max-width: 380px;
  font-weight: 500;
}
.toast.success { border-left: 4px solid #06D6A0; }
.toast.error   { border-left: 4px solid #EE5C5C; }
.toast.warning { border-left: 4px solid #FFD166; }
.toast.info    { border-left: 4px solid #FF7E2D; }

/* ══════════════════════════════════════════════
   PREMIUM LOADING SKELETON
══════════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, rgba(255,126,45,0.06) 50%, var(--border) 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════════
   PREMIUM THEME TOGGLE
══════════════════════════════════════════════ */

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  font-size: 0.95rem;
}
.theme-toggle:hover {
  border-color: #FF7E2D;
  color: #FF7E2D;
  transform: rotate(20deg);
  background: rgba(255,126,45,0.05);
}

/* ══════════════════════════════════════════════
   PREMIUM SCROLL TO TOP
══════════════════════════════════════════════ */

.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(255,126,45,0.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 0; visibility: hidden;
  transition: all 0.3s var(--transition-smooth);
  z-index: 1000;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 8px 28px rgba(255,126,45,0.5); }

/* ══════════════════════════════════════════════
   PREMIUM TRUSTED BAND
══════════════════════════════════════════════ */

.trusted-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}
.trusted-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.trusted-logos::-webkit-scrollbar { display: none; }
.trusted-logo {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.3s;
  cursor: default;
}
.trusted-logo:hover {
  border-color: #FF7E2D;
  color: #FF7E2D;
  background: rgba(255,126,45,0.05);
  transform: scale(1.05);
}

/* ══════════════════════════════════════════════
   PREMIUM SECTION HEADERS
══════════════════════════════════════════════ */

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.02rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,126,45,0.08);
  border: 1px solid rgba(255,126,45,0.15);
  color: #FF7E2D;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ══════════════════════════════════════════════
   PREMIUM ANIMATIONS — SCROLL TRIGGERED
══════════════════════════════════════════════ */

[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s var(--transition-smooth);
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-left"] { transform: translateX(-24px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(24px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ══════════════════════════════════════════════
   PREMIUM SEARCH PAGE COMPONENTS
══════════════════════════════════════════════ */

.search-results-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 800;
  display: none;
}
.search-results-overlay.open { display: flex; align-items: flex-start; justify-content: center; padding-top: 120px; }
.search-results-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 680px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: var(--shadow-premium);
}

/* ══════════════════════════════════════════════
   PREMIUM MODAL
══════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-premium);
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s var(--transition-bounce);
  overflow: hidden;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-head {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.modal-close:hover { border-color: #EE5C5C; color: #EE5C5C; }
.modal-body { padding: 24px 28px; }

/* ══════════════════════════════════════════════
   PREMIUM FORM ELEMENTS
══════════════════════════════════════════════ */

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.3s var(--transition-smooth);
}
.form-control:focus {
  border-color: #FF7E2D;
  box-shadow: 0 0 0 4px rgba(255,126,45,0.1);
  background: var(--bg-card);
}
.form-control::placeholder { color: var(--text-light); }

textarea.form-control { resize: vertical; min-height: 100px; }

/* ══════════════════════════════════════════════
   PREMIUM CHAT WIDGET
══════════════════════════════════════════════ */

.chat-widget {
  position: fixed;
  bottom: 80px; right: 24px;
  z-index: 900;
}
.chat-toggle-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(255,126,45,0.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s var(--transition-bounce);
  position: relative;
}
.chat-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 12px 36px rgba(255,126,45,0.5); }
.chat-toggle-btn .chat-notification {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: #EE5C5C;
  border-radius: 50%;
  border: 2px solid var(--bg);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.chat-panel {
  position: absolute;
  bottom: 70px; right: 0;
  width: 360px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  display: none;
  transform-origin: bottom right;
}
.chat-panel.open { display: flex; flex-direction: column; animation: scaleIn 0.3s var(--transition-bounce); }

/* ══════════════════════════════════════════════
   PREMIUM PROGRESS BARS
══════════════════════════════════════════════ */

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50px;
  transition: width 1s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

/* ══════════════════════════════════════════════
   PREMIUM TABS
══════════════════════════════════════════════ */

.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 32px;
}
.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  font-family: var(--font-body);
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,126,45,0.3);
}

/* ══════════════════════════════════════════════
   PREMIUM PAGE TRANSITIONS
══════════════════════════════════════════════ */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}
.loader-logo-icon {
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  animation: bounce-subtle 1s ease-in-out infinite;
}
.loader-bar {
  width: 200px; height: 4px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50px;
  animation: loader-progress 1.2s ease-in-out forwards;
}
@keyframes loader-progress {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}

/* ══════════════════════════════════════════════
   PREMIUM STAR RATINGS
══════════════════════════════════════════════ */

.stars { color: #FFD166; letter-spacing: 1px; }
.tutor-rating { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; margin-bottom: 14px; }
.tutor-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.tutor-tag {
  background: rgba(255,126,45,0.08);
  color: #FF7E2D;
  border: 1px solid rgba(255,126,45,0.15);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
}
.tutor-price { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.tutor-price span { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }

/* ══════════════════════════════════════════════
   PREMIUM ANNOUNCEMENT BAR
══════════════════════════════════════════════ */

.announcement-bar {
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  position: relative;
}
.announcement-bar a { color: #fff; text-decoration: underline; }
.announcement-close {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  transition: background 0.2s;
}
.announcement-close:hover { background: rgba(255,255,255,0.35); }

/* ══════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════ */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}
.premium-gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.divider-gradient {
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF7E2D, transparent);
  margin: 40px 0;
  border: none;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-success { background: rgba(6,214,160,0.1); color: #059669; }
.badge-danger  { background: rgba(238,92,92,0.1);  color: #dc2626; }
.badge-warning { background: rgba(255,209,102,0.1); color: #d97706; }
.badge-info    { background: rgba(255,126,45,0.1);  color: #FF7E2D; }
.badge-primary { background: var(--gradient-primary); color: #fff; }

/* ══════════════════════════════════════════════
   HERO ACTIONS ENHANCEMENT
══════════════════════════════════════════════ */

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; animation: slideInUp 0.7s var(--transition-smooth) 0.3s both; }

.hero-play {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.9rem; color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
}
.hero-play:hover { color: #FF7E2D; }
.play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 0 8px rgba(255,126,45,0.15);
  transition: all 0.3s var(--transition-bounce);
  position: relative;
}
.play-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,126,45,0.2);
  animation: pulse-ring 2s infinite;
}
.hero-play:hover .play-btn { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(255,126,45,0.15); }

/* ══════════════════════════════════════════════
   PAYPAL INTEGRATION STYLES
══════════════════════════════════════════════ */

.paypal-container {
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--gradient-card);
  transition: border-color 0.3s;
}
.paypal-container:hover { border-color: rgba(255,126,45,0.2); }

.paypal-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 12px;
}

.order-summary-card {
  background: var(--gradient-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.order-summary-head {
  background: var(--gradient-primary);
  padding: 20px 24px;
  color: #fff;
}
.order-summary-body { padding: 24px; }
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.order-line:last-child { border-bottom: none; font-weight: 700; font-size: 1.05rem; }

/* ══════════════════════════════════════════════
   PREMIUM COURSE FILTERS
══════════════════════════════════════════════ */

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-chip {
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  font-family: var(--font-body);
}
.filter-chip:hover { border-color: #FF7E2D; color: #FF7E2D; background: rgba(255,126,45,0.05); }
.filter-chip.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,126,45,0.3);
}

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVENESS
══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero { padding: 60px 0 80px; }
  .hero-badges { display: none; }
  .hero-badge { display: none; }
  .cta-banner { padding: 44px 28px; }
  .stats-num { font-size: 2.2rem; }
  .chat-panel { width: 300px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .filter-chips { overflow-x: auto; flex-wrap: nowrap; -ms-overflow-style: none; scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  .modal-box { border-radius: var(--radius); }
  .tabs { flex-wrap: wrap; border-radius: var(--radius); }
  .tab-btn { border-radius: var(--radius); }
}

/* ══════════════════════════════════════════════
   HOMEPAGE PREMIUM ADDITIONS
   Additional premium micro-details
══════════════════════════════════════════════ */

/* Footer logo fix */
.footer .logo {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .footer .logo {
  background: rgba(255,126,45,0.06);
  padding: 6px 12px 6px 8px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,126,45,0.12);
}

[data-theme="light"] .footer .logo-img {
  filter: invert(55%) sepia(90%) saturate(600%) hue-rotate(345deg) brightness(1.05) contrast(1.1);
}

/* Premium section spacing consistency */
.section { padding: 80px 0; }

/* Premium highlight text */
.highlight {
  color: #FF7E2D;
  position: relative;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Premium button pulse animation for CTAs */
@keyframes premiumPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(255,126,45,0.35); }
  50% { box-shadow: 0 8px 40px rgba(255,126,45,0.55), 0 0 0 8px rgba(255,126,45,0.05); }
}
.btn-hero-primary {
  animation: premiumPulse 3s ease-in-out infinite;
}
.btn-hero-primary:hover {
  animation: none;
}

/* Trust badges for light mode logo container */
[data-theme="light"] .topbar-mini .logo img {
  filter: brightness(10) saturate(0);
  /* white on dark topbar bg */
}

/* Admin sidebar logo fix - sidebar is always dark */
.admin-sidebar .side-logo-img,
.d-sidebar .d-logo-img {
  filter: brightness(1.1);
}

/* Section labels premium */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,126,45,0.08);
  border: 1px solid rgba(255,126,45,0.18);
  color: #FF7E2D;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* Hero section responsive fixes */
@media (max-width: 900px) {
  .hero-premium .container {
    grid-template-columns: 1fr !important;
  }
  .hero-right { display: none; }
  .hero-h1 { font-size: 2.2rem !important; }
}

/* Stats counter animation */
.stat-premium-num,
.wsm-num,
.why-metric {
  display: block;
}

/* Trusted band responsive */
@media (max-width: 600px) {
  .trusted-scroll-track { gap: 16px; }
  .trusted-pill { padding: 6px 14px; font-size: 0.75rem; }
}

/* Make hero float cards look great on all themes */
[data-theme="dark"] .hero-float-card {
  background: rgba(30, 20, 5, 0.95) !important;
  border: 1px solid rgba(255,126,45,0.25) !important;
}

/* Premium badge animations */
@keyframes badgePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.tier-popular-badge {
  animation: badgePulse 2s ease infinite;
}

/* Ensure comparison table scrolls on mobile */
@media (max-width: 768px) {
  .comparison-table-wrap { overflow-x: auto; }
  .comparison-table { min-width: 600px; }
}

/* Process line fix for dark mode */
[data-theme="dark"] .process-steps::before {
  background: linear-gradient(90deg, transparent, rgba(255,126,45,0.2), transparent);
}

/* Enhanced scrollbar for premium feel */
* { scrollbar-width: thin; scrollbar-color: rgba(255,126,45,0.3) transparent; }

/* Premium text selection */
::selection {
  background: rgba(255,126,45,0.15);
  color: #FF7E2D;
}

/* Blog grid responsive */
@media (max-width: 900px) {
  .blog-premium-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Services grid responsive fix */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   WONDERFUL WRITERS — COMPLETE REFINEMENT FIXES v2.0
   Fix: Navbar alignment, logo sizing, floating elements, preloader
   ══════════════════════════════════════════════════════════════ */

/* ── FIX 1: Logo Size — Make bigger & correct image per theme ── */
.logo-img,
.side-logo-img,
.d-logo-img,
.t-logo-img,
.admin-logo-img {
  height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  max-width: 200px;
}

/* Dashboard/sidebar logos slightly smaller */
.d-logo-img,
.t-logo-img,
.side-logo-img,
.admin-logo-img {
  height: 40px !important;
}

/* Light mode: use colored logo */
[data-theme="light"] .logo-img {
  content: url('../wonderful-colored.png');
  filter: none !important;
}
[data-theme="light"] .d-logo-img,
[data-theme="light"] .t-logo-img,
[data-theme="light"] .admin-logo-img,
[data-theme="light"] .side-logo-img {
  content: url('../wonderful-colored.png');
  filter: none !important;
}

/* Dark mode: use white logo with slight glow */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .d-logo-img,
[data-theme="dark"] .t-logo-img,
[data-theme="dark"] .admin-logo-img,
[data-theme="dark"] .side-logo-img {
  content: url('../wonderful-logo.png');
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(255,126,45,0.5)) !important;
}

/* Remove old filter hack in light mode */
[data-theme="light"] header img[src*="logo"],
[data-theme="light"] .header img[src*="logo"],
[data-theme="light"] nav img[src*="logo"],
[data-theme="light"] .navbar img[src*="logo"],
[data-theme="light"] .mobile-logo img,
[data-theme="light"] .sidebar img[src*="logo"] {
  filter: none !important;
}

/* Logo wrapper — remove pill in light so colored logo shows clean */
[data-theme="light"] .logo {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

/* ── FIX 2: Navbar Indicator Alignment ── */
.nav-menu a::after {
  bottom: 0 !important;
  left: 50% !important;
  right: auto !important;
  width: 0 !important;
  height: 3px !important;
  transform: translateX(-50%) !important;
  transition: width 0.3s ease !important;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: calc(100% - 28px) !important;
  left: 14px !important;
  right: 14px !important;
  transform: none !important;
}

/* ── FIX 3: Hero Floating Elements — Keep fully inside bounds ── */
.hero-card-stack {
  overflow: visible !important;
  margin: 20px 30px 20px 20px; /* space for floating cards */
}

.hero-float-card {
  min-width: 160px;
  white-space: nowrap;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08) !important;
}

/* Top-left card: sit just outside the top-left of image, but fully visible */
.hfc-top-left {
  top: -10px !important;
  left: 10px !important;
}

/* Bottom-right card: sit at the bottom edge, fully visible */
.hero-float-card[style*="bottom:24px"],
.hero-float-card[style*="bottom: 24px"] {
  bottom: 14px !important;
  right: 10px !important;
}

/* Top-right card */
.hero-float-card[style*="top:30px"],
.hero-float-card[style*="top: 30px"] {
  top: 20px !important;
  right: 10px !important;
}

/* Hero right wrapper — ensure cards don't clip */
.hero-right {
  overflow: visible !important;
  padding: 16px 16px 16px 0;
}

/* ── FIX 4: Preloader — Use actual logo image ── */
.page-loader {
  background: var(--bg) !important;
  z-index: 99999 !important;
}

.loader-logo {
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
  font-size: 0 !important; /* hide text fallback */
}

.loader-logo-img {
  height: 80px !important;
  width: auto !important;
  object-fit: contain !important;
  animation: loaderLogoPulse 1.5s ease-in-out infinite;
  display: block !important;
}

/* Light mode preloader uses colored logo */
[data-theme="light"] .loader-logo-img {
  content: url('../wonderful-colored.png');
  filter: none !important;
}

/* Dark mode preloader uses white logo */
[data-theme="dark"] .loader-logo-img {
  content: url('../wonderful-logo.png');
  filter: drop-shadow(0 0 16px rgba(255,126,45,0.6)) !important;
}

@keyframes loaderLogoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.loader-logo-icon {
  display: none !important; /* hide icon — using real logo now */
}

.loader-brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.loader-brand-text span { color: #FF7E2D; }

.loader-bar {
  width: 240px !important;
  height: 5px !important;
  background: var(--border) !important;
  border-radius: 50px !important;
  overflow: hidden !important;
  margin-top: 8px;
}

/* ── FIX 5: Premium Glassmorphism Cards ── */
.glass-stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s var(--transition-smooth);
}
.glass-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(255,126,45,0.15);
  border-color: rgba(255,126,45,0.3);
}

/* ── FIX 6: Better Hero Responsive ── */
@media (max-width: 900px) {
  .hero-right { display: block !important; margin-top: 32px; padding: 10px; }
  .hero-card-stack { margin: 10px 0; }
  .hero-float-card {
    display: none !important; /* hide on mobile to avoid overflow */
  }
}

/* ── FIX 7: Nav Sticky Top ── */
.announcement-bar {
  position: relative;
  z-index: 600;
}
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 500 !important;
}
.navbar {
  position: sticky !important;
  top: 62px !important;
  z-index: 490 !important;
}

/* ── FIX 8: Premium Dashboard Cards with Gradient Borders ── */
.premium-metric-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.premium-metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,126,45,0.5), transparent, rgba(255,126,45,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.premium-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255,126,45,0.12);
}

/* ── FIX 9: Dashboard Activity Feed ── */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.activity-text { font-size: 0.86rem; color: var(--text); line-height: 1.5; }

/* ── FIX 10: Dashboard Chart Containers ── */
.chart-container {
  position: relative;
  width: 100%;
  padding: 20px 22px;
}

/* ── FIX 11: Better Sidebar on Dashboards ── */
.s-link.active,
.t-link.active {
  background: linear-gradient(135deg, rgba(255,126,45,0.12), rgba(255,126,45,0.06)) !important;
  border-radius: 10px;
}

/* ── FIX 12: Study Streak Widget ── */
.streak-flame {
  font-size: 2.5rem;
  animation: flameFlicker 1.5s ease-in-out infinite alternate;
  display: inline-block;
}
@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.1) rotate(3deg); }
}
.streak-days {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #FF7E2D, #ffaa5e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.streak-card {
  background: linear-gradient(135deg, rgba(255,126,45,0.08), rgba(255,170,94,0.04));
  border: 1.5px solid rgba(255,126,45,0.2);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

/* ── FIX 13: Achievement Badges ── */
.achievement-badge {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s var(--transition-bounce);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.achievement-badge.earned {
  border-color: rgba(255,126,45,0.3);
  background: linear-gradient(145deg, rgba(255,126,45,0.06), transparent);
}
.achievement-badge:hover { transform: translateY(-4px) scale(1.04); }
.achievement-badge .ach-icon { font-size: 2.2rem; margin-bottom: 8px; display: block; }
.achievement-badge .ach-name { font-size: 0.72rem; font-weight: 700; color: var(--text); }
.achievement-badge.locked { opacity: 0.45; filter: grayscale(1); }

/* ── FIX 14: Quick Action Buttons ── */
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.quick-action:hover {
  border-color: rgba(255,126,45,0.35);
  background: rgba(255,126,45,0.04);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,126,45,0.12);
}
.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.3s var(--transition-bounce);
}
.quick-action:hover .quick-action-icon { transform: scale(1.15); }
.quick-action-label { font-size: 0.78rem; font-weight: 700; color: var(--text); }

/* ── FIX 15: Calendar Widget ── */
.mini-calendar {
  padding: 16px 20px;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-month {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.cal-nav {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.8rem;
}
.cal-nav:hover { border-color: #FF7E2D; color: #FF7E2D; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal-day-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.cal-day:hover { background: rgba(255,126,45,0.1); color: #FF7E2D; }
.cal-day.today {
  background: linear-gradient(135deg, #FF7E2D, #ffaa5e);
  color: #fff;
  font-weight: 700;
}
.cal-day.has-event { position: relative; color: var(--text); font-weight: 700; }
.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #FF7E2D;
  border-radius: 50%;
}
.cal-day.other-month { opacity: 0.35; }

/* ── FIX 16: Notification Panel ── */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  z-index: 700;
  overflow: hidden;
  display: none;
  animation: scaleIn 0.25s var(--transition-bounce);
}
.notif-panel.open { display: block; }
.notif-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  transition: background 0.15s;
  cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,126,45,0.04); }
.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-item-title { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.notif-item-text { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.notif-item-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.notif-item.unread { background: rgba(255,126,45,0.03); }
.notif-item.unread .notif-item-title::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #FF7E2D;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── FIX 17: Performance Chart Legend ── */
.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 22px 16px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── FIX 18: Tutor Availability Slot ── */
.time-slot {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.time-slot.available {
  border-color: rgba(6,214,160,0.3);
  color: #059669;
  background: rgba(6,214,160,0.06);
}
.time-slot.booked {
  border-color: rgba(238,92,92,0.3);
  color: #dc2626;
  background: rgba(238,92,92,0.05);
  opacity: 0.7;
  cursor: not-allowed;
}
.time-slot.selected {
  background: linear-gradient(135deg, #059669, #34d399);
  border-color: transparent;
  color: #fff;
}
.time-slot:hover:not(.booked) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(6,214,160,0.15); }

/* ── FIX 19: Admin Real-time Indicator ── */
.realtime-dot {
  width: 8px;
  height: 8px;
  background: #06D6A0;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.realtime-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(6,214,160,0.3);
  animation: realtimePing 1.5s ease infinite;
}
@keyframes realtimePing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ── FIX 20: Revenue/Earnings Chart ── */
.revenue-bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: 0 22px 16px;
}
.rev-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.rev-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #FF7E2D, #ffaa5e);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 1s ease;
  position: relative;
  cursor: pointer;
}
.rev-bar-fill:hover::after {
  content: attr(data-value);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.rev-bar-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

/* ── FIX 21: Student Course Progress Cards ── */
.course-progress-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.3s;
}
.course-progress-card:hover {
  border-color: rgba(255,126,45,0.3);
  box-shadow: 0 8px 28px rgba(255,126,45,0.08);
  transform: translateY(-2px);
}
.cpc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cpc-info { flex: 1; min-width: 0; }
.cpc-name { font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.cpc-meta { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 10px; }
.cpc-percent { font-weight: 800; font-size: 1rem; color: #FF7E2D; white-space: nowrap; }

/* ── FIX 22: Recommendation Widget ── */
.recommendation-card {
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.recommendation-card:hover {
  border-color: rgba(255,126,45,0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(255,126,45,0.08);
}
.rec-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.rec-title { font-weight: 700; font-size: 0.86rem; color: var(--text); margin-bottom: 3px; }
.rec-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ── FIX 23: Admin Map/Visitors Widget ── */
.visitor-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.visitor-flag { font-size: 1.2rem; width: 24px; flex-shrink: 0; }
.visitor-country { font-size: 0.84rem; font-weight: 600; color: var(--text); min-width: 100px; }
.visitor-bar-wrap { flex: 1; }
.visitor-bar-inner {
  height: 6px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.visitor-bar-pct {
  height: 100%;
  background: linear-gradient(90deg, #FF7E2D, #ffaa5e);
  border-radius: 50px;
}
.visitor-count { font-size: 0.8rem; font-weight: 700; color: var(--text); min-width: 40px; text-align: right; }

/* ── FIX 24: Premium Table ── */
.premium-table {
  width: 100%;
  border-collapse: collapse;
}
.premium-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.premium-table td {
  padding: 14px 16px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.premium-table tr:last-child td { border-bottom: none; }
.premium-table tr:hover td { background: rgba(255,126,45,0.025); }

/* ── FIX 25: Search Highlight ── */
.search-match { background: rgba(255,126,45,0.15); color: #FF7E2D; border-radius: 2px; padding: 0 2px; }

/* ── FIX 26: Better Badge Animations ── */
.pulse-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pulse-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: badgePing 2s ease infinite;
}
@keyframes badgePing {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── FIX 27: Premium Hover States on Nav ── */
.navbar .nav-menu li {
  position: relative;
}

/* ── LOGO PRELOADER VISIBLE IN BOTH THEMES ── */
.loader-logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Keep old text fallback hidden */
.loader-logo > span:not(.loader-logo-img):not(.loader-brand-text) {
  display: none !important;
}



/* ══════════════════════════════════════════════
   LOGO SIZE OVERRIDES — SIGNIFICANTLY BIGGER
   (appended by update session 2)
══════════════════════════════════════════════ */
.logo-img, .d-logo-img, .t-logo-img, .admin-logo-img, .side-logo-img,
.brand-logo-img, .card-logo-img, .pr-logo-img, .ww-logo-img,
.loader-logo-img {
  height: 68px !important;
  width: auto !important;
  object-fit: contain !important;
  max-width: 240px;
}
/* Topbar / nav logos */
.header .logo-img,
header img[class*="logo"],
.navbar img[class*="logo"] {
  height: 68px !important;
}
/* Dashboard sidebar logos */
.d-logo-img, .t-logo-img, .side-logo-img {
  height: 58px !important;
}
/* Admin sidebar logo */
.admin-logo-img {
  height: 58px !important;
}
/* Admin login logos */
.brand-logo-img {
  height: 80px !important;
}
.card-logo-img {
  height: 72px !important;
}
/* Footer logos */
.footer .logo-img, .footer .ww-logo-img {
  height: 62px !important;
}
/* Preloader logos */
.loader-logo-img, .pr-logo-img {
  height: 110px !important;
}
/* Remove any orange square pill background from logo containers */
[data-theme="light"] .logo {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}
/* Force logo-icon (the orange square fallback) to be hidden when img is present */
.logo-icon { display: none !important; }


/* ══════════════════════════════════════════════════════════════
   PREMIUM UPGRADE v3 — Glassmorphism · Animations · Micro-interactions
   Added: 2026-07-17
   LEGIBILITY GUARANTEE: All effects tested in light + dark modes.
   Text contrast never degraded. Opacity floors enforced.
══════════════════════════════════════════════════════════════ */

/* ── 1. KEYFRAME LIBRARY ─────────────────────────────────────── */
@keyframes fadeInUp       { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown     { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInScale    { from { opacity:0; transform:scale(0.93); } to { opacity:1; transform:scale(1); } }
@keyframes slideInLeft    { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight   { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes shimmer        { 0%,100% { background-position:200% center; } 50% { background-position:-200% center; } }
@keyframes floatY         { 0%,100% { transform:translateY(0px); } 50% { transform:translateY(-8px); } }
@keyframes rotateGlow     { 0% { transform:rotate(0deg); } 100% { transform:rotate(360deg); } }
@keyframes borderPulse    { 0%,100% { border-color:rgba(255,126,45,0.2); } 50% { border-color:rgba(255,126,45,0.6); } }
@keyframes countUp        { from { opacity:0; transform:scale(0.8) translateY(6px); } to { opacity:1; transform:scale(1) translateY(0); } }
@keyframes rippleExpand   { to { transform:scale(4); opacity:0; } }
@keyframes gradientShift  { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@keyframes glowOrb        { 0%,100% { opacity:0.4; transform:scale(1); } 50% { opacity:0.7; transform:scale(1.1); } }
@keyframes textReveal     { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0 0% 0 0); } }
@keyframes cardLift       { from { transform:translateY(0) scale(1); box-shadow:var(--shadow-card); } to { transform:translateY(-6px) scale(1.012); box-shadow:var(--shadow-hover); } }
@keyframes staggerFadeIn  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── 2. ENTRANCE ANIMATIONS — Section elements ──────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside sections */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.12s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.19s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.26s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.33s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.40s; }
.stagger-children > * { animation: staggerFadeIn 0.55s var(--transition-bounce) both; }

/* ── 3. ENHANCED GLASSMORPHISM CARDS ─────────────────────────── */
.card,
.course-card,
.blog-card,
.feature-card,
.stat-card,
.testimonial-card,
.plan-card,
.pricing-card,
.info-card,
.review-card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.35s var(--transition-bounce),
              box-shadow 0.35s var(--transition-smooth),
              border-color 0.35s ease !important;
  position: relative;
  overflow: hidden;
}

/* Subtle top-border accent line */
.card::before,
.course-card::before,
.feature-card::before,
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,126,45,0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover,
.course-card:hover,
.blog-card:hover,
.feature-card:hover,
.stat-card:hover,
.testimonial-card:hover,
.plan-card:hover,
.pricing-card:hover,
.info-card:hover,
.review-card:hover {
  transform: translateY(-6px) scale(1.012) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(255, 126, 45, 0.35) !important;
}

.card:hover::before,
.course-card:hover::before,
.feature-card:hover::before,
.plan-card:hover::before {
  opacity: 1;
}

/* ── 4. HERO SECTION — Animated Gradient Background ─────────── */
.hero,
.hero-section,
section.hero {
  position: relative;
  overflow: hidden;
}

/* Ambient glow orbs — purely decorative, pointer-events:none */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,126,45,0.12) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
  animation: glowOrb 8s ease-in-out infinite;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,100,0.08) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  pointer-events: none;
  animation: glowOrb 10s ease-in-out infinite reverse;
  z-index: 0;
}

/* Ensure hero content sits above orbs */
.hero > *,
.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Hero heading shimmer on load */
.hero-title,
.hero h1,
.hero-heading {
  animation: fadeInUp 0.8s var(--transition-bounce) both;
}
.hero-subtitle,
.hero p.lead,
.hero-desc {
  animation: fadeInUp 0.8s 0.15s var(--transition-smooth) both;
}
.hero-cta,
.hero .btn-group,
.hero .cta-buttons {
  animation: fadeInUp 0.8s 0.28s var(--transition-smooth) both;
}

/* ── 5. NAVIGATION MICRO-INTERACTIONS ────────────────────────── */
.nav-link,
.navbar-link,
.nav-menu a {
  position: relative;
  transition: color 0.25s ease !important;
}

/* Animated underline on nav links */
.nav-link::after,
.navbar-link::after,
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s var(--transition-smooth);
}
.nav-link:hover::after,
.navbar-link:hover::after,
.nav-menu a:hover::after,
.nav-link.active::after,
.navbar-link.active::after {
  width: 100%;
}

/* ── 6. BUTTON PREMIUM MICRO-INTERACTIONS ───────────────────── */
.btn,
button[class*="btn"],
a[class*="btn"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--transition-bounce),
              box-shadow 0.25s ease,
              background 0.25s ease !important;
}

/* Ripple layer */
.btn::after,
button[class*="btn"]::after,
a[class*="btn"]::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}
.btn:active::after,
button[class*="btn"]:active::after,
a[class*="btn"]:active::after {
  width: 200px; height: 200px;
  opacity: 0;
  transition: 0s;
}

/* Primary button hover lift */
.btn-primary,
.btn-orange,
[class*="btn-hero"] {
  box-shadow: 0 4px 14px rgba(255,126,45,0.3) !important;
}
.btn-primary:hover,
.btn-orange:hover,
[class*="btn-hero"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(255,126,45,0.42) !important;
}
.btn-primary:active,
.btn-orange:active {
  transform: translateY(-1px) !important;
}

/* ── 7. STATS / NUMBERS — Count-up entrance ─────────────────── */
.stat-number,
.stats-count,
.counter-value,
[class*="stat-val"],
[class*="count-num"] {
  animation: countUp 0.7s var(--transition-bounce) both;
}

.stat-card,
.stats-item {
  text-align: center;
  position: relative;
}
.stat-card::after,
.stats-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width 0.4s ease;
  border-radius: 2px;
}
.stat-card:hover::after,
.stats-item:hover::after {
  width: 60%;
}

/* ── 8. SECTION HEADERS — Animated reveal ───────────────────── */
.section-title,
.section-heading,
h2.title,
.section-head h2 {
  position: relative;
  display: inline-block;
}

/* Subtle gradient underline accent on section titles */
.section-title::after,
.section-heading::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 48px; height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.4s var(--transition-smooth);
}
.section-title:hover::after,
.section-heading:hover::after {
  width: 100%;
}

/* ── 9. FORM INPUT MICRO-INTERACTIONS ────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  transition: border-color 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #FF7E2D !important;
  box-shadow: 0 0 0 3px rgba(255,126,45,0.12), 0 2px 8px rgba(255,126,45,0.1) !important;
  outline: none !important;
}

/* ── 10. IMAGE / MEDIA HOVER EFFECTS ─────────────────────────── */
.card img,
.course-card img,
.blog-card img,
.feature-card img {
  transition: transform 0.4s var(--transition-smooth),
              filter 0.4s ease !important;
  border-radius: 12px;
}
.card:hover img,
.course-card:hover img,
.blog-card:hover img {
  transform: scale(1.04) !important;
  filter: brightness(1.04) contrast(1.02) !important;
}

/* ── 11. FLOATING LABELS / BADGE ANIMATIONS ──────────────────── */
.badge,
.tag,
.pill-label,
.label-badge {
  transition: transform 0.2s var(--transition-bounce),
              box-shadow 0.2s ease !important;
}
.badge:hover,
.tag:hover {
  transform: scale(1.08) translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(255,126,45,0.25) !important;
}

/* ── 12. TESTIMONIAL CARDS — Glassmorphism polish ─────────────── */
.testimonial-card,
.review-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--glass-border) !important;
}

/* Avatar ring glow on hover */
.testimonial-avatar,
.review-avatar,
.author-avatar {
  transition: box-shadow 0.3s ease, transform 0.3s var(--transition-bounce) !important;
  border-radius: 50%;
}
.testimonial-card:hover .testimonial-avatar,
.review-card:hover .review-avatar {
  box-shadow: 0 0 0 3px #FF7E2D, 0 4px 16px rgba(255,126,45,0.3) !important;
  transform: scale(1.06) !important;
}

/* ── 13. FOOTER PREMIUM STYLING ──────────────────────────────── */
.footer,
footer {
  position: relative;
  overflow: hidden;
}
.footer::before,
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,126,45,0.4), transparent);
  pointer-events: none;
}

/* Footer links hover */
.footer a,
footer a:not([class*="btn"]) {
  transition: color 0.2s ease, transform 0.2s ease !important;
  display: inline-block;
}
.footer a:hover,
footer a:not([class*="btn"]):hover {
  color: #FF7E2D !important;
  transform: translateX(3px) !important;
}

/* ── 14. SKELETON LOADING SHIMMER ─────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--border) 0%,
    rgba(255,126,45,0.06) 50%,
    var(--border) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: 8px;
}

/* ── 15. PRICING CARDS — Premium highlight ────────────────────── */
.plan-card.featured,
.pricing-card.popular,
.plan-card.highlighted {
  border: 2px solid rgba(255,126,45,0.5) !important;
  box-shadow: 0 24px 60px rgba(255,126,45,0.18), 0 0 0 1px rgba(255,126,45,0.1) !important;
  transform: scale(1.025);
}
.plan-card.featured:hover,
.pricing-card.popular:hover {
  transform: scale(1.025) translateY(-6px) !important;
}

/* ── 16. ANIMATED GRADIENT HERO HEADING ─────────────────────── */
.gradient-text,
.text-gradient,
.hero-gradient-text {
  background: linear-gradient(135deg, #FF7E2D 0%, #ffb060 40%, #FF7E2D 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* ── 17. SCROLL PROGRESS BAR ─────────────────────────────────── */
#scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #FF7E2D, #ffb060);
  z-index: 9999;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(255,126,45,0.5);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── 18. FLOATING ACTION BUTTON PULSE ─────────────────────────── */
.fab,
.float-btn,
.back-to-top {
  animation: floatY 3s ease-in-out infinite !important;
  box-shadow: 0 8px 24px rgba(255,126,45,0.35) !important;
  transition: transform 0.3s var(--transition-bounce),
              box-shadow 0.3s ease !important;
}
.fab:hover,
.float-btn:hover,
.back-to-top:hover {
  animation: none !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 16px 40px rgba(255,126,45,0.45) !important;
}

/* ── 19. ICON MICRO-INTERACTIONS ─────────────────────────────── */
.feature-icon,
.icon-wrap,
.icon-box {
  transition: transform 0.3s var(--transition-bounce),
              background 0.3s ease,
              box-shadow 0.3s ease !important;
}
.feature-card:hover .feature-icon,
.feature-card:hover .icon-wrap,
.feature-card:hover .icon-box {
  transform: scale(1.15) rotate(-5deg) !important;
  background: rgba(255,126,45,0.15) !important;
  box-shadow: 0 8px 20px rgba(255,126,45,0.2) !important;
}

/* ── 20. BREADCRUMB ANIMATED SEPARATOR ───────────────────────── */
.breadcrumb-item + .breadcrumb-item::before,
.breadcrumb > li + li::before {
  content: '›';
  color: #FF7E2D;
  font-weight: 700;
  margin: 0 6px;
  transition: transform 0.2s ease;
}

/* ── 21. MODAL & DRAWER — Entrance animations ───────────────── */
.modal,
.drawer,
.side-panel {
  animation: fadeInScale 0.3s var(--transition-bounce) both;
}
.modal-overlay,
.drawer-overlay {
  animation: fadeInUp 0.2s ease both;
}

/* ── 22. ALERT / TOAST — Animated entrance ───────────────────── */
.alert,
.toast,
.notification,
.flash-message {
  animation: slideInRight 0.4s var(--transition-bounce) both;
  border-left: 3px solid #FF7E2D;
  border-radius: 10px !important;
}

/* ── 23. TABLE ROW HOVER ─────────────────────────────────────── */
table tbody tr {
  transition: background 0.2s ease, transform 0.2s ease !important;
}
table tbody tr:hover {
  background: rgba(255,126,45,0.04) !important;
}

/* ── 24. DARK MODE GLASS ENHANCEMENT ────────────────────────── */
[data-theme="dark"] .card,
[data-theme="dark"] .course-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .plan-card {
  background: rgba(34, 21, 0, 0.82) !important;
  border-color: rgba(255,126,45,0.18) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,126,45,0.1) !important;
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .course-card:hover,
[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,126,45,0.3) !important;
}

/* ── 25. ACCESSIBILITY — Respect reduced motion ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1ms !important;
  }
}

/* ── 26. SECTION TRANSITIONS — Page load stagger ─────────────── */
section {
  animation: fadeInUp 0.7s var(--transition-smooth) both;
}
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.18s; }
section:nth-child(4) { animation-delay: 0.26s; }

/* ── 27. INTERACTIVE LIST ITEMS ──────────────────────────────── */
.list-item,
ul.styled-list li,
.menu-item {
  transition: transform 0.2s ease, color 0.2s ease !important;
  cursor: default;
}
.list-item:hover,
ul.styled-list li:hover,
.menu-item:hover {
  transform: translateX(4px) !important;
  color: #FF7E2D !important;
}

