/* ============================================
   Career Guidance - Main Stylesheet
   Modern Interactive Design with Animations
   ============================================ */

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #9B94FF;
    --accent: #C8FF00;
    --accent-dark: #A3D900;
    --bg: #FFFFFF;
    --bg-alt: #F8F9FC;
    --bg-dark: #0F0D1A;
    --text: #1A1A2E;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-primary: 0 0 20px rgba(108,99,255,0.4);
    --glow-accent: 0 0 20px rgba(200,255,0,0.4);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- PRELOADER ---- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner {
    text-align: center;
}
.preloader-icon {
    font-size: 3rem;
    color: var(--primary);
    animation: preloaderPulse 1s ease-in-out infinite;
    margin-bottom: 20px;
}
@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}
.preloader-bar {
    width: 200px;
    height: 4px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}
.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    animation: preloaderBar 1.8s ease-in-out forwards;
}
@keyframes preloaderBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ---- SCROLL PROGRESS ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    z-index: 10001;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff;
}
.btn-primary:hover {
    background-position: 100% 50%;
    box-shadow: var(--glow-primary);
}
.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Button Glow Effect */
.btn-glow {
    box-shadow: var(--glow-primary);
}
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(108,99,255,0.6), 0 0 60px rgba(108,99,255,0.2);
}

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

/* Glass Button */
.btn-glass {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: var(--text);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.4);
    box-shadow: var(--shadow-md);
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229,231,235,0.5);
    z-index: 1000;
    padding: 0 0;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 0;
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.98);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: height 0.3s ease;
}
.navbar.scrolled .navbar-inner {
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    transition: var(--transition);
}
.logo i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.logo:hover i { transform: rotate(-10deg) scale(1.1); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a:not(.btn) {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}
/* Underline Animation (left-to-right) */
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:not(.btn):hover {
    color: var(--primary);
}
.nav-links a:not(.btn):hover::after {
    transform: scaleX(1);
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}
.user-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-alt);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}
.user-badge:hover { background: rgba(108,99,255,0.1); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}
.nav-toggle:hover { color: var(--primary); }

/* ---- HERO ---- */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #F0F0FF 0%, #E8EAFF 30%, #F5F3FF 60%, #FFF0F5 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Blobs */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(108,99,255,0.15);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}
.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(255,107,157,0.12);
    bottom: -10%;
    left: -5%;
    animation-delay: -3s;
}
.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(200,255,0,0.1);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* Mouse Follow Glow */
.mouse-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease-out, top 0.3s ease-out;
    z-index: 0;
    display: none;
}
.mouse-glow.active { display: block; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Badge Pill */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-badge-pill i {
    color: var(--warning);
    animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}
.hero-content h1 span { color: var(--primary); }

/* Typing Cursor */
.typing-cursor {
    color: var(--primary);
    font-weight: 300;
    animation: cursorBlink 0.7s step-end infinite;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

/* Trust Avatars */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.hero-trust strong { color: var(--text); }
.trust-avatars {
    display: flex;
}
.trust-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    border: 2px solid #fff;
    margin-left: -8px;
    transition: transform 0.3s ease;
}
.trust-avatar:first-child { margin-left: 0; }
.trust-avatar:hover { transform: translateY(-3px) scale(1.1); z-index: 1; }

.hero-image {
    position: relative;
}
.hero-illustration {
    width: 320px;
    display: block;
    margin: 0 auto -30px auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 24px rgba(108,99,255,0.15));
    transition: transform 0.4s ease;
}
.hero-illustration:hover {
    transform: scale(1.03) translateY(-4px);
}

/* Glass Card */
.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 8px 32px rgba(108,99,255,0.1), 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    transition: var(--transition);
}
.glass-card:hover {
    box-shadow: 0 12px 40px rgba(108,99,255,0.15), 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* Card Window Dots */
.card-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-green { background: var(--success); }
.dot-yellow { background: var(--warning); }
.dot-red { background: var(--danger); }

.hero-card .stat-row {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.stat-box {
    flex: 1;
    background: rgba(248,249,252,0.8);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}
.stat-box:hover {
    border-color: var(--primary-light);
    background: rgba(108,99,255,0.05);
}
.stat-box .number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-box .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Floating Mini Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    animation: floatCard 3s ease-in-out infinite;
    z-index: 2;
}
.fc-1 { top: 10%; right: -10px; animation-delay: 0s; }
.fc-2 { bottom: 15%; left: -10px; animation-delay: -1.5s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- WAVE DIVIDERS ---- */
.wave-divider {
    line-height: 0;
    margin-top: -1px;
}
.wave-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}
.wave-dark {
    background: var(--bg-dark);
}
.wave-alt {
    background: var(--bg);
}

/* ---- LOGO BAR ---- */
.logo-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}
.logo-bar p {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.logo-scroll-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.logo-scroll {
    display: flex;
    align-items: center;
    gap: 64px;
    animation: logoScroll 30s linear infinite;
    width: max-content;
}
.logo-scroll-wrapper:hover .logo-scroll { animation-play-state: paused; }
@keyframes logoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.logo-scroll span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    opacity: 0.5;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}
.logo-scroll span:hover { opacity: 1; }

/* ---- Institution logos in scroller ---- */
.inst-logo {
    --tile: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 170px;
    padding: 12px 18px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--tile);
    border: 1px solid rgba(17,24,39,0.06);
    text-decoration: none;
    opacity: 0.88;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                opacity 0.35s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}
/* Light tile (dark-toned logo on transparent) */
.inst-logo.tone-dark {
    background: #FFFFFF;
    border-color: #EEF1F6;
}
/* Dark tile (white/light-toned logo on transparent) — uses the inline --tile var */
.inst-logo.tone-light {
    background: var(--tile, #0F2A5C);
    border-color: rgba(255,255,255,0.08);
}

/* Inline SVG fallback badges fill the whole tile edge-to-edge */
.inst-logo > svg {
    margin: -12px -18px;
    width: calc(100% + 36px);
    height: calc(100% + 24px);
}
.inst-logo > svg,
.inst-logo > img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.inst-logo:hover {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(17,24,39,0.12);
}
.inst-logo.tone-dark:hover { border-color: rgba(108,99,255,0.3); }
.inst-logo.tone-light:hover { border-color: rgba(255,255,255,0.25); }
.inst-logo:hover > svg,
.inst-logo:hover > img {
    transform: scale(1.04);
}

/* Wide-header-strip logos (e.g. full website headers) — zoom on the seal at the far left */
.inst-logo > img[src$="/nit.png"],
.inst-logo > img[src$="/nit.webp"],
.inst-logo > img[src$="/nit.jpg"] {
    object-fit: cover;
    object-position: left center;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    transform: scale(2.6);
    transform-origin: left center;
}
.inst-logo:hover > img[src$="/nit.png"],
.inst-logo:hover > img[src$="/nit.webp"] {
    transform: scale(2.7);
}

@media (max-width: 768px) {
    .inst-logo { height: 64px; width: 140px; border-radius: 12px; padding: 10px 14px; }
    .inst-logo > svg { margin: -10px -14px; width: calc(100% + 28px); height: calc(100% + 20px); }
    .logo-scroll { gap: 24px; animation-duration: 24s; }
}

/* ---- SECTIONS ---- */
.section {
    padding: 100px 0;
    position: relative;
}
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.section-header .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108,99,255,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ---- SCROLL REVEAL ANIMATIONS ---- */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal="fade-up"] { transform: translateY(40px); }
[data-reveal="fade-left"] { transform: translateX(40px); }
[data-reveal="fade-right"] { transform: translateX(-40px); }
[data-reveal="zoom-in"] { transform: scale(0.9); }
[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ---- FEATURES GRID ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    border-color: rgba(108,99,255,0.2);
    box-shadow: 0 12px 30px rgba(108,99,255,0.1);
    transform: translateY(-6px);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}
.feature-icon.purple { background: rgba(108,99,255,0.1); color: var(--primary); }
.feature-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.feature-icon.yellow { background: rgba(245,158,11,0.1); color: var(--warning); }
.feature-icon.blue { background: rgba(59,130,246,0.1); color: var(--info); }
.feature-icon.lime { background: rgba(200,255,0,0.2); color: #6B8A00; }
.feature-icon.red { background: rgba(239,68,68,0.1); color: var(--danger); }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.92rem; }

/* ---- STEPS / HOW IT WORKS ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    counter-reset: step;
}
.step-card {
    text-align: center;
    position: relative;
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}
.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(108,99,255,0.4);
}
/* Step connector line */
.step-connector {
    position: absolute;
    top: 28px;
    left: calc(50% + 34px);
    width: calc(100% - 68px + 32px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), rgba(108,99,255,0.2));
    z-index: 0;
}
.step-card:last-child .step-connector { display: none; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-light); font-size: 0.88rem; }

/* ---- TEAM ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.team-grid.team-single {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
}
.team-card {
    text-align: center;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.team-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.team-card:hover::after { transform: scaleX(1); }
.team-card:hover {
    box-shadow: 0 12px 30px rgba(108,99,255,0.1);
    transform: translateY(-6px);
}
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 2.2rem;
    color: #fff;
    transition: transform 0.4s ease;
}
.team-card:hover .team-avatar {
    transform: scale(1.08) rotate(5deg);
}
.team-card h3 { font-size: 1.1rem; font-weight: 700; }
.team-card .role { color: var(--primary); font-size: 0.88rem; font-weight: 500; margin-top: 4px; }
.team-card p { color: var(--text-light); font-size: 0.88rem; margin-top: 12px; }
.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}
.team-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ---- STATS BAR ---- */
.stats-section {
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stats-bar .stat {
    text-align: center;
    padding: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.stats-bar .stat:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}
.stat-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(108,99,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.2rem;
    color: var(--primary-light);
}
.stats-bar .stat .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}
.stats-bar .stat .label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
}

/* ---- FAQ ---- */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
}
.faq-item:hover { border-color: rgba(108,99,255,0.3); }
.faq-item.active { border-color: var(--primary); box-shadow: 0 4px 15px rgba(108,99,255,0.1); }
.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
    transition: background 0.2s ease;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question i {
    color: var(--primary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 200px; padding: 0 24px 20px; }

/* ---- CTA ---- */
.cta-section {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 50%, var(--primary-dark) 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    color: #fff;
    position: relative;
    overflow: hidden;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.cta-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}
.cta-p1 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: -50px;
    right: 10%;
    animation: blobFloat 6s ease-in-out infinite;
}
.cta-p2 {
    width: 150px;
    height: 150px;
    background: #fff;
    bottom: -30px;
    left: 15%;
    animation: blobFloat 7s ease-in-out infinite reverse;
}
.cta-p3 {
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    top: 30%;
    left: 5%;
    animation: blobFloat 5s ease-in-out infinite;
    animation-delay: -2s;
}
.cta-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.cta-section .btn-accent {
    font-size: 1.05rem;
    padding: 16px 40px;
    position: relative;
    box-shadow: var(--glow-accent);
}
.cta-section .btn-accent:hover {
    box-shadow: 0 0 30px rgba(200,255,0,0.6);
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
    font-size: 0.88rem;
    transition: var(--transition);
    position: relative;
}
.site-footer ul a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ---- AUTH PAGES ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0F0FF 0%, #E8EAFF 50%, #FFF0F5 100%);
    padding: 40px 20px;
}
.auth-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 48px;
    width: 100%;
    max-width: 440px;
}
.auth-card .logo { justify-content: center; margin-bottom: 8px; }
.auth-card h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
    color: var(--text);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108,99,255,0.1);
}
.form-control:hover:not(:focus) {
    border-color: var(--text-muted);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 44px; }
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.password-toggle:hover { color: var(--primary); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-link { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-light); }
.form-link a { color: var(--primary); font-weight: 600; }

/* ---- ALERTS ---- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: alertSlideIn 0.4s ease;
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ---- DASHBOARD LAYOUT ---- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 72px;
}
.sidebar {
    width: 260px;
    background: var(--bg-dark);
    color: #fff;
    padding: 28px 0;
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 900;
}
.sidebar-section {
    padding: 0 20px;
    margin-bottom: 28px;
}
.sidebar-section .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
    font-weight: 600;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 0;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    margin: 0 12px;
}
.sidebar-link i { width: 20px; text-align: center; font-size: 1rem; }

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    background: var(--bg-alt);
    min-height: calc(100vh - 72px);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.page-header h1 { font-size: 1.6rem; font-weight: 700; }
.page-header .date { color: var(--text-muted); font-size: 0.88rem; }

/* ---- STAT CARDS ---- */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-card .icon.purple { background: rgba(108,99,255,0.1); color: var(--primary); }
.stat-card .icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.stat-card .icon.yellow { background: rgba(245,158,11,0.1); color: var(--warning); }
.stat-card .icon.blue { background: rgba(59,130,246,0.1); color: var(--info); }
.stat-card .info .value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-card .info .label { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }
.stat-card .info .change { font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.stat-card .info .change.up { color: var(--success); }
.stat-card .info .change.down { color: var(--danger); }

/* ---- TABLES ---- */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 { font-size: 1.05rem; font-weight: 700; }
.card-body { padding: 24px; }

.table-wrapper { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
}
table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--bg-alt); }

/* ---- BADGES ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-confirmed, .badge-verified { background: #D1FAE5; color: #065F46; }
.badge-cancelled, .badge-rejected { background: #FEE2E2; color: #991B1B; }
.badge-expired { background: #F3F4F6; color: #6B7280; }
.badge-active { background: #DBEAFE; color: #1E40AF; }

/* ---- PAYMENT PAGE ---- */
.payment-container { max-width: 500px; margin: 0 auto; }
.qr-box {
    text-align: center;
    background: #fff;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 24px;
}
.qr-box img { width: 200px; height: 200px; margin-bottom: 16px; }
.qr-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 4rem;
    color: var(--primary);
}
.qr-box .upi-id { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.qr-box .amount { font-size: 2rem; font-weight: 800; color: var(--text); }
.qr-box .amount-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

.payment-instructions {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.payment-instructions h4 { color: #9A3412; font-size: 0.92rem; margin-bottom: 10px; }
.payment-instructions ol { padding-left: 20px; color: #92400E; font-size: 0.88rem; }
.payment-instructions ol li { margin-bottom: 6px; }

.countdown {
    text-align: center;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 24px;
    font-weight: 600;
    color: #991B1B;
}
.countdown .time { font-size: 1.3rem; font-weight: 800; }

/* ---- BOOKING CARDS ---- */
.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.session-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}
.session-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.session-card .session-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.session-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.session-card .description { color: var(--text-light); font-size: 0.88rem; margin-bottom: 16px; }
.session-card .session-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.session-card .price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.session-card .slots { font-size: 0.82rem; color: var(--text-muted); }
.session-card .slots.low { color: var(--danger); font-weight: 600; }

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-light); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 20px; }

/* ---- SCREENSHOT PREVIEW ---- */
.screenshot-preview {
    max-width: 300px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 8px;
}

/* ---- ACTIONS ---- */
.action-btns { display: flex; gap: 8px; }
.action-btns .btn { padding: 6px 14px; font-size: 0.8rem; }

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal h3 { font-size: 1.2rem; margin-bottom: 20px; }
.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}
.modal-close:hover { color: var(--danger); transform: rotate(90deg); }

/* ---- SKELETON LOADERS ---- */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-alt) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}
.skeleton-title {
    height: 22px;
    margin-bottom: 12px;
    width: 60%;
}
.skeleton-box {
    height: 120px;
    margin-bottom: 16px;
}

/* ---- MICRO INTERACTIONS ---- */
/* Icon bounce on hover */
.icon-bounce:hover i {
    animation: iconBounce 0.5s ease;
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-6px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-3px); }
}

/* Icon pulse */
.icon-pulse i {
    animation: iconSubtlePulse 3s ease-in-out infinite;
}
@keyframes iconSubtlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image { display: none; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-badge-pill { margin-left: auto; margin-right: auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .step-connector { display: none; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
    .nav-user { margin-left: 0; margin-top: 8px; }
    .nav-links a:not(.btn)::after { display: none; }

    .hero { padding: 120px 0 60px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; align-items: center; }

    .features-grid,
    .team-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }

    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .booking-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .section-header h2 { font-size: 1.8rem; }
    .cta-section h2 { font-size: 1.8rem; }
    .auth-card { padding: 32px 24px; }

    .wave-divider svg { height: 50px; }
}

/* ============================================
   v2 POLISH PACK — advanced micro-interactions
   Added on audit upgrade. Additive only; does
   not remove or override earlier rules.
   ============================================ */

/* ---- Universal focus ring (a11y) ---- */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.35) !important;
    border-radius: 6px;
}

/* ---- Smooth selection color ---- */
::selection {
    background: rgba(108,99,255,0.25);
    color: var(--text);
}

/* ---- Global transitions for interactive chrome ---- */
a, button, .btn, .menu-item, .feature-card, .team-card,
.admin-stat-card, .admin-card, .session-card, .stat-card,
.topbar-icon-btn, .filter-tab, .cal-cell, .cal-slot-item {
    will-change: transform;
}

/* ---- BUTTON LOADING STATE ---- */
.btn.is-loading {
    pointer-events: none;
    color: transparent !important;
    position: relative;
}
.btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpinner 0.7s linear infinite;
}
.btn-accent.is-loading::after,
.btn-outline.is-loading::after,
.btn-glass.is-loading::after {
    border: 2.5px solid rgba(108,99,255,0.25);
    border-top-color: var(--primary);
}
@keyframes btnSpinner {
    to { transform: rotate(360deg); }
}

/* ---- SHIMMER / SHINE sweep on primary buttons ---- */
.btn-primary::before,
.btn-accent::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.btn-primary:hover::before,
.btn-accent:hover::before { left: 150%; }

/* ---- MAGNETIC / TILT hooks (JS adds translate) ---- */
[data-tilt] { transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2); transform-style: preserve-3d; }

/* ---- TOAST NOTIFICATIONS ---- */
.toast-host {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(17,24,39,0.12), 0 2px 6px rgba(17,24,39,0.06);
    border: 1px solid rgba(229,231,235,0.8);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    min-width: 260px;
    max-width: 360px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    animation: toastIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
    position: relative;
    overflow: hidden;
}
.toast.is-leaving { animation: toastOut 0.3s ease forwards; }
.toast::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--primary);
}
.toast.toast-success::before { background: var(--success); }
.toast.toast-error::before   { background: var(--danger); }
.toast.toast-warning::before { background: var(--warning); }
.toast.toast-info::before    { background: var(--info); }
.toast .toast-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(108,99,255,0.12);
    color: var(--primary);
    flex-shrink: 0;
}
.toast.toast-success .toast-icon { background: rgba(16,185,129,0.12); color: var(--success); }
.toast.toast-error .toast-icon   { background: rgba(239,68,68,0.12); color: var(--danger); }
.toast.toast-warning .toast-icon { background: rgba(245,158,11,0.12); color: var(--warning); }
.toast-body { flex: 1; line-height: 1.35; }
.toast-close {
    border: none; background: transparent;
    color: var(--text-muted); cursor: pointer;
    padding: 4px; font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.toast-close:hover { color: var(--danger); transform: rotate(90deg); }
@keyframes toastIn {
    0%   { transform: translateX(120%); opacity: 0; }
    70%  { transform: translateX(-6px); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* ---- ENHANCED ALERT (auto-dismiss bar) ---- */
.alert { position: relative; overflow: hidden; }
.alert.alert-auto-dismiss::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.4;
    width: 100%;
    transform-origin: left;
    animation: alertBarShrink 4s linear forwards;
}
@keyframes alertBarShrink {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ---- FLOATING LABELS FORMS ---- */
.form-float {
    position: relative;
    margin-bottom: 20px;
}
.form-float .form-control {
    padding: 20px 16px 8px;
}
.form-float > label {
    position: absolute;
    top: 14px; left: 16px;
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-float .form-control:focus + label,
.form-float .form-control:not(:placeholder-shown) + label {
    top: 4px;
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 0.3px;
}

/* ---- INPUT ICON WRAPPER ---- */
.input-icon {
    position: relative;
}
.input-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.input-icon > .form-control {
    padding-left: 42px;
}
.input-icon:focus-within > i {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* ---- CARD SHEEN (subtle light sweep on hover) ---- */
.sheen {
    position: relative;
    overflow: hidden;
}
.sheen::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.sheen:hover::after { left: 130%; }

/* ---- ANIMATED GRADIENT TEXT ---- */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), #8B5CF6, #FF6B9D, var(--primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textGradientShift 8s linear infinite;
}
@keyframes textGradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ---- STAGGER CLASSES (JS adds .stagger-in to parent) ---- */
.stagger-in > * {
    opacity: 0;
    transform: translateY(14px);
    animation: staggerItem 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.12s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.19s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.26s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.33s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.40s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.47s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.54s; }
@keyframes staggerItem {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- FEATURE CARD "GLOW FOLLOW" ---- */
.feature-card {
    --mx: 50%;
    --my: 50%;
}
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(200px circle at var(--mx) var(--my), rgba(108,99,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}
.feature-card:hover::after { opacity: 1; }

/* ---- FAQ item press feedback ---- */
.faq-question { user-select: none; transition: background 0.2s ease, padding-left 0.25s ease; }
.faq-item:hover .faq-question { padding-left: 28px; }

/* ---- PAGE FADE-IN for auth/dashboard content ---- */
.auth-card {
    animation: authPop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
@keyframes authPop {
    0%   { opacity: 0; transform: translateY(16px) scale(0.97); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.005); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card .form-group,
.auth-card .btn,
.auth-card .form-link { animation: authFieldIn 0.5s ease both; }
.auth-card .form-group:nth-of-type(1) { animation-delay: 0.15s; }
.auth-card .form-group:nth-of-type(2) { animation-delay: 0.25s; }
.auth-card .form-group:nth-of-type(3) { animation-delay: 0.35s; }
.auth-card .btn { animation-delay: 0.45s; }
.auth-card .form-link { animation-delay: 0.55s; }
@keyframes authFieldIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- SCROLL-TO-TOP BUTTON ---- */
.scroll-top {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(108,99,255,0.35);
    cursor: pointer;
    z-index: 9998;
    border: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.scroll-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(108,99,255,0.45);
}
.scroll-top:active { transform: translateY(0) scale(0.96); }

/* ---- TABLE ROW HOVER SHIFT ---- */
.admin-table tbody tr,
table tbody tr { transition: background-color 0.2s ease, transform 0.2s ease; }
.admin-table tbody tr:hover,
table tbody tr:hover { transform: translateX(2px); }

/* ---- COPY-FRIENDLY CODE/ID CHIP ---- */
.id-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #F3F4F6;
    color: var(--text-light);
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.id-chip:hover { background: rgba(108,99,255,0.12); color: var(--primary); }

/* ---- EMPTY STATE, ANIMATED ILLUSTRATION ---- */
.empty-state i,
.admin-empty-state i {
    animation: emptyFloat 3.2s ease-in-out infinite;
}
@keyframes emptyFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ---- SESSION CARD gradient border ---- */
.session-card { position: relative; isolation: isolate; }
.session-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(108,99,255,0.25), rgba(200,255,0,0.25));
    -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}
.session-card:hover::before { opacity: 1; }

/* ---- NAVBAR scroll-hide on down, show on up (optional) ---- */
.navbar.is-hidden { transform: translateY(-100%); }
.navbar { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }

/* ---- SHIMMER skeleton for dashboards ---- */
.sk-line, .sk-circle, .sk-block {
    background: linear-gradient(90deg, #EEF1F6 25%, #F7F8FB 50%, #EEF1F6 75%);
    background-size: 200% 100%;
    animation: skShimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}
.sk-line   { height: 12px; width: 100%; }
.sk-circle { width: 40px; height: 40px; border-radius: 50%; }
.sk-block  { height: 120px; width: 100%; }
@keyframes skShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- RESPONSIVE TWEAKS ---- */
@media (max-width: 768px) {
    .toast-host { top: 80px; right: 12px; left: 12px; }
    .toast { min-width: 0; max-width: 100%; }
    .scroll-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-progress { transition: none; }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
    .blob { animation: none; }
    .logo-scroll { animation: none; }
    .floating-card { animation: none; }
    .cta-section { animation: none; background-size: 100% 100%; }
    html { scroll-behavior: auto; }

    /* v2 additions opt-out */
    .btn-primary::before, .btn-accent::before { display: none; }
    .sheen::after { display: none; }
    .text-gradient { animation: none; background: var(--primary); -webkit-background-clip: initial; color: var(--primary); }
    .stagger-in > * { opacity: 1; transform: none; animation: none; }
    .auth-card, .auth-card .form-group, .auth-card .btn, .auth-card .form-link { animation: none; }
    .empty-state i, .admin-empty-state i { animation: none; }
    .toast { animation: none; transform: none; opacity: 1; }
    .sk-line, .sk-circle, .sk-block { animation: none; }
}
