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

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

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  cursor: default;
  transition: background 0.3s ease, color 0.3s ease;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.5rem; line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.75rem; line-height: 1.3; font-weight: 600; }
h4 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; }

/* Global Mesh Background */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 5% 5%, rgba(124, 92, 252, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 95% 10%, rgba(61, 107, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 90%, rgba(124, 92, 252, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(61, 107, 255, 0.08) 0%, transparent 50%),
    var(--bg);
  overflow: hidden;
}

:root[data-theme="light"] .mesh-bg {
  background: radial-gradient(ellipse 70% 60% at 5% 5%, rgba(107, 63, 216, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 95% 10%, rgba(45, 92, 224, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 90%, rgba(107, 63, 216, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(45, 92, 224, 0.04) 0%, transparent 50%),
    var(--bg);
}

.mesh-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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' stroke='rgba(124,92,252,0.04)' stroke-width='1'%3E%3Ccircle cx='30' cy='30' r='25'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Cline x1='5' y1='30' x2='55' y2='30'/%3E%3Cline x1='30' y1='5' x2='30' y2='55'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.5;
}

/* Floating Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite;
}

.orb1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.15), transparent 70%);
  animation-delay: 0s;
}

.orb2 {
  width: 400px;
  height: 400px;
  top: 40%;
  right: -120px;
  background: radial-gradient(circle, rgba(61, 107, 255, 0.12), transparent 70%);
  animation-delay: -4s;
}

.orb3 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: 25%;
  background: radial-gradient(circle, rgba(155, 125, 255, 0.1), transparent 70%);
  animation-delay: -8s;
}

section, nav, footer {
  position: relative;
  z-index: 1;
}

/* ── Neural Pointer cursor — injected on all pages via profile-nav.js ── */
/* Neural cursor canvas is self-contained; no extra CSS needed here */

/* ── Admin Nav Link ── */
.nav-admin-link {
  color: var(--txt3);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r4);
  border: 1px solid rgba(124,92,252,0.28);
  background: rgba(124,92,252,0.07);
  transition: all 0.25s;
  letter-spacing: 0.02em;
}
.nav-admin-link:hover {
  background: rgba(124,92,252,0.15);
  border-color: var(--v1);
  color: var(--v2);
}

/* ── Hamburger Menu ── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(124,92,252,0.08);
  border: 1.5px solid rgba(124,92,252,0.35);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, transform 0.18s;
  flex-shrink: 0;
  order: 99;
  position: relative;
  z-index: 200;
}
.mobile-menu-toggle:hover {
  background: rgba(124,92,252,0.18);
  border-color: rgba(124,92,252,0.7);
  transform: scale(1.06);
}
.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--v2);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.mobile-menu-toggle span:nth-child(1) { width: 20px; }
.mobile-menu-toggle span:nth-child(2) { width: 14px; }
.mobile-menu-toggle span:nth-child(3) { width: 20px; }
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 20px;
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 20px;
}

/* Mobile nav panel */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  position: fixed !important;
  top: 78px !important; /* matches desktop nav height; overridden to 58px on mobile via responsive.css */
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: rgba(13, 11, 26, 0.98) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(124,92,252,0.25) !important;
  padding: 0.5rem 5vw 1.2rem !important;
  z-index: 999 !important;
  animation: fadeDown 0.22s ease !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
}
:root[data-theme="light"] .nav-links.mobile-open {
  background: rgba(255, 255, 255, 0.97) !important;
}
.nav-links.mobile-open li {
  list-style: none !important;
  border-bottom: 1px solid var(--border) !important;
}
.nav-links.mobile-open li:last-child {
  border-bottom: none !important;
}
.nav-links.mobile-open a {
  display: block !important;
  padding: 0.85rem 0 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--txt2) !important;
  letter-spacing: 0 !important;
}
.nav-links.mobile-open a::after { display: none !important; }
.nav-links.mobile-open a:hover { color: var(--v2) !important; }

/* ── Breadcrumb Bar ── */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 5vw;
  background: rgba(13, 11, 26, 0.45);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 77, 157, 0.1);
  font-size: 0.9rem;
  animation: fadeDown 0.3s ease;
  position: sticky;
  top: 78px;
  z-index: 90;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root[data-theme="light"] .breadcrumb-bar {
  background: rgba(255, 248, 252, 0.9);
  border-bottom-color: rgba(233, 30, 140, 0.1);
}
.bc-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--txt3);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.bc-home:hover { color: #ff85c0; }
.bc-sep {
  color: var(--txt4);
  display: inline-flex;
  align-items: center;
  opacity: 0.5;
  font-size: 0.8rem;
  margin: 0 0.15rem;
}
.bc-current {
  color: var(--txt);
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(90deg, #ff4d9d, #ff85c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}
/* Ancestor pages (not home, not current) */
.bc-page {
  color: var(--txt3);
  font-weight: 500;
  font-size: 0.9rem;
}
.bc-page:hover { color: #ff85c0; }

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 78px;
  background: rgba(13, 11, 26, 0.75);
  backdrop-filter: blur(28px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  transition: all 0.3s ease;
}

:root[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(1.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--txt3);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--txt);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--txt);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* ── Nav Auth Buttons: Modern Animated Pill Design ── */
@keyframes cta-glow-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(124,92,252,0.42), 0 2px 6px rgba(61,107,255,0.25); }
  50%       { box-shadow: 0 4px 28px rgba(124,92,252,0.72), 0 2px 14px rgba(61,107,255,0.45); }
}
@keyframes login-border-glow {
  0%, 100% { border-color: rgba(124,92,252,0.38); }
  50%       { border-color: rgba(124,92,252,0.72); }
}
@keyframes nav-icon-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.05); }
}
@keyframes nav-icon-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px rgba(124,92,252,.18); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 20px rgba(124,92,252,.28); }
}

.nav-btn-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  animation: nav-icon-pulse 3.2s ease-in-out infinite;
}
.nav-btn-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.42), transparent 34%);
}
.nav-btn-icon svg {
  position: relative;
  z-index: 1;
  animation: nav-icon-float 3.4s ease-in-out infinite;
}
.nav-btn-icon--login {
  background: linear-gradient(145deg, rgba(124,92,252,.18), rgba(61,107,255,.08));
  color: #7c5cfc;
  border: 1px solid rgba(124,92,252,.18);
}
.nav-btn-icon--signup {
  background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.08));
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.nav-signup-btn .nav-btn-icon svg { animation-duration: 2.8s; }

.nav-signin, #login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--txt2);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.48rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(124,92,252,0.38);
  background: rgba(124,92,252,0.06);
  backdrop-filter: blur(8px);
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  animation: login-border-glow 3s ease-in-out infinite;
}

.nav-signin::before, #login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(105deg, transparent 30%, rgba(124,92,252,0.14) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.nav-signin:hover, #login-btn:hover {
  background: rgba(124,92,252,0.14);
  border-color: rgba(124,92,252,0.7);
  color: var(--txt);
  box-shadow: 0 0 20px rgba(124,92,252,0.22), 0 4px 12px rgba(124,92,252,0.12);
  transform: translateY(-1px);
}

.nav-signin:hover::before, #login-btn:hover::before {
  transform: translateX(100%);
}

:root[data-theme="light"] .nav-signin,
:root[data-theme="light"] #login-btn {
  border-color: rgba(100,60,200,0.35);
  background: rgba(100,60,200,0.05);
  color: #2d2756;
}
:root[data-theme="light"] .nav-btn-icon--signup {
  background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(255,255,255,.38));
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
:root[data-theme="light"] .nav-signin:hover,
:root[data-theme="light"] #login-btn:hover {
  background: rgba(100,60,200,0.1);
  border-color: rgba(100,60,200,0.65);
  color: #1a0f4a;
}

.nav-cta, #cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7c5cfc 0%, #3d6bff 60%, #7c5cfc 100%);
  background-size: 200% 100%;
  color: #fff;
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(124,92,252,0.5), 0 0 0 0 rgba(124,92,252,0.35);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  border: 1.5px solid rgba(255,255,255,0.18);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  animation: cta-glow-pulse 2.8s ease-in-out infinite;
}

.nav-signup-btn .nav-signup-text {
  position: relative; z-index: 1;
}
.nav-signup-btn .nav-signup-arrow {
  position: relative; z-index: 1;
  transition: transform 0.25s ease;
}

.nav-cta::before, #cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.28) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.nav-cta:hover::before, #cta-btn:hover::before {
  transform: translateX(120%);
}

.nav-cta:hover, #cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 36px rgba(124,92,252,0.7), 0 4px 16px rgba(61,107,255,0.35);
  filter: brightness(1.08);
  background-position: 100% 0;
}
.nav-signup-btn:hover .nav-signup-arrow {
  transform: translateX(3px);
}

.nav-cta:active, #cta-btn:active {
  transform: translateY(0) scale(0.99);
}

@media (max-width: 768px) {
  .nav-signup-btn {
    padding: 0.5rem 1.15rem;
    font-size: 0.8rem;
    border-radius: 50px;
    box-shadow: 0 3px 14px rgba(124,92,252,0.45);
  }
  .nav-signup-btn .nav-signup-arrow { display: none; }
}

/* Theme Toggle */
.theme-toggle {
  width: 50px;
  height: 28px;
  border-radius: 20px;
  background: var(--panel2);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  margin-right: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
  display: flex;
  align-items: center;
  padding: 2px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  border-color: rgba(124, 92, 252, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 12px rgba(124, 92, 252, 0.2);
}

.theme-toggle.light {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.3);
}

.theme-toggle.light:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 12px rgba(255, 215, 0, 0.15);
}

.theme-toggle-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  position: absolute;
  left: 2px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.theme-toggle.light .theme-toggle-btn {
  left: 24px;
  background: #ffd700;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.5);
}

/* Icon-only theme toggle */
.theme-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--txt2);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.theme-icon-btn:hover {
  border-color: var(--border2);
  background: var(--panel);
  transform: scale(1.12) rotate(20deg);
  box-shadow: 0 0 12px rgba(124,92,252,0.2);
}
@keyframes theme-spin { from { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.18); } to { transform: rotate(360deg) scale(1); } }
.theme-icon-btn.spinning { animation: theme-spin 0.4s ease; }

/* Base Buttons */
.btn-grad {
  background: var(--grad);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: var(--r4);
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-grad::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-grad:hover::before {
  transform: translateX(100%);
}

.btn-grad:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(124, 92, 252, 0.65), 0 0 0 2px rgba(124, 92, 252, 0.2), 0 0 36px rgba(124, 92, 252, 0.35), 0 0 80px rgba(61, 107, 255, 0.15);
}
@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(124, 92, 252, 0.45); }
  50%       { box-shadow: 0 8px 48px rgba(124, 92, 252, 0.7), 0 0 24px rgba(61, 107, 255, 0.3); }
}
.btn-grad:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--txt2);
  padding: 0.9rem 2.2rem;
  border-radius: var(--r4);
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid var(--border2);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--glass);
  border-color: var(--v3);
  color: var(--txt);
  transform: translateY(-2px);
}

/* Form Elements */
input, select, textarea {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

input::placeholder,
textarea::placeholder {
  color: var(--txt4);
}

/* Utility Classes */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.text-gradient {
  background: linear-gradient(135deg, #7c5cfc 0%, #3d6bff 50%, #00cfee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

:root[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #5c3fb8 0%, #1f5ce0 50%, #00a8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Platform Cards Hover Effect */
a[href*="pages/"] {
  text-decoration: none;
}

a[href*="pages/"]:hover {
  text-decoration: none;
}

a[href*="pages/"]:hover div:first-child > div {
  opacity: 1;
}

/* ==================== PREMIUM NUMBER STYLING ==================== */

.premium-number {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(124, 92, 252, 0.1);
}

.stat-number {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt4);
  margin-top: 0.5rem;
}

/* Profile Icon Navigation */
.profile-nav {
  position: relative;
}

a[href*="pages/"]:hover {
  border-color: var(--v1) !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(124,92,252,0.2) !important;
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--v1) !important;
  box-shadow: 0 20px 50px rgba(124,92,252,0.15) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  
  nav {
    padding: 0 4vw;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 3vw;
    height: 64px;
  }
  
  .nav-logo {
    font-size: 1.3rem;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .nav-cta,
  .nav-signin {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  nav {
    flex-wrap: nowrap;
    height: 58px;
    padding: 0 0.75rem;
  }

  .nav-logo {
    font-size: 1rem;
  }
}

/* ── Login Wrapper & Dropdown ─────────────────── */
.login-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.login-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--panel);
  backdrop-filter: blur(24px);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(124,92,252,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  z-index: 1001;
  overflow: hidden;
}

.login-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ld-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--txt2);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.ld-item:last-child {
  border-bottom: none;
}

.ld-item:hover {
  background: rgba(124,92,252,0.08);
  color: var(--txt);
}

.ld-mentor {
  color: var(--v2);
}

.ld-mentor:hover {
  background: rgba(124,92,252,0.12);
  color: var(--v2);
}

:root[data-theme="light"] .login-dropdown {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ── Profile Dropdown ─────────────────────────── */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--panel);
  backdrop-filter: blur(24px);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(124,92,252,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

:root[data-theme="light"] .profile-dropdown {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Profile dropdown items */
.pd-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--txt2);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.pd-item:last-child {
  border-bottom: none;
}

.pd-item:hover {
  background: rgba(124,92,252,0.08);
}

.pd-logout:hover {
  background: rgba(255,107,107,0.08);
}

.pd-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pd-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--txt);
}

.pd-sub {
  font-size: 0.72rem;
  color: var(--txt4);
  margin-top: 1px;
}

/* Profile icon button */
.profile-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.profile-icon-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(124,92,252,0.5);
}

/* ── Breadcrumbs ──────────────────────────────── */
/* ── New Breadcrumb Design ─────────────────────── */
@keyframes bc-slide-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bc-item-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.breadcrumb {
  padding: 1rem 5vw;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #7c5cfc 0%, #3d6bff 100%);
  border-radius: 16px;
  margin: 1.5rem 5vw;
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.25);
  animation: bc-slide-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
  transition: all 0.3s;
  flex-wrap: wrap;
}

:root[data-theme="light"] .breadcrumb {
  background: white;
  border: 1px solid rgba(107, 63, 216, 0.15);
  box-shadow: 0 4px 16px rgba(107, 63, 216, 0.1);
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
  animation: bc-item-in 0.4s ease both 0.1s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

:root[data-theme="light"] .breadcrumb a {
  color: #3d2f7a;
}

.breadcrumb a:hover { 
  transform: translateX(2px);
  filter: brightness(1.1);
}

.breadcrumb .bc-sep {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  animation: bc-item-in 0.4s ease both 0.15s;
}

:root[data-theme="light"] .breadcrumb .bc-sep {
  color: rgba(61, 47, 122, 0.5);
}

.breadcrumb .bc-current {
  color: white;
  font-weight: 600;
  animation: bc-item-in 0.4s ease both 0.2s;
}

:root[data-theme="light"] .breadcrumb .bc-current {
  color: #1a1630;
}

/* ── Liquid back button — apply anywhere with class="back-btn" ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.2rem .5rem .9rem;
  border-radius: 999px;
  background: rgba(124,92,252,0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(124,92,252,0.22);
  color: var(--v1);
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .22s, border-color .22s, transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
  position: relative;
  overflow: hidden;
  letter-spacing: .01em;
}
.back-btn:hover {
  background: rgba(124,92,252,0.15);
  border-color: rgba(124,92,252,0.5);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(124,92,252,0.2);
}
.back-btn:active { transform: scale(1) translateY(0); }

/* ── Breadcrumb Right Section ────────────────── */
.bc-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.bc-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.bc-logout-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
}
.bc-theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--txt3);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.bc-theme-btn:hover { border-color: var(--v1); color: var(--v1); }

/* ── Reviews Scrolling Track ──────────────────── */
.reviews-track-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.reviews-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollTrack 40s linear infinite;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes scrollTrack {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.review-card {
  min-width: 340px;
  max-width: 340px;
  flex-shrink: 0;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 60px rgba(124,92,252,0.2);
}

/* ── Platform Cards & Icons Animation ────────── */
.platform-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(124,92,252,0.2);
  border-color: var(--v2);
}
.platform-card:hover .platform-icon {
  animation: iconBounce 0.5s cubic-bezier(0.36,0.07,0.19,0.97) both;
}
.platform-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: transform 0.35s ease;
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-3deg); }
  75% { transform: translateY(-2px) rotate(3deg); }
}
@keyframes iconBounce {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.3) rotate(-10deg); }
  40%  { transform: scale(0.9) rotate(5deg); }
  60%  { transform: scale(1.15) rotate(-5deg); }
  80%  { transform: scale(0.97) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ── Nav: prevent overflow without clipping dropdowns ── */
nav {
  width: 100%;
  box-sizing: border-box;
  /* NOTE: do NOT set overflow:hidden here — it clips absolute-positioned dropdowns */
}
.nav-logo {
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Site Footer classes ── */
.site-footer {
  background: rgba(8,6,18,0.95);
  border-top: 1px solid var(--border);
  padding: 5rem 5vw 2.5rem;
  margin-top: 6rem;
  position: relative;
  z-index: 1;
}
:root[data-theme="light"] .site-footer {
  background: rgba(244,243,255,0.97);
}

.footer-col-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt2);
  margin-bottom: 1.3rem;
}

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

.footer-link {
  font-size: 0.84rem;
  color: var(--txt4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: #ff85c0; }

.footer-contact-link {
  font-size: 0.8rem;
  color: var(--txt4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s;
}
.footer-contact-link:hover { color: #ff85c0; }

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--txt4);
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r1);
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: border-color 0.25s, transform 0.2s;
}
.footer-social-icon:hover {
  border-color: var(--v1);
  transform: translateY(-2px);
}

/* Footer 4-col responsive */
@media (max-width: 1024px) {
  .footer-grid-main {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
}
@media (max-width: 640px) {
  .footer-grid-main {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
  /* Brand takes full width on mobile; Platform and Company stay side-by-side */
  .footer-grid-main > div:first-child {
    grid-column: 1 / -1 !important;
  }
}

/* Modern custom dropdowns */
select.styled-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239b8fff' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select.styled-select:focus {
  outline: none;
  border-color: var(--v1);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.12);
}

/* 3D Golden Animated Stars */
.star-3d {
  cursor: pointer;
  font-size: 2.2rem;
  display: inline-block;
  color: #d1c4e9;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), filter 0.18s;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  transform-style: preserve-3d;
  user-select: none;
}
.star-3d:hover {
  transform: scale(1.35) rotateY(20deg);
  filter: drop-shadow(0 4px 10px rgba(255,200,0,0.6)) brightness(1.3);
}
.star-3d.lit {
  color: #FFD700;
  filter: drop-shadow(0 2px 8px rgba(255,200,0,0.7)) drop-shadow(0 0 4px rgba(255,160,0,0.4));
}
.star-3d.lit:hover {
  transform: scale(1.4) rotateY(-15deg);
  filter: drop-shadow(0 6px 16px rgba(255,200,0,0.8)) brightness(1.15);
}
@keyframes starPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5) rotateY(25deg); }
  70%  { transform: scale(0.9) rotateY(-10deg); }
  100% { transform: scale(1) rotateY(0deg); }
}
.star-3d.popping { animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1); }

/* Modern Animated Checkboxes */
.modern-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  padding: 0.35rem 0;
}
.modern-checkbox-wrap input[type="checkbox"] {
  display: none;
}
.modern-checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border2);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.modern-checkbox-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) scale(0) translateY(-1px);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.modern-checkbox-wrap input[type="checkbox"]:checked + .modern-checkbox-box {
  background: linear-gradient(135deg, var(--v1), var(--b1));
  border-color: var(--v1);
  transform: scale(1.08);
  box-shadow: 0 3px 12px rgba(124,92,252,0.4);
}
.modern-checkbox-wrap input[type="checkbox"]:checked + .modern-checkbox-box::after {
  transform: rotate(45deg) scale(1) translateY(-1px);
}
.modern-checkbox-label {
  font-size: 0.92rem;
  color: var(--txt3);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* ═══════════════════════════════════════════
   SITE FOOTER — canonical footer styles
   ═══════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(8,6,24,0.96);
  border-top: 1px solid rgba(124,92,252,0.15);
}
:root[data-theme="light"] .site-footer {
  background: rgba(248,246,255,0.98);
  border-top-color: rgba(107,63,216,0.12);
}

.footer-brand-col {}
.footer-links-col {}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt4);
  margin-bottom: 0.9rem;
}
.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-link {
  font-size: 0.84rem;
  color: var(--txt3);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
.footer-link:hover { color: var(--v2); }

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--txt3);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
.footer-contact-link:hover { color: var(--v2); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(124,92,252,0.1);
  max-width: 1100px;
  margin: 0 auto;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--txt4);
  font-weight: 500;
}
.footer-socials {
  display: flex;
  gap: 0.6rem;
}
.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--txt3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.22s;
}
.footer-social-icon:hover {
  background: rgba(124,92,252,0.1);
  border-color: rgba(124,92,252,0.4);
  color: var(--v2);
  transform: translateY(-2px);
}

/* ── Login wrapper display ── */
#login-wrapper { gap: 0.6rem; }

/* ── nav.scrolled elevation ── */
nav.scrolled {
  height: 66px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

/* ── Signup button: always visible inside login-wrapper (login-wrapper is hidden when logged in) ── */
#cta-btn { display: inline-flex; }

/* ═══════════════════════════════════════════════════════════════
   LIQUID GLASS DESIGN SYSTEM
   Apply .liquid-btn, .liquid-card, .liquid-modal, .liquid-dropdown
   ═══════════════════════════════════════════════════════════════ */

/* Liquid Glass base variables */
:root {
  --lg-blur: 18px;
  --lg-saturate: 1.8;
  --lg-radius: 20px;
  --lg-radius-lg: 28px;
  --lg-border-light: rgba(255,255,255,0.22);
  --lg-border-dark: rgba(124,92,252,0.22);
  --lg-shine: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.12) 100%);
  --lg-bg-dark: rgba(13,11,26,0.72);
  --lg-bg-light: rgba(255,255,255,0.72);
  --lg-glow-purple: 0 8px 32px rgba(124,92,252,0.35), 0 2px 8px rgba(0,0,0,0.18);
  --lg-glow-blue: 0 8px 32px rgba(61,107,255,0.32), 0 2px 8px rgba(0,0,0,0.18);
}

/* ── Liquid Button ─────────────────────────────────────────── */
.liquid-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124,92,252,0.85) 0%, rgba(61,107,255,0.85) 100%);
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  padding: .8rem 2rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  letter-spacing: .02em;
  box-shadow: var(--lg-glow-purple), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, filter .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.liquid-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lg-shine);
  border-radius: inherit;
  pointer-events: none;
}
.liquid-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s ease;
  border-radius: inherit;
}
.liquid-btn:hover::after { transform: translateX(120%); }
.liquid-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 48px rgba(124,92,252,0.55), 0 4px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.08);
}
.liquid-btn:active:not(:disabled) { transform: translateY(-1px) scale(1.01); }
.liquid-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Outline variant */
.liquid-btn-outline {
  background: rgba(124,92,252,0.08);
  backdrop-filter: blur(var(--lg-blur));
  -webkit-backdrop-filter: blur(var(--lg-blur));
  border: 1.5px solid rgba(124,92,252,0.4);
  border-radius: 50px;
  color: var(--v1);
  font-weight: 700;
  padding: .8rem 2rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  overflow: hidden;
}
.liquid-btn-outline:hover {
  background: rgba(124,92,252,0.18);
  border-color: rgba(124,92,252,0.75);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(124,92,252,0.3);
}

/* ── Liquid Card ─────────────────────────────────────────────── */
.liquid-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--lg-radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease;
}
.liquid-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}
.liquid-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lg-shine);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.liquid-card:hover::after { opacity: 1; }
.liquid-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 64px rgba(124,92,252,0.3), 0 4px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
  border-color: rgba(124,92,252,0.4);
}
:root[data-theme="light"] .liquid-card {
  background: rgba(255,255,255,0.72);
  border-color: rgba(124,92,252,0.14);
  box-shadow: 0 4px 24px rgba(124,92,252,0.1), 0 1px 4px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}
:root[data-theme="light"] .liquid-card:hover {
  box-shadow: 0 16px 48px rgba(124,92,252,0.2), 0 4px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(124,92,252,0.35);
}

/* ── Liquid Modal (popup windows) ────────────────────────────── */
.liquid-modal-box {
  background: rgba(13,11,26,0.88);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: var(--lg-radius-lg);
  box-shadow: 0 32px 96px rgba(0,0,0,0.55), 0 4px 16px rgba(124,92,252,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.liquid-modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #7c5cfc, #3d6bff, #00cfee, #7c5cfc);
  background-size: 200% 100%;
  animation: shimmer-border 3s linear infinite;
}
@keyframes shimmer-border { to { background-position: 200% 0; } }
:root[data-theme="light"] .liquid-modal-box {
  background: rgba(255,255,255,0.92);
  border-color: rgba(124,92,252,0.18);
  box-shadow: 0 16px 64px rgba(124,92,252,0.18), 0 4px 16px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1);
}

/* ── Liquid Dropdown ─────────────────────────────────────────── */
.liquid-dropdown {
  background: rgba(18,14,42,0.94);
  backdrop-filter: blur(20px) saturate(2);
  -webkit-backdrop-filter: blur(20px) saturate(2);
  border: 1px solid rgba(124,92,252,0.22);
  border-radius: var(--lg-radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 2px 8px rgba(124,92,252,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}
:root[data-theme="light"] .liquid-dropdown {
  background: rgba(255,255,255,0.96);
  border-color: rgba(124,92,252,0.15);
  box-shadow: 0 8px 32px rgba(124,92,252,0.15), 0 2px 8px rgba(0,0,0,0.08);
}

/* Apply liquid glass to existing site components */
.btn-grad {
  background: linear-gradient(135deg, rgba(124,92,252,0.9) 0%, rgba(61,107,255,0.9) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 50px !important;
  box-shadow: 0 6px 28px rgba(124,92,252,0.4), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  position: relative;
  overflow: hidden;
}
.btn-grad::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .5s ease;
  border-radius: inherit;
}
.btn-grad:hover::after { transform: translateX(120%); }
.btn-grad:hover { transform: translateY(-3px) !important; box-shadow: 0 12px 40px rgba(124,92,252,0.55), inset 0 1px 0 rgba(255,255,255,0.25) !important; }

.btn-outline {
  background: rgba(124,92,252,0.07) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(124,92,252,0.35) !important;
  border-radius: 50px !important;
}
.btn-outline:hover { background: rgba(124,92,252,0.16) !important; transform: translateY(-3px) !important; }

/* Liquid nav */
nav {
  background: rgba(6,4,20,0.75) !important;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(124,92,252,0.12);
}
:root[data-theme="light"] nav {
  background: rgba(255,255,255,0.82) !important;
  border-bottom-color: rgba(124,92,252,0.1);
}

/* Liquid profile dropdown */
.profile-dropdown {
  background: rgba(18,14,42,0.94) !important;
  backdrop-filter: blur(20px) saturate(2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(2) !important;
  border: 1px solid rgba(124,92,252,0.22) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 2px 8px rgba(124,92,252,0.18) !important;
}
:root[data-theme="light"] .profile-dropdown {
  background: rgba(255,255,255,0.96) !important;
  border-color: rgba(124,92,252,0.15) !important;
  box-shadow: 0 8px 32px rgba(124,92,252,0.15), 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Liquid course cards */
.course-card, .platform-card {
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(14px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.6) !important;
  border: 1px solid rgba(124,92,252,0.14) !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.07) !important;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease !important;
  position: relative !important;
  overflow: hidden !important;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.course-card:hover, .platform-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(124,92,252,0.45) !important;
  box-shadow: 0 24px 64px rgba(124,92,252,0.3), 0 4px 16px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}
:root[data-theme="light"] .course-card, :root[data-theme="light"] .platform-card {
  background: rgba(255,255,255,0.82) !important;
  border-color: rgba(124,92,252,0.12) !important;
  box-shadow: 0 2px 16px rgba(124,92,252,0.08), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
:root[data-theme="light"] .course-card:hover, :root[data-theme="light"] .platform-card:hover {
  box-shadow: 0 16px 48px rgba(124,92,252,0.22), 0 4px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1) !important;
}

/* ── Theme Color Variants ────────────────────────────────────── */
/* Purple theme (default), Ocean, Sunset — controlled by data-theme-variant */
:root[data-theme-variant="ocean"] {
  --v1: #0ea5e9; --v2: #38bdf8; --v3: #7dd3fc; --v4: #bae6fd;
  --b1: #0284c7; --b2: #0ea5e9; --b3: #38bdf8;
  --grad: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --grad2: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  --grad-shine: linear-gradient(105deg, #0ea5e9, #0284c7, #38bdf8, #0ea5e9);
}
:root[data-theme-variant="sunset"] {
  --v1: #f59e0b; --v2: #fb923c; --v3: #fbbf24; --v4: #fde68a;
  --b1: #ea580c; --b2: #f97316; --b3: #fb923c;
  --grad: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --grad2: linear-gradient(135deg, #fb923c 0%, #f59e0b 100%);
  --grad-shine: linear-gradient(105deg, #f59e0b, #ea580c, #fb923c, #f59e0b);
}
:root[data-theme-variant="emerald"] {
  --v1: #10b981; --v2: #34d399; --v3: #6ee7b7; --v4: #a7f3d0;
  --b1: #059669; --b2: #10b981; --b3: #34d399;
  --grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad2: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --grad-shine: linear-gradient(105deg, #10b981, #059669, #34d399, #10b981);
}

/* ── Login Streak Badge on Profile Button ────────────────────── */
.streak-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: 2px solid var(--bg);
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 2px 8px rgba(239,68,68,0.5);
  animation: streak-pop .4s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
}
@keyframes streak-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
#profile-section { position: relative; }

/* ── Testimonials animated cards ────────────────────────────── */
.testimonial-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(124,92,252,0.16);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease, border-color .4s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.07);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: .5rem;
  left: 1.2rem;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(124,92,252,0.18);
  line-height: 1;
  pointer-events: none;
  transition: color .4s;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,92,252,0.08), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  border-radius: inherit;
}
.testimonial-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(124,92,252,0.5); box-shadow: 0 24px 64px rgba(124,92,252,0.28), inset 0 1px 0 rgba(255,255,255,0.12); }
.testimonial-card:hover::before { color: rgba(124,92,252,0.45); }
.testimonial-card:hover::after { opacity: 1; }
:root[data-theme="light"] .testimonial-card { background: rgba(255,255,255,0.82); border-color: rgba(124,92,252,0.12); box-shadow: 0 2px 16px rgba(124,92,252,0.08), inset 0 1px 0 rgba(255,255,255,0.9); }
:root[data-theme="light"] .testimonial-card:hover { box-shadow: 0 16px 48px rgba(124,92,252,0.2), inset 0 1px 0 rgba(255,255,255,1); }

/* ── Offers Section ──────────────────────────────────────────── */
.offer-card {
  background: linear-gradient(135deg, rgba(124,92,252,0.12) 0%, rgba(61,107,255,0.08) 100%);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 24px;
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  box-shadow: 0 4px 24px rgba(124,92,252,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}
.offer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
  opacity: 0.8;
}
.offer-card:hover { transform: translateY(-6px) scale(1.025); box-shadow: 0 24px 56px rgba(124,92,252,0.3), inset 0 1px 0 rgba(255,255,255,0.12); }
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: .25rem .75rem;
  border-radius: 999px;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(239,68,68,0.4);
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%,100% { box-shadow: 0 4px 12px rgba(239,68,68,0.4); }
  50% { box-shadow: 0 4px 20px rgba(239,68,68,0.7); }
}

/* ── Courses Marquee Carousel ────────────────────────────────── */
.courses-marquee-wrap {
  overflow: hidden;
  position: relative;
  padding: .5rem 0;
}
.courses-marquee-wrap::before,
.courses-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.courses-marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.courses-marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.courses-marquee-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.courses-marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-course-pill {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid rgba(124,92,252,0.18);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s;
  cursor: default;
  min-width: 220px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}
.marquee-course-pill:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(124,92,252,0.5);
  box-shadow: 0 12px 32px rgba(124,92,252,0.28);
}
:root[data-theme="light"] .marquee-course-pill {
  background: rgba(255,255,255,0.88);
  border-color: rgba(124,92,252,0.14);
  box-shadow: 0 2px 12px rgba(124,92,252,0.08);
}
.marquee-pill-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.marquee-pill-name { font-size: .88rem; font-weight: 700; color: var(--txt); }
.marquee-pill-tag  { font-size: .7rem; color: var(--txt4); margin-top: .1rem; }

/* ── Mobile headings fix ─────────────────────────────────────── */
@media (max-width: 640px) {
  h1 { font-size: 2.4rem !important; }
  h2 { font-size: 1.9rem !important; }
  h3 { font-size: 1.45rem !important; }
  h4 { font-size: 1.15rem !important; }
  section h2, .section-title, [style*="font-size:clamp"] {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem) !important;
    line-height: 1.15 !important;
  }
  /* Specifically fix "Courses Available Now" heading on home */
  section [style*="clamp(1.8rem"] {
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
  }
}
