/* ==========================================================================
   CS RAIDERS - LUXURY ENGINEERING PLATFORM DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@700;900&display=swap');

:root, [data-theme="dark"] {
  --bg-main: #060911;
  --bg-card: #0d1322;
  --bg-card-hover: #131b2e;
  --bg-glass: rgba(13, 19, 34, 0.75);
  --bg-glass-heavy: rgba(8, 12, 22, 0.92);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.3);
  --border-cyan-glow: rgba(6, 182, 212, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-gold: #f59e0b;
  --accent-danger: #ef4444;

  --grad-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --grad-dark: linear-gradient(180deg, rgba(13, 19, 34, 0.9) 0%, rgba(6, 9, 17, 0.95) 100%);
  --grad-hero: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 80%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.15);
  --shadow-cyan-glow: 0 0 25px rgba(6, 182, 212, 0.15);

  --font-main: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-main: #eef4fb;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fbff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-heavy: rgba(255, 255, 255, 0.98);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(5, 150, 105, 0.3);
  --border-cyan-glow: rgba(2, 132, 199, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --accent-emerald: #0f766e;
  --accent-emerald-glow: rgba(15, 118, 110, 0.12);
  --accent-cyan: #0284c7;
  --accent-purple: #2563eb;
  --accent-gold: #b45309;
  --accent-danger: #dc2626;

  --grad-primary: linear-gradient(135deg, #0f766e 0%, #0284c7 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-purple: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --grad-dark: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 1) 100%);
  --grad-hero: radial-gradient(circle at 50% 10%, rgba(15, 118, 110, 0.08) 0%, rgba(2, 132, 199, 0.04) 40%, transparent 80%);

  --shadow-card: 0 12px 32px -16px rgba(15, 23, 42, 0.22);
  --shadow-glow: 0 0 20px rgba(15, 118, 110, 0.08);
  --shadow-cyan-glow: 0 0 20px rgba(2, 132, 199, 0.08);
}

html[dir="ltr"] body {
  font-family: var(--font-en), var(--font-main);
  text-align: left;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(at 0% 0%, rgba(15, 118, 110, 0.08) 0px, transparent 42%),
    radial-gradient(at 100% 0%, rgba(2, 132, 199, 0.08) 0px, transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

.container-fluid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1;
  padding-bottom: 4rem;
}

/* ==========================================================================
   ANNOUNCEMENT BANNER
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6ee7b7;
  display: block;
  line-height: 1.45;
  transition: opacity 0.25s ease, max-height 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  max-height: 120px;
}

.announcement-bar.announcement-bar-closing {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
}

.announcement-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.25rem;
}

.announcement-bar-content {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.announcement-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

.announcement-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%) scale(1.1);
}

.announcement-bar i {
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 0.4rem;
  font-size: 1.05rem;
}
.announcement-bar span {
  display: inline;
  vertical-align: middle;
}

[data-theme="light"] .announcement-bar {
  position: relative;
  isolation: isolate;
  background: linear-gradient(100deg, #ecfdf5 0%, #f0f9ff 52%, #eff6ff 100%);
  border-bottom-color: rgba(2, 132, 199, 0.16);
  box-shadow: 0 7px 18px -18px rgba(15, 23, 42, 0.45);
  color: #0f4c5c;
  font-weight: 700;
}

[data-theme="light"] .announcement-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.75;
  background-image: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.16) 0, transparent 22%), radial-gradient(circle at 85% 50%, rgba(2, 132, 199, 0.14) 0, transparent 24%);
}

[data-theme="light"] .announcement-bar i {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  color: #ffffff;
  box-shadow: 0 5px 12px -6px rgba(2, 132, 199, 0.7);
}

[data-theme="light"] .announcement-close-btn {
  color: #0f4c5c;
}

[data-theme="light"] .announcement-close-btn:hover {
  color: #032b30;
  background: rgba(15, 76, 92, 0.12);
}

/* ==========================================================================
   NAVIGATION BAR & ULTRA-LUXURY HEADER
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: var(--bg-glass-heavy);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  border: 1px solid rgba(0, 229, 255, 0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, filter 0.35s ease;
  animation: logoFloat 5.5s ease-in-out infinite;
}

.brand-logo:hover .brand-img {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.75);
  filter: saturate(1.1);
}

.brand-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #060911;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.brand-text-full {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text-main {
  font-family: var(--font-en), var(--font-main);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1.1;
  white-space: nowrap;
}

[data-theme="light"] .brand-text-main {
  color: #0f172a;
}

.brand-text-main span {
  color: #00e5ff;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

.brand-text-sub {
  font-size: 0.6rem;
  color: #94a3b8;
  letter-spacing: 0.18em;
  font-weight: 800;
  white-space: nowrap;
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 1;
  min-width: 0;
}

[data-theme="light"] .nav-links {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.4rem 0.65rem;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link .nav-icon {
  font-size: 0.85rem;
  color: #64748b;
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  transform: translateY(-1px);
}

[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link.active {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
}

.nav-link:hover .nav-icon {
  color: #00e5ff;
  transform: scale(1.15);
}

.nav-icon-only-btn {
  padding: 0.4rem 0.65rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.nav-icon-only-btn .nav-icon {
  font-size: 0.95rem;
  margin: 0;
}

/* Nav Actions & Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Segmented Theme & Lang Pill */
.nav-controls-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 3px 6px;
  gap: 4px;
}

[data-theme="light"] .nav-controls-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.nav-pill-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.nav-lang-btn {
  width: auto;
  padding: 0 8px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
}

.guest-auth-cta {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14) 0%, rgba(16, 185, 129, 0.14) 100%);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: #e0f7ff;
  font-weight: 800;
  font-size: 0.75rem;
  white-space: nowrap;
  text-decoration: none;
}

.guest-auth-cta i {
  color: #00e5ff;
  font-size: 0.85rem;
}

.nav-guest-install-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #00e5ff;
  font-weight: 800;
  font-size: 0.78rem;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.12);
  flex-shrink: 0;
}

.nav-guest-install-pill:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}

.nav-guest-install-pill i {
  color: #00e5ff;
  font-size: 0.85rem;
}

[data-theme="light"] .nav-guest-install-pill {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .nav-guest-install-pill:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: #0284c7;
  color: #0369a1;
}

@media (max-width: 768px) {
  .nav-guest-install-pill {
    padding: 0.35rem 0.55rem;
    font-size: 0.74rem;
  }
  .nav-guest-install-pill .nav-guest-install-label {
    display: none;
  }
}

.nav-pill-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .nav-pill-divider {
  background: rgba(0, 0, 0, 0.12);
}

/* Action Icon Buttons (Cart, Bell) */
.nav-action-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.nav-action-icon-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

.guest-cart-install-icon {
  color: #00e5ff;
}

.guest-cart-install-icon:hover {
  background: rgba(0, 229, 255, 0.16);
  border-color: rgba(0, 229, 255, 0.5);
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
}

/* Pulse Badge */
.badge-pulse {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 900;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseBadge 2s infinite;
}

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

/* User Profile Nav Pill */
.user-nav-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 9999px;
  padding: 3px 6px 3px 3px;
  gap: 0.5rem;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.08);
}

.drawer-user-actions {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.drawer-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #00e5ff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  transition: all 0.2s ease;
}

.drawer-profile-link:hover {
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.user-pill-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 100%);
  color: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.user-pill-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: right;
}

html[dir="ltr"] .user-pill-info {
  text-align: left;
}

.user-pill-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

[data-theme="light"] .user-pill-name {
  color: #0f172a;
}

.user-pill-role {
  font-size: 0.6rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.05em;
}

.user-logout-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
  /* Reset for <button> tag */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.user-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Visitor Auth Buttons */
.nav-auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-register-btn {
  background: linear-gradient(135deg, #10b981 0%, #00e5ff 100%);
  color: #060911;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.35);
  border: none;
}

.nav-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

/* Mobile menu trigger — hidden on desktop */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.3);
  color: #00e5ff;
}

/* ── Tablet (≤ 1150px): collapse text labels in nav links ── */
@media (max-width: 1150px) {
  .navbar-container { gap: 0.75rem; }
  .nav-link span { display: none; }
  .nav-link { padding: 0.45rem 0.6rem; gap: 0; }
  .brand-text-full { display: flex; }
  .brand-text-main { font-size: 1rem; letter-spacing: 0.04em; }
  .brand-text-sub { display: block; font-size: 0.46rem; letter-spacing: 0.1em; }
  .nav-controls-pill { display: none; }
}

/* ── Small tablet (≤ 1024px): hide full nav, show burger ── */
@media (max-width: 1024px) {
  .nav-links { display: none !important; }
  .mobile-menu-btn { display: inline-flex; }

  /* Hide login & register buttons — they're inside the drawer */
  .nav-auth-buttons { display: none; }

  /* Reduce gap between controls */
  .nav-actions { gap: 0.45rem; }

  /* Keep pill compact on this width; controls stay visible in the bar */
  .nav-pill-btn { width: 30px; height: 30px; font-size: 0.8rem; }
  .nav-lang-btn { padding: 0 6px; font-size: 0.7rem; }

  /* Icon action buttons */
  .nav-action-icon-btn { width: 34px; height: 34px; font-size: 0.9rem; }

  /* User pill — hide name/role text */
  .user-pill-info { display: none; }
  .user-nav-pill { padding: 3px; gap: 0.3rem; }
  .user-logout-btn { width: 26px; height: 26px; }

  /* Brand shrink */
  .brand-img { width: 38px; height: 38px; }

  /* Compact brand remains visible after the main navigation moves to the drawer. */
  .brand-logo,
  .guest-view .brand-logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-text-full,
  .guest-view .brand-text-full {
    display: flex;
    min-width: 0;
  }

  .brand-text-main { font-size: 0.95rem; letter-spacing: 0.03em; }
  .brand-text-sub { display: block; font-size: 0.42rem; letter-spacing: 0.09em; }

  .guest-view .nav-controls-pill {
    display: flex;
  }

  .guest-view .nav-actions > a.nav-action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Guest View on Mobile/Phones: Hide cart icon only, keep install app icon */
  .guest-view .nav-cart-btn {
    display: none !important;
  }

  .guest-view .guest-auth-cta {
    display: inline-flex;
  }

  .guest-view .nav-actions {
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  .guest-view .brand-text-main {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
  }

  .guest-view .brand-text-sub {
    font-size: 0.42rem;
    letter-spacing: 0.1em;
  }
}

/* ── Mobile (≤ 768px): tighter navbar ── */
@media (max-width: 768px) {
  .navbar { padding: 0.55rem 0; }
  .navbar-container { gap: 0.4rem; }
  /* Keep the brand recognizable on phones without competing with account controls. */
  .brand-logo { flex: 1 1 auto; min-width: 0; gap: 0.5rem; }
  .brand-img { width: 34px; height: 34px; border-radius: 9px; }
  .brand-text-full { display: flex; min-width: 0; }
  .brand-text-main { font-size: 0.9rem; letter-spacing: 0.03em; }
  .brand-text-sub { display: block; font-size: 0.4rem; letter-spacing: 0.08em; }
  .brand-online-dot { width: 8px; height: 8px; }

  /* Announcement bar wraps gracefully */
  .announcement-bar { font-size: 0.8rem; padding: 0.4rem 0.75rem; }

  .drawer-user-card {
    align-items: flex-start;
  }

  .drawer-user-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .guest-view .brand-img {
    width: 32px;
    height: 32px;
  }

  .guest-view .brand-text-main {
    font-size: 0.88rem;
  }

  .guest-view .brand-text-sub {
    font-size: 0.38rem;
    letter-spacing: 0.08em;
  }

  .guest-view .nav-controls-pill {
    padding: 2px 4px;
    gap: 2px;
  }

  .guest-view .nav-pill-btn {
    width: 28px;
    height: 28px;
    font-size: 0.76rem;
  }

  .guest-view .guest-auth-cta {
    padding: 0.38rem 0.68rem;
    font-size: 0.68rem;
    gap: 0.35rem;
  }
}

/* ── Small mobile (≤ 480px): minimal navbar ── */
@media (max-width: 480px) {
  .navbar-container { gap: 0.3rem; }
  .brand-img { width: 36px; height: 36px; }
  .brand-text-main { font-size: 0.8rem; letter-spacing: 0.02em; }
  .brand-text-sub { display: block; font-size: 0.34rem; letter-spacing: 0.06em; }
  .mobile-menu-btn { width: 36px; height: 36px; font-size: 1rem; border-radius: 9px; }
  .nav-controls-pill { padding: 2px 4px; gap: 2px; }
  .nav-pill-btn { width: 28px; height: 28px; font-size: 0.78rem; }
  .nav-action-icon-btn { width: 32px; height: 32px; font-size: 0.85rem; border-radius: 9px; }
  .announcement-bar { font-size: 0.75rem; padding: 0.35rem 0.6rem; gap: 0.3rem; }

  .drawer-user-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .drawer-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .drawer-user-details {
    width: 100%;
  }

  .drawer-profile-link {
    width: 100%;
    justify-content: center;
  }

  .guest-view .navbar-container {
    gap: 0.25rem;
  }

  .guest-view .brand-logo {
    gap: 0.5rem;
  }

  .guest-view .brand-text-main {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
  }

  .guest-view .brand-text-sub {
    font-size: 0.34rem;
    letter-spacing: 0.07em;
  }

  .guest-view .nav-controls-pill {
    padding: 1px 3px;
  }

  .guest-view .nav-pill-btn {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  .guest-view .guest-auth-cta {
    padding: 0.34rem 0.58rem;
    font-size: 0.62rem;
  }
}

/* ── Ultra-small phones (≤ 420px): tighter spacing and drawer fit ── */
@media (max-width: 420px) {
  .navbar {
    padding: 0.45rem 0;
  }

  .navbar-container {
    gap: 0.25rem;
  }

  .brand-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .brand-logo { gap: 0.4rem; }
  .brand-text-main { font-size: 0.72rem; letter-spacing: 0.01em; }

  .mobile-menu-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .nav-actions {
    gap: 0.15rem;
  }

  .nav-action-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.8rem;
  }

  .mobile-bottom-bar {
    padding: 0.35rem 0.45rem max(0.35rem, env(safe-area-inset-bottom));
  }

  .mobile-bottom-item {
    font-size: 0.65rem;
    gap: 0.18rem;
    padding: 0.2rem 0.25rem;
  }

  .mobile-bottom-item i {
    font-size: 1rem;
  }

  .mobile-drawer-content {
    width: 92%;
    max-width: 300px;
    padding: 1rem;
    gap: 1rem;
  }

  .mobile-drawer-header {
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
  }

  .drawer-brand {
    gap: 0.55rem;
  }

  .drawer-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .drawer-brand-title {
    font-size: 0.95rem;
  }

  .drawer-brand-sub {
    font-size: 0.42rem;
    letter-spacing: 0.11em;
  }

  .drawer-close-btn {
    width: 32px;
    height: 32px;
  }

  .drawer-user-card {
    padding: 0.8rem;
    margin-bottom: 1rem;
    gap: 0.65rem;
  }

  .drawer-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.92rem;
  }

  .drawer-user-name {
    font-size: 0.92rem;
  }

  .drawer-user-id {
    font-size: 0.68rem;
  }

  .drawer-nav-section-title {
    font-size: 0.62rem;
    margin-bottom: 0.6rem;
  }

  .mobile-drawer-links {
    gap: 0.4rem;
    margin-bottom: 1.1rem !important;
  }

  .mobile-drawer-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.92rem;
    gap: 0.55rem;
  }

  .drawer-bottom-actions {
    gap: 0.6rem;
    padding-top: 1rem;
  }
}

/* ── Very small phones (≤ 320px): prevent overflow and keep one-column feel ── */
@media (max-width: 320px) {
  .navbar-container {
    gap: 0.15rem;
  }

  .brand-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  /* At the narrowest widths, the emblem has priority over a cramped wordmark. */
  .brand-text-full {
    display: none;
  }

  .mobile-menu-btn {
    width: 32px;
    height: 32px;
  }

  .nav-action-icon-btn {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .mobile-bottom-item {
    font-size: 0.6rem;
    padding: 0.16rem 0.2rem;
  }

  .mobile-bottom-item i {
    font-size: 0.95rem;
  }

  .mobile-drawer-content {
    width: 94%;
    max-width: 286px;
    padding: 0.85rem;
    gap: 0.85rem;
  }

  .drawer-user-card {
    padding: 0.72rem;
  }

  .mobile-drawer-link {
    padding: 0.55rem 0.72rem;
    font-size: 0.88rem;
  }
}

/* ── Tiny screens (≤ 360px) ── */
@media (max-width: 360px) {
  .nav-actions { gap: 0.2rem; }
  .nav-controls-pill { display: none; }   /* hide theme/lang pill — accessible from drawer */
  .nav-action-icon-btn { width: 30px; height: 30px; border-radius: 8px; }
  .mobile-menu-btn { width: 32px; height: 32px; }

  .guest-view .nav-controls-pill { display: flex; }
  .guest-view .nav-action-icon-btn { display: inline-flex; }
  .guest-view .guest-auth-cta span { display: none; }
  .guest-view .brand-text-full { display: flex; }
}

/* Mobile Drawer Luxury Styling */
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  animation: logoFloat 5.5s ease-in-out infinite;
}

.drawer-brand-title {
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.drawer-brand-title span {
  color: #00e5ff;
}

.drawer-brand-sub {
  font-size: 0.55rem;
  color: #94a3b8;
  letter-spacing: 0.15em;
  font-weight: 800;
  white-space: nowrap;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(13, 19, 34, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

.drawer-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 100%);
  color: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.drawer-user-details {
  flex: 1;
}

.drawer-user-name {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.drawer-user-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}

.drawer-nav-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.drawer-bottom-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #060911;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.btn-outline-primary:hover {
  background: var(--accent-emerald-glow);
}

.btn-gold {
  background: var(--grad-gold);
  color: #060911;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

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

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

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

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.card-glow-emerald:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* Homepage motion language */
.hero-home .hero-tag,
.hero-home .hero-title,
.hero-home .hero-desc,
.hero-home .hero-cta,
.hero-home .hero-stats {
  will-change: transform, opacity;
}

.hero-home .hero-tag {
  animation: heroTagFloat 3.8s ease-in-out infinite, heroFadeUp 0.7s ease both;
}

.hero-home .hero-cta .btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-home .hero-cta .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.hero-home .hero-cta .btn:hover::before {
  transform: translateX(130%);
}

.hero-home .hero-cta .btn:hover {
  transform: translateY(-3px) scale(1.01);
}

.hero-home .hero-cta .btn.btn-primary:hover {
  box-shadow: 0 18px 30px -18px rgba(16, 185, 129, 0.7);
}

.hero-home .hero-cta .btn.btn-secondary:hover {
  box-shadow: 0 18px 30px -18px rgba(6, 182, 212, 0.55);
}

.hero-home .hero-stats .stat-item {
  transition: transform 0.25s ease, background 0.25s ease;
  border-radius: var(--radius-md);
}

.hero-home .hero-stats .stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
}

.card-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}


/* ==========================================================================
   COURSE CARDS GRID
   ========================================================================== */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 22px 45px -16px rgba(16, 185, 129, 0.32);
}

.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, transparent 38%, rgba(16, 185, 129, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.course-card::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -60%;
  width: 40%;
  height: 160%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  opacity: 0;
  transition: all 0.7s ease;
  pointer-events: none;
}

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

.course-card:hover::after {
  left: 120%;
  opacity: 1;
}

.course-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
  overflow: hidden;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumb img {
  transform: scale(1.08);
}

.course-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 17, 0.2) 100%);
  opacity: 0.65;
  pointer-events: none;
}

.course-badges-wrapper {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  z-index: 3;
  pointer-events: none;
  max-width: calc(100% - 24px);
}

.course-card:hover .course-badges-wrapper {
  transform: translateY(-2px);
  transition: transform 0.25s ease;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.course-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.course-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.course-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.home-package-card,
.home-feature-card,
.home-cta-card,
.home-empty-state {
  animation: homeCardEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.courses-grid .course-card:nth-child(1),
.home-feature-card:nth-child(1),
.home-package-card:nth-child(1) { animation-delay: 0.04s; }
.courses-grid .course-card:nth-child(2),
.home-feature-card:nth-child(2),
.home-package-card:nth-child(2) { animation-delay: 0.10s; }
.courses-grid .course-card:nth-child(3),
.home-feature-card:nth-child(3),
.home-package-card:nth-child(3) { animation-delay: 0.16s; }
.courses-grid .course-card:nth-child(4),
.home-feature-card:nth-child(4),
.home-package-card:nth-child(4) { animation-delay: 0.22s; }
.courses-grid .course-card:nth-child(5),
.home-feature-card:nth-child(5),
.home-package-card:nth-child(5) { animation-delay: 0.28s; }
.courses-grid .course-card:nth-child(6),
.home-feature-card:nth-child(6),
.home-package-card:nth-child(6) { animation-delay: 0.34s; }
.courses-grid .course-card:nth-child(7),
.home-feature-card:nth-child(7),
.home-package-card:nth-child(7) { animation-delay: 0.40s; }
.courses-grid .course-card:nth-child(8),
.home-feature-card:nth-child(8),
.home-package-card:nth-child(8) { animation-delay: 0.46s; }
.courses-grid .course-card:nth-child(9),
.home-feature-card:nth-child(9),
.home-package-card:nth-child(9) { animation-delay: 0.52s; }

.home-package-card:hover,
.home-feature-card:hover,
.home-cta-card:hover,
.home-empty-state:hover {
  transform: translateY(-8px);
}

.home-feature-card::before,
.home-package-card::before,
.home-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, transparent 35%, rgba(16, 185, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-feature-card::after,
.home-package-card::after,
.home-cta-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -35% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  transform: scale(0.7);
}

.home-feature-card:hover::before,
.home-package-card:hover::before,
.home-cta-card:hover::before {
  opacity: 1;
}

.home-feature-card:hover::after,
.home-package-card:hover::after,
.home-cta-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-feature-card .brand-icon,
.home-package-card .brand-icon,
.home-cta-card .intro-emblem-wrap {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-feature-card:hover .brand-icon,
.home-package-card:hover .brand-icon,
.home-cta-card:hover .intro-emblem-wrap {
  transform: translateY(-3px) scale(1.04);
}

/* ═══ LUXURY NOTIFICATION ICONS ═══ */
.notif-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notif-item-row:hover .notif-icon-box {
  transform: scale(1.08) rotate(-3deg);
}

.notif-icon-payment,
.notif-icon-wallet {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.notif-icon-certificate,
.notif-icon-vip,
.notif-icon-package,
.notif-icon-quiz {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
}

.notif-icon-course,
.notif-icon-book {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

.notif-icon-warning,
.notif-icon-security,
.notif-icon-expiry {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.1) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}

.notif-icon-ticket,
.notif-icon-support,
.notif-icon-assignment {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.1) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}

.notif-icon-community,
.notif-icon-info,
.notif-icon-default {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

/* ═══ MODERN SWITCH TOGGLE ═══ */
.custom-switch-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}
.custom-switch-wrapper:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 229, 255, 0.4);
}
.custom-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.custom-switch-track {
  display: inline-block;
  width: 42px;
  height: 23px;
  background: #334155;
  border-radius: 20px;
  position: relative;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.custom-switch-track::after {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}
[dir="rtl"] .custom-switch-track::after {
  left: auto;
  right: 3px;
}
.custom-switch-input:checked + .custom-switch-track {
  background: linear-gradient(135deg, #00e5ff 0%, #10b981 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}
.custom-switch-input:checked + .custom-switch-track::after {
  transform: translateX(19px);
}
[dir="rtl"] .custom-switch-input:checked + .custom-switch-track::after {
  transform: translateX(-19px);
}

@keyframes heroTagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes homeCardEnter {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-tag,
  .hero-home .hero-title,
  .hero-home .hero-desc,
  .hero-home .hero-cta,
  .hero-home .hero-stats,
  .home-package-card,
  .home-feature-card,
  .home-cta-card,
  .home-empty-state,
  .course-card,
  .course-card img {
    animation: none !important;
    transition: none !important;
  }
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.course-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 900;
  color: #34d399;
  font-family: var(--font-en);
}

.price-old {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
  opacity: 0.85;
}

.price-strikethrough {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
  opacity: 0.85;
}

.badge-discount {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: discountPulse 2.4s infinite ease-in-out;
}

@keyframes discountPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.7);
  }
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

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

/* ==========================================================================
   FLASH MESSAGES / TOASTS
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 90%;
  max-width: 500px;
}

.toast {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.toast-success {
  background: rgba(16, 185, 129, 0.9);
  color: #060911;
  border: 1px solid #34d399;
}

.toast-danger {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: 1px solid #f87171;
}

.toast-warning {
  background: rgba(245, 158, 11, 0.9);
  color: #060911;
  border: 1px solid #fbbf24;
}

.toast-info {
  background: rgba(6, 182, 212, 0.9);
  color: #060911;
  border: 1px solid #38bdf8;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #04060c;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
/* ==========================================================================
   RESPONSIVE DESIGN & LUXURY MOBILE SYSTEM
   ========================================================================== */

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-menu-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
}

/* Mobile Slide-in Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-drawer.active {
  display: block;
  opacity: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
html[dir="ltr"] .mobile-drawer-content {
  right: 0;
  border-left: 1px solid var(--border-subtle);
  border-right: none;
  transform: translateX(100%);
}
html[dir="rtl"] .mobile-drawer-content {
  right: 0;
  left: auto;
  border-left: 1px solid var(--border-subtle);
  transform: translateX(100%);
}
.mobile-nav-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: rgba(0, 229, 255, 0.1);
  color: #00e5ff;
}

/* Mobile App-like Bottom Sticky Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem max(0.5rem, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}
.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  position: relative;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}
.mobile-bottom-item i {
  font-size: 1.15rem;
}
.mobile-bottom-item:hover, .mobile-bottom-item.active {
  color: #00e5ff;
}

/* Layout Grids */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 992px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}



/* ==========================================================================
   ANTI-SCREENSHOT & CONTENT GUARD STYLES (EXCLUSIVELY FOR LESSONS & BOOKS)
   ========================================================================== */
.protected-content-page .book-content,
.protected-content-page .player-screen-container,
.protected-content-page iframe,
.protected-content-page video {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media print {
  .protected-content-page * {
    visibility: hidden !important;
    display: none !important;
  }
  .protected-content-page::before {
    content: "Screen Capture and Printing Protected by CS Raiders Security System.";
    visibility: visible !important;
    display: block !important;
    font-size: 24pt;
    text-align: center;
    color: #000;
    margin-top: 100px;
  }
}

/* ==========================================================================
   CINEMATIC INTRO SPLASH — REDESIGNED
   ========================================================================== */
#cs-cinematic-intro {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-width: 100% !important;
  min-height: 100% !important;
  z-index: 2147483647 !important;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #020707 !important;
  background: radial-gradient(ellipse at 50% 40%, #0d1a1a 0%, #060d0d 50%, #020707 100%) !important;
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: auto !important;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.intro-pending #cs-cinematic-intro {
  display: flex !important;
  opacity: 1 !important;
}

html.intro-pending,
html.intro-pending body,
body.intro-active {
  overflow: hidden !important;
  height: 100% !important;
  height: 100dvh !important;
  touch-action: none !important;
}

#cs-cinematic-intro.intro-exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Animated grid overlay */
.intro-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridFade 4s ease-in-out infinite alternate;
}

@keyframes gridFade {
  from { opacity: 0.3; }
  to   { opacity: 0.9; }
}

/* Floating particles */
.intro-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

.intro-particle:nth-child(1) {
  width: 3px; height: 3px;
  background: #00e5ff;
  left: 15%; top: 20%;
  animation-duration: 7s; animation-delay: 0s;
  box-shadow: 0 0 7px #00e5ff;
}
.intro-particle:nth-child(2) {
  width: 2px; height: 2px;
  background: #00f2fe;
  left: 75%; top: 35%;
  animation-duration: 9s; animation-delay: 1s;
  box-shadow: 0 0 5px #00f2fe;
}
.intro-particle:nth-child(3) {
  width: 4px; height: 4px;
  background: rgba(0, 229, 255, 0.6);
  left: 55%; top: 75%;
  animation-duration: 11s; animation-delay: 2s;
  box-shadow: 0 0 9px rgba(0, 229, 255, 0.6);
}
.intro-particle:nth-child(4) {
  width: 2px; height: 2px;
  background: #00c0f0;
  left: 30%; top: 65%;
  animation-duration: 8s; animation-delay: 0.5s;
  box-shadow: 0 0 5px #00c0f0;
}
.intro-particle:nth-child(5) {
  width: 3px; height: 3px;
  background: #00e5ff;
  left: 85%; top: 15%;
  animation-duration: 12s; animation-delay: 3s;
  box-shadow: 0 0 7px #00e5ff;
}
.intro-particle:nth-child(6) {
  width: 2px; height: 2px;
  background: #0077b6;
  left: 45%; top: 10%;
  animation-duration: 10s; animation-delay: 1.5s;
  box-shadow: 0 0 5px #0077b6;
}

@keyframes floatParticle {
  0%   { transform: translateY(0px) translateX(0px) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateY(-40px) translateX(15px) scale(1.3); opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-80px) translateX(-10px) scale(0.8); opacity: 0; }
}

/* Main content container */
.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  animation: introReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes introReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Logo container */
.intro-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* Rotating glow ring */
.intro-glow-ring {
  position: absolute;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#06090e, #06090e) padding-box,
              conic-gradient(from 0deg, #00e5ff, #00c0f0, #0077b6, #00f2fe, #00e5ff) border-box;
  animation: spinRing 6s linear infinite;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.55));
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Logo emblem */
.intro-emblem-wrap {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1017 0%, #06090e 100%);
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.35),
    0 0 80px rgba(0, 192, 240, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(0, 229, 255, 0.35), 0 0 80px rgba(0, 192, 240, 0.15), inset 0 1px 0 rgba(255,255,255,0.08); }
  50%       { box-shadow: 0 0 65px rgba(0, 229, 255, 0.6),  0 0 130px rgba(0, 192, 240, 0.3),  inset 0 1px 0 rgba(255,255,255,0.12); }
}

.intro-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  animation: logoFloat 5.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

/* Brand title */
.intro-title {
  font-family: 'Orbitron', 'Inter', -apple-system, sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
  line-height: 1;
  text-align: center;
}

.intro-title span {
  background: linear-gradient(135deg, #00f2fe 0%, #00e5ff 50%, #00c0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.75));
}

/* Tagline */
.intro-tagline {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #a0aec0;
  text-transform: uppercase;
  text-align: center;
}

/* Progress bar */
.intro-progress-wrap {
  width: 260px;
  height: 5px;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.06);
}

.intro-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0077b6, #00c0f0, #00e5ff, #00f2fe);
  border-radius: 9999px;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.9), 0 0 36px rgba(0, 192, 240, 0.45);
  transition: none;
}

/* Developer credit — crisp, readable & perfectly oriented */
.intro-dev-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  direction: ltr !important;
  unicode-bidi: isolate;
  user-select: none;
}

.intro-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.intro-by-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.intro-dev-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  background: linear-gradient(135deg, #00e5ff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.6));
}

.intro-dev-smile {
  font-size: 1.05rem;
  color: #fbbf24;
  line-height: 1;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

/* Skip button */
.intro-skip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.4rem;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 9999px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  letter-spacing: 0.06em;
  margin-top: 1.25rem;
  animation: skipFadeIn 1.5s ease 0.5s both;
}

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

.intro-skip-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

@media (max-width: 480px) {
  .intro-skip-btn {
    margin-top: 1rem;
    padding: 0.4rem 1.1rem;
  }
  .intro-emblem-wrap {
    width: 80px;
    height: 80px;
  }
  .intro-logo-img {
    width: 62px;
    height: 62px;
  }
  .intro-glow-ring {
    width: 105px;
    height: 105px;
  }
  .intro-progress-wrap {
    width: 200px;
  }
}

/* ==========================================================================
   HERO SECTION — ENHANCED
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
}

/* Ambient glow blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100%);
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.3) 50%, transparent 100%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: #34d399;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
  animation: heroFadeUp 0.6s ease both;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  animation: heroFadeUp 0.6s ease 0.1s both;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.3));
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  animation: heroFadeUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: heroFadeUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 4rem auto 0;
  padding: 1.5rem 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: heroFadeUp 0.6s ease 0.4s both;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-value {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, #34d399, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-en);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.35rem;
}

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

/* ==========================================================================
   NAVBAR — ENHANCED RESPONSIVE
   ========================================================================== */
/* Reduce nav-links gap on smaller desktops */
@media (max-width: 1200px) {
  .nav-links {
    gap: 0.15rem;
  }
  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
  }
  .nav-link span {
    display: none;
  }
  .nav-link .nav-icon {
    font-size: 0.95rem;
  }
  .brand-text-sub {
    display: none;
  }
}

@media (max-width: 1050px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}

/* ==========================================================================
   FOOTER — RESPONSIVE FIX
   ========================================================================== */
.footer-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN — COMPREHENSIVE MOBILE SYSTEM
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
  .mobile-bottom-bar {
    display: flex;
  }
  .hero {
    padding: 3rem 0 2.5rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
    margin-top: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .card {
    padding: 1.25rem;
  }
  .profile-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .profile-subscription-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.3rem;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  .stat-value {
    font-size: 1.4rem;
  }
  .brand-text-sub {
    display: none;
  }
  .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }
  .nav-auth-buttons .nav-login-btn span,
  .nav-auth-buttons .nav-register-btn span {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    gap: 0.85rem !important;
  }
  .profile-layout .card {
    padding: 1rem;
  }
  .profile-layout .card-title {
    font-size: 1rem;
  }
  .profile-layout .form-control,
  .profile-layout select.form-control,
  .profile-layout textarea.form-control {
    font-size: 0.92rem;
  }
  .profile-layout .btn {
    width: 100%;
  }
  .profile-subscription-item {
    padding: 0.6rem 0.7rem !important;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 14px;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .navbar {
    padding: 0.45rem 0;
  }
  .brand-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
}

/* Utility: hide-on-mobile */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   OFFERS CORNER FLOATING WIDGET
   ========================================================================== */
.offers-corner-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 320px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.1);
  padding: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: widgetSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="light"] .offers-corner-widget {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* RTL support: show on bottom-left */
html[dir="rtl"] .offers-corner-widget {
  right: auto;
  left: 2rem;
  animation: widgetSlideInRtl 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes widgetSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes widgetSlideInRtl {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-fade-out {
  animation: widgetFadeOut 0.4s ease forwards;
}

@keyframes widgetFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

.offers-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.offers-widget-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offers-widget-icon {
  color: #fbbf24;
  font-size: 1.1rem;
}

.offers-widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.offers-widget-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offers-widget-close-btn:hover {
  color: #f87171;
}

.offers-widget-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offers-widget-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.offers-widget-badge {
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.offers-widget-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.offers-widget-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.offers-widget-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
}

[data-theme="light"] .offers-widget-code-box {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.code-value {
  font-family: var(--font-code), monospace;
  font-weight: 800;
  color: #00e5ff;
}

[data-theme="light"] .code-value {
  color: #0284c7;
}

.code-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.code-copy-btn:hover {
  color: #00e5ff;
}

.offers-widget-more-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

.offers-widget-footer {
  display: flex;
  justify-content: stretch;
}

.offers-widget-action-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Mobile responsive for corner widget */
@media (max-width: 480px) {
  .offers-corner-widget {
    bottom: 5.5rem; /* above mobile bottom bar */
    left: 1rem !important;
    right: 1rem !important;
    width: auto;
  }
}

/* ==========================================================================
   NAVBAR DROPDOWN SYSTEM
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.25s ease;
  margin-right: 2px;
}

html[dir="ltr"] .dropdown-arrow {
  margin-right: 0;
  margin-left: 2px;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 230px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.05);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px -20px rgba(15, 23, 42, 0.22);
}

[data-theme="light"] .card:hover {
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 18px 40px -22px rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .course-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .btn-secondary:hover {
  background: linear-gradient(180deg, #f8fbff 0%, #e2e8f0 100%);
  border-color: rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .btn-primary {
  color: #f8fbff;
  box-shadow: 0 10px 20px -10px rgba(2, 132, 199, 0.45);
}

[data-theme="light"] .form-control {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

[data-theme="light"] select.form-control {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] select.form-control option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Light mode overrides for any hardcoded yellow styles on select dropdowns */
[data-theme="light"] select[name="academic_filter"],
[data-theme="light"] select.form-control[style*="color"] {
  color: #0f172a !important;
}

[data-theme="light"] select option[style*="color"] {
  color: #0f172a !important;
  background-color: #ffffff !important;
}

[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
  color: #0f172a;
}

[data-theme="light"] .footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.96) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-menu li {
  margin: 0;
  width: 100%;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-align: right;
  white-space: nowrap;
  width: 100%;
}

html[dir="ltr"] .dropdown-menu a {
  text-align: left;
}

.dropdown-menu a i {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

.dropdown-menu a:hover {
  background: rgba(0, 229, 255, 0.1);
  color: #00e5ff;
  transform: translateX(-4px);
}

html[dir="ltr"] .dropdown-menu a:hover {
  transform: translateX(4px);
}

[data-theme="light"] .dropdown-menu a:hover {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

/* Make dropdown responsive - convert dropdown links to normal block links in drawer and hide nested dropdown on small mobile screens */
@media (max-width: 1050px) {
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    padding-left: 1rem;
    display: none;
  }
  .nav-item-dropdown.active .dropdown-menu {
    display: flex;
  }
}

/* ==========================================================================
   CS RAIDERS PREMIUM FALLBACK PLACEHOLDER CARDS
   ========================================================================== */
.cs-raiders-premium-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #04070a 0%, #081a13 55%, #020305 100%);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 35px rgba(16, 185, 129, 0.15);
  text-align: center;
  user-select: none;
}

/* Futuristic background grid pattern */
.cs-raiders-premium-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  pointer-events: none;
}

/* Glowing central logo */
.cs-raiders-premium-placeholder .placeholder-logo {
  font-size: 3.2rem;
  color: #34d399;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(52, 211, 153, 0.5));
  animation: csGlowPulse 3s infinite ease-in-out;
}

.cs-raiders-premium-placeholder .placeholder-brand {
  font-family: var(--font-en), sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #10b981, #34d399, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
  text-transform: uppercase;
}

.cs-raiders-premium-placeholder .placeholder-tagline {
  font-size: 0.72rem;
  color: #a7f3d0;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes csGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.75)); transform: scale(1.04); }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES FOR HARDCODED LIGHT TEXT
   ========================================================================== */
[data-theme="light"] [style*="color:#fff"],
[data-theme="light"] [style*="color: #fff"],
[data-theme="light"] [style*="color:#ffffff"],
[data-theme="light"] [style*="color: #ffffff"],
[data-theme="light"] [style*="color:white"],
[data-theme="light"] [style*="color: white"],
[data-theme="light"] [style*="color:#f1f5f9"],
[data-theme="light"] [style*="color: #f1f5f9"],
[data-theme="light"] [style*="color:#cbd5e1"],
[data-theme="light"] [style*="color: #cbd5e1"],
[data-theme="light"] [style*="color:#e2e8f0"],
[data-theme="light"] [style*="color: #e2e8f0"],
[data-theme="light"] [style*="color:#f8fafc"],
[data-theme="light"] [style*="color: #f8fafc"],
[data-theme="light"] [style*="color:rgb(255,255,255)"],
[data-theme="light"] [style*="color: rgb(255, 255, 255)"] {
  color: var(--text-primary) !important;
}

[data-theme="light"] .card-glow-emerald,
[data-theme="light"] .card-glow-purple,
[data-theme="light"] .card-glow-blue,
[data-theme="light"] .card-glow-gold {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .card h1,
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .card h5,
[data-theme="light"] .card h6 {
  color: var(--text-primary) !important;
}

/* Force white backgrounds on all cards in light mode,
   overriding any inline dark/rgba backgrounds */
[data-theme="light"] .card,
[data-theme="light"] section.card,
[data-theme="light"] div.card,
[data-theme="light"] article.card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  color: var(--text-primary);
}

[data-theme="light"] .card p,
[data-theme="light"] .card span:not(.badge),
[data-theme="light"] .card div {
  color: inherit;
}

[data-theme="light"] .card strong {
  color: var(--text-primary);
}

/* ==========================================================================
   LIGHT THEME OVERRIDES — STUDENT COURSE PLAYER PAGE
   ========================================================================== */

/* ── Progress / Completion requirements banner ── */
[data-theme="light"] .card[style*="linear-gradient(135deg, rgba(13"],
[data-theme="light"] .card[style*="linear-gradient(135deg,rgba(13"] {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border-color: rgba(2, 132, 199, 0.18) !important;
}

/* Force white text spans that use color:#fff inside the banner */
[data-theme="light"] .card [style*="color: #fff"],
[data-theme="light"] .card [style*="color:#fff"] {
  color: var(--text-primary) !important;
}

/* ── Video toolbar / control panel (below the video) ── */
[data-theme="light"] [style*="background: rgba(13, 19, 34"],
[data-theme="light"] [style*="background:rgba(13, 19, 34"],
[data-theme="light"] [style*="background: rgba(13,19,34"],
[data-theme="light"] [style*="background:rgba(13,19,34"] {
  background: var(--bg-card) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* ── Seek-to-minute input in light mode ── */
[data-theme="light"] #seek-minute-input {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: var(--text-primary) !important;
}

/* ── 3-pillar mini-badges background (Videos / Quizzes / Assignments) ── */
[data-theme="light"] [style*="background: rgba(255,255,255,0.03)"],
[data-theme="light"] [style*="background:rgba(255,255,255,0.03)"],
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.03)"] {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

/* ── Progress bar track ── */
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.05)"],
[data-theme="light"] [style*="background:rgba(255,255,255,0.05)"] {
  background: rgba(15, 23, 42, 0.08) !important;
}

/* ── Syllabus / playlist sidebar card ── */
[data-theme="light"] .video-screen-card {
  background: #000 !important; /* keep video area black */
}

/* ── Certificate Waiting Notice — Dark Mode (default) ── */
.cert-waiting-notice {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.cert-waiting-title {
  color: #f87171;
}

/* ── Certificate Waiting Notice — Light Mode ── */
[data-theme="light"] .cert-waiting-notice {
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.30);
  color: #7f1d1d;
}
[data-theme="light"] .cert-waiting-title {
  color: #b91c1c;
}

/* ── PWA Standalone Mode Optimizations ── */
.btn-pwa-direct-install {
  display: inline-flex !important;
}

@media all and (display-mode: standalone), (display-mode: fullscreen) {
  .btn-pwa-direct-install {
    display: none !important;
  }
}

/* ── Mobile Nav Drawer & User Card — Light Mode ── */
[data-theme="light"] .mobile-drawer-content {
  background: #ffffff !important;
  border-left-color: #e2e8f0 !important;
  border-right-color: #e2e8f0 !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .mobile-drawer-header {
  border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .drawer-brand-title {
  color: #0f172a !important;
}

[data-theme="light"] .drawer-brand-sub {
  color: #64748b !important;
}

[data-theme="light"] .drawer-close-btn {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .drawer-close-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .drawer-user-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .drawer-user-name {
  color: #0f172a !important;
}

[data-theme="light"] .drawer-user-id {
  color: #64748b !important;
}

[data-theme="light"] .drawer-profile-link {
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}

[data-theme="light"] .drawer-profile-link:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}

[data-theme="light"] .drawer-nav-section-title {
  color: #059669 !important;
  border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .mobile-drawer-link {
  color: #1e293b !important;
}

[data-theme="light"] .mobile-drawer-link:hover {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .drawer-bottom-actions {
  border-top-color: #e2e8f0 !important;
}

/* ==========================================================================
   SAFARI PASSWORD POPUP / KEY ICON FIX
   ========================================================================== */
input::-webkit-credentials-auto-fill-button,
input::-webkit-strong-password-auto-fill-button {
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  right: 0 !important;
}

