/* --- Nova Design System (Modern & Dynamic) --- */
@import url('css/all.min.css');

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('fonts/outfit.woff2') format('woff2');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/manrope.woff2') format('woff2');
}

:root {
    /* Core Palette */
    --bg-base: #0a0a0f;
    --bg-surface: #12121a;
    --bg-elevated: #1a1a2e;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-cream: var(--bg-base);
    --bg-white: var(--bg-surface);
    --bg-soft-violet: var(--bg-elevated);

    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;

    /* Accent Gradient */
    --accent-violet: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-violet-light: rgba(139, 92, 246, 0.15);
    --accent-peach: rgba(251, 146, 60, 0.2);
    --accent-sage: rgba(34, 197, 94, 0.15);

    --gradient-main: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
    --gradient-hover: linear-gradient(135deg, #a78bfa, #60a5fa, #22d3ee);
    --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));

    /* Structural */
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 12px;

    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.15);

    /* Border */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(139, 92, 246, 0.3);

    /* Fonts */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light theme */
[data-theme="light"] {
    --bg-base: #f8f9fc;
    --bg-surface: #ffffff;
    --bg-elevated: #f0f1f5;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-cream: var(--bg-base);
    --bg-white: var(--bg-surface);
    --bg-soft-violet: var(--bg-elevated);

    --text-primary: #1a1a2e;
    --text-secondary: #64648a;

    --accent-violet-light: rgba(139, 92, 246, 0.1);

    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(139, 92, 246, 0.12);
    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.08);

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(139, 92, 246, 0.25);
}

/* Dark mode compat (maps to default dark) */
[data-theme="dark"] {
    --bg-base: #0a0a0f;
    --bg-surface: #12121a;
    --bg-elevated: #1a1a2e;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-cream: var(--bg-base);
    --bg-white: var(--bg-surface);
    --bg-soft-violet: var(--bg-elevated);

    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;

    --accent-violet: #a78bfa;
    --accent-violet-light: rgba(139, 92, 246, 0.15);

    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.15);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(139, 92, 246, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-out-expo);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 24px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* Gradient text utility */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
/* Ensure cards beyond #12 are also shown */
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border-radius: var(--radius-s);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out-expo);
    border: none;
    cursor: pointer;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-soft {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-soft:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

/* --- Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 30px 0;
}

.card {
    background: var(--bg-surface);
    border-radius: var(--radius-l);
    padding: 32px;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Gradient border glow on hover */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-l);
    padding: 1px;
    background: var(--gradient-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    pointer-events: none;
}

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

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-violet-light);
    color: var(--accent-violet);
    border-radius: var(--radius-s);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: all 0.4s var(--ease-spring);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.card-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-violet);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.card-link i {
    transition: transform 0.3s var(--ease-spring);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* --- Navigation (Glass Pill) --- */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 900px;
    z-index: 99999;
    transition: all 0.4s var(--ease-out-expo);
}

.nav-wrapper.scrolled {
    top: 12px;
}

.nav-pill {
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 6px 8px;
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-pill {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--text-primary);
}

.nav-brand i {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.25s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.08);
}

.nav-link.active {
    background: var(--gradient-main);
    color: #fff;
    font-weight: 600;
}

.nav-cta {
    background: var(--gradient-main);
    color: white !important;
}

.nav-cta:hover {
    opacity: 0.9;
}

/* Mobile Nav */
.mobile-toggle {
    display: none;
    font-size: 1.3rem;
    padding: 10px 18px;
    cursor: pointer;
    color: var(--text-primary);
}

@media (max-width: 850px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-pill.open + .mobile-menu {
        display: flex;
    }
}

.mobile-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-hover);
    display: none;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-subtle);
    animation: slideDown 0.3s var(--ease-out-expo);
}

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

.mobile-link {
    padding: 14px 20px;
    border-radius: var(--radius-s);
    background: var(--bg-elevated);
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s;
}

.mobile-link:hover {
    background: var(--accent-violet-light);
    color: var(--accent-violet);
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

/* Animated mesh gradient background */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
    top: -200px;
    left: -200px;
    animation: pulse 8s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.4;
    }
    33% {
        transform: scale(1.1) translate(20px, -20px);
        opacity: 0.5;
    }
    66% {
        transform: scale(0.95) translate(-10px, 10px);
        opacity: 0.35;
    }
}

/* Noise texture overlay for depth */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* Grid lines background effect */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    z-index: 0;
}

/* --- Chat Widget --- */
.chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: var(--bg-surface);
    border-radius: var(--radius-l);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 900;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    animation: chatSlideUp 0.4s var(--ease-out-expo);
}

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

.chat-window.open {
    display: flex;
}

.chat-header {
    padding: 20px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title h4 {
    margin-bottom: 2px;
    font-size: 1rem;
}

.chat-title span {
    font-size: 0.75rem;
    color: var(--accent-violet);
    font-weight: 500;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-base);
}

.msg {
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.5;
    animation: msgFadeIn 0.3s var(--ease-out-expo);
}

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

.msg.left {
    background: var(--bg-elevated);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid var(--border-subtle);
}

.msg.right {
    background: var(--gradient-main);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-footer {
    padding: 16px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-base);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.chat-input:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-spring);
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.1);
}

/* --- Badges --- */
.badge {
    background: var(--accent-peach);
    color: #fb923c;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.badge.blue {
    background: var(--accent-violet-light);
    color: var(--accent-violet);
}

/* --- Filters (Event page) --- */
.filter-section {
    margin-bottom: 40px;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.search-input {
    width: 100%;
    padding: 16px 24px 16px 52px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    outline: none;
    transition: all 0.3s var(--ease-out-expo);
}

.search-input:focus {
    border-color: var(--accent-violet);
    box-shadow: var(--shadow-hover), 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-violet);
    font-size: 1.1rem;
    pointer-events: none;
}

.quick-filters {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.icon-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-m);
    width: 96px;
    height: 96px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-align: center;
}

.icon-chip i {
    font-size: 1.6rem;
    color: var(--accent-violet);
    margin-bottom: 8px;
    transition: all 0.3s var(--ease-spring);
}

.icon-chip span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.icon-chip:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.icon-chip:hover i {
    transform: scale(1.15);
}

.icon-chip.active {
    background: var(--gradient-main);
    border-color: transparent;
}

.icon-chip.active i,
.icon-chip.active span {
    color: white;
}

.filter-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
    margin-left: 4px;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.chip {
    padding: 9px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    outline: none;
    white-space: nowrap;
}

.chip:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.chip.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.filter-toggle-btn {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-m);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.filter-toggle-btn:hover {
    border-color: var(--border-hover);
}

.filter-dropdown {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-hover);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeIn 0.3s var(--ease-out-expo);
    border: 1px solid var(--border-subtle);
}

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

/* --- Event-specific --- */
.event-date {
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.meta-row i {
    color: var(--accent-violet);
    opacity: 0.8;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .filter-row::-webkit-scrollbar {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 24px;
    }

    .hero {
        min-height: 50vh;
        padding-top: 100px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .chat-window {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 90px;
        height: 70vh;
    }
}

/* --- Global Search Modal (Cmd+K) --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out-expo);
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-modal {
    width: 100%;
    max-width: 580px;
    background: var(--bg-surface);
    border-radius: var(--radius-l);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: translateY(-20px) scale(0.96);
    transition: transform 0.3s var(--ease-out-expo);
    border: 1px solid var(--border-subtle);
}

.search-overlay.active .search-modal {
    transform: translateY(0) scale(1);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 14px;
}

.search-header i {
    color: var(--accent-violet);
    font-size: 1.1rem;
}

.search-header input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
}

.search-header input::placeholder {
    color: var(--text-secondary);
}

.search-esc {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.search-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px;
}

.search-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

.search-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 14px;
    border-radius: var(--radius-s);
    cursor: pointer;
    transition: background 0.15s;
}

.search-item.active {
    background: var(--accent-violet-light);
}

.search-item i:first-child {
    font-size: 1.1rem;
    color: var(--text-secondary);
    width: 22px;
    text-align: center;
}

.search-item.active i:first-child {
    color: var(--accent-violet);
}

.search-item-text {
    flex: 1;
}

.search-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-item.active .search-item-title {
    color: var(--accent-violet);
}

.search-item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.enter-icon {
    font-size: 0.75rem;
    color: var(--accent-violet);
    opacity: 0;
    transition: opacity 0.2s;
}

.search-item.active .enter-icon {
    opacity: 1;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}

/* --- Page load animation --- */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease-out;
}

/* --- Glow line divider utility --- */
.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-violet), var(--accent-blue), transparent);
    opacity: 0.3;
    margin: 40px 0;
}

/* --- Status indicator (for admin cards) --- */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    margin-right: 6px;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* --- Floating particles (JS controlled) --- */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: var(--accent-violet);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    10% { opacity: 0.6; transform: scale(1); }
    90% { opacity: 0.1; }
    100% { opacity: 0; transform: translateY(-100vh) scale(0); }
}

/* --- Admin Link Editor --- */
.admin-edit-toggle {
    position: fixed;
    left: 20px;
    bottom: 24px;
    height: 48px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 0 16px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
    z-index: 920;
    box-shadow: var(--shadow-soft);
}

.admin-edit-toggle:hover {
    border-color: var(--border-hover);
}

.admin-edit-panel {
    position: fixed;
    left: 20px;
    bottom: 80px;
    width: min(520px, calc(100vw - 32px));
    max-height: 72vh;
    overflow: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-m);
    padding: 14px;
    z-index: 930;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
    display: none;
}

.admin-edit-panel.open {
    display: block;
}

.admin-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.admin-edit-header h3 {
    font-size: 1rem;
    margin: 0;
}

.admin-edit-close {
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
}

.admin-edit-status {
    font-size: 0.82rem;
    margin: 0 0 8px;
    color: var(--text-secondary);
}

.admin-edit-status.error {
    color: #ef5350;
}

.admin-edit-list {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-edit-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 8px;
}

.admin-edit-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.88rem;
    padding: 9px 10px;
}

.admin-edit-input:focus {
    outline: none;
    border-color: var(--accent-violet);
}

.admin-edit-remove,
.admin-edit-save {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    min-height: 36px;
    padding: 0 12px;
    color: var(--text-primary);
    background: var(--bg-elevated);
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
}

.admin-edit-remove {
    color: #f87171;
}

.admin-edit-save {
    background: var(--gradient-main);
    color: #fff;
    border: none;
}

.admin-edit-add {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
}

.admin-edit-empty {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 6px 0;
}

.admin-edit-mode .card {
    cursor: grab;
}

.admin-edit-mode .card.is-dragging {
    opacity: 0.45;
}

@media (max-width: 768px) {
    .admin-edit-toggle {
        left: 12px;
        bottom: 14px;
    }

    .admin-edit-panel {
        left: 12px;
        bottom: 70px;
        width: calc(100vw - 24px);
        max-height: 66vh;
    }
}

/* --- Admin Link Editor: Save Feedback Enhancements --- */
.admin-edit-panel {
    overflow: auto;
}

.admin-edit-status {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 600;
}

.admin-edit-status.is-info {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(59, 130, 246, 0.14);
}

.admin-edit-status.is-success {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.admin-edit-status.is-warning {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
}

.admin-edit-status.is-error {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

.admin-edit-save:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.admin-edit-save.is-saving {
    position: relative;
    padding-left: 34px;
}

.admin-edit-save.is-saving::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: adminSpin 0.8s linear infinite;
}

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