﻿/* ══════════════════════════════════════════════════════
   EventsCast — Design System v4.0
   Theme clair, élégant, streaming-ready, 100% responsive
   Inspiré d'EventsLink, adapté au streaming
   ══════════════════════════════════════════════════════ */

/* --- Variables --- */
:root {
    --ec-primary: #38b6ff;
    --ec-primary-light: #6cc9ff;
    --ec-primary-dark: #1a9de0;
    --ec-accent: #6C5CE7;
    --ec-accent-light: #a29bfe;
    --ec-accent-dark: #5241c5;
    --ec-live: #FF3B5C;
    --ec-live-glow: rgba(255, 59, 92, .30);
    --ec-success: #00b894;
    --ec-warning: #fdcb6e;
    --ec-danger: #e74c3c;
    --ec-info: #0984e3;

    --ec-white: #FFFFFF;
    --ec-bg: #f8f9fc;
    --ec-bg-alt: #f0f2f7;
    --ec-surface: #ffffff;
    --ec-surface-light: #f4f5f9;
    --ec-card-bg: #ffffff;
    --ec-border: rgba(0, 0, 0, .08);
    --ec-border-light: rgba(0, 0, 0, .05);
    --ec-text: #2c3e50;
    --ec-text-secondary: #4a5568;
    --ec-text-light: #6c757d;
    --ec-text-muted: #a0aec0;

    --ec-gradient: linear-gradient(135deg, #38b6ff 0%, #6C5CE7 100%);
    --ec-gradient-warm: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
    --ec-gradient-live: linear-gradient(135deg, #FF3B5C 0%, #ff6b81 100%);
    --ec-gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --ec-gradient-hero: linear-gradient(135deg, #38b6ff 0%, #6C5CE7 50%, #a29bfe 100%);
    --ec-gradient-glass: linear-gradient(135deg, rgba(56, 182, 255, .06) 0%, rgba(108, 92, 231, .04) 100%);
    --ec-gradient-surface: linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,0) 100%);

    --ec-shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --ec-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    --ec-shadow-md: 0 8px 30px rgba(0, 0, 0, .10);
    --ec-shadow-lg: 0 16px 50px rgba(0, 0, 0, .12);
    --ec-shadow-primary: 0 6px 20px rgba(56, 182, 255, .25);
    --ec-shadow-live: 0 6px 20px rgba(255, 59, 92, .25);
    --ec-shadow-glow: 0 0 30px rgba(56, 182, 255, .08);

    --ec-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ec-radius: 12px;
    --ec-radius-lg: 16px;
    --ec-radius-full: 50px;
    --ec-transition: .3s cubic-bezier(.25, .8, .25, 1);

    --ec-header-h: 68px;
    --ec-container: 1280px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ec-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ec-text);
    background: var(--ec-bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: var(--ec-primary);
    text-decoration: none;
    transition: color var(--ec-transition);
}

a:hover {
    color: var(--ec-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

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

/* --- Container --- */
.ec-container {
    max-width: var(--ec-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation (EventsLink-inspired v4)
   ============================================ */
.ec-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--ec-transition);
    backdrop-filter: blur(10px);
}

.ec-header.scrolled {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    background-color: rgba(255, 255, 255, .97);
}

.ec-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

/* Logo */
.ec-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--ec-transition);
    flex-shrink: 0;
}

.ec-logo:hover {
    transform: scale(1.03);
}

.ec-logo-img {
    height: 50px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
}

/* Desktop Nav */
.ec-nav {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.ec-nav-link {
    text-decoration: none;
    color: var(--ec-text);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--ec-transition);
    position: relative;
    padding: 8px 0;
}

.ec-nav-link:hover {
    color: var(--ec-primary);
    transform: translateY(-2px);
}

.ec-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--ec-primary);
    transition: width .3s ease;
    border-radius: 2px;
}

.ec-nav-link:hover::after {
    width: 100%;
}

.ec-nav-link.active {
    color: var(--ec-primary);
}

.ec-nav-link.active::after {
    width: 100%;
}

/* Nav Buttons (desktop right) */
.ec-nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* User Menu (desktop) */
.ec-user-menu {
    position: relative;
}

.ec-user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: white;
    border: 2px solid var(--ec-border);
    border-radius: var(--ec-radius-full);
    cursor: pointer;
    transition: all var(--ec-transition);
    font-size: .95rem;
    font-weight: 600;
    color: var(--ec-text);
}

.ec-user-menu-btn:hover {
    border-color: var(--ec-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 182, 255, .2);
}

.ec-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ec-primary) 0%, #1a9de0 100%);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.ec-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-size: .9rem;
}

.ec-user-menu-btn .fa-chevron-down {
    font-size: .6rem;
    color: var(--ec-text-muted);
    transition: transform var(--ec-transition);
}

.ec-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s ease;
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
}

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

.ec-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--ec-text);
    font-weight: 500;
    font-size: .9rem;
    transition: all var(--ec-transition);
}

.ec-user-dropdown-item:first-child {
    margin-top: 4px;
}

.ec-user-dropdown-item:last-child {
    margin-bottom: 4px;
}

.ec-user-dropdown-item:hover {
    background-color: var(--ec-bg);
    color: var(--ec-primary);
    transform: translateX(4px);
}

.ec-user-dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--ec-text-muted);
    font-size: .85rem;
}

.ec-user-dropdown-item:hover i {
    color: var(--ec-primary);
}

/* ============================================
   Mobile Menu Button
   ============================================ */
.ec-mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, var(--ec-primary) 0%, #1a9de0 100%);
    border: none;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    z-index: 998;
    transition: all .3s ease;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(56, 182, 255, .3);
    align-items: center;
    justify-content: center;
}

.ec-mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(56, 182, 255, .4);
}

body.menu-open .ec-mobile-menu-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   Mobile Overlay
   ============================================ */
.ec-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, .7) 0%, rgba(56, 182, 255, .1) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    opacity: 0;
    transition: opacity .4s ease;
}

.ec-mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   Mobile Menu (slide-in panel)
   ============================================ */
.ec-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 88%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    z-index: 1200;
    transition: right .5s cubic-bezier(.23, 1, .32, 1);
    box-shadow: -15px 0 60px rgba(0, 0, 0, .15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ec-mobile-menu.active {
    right: 0;
}

/* ============================================
   Mobile Header (branded gradient)
   ============================================ */
.ec-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--ec-primary) 0%, #1a9de0 100%);
    position: relative;
    min-height: 70px;
}

.ec-mobile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF6B35, #FFD700);
    background-size: 300% 100%;
    animation: ec-shimmer 3s linear infinite;
}

@keyframes ec-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.ec-mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ec-mobile-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.ec-mobile-logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    letter-spacing: -.5px;
}

.ec-mobile-logo-text span {
    color: #FFD700;
}

.ec-mobile-close {
    background: rgba(255, 255, 255, .15);
    border: 2px solid rgba(255, 255, 255, .3);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-mobile-close:hover {
    background: rgba(255, 255, 255, .25);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, .5);
}

/* ============================================
   Mobile User Section
   ============================================ */
.ec-mobile-user-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(56, 182, 255, .08) 0%, rgba(56, 182, 255, .02) 100%);
    border-bottom: 1px solid rgba(56, 182, 255, .1);
}

.ec-mobile-user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ec-primary) 0%, #1a9de0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(56, 182, 255, .3);
    flex-shrink: 0;
}

.ec-mobile-user-avatar span {
    font-size: 1.2rem;
}

.ec-mobile-guest-avatar {
    background: var(--ec-bg-alt);
    color: var(--ec-text-muted);
    box-shadow: none;
}

.ec-mobile-user-info-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ec-mobile-user-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ec-text);
}

.ec-mobile-user-role {
    font-size: .78rem;
    color: var(--ec-text-muted);
}

.ec-mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ec-mobile-user-greeting {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ec-text);
}

.ec-mobile-user-cta {
    font-size: .8rem;
    color: var(--ec-text-muted);
    line-height: 1.3;
}

/* ============================================
   Mobile Nav Items (card-style, animated)
   ============================================ */
.ec-mobile-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.ec-mobile-nav {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.ec-mobile-nav li {
    margin-bottom: 4px;
    opacity: 0;
    transform: translateX(30px);
    animation: ec-slideInMenu .4s ease forwards;
}

.ec-mobile-menu.active .ec-mobile-nav li:nth-child(1) { animation-delay: .1s; }
.ec-mobile-menu.active .ec-mobile-nav li:nth-child(2) { animation-delay: .15s; }
.ec-mobile-menu.active .ec-mobile-nav li:nth-child(3) { animation-delay: .2s; }
.ec-mobile-menu.active .ec-mobile-nav li:nth-child(4) { animation-delay: .25s; }
.ec-mobile-menu.active .ec-mobile-nav li:nth-child(5) { animation-delay: .3s; }

@keyframes ec-slideInMenu {
    to { opacity: 1; transform: translateX(0); }
}

.ec-mobile-nav li a {
    text-decoration: none;
    color: var(--ec-text);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all .3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    border: 1px solid transparent;
}

.ec-mobile-nav li a:hover,
.ec-mobile-nav li a:active,
.ec-mobile-nav li a.active {
    background: linear-gradient(135deg, rgba(56, 182, 255, .08) 0%, rgba(56, 182, 255, .03) 100%);
    border-color: rgba(56, 182, 255, .2);
    transform: translateX(5px);
}

.ec-mnav-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(56, 182, 255, .1) 0%, rgba(56, 182, 255, .05) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ec-primary);
    font-size: 1rem;
    margin-right: 12px;
    transition: all .3s ease;
}

.ec-mnav-text {
    flex: 1;
}

.ec-mnav-arrow {
    color: var(--ec-text-muted);
    font-size: .8rem;
    transition: all .3s ease;
}

.ec-mobile-nav li a:hover .ec-mnav-icon,
.ec-mobile-nav li a.active .ec-mnav-icon {
    background: var(--ec-primary);
    color: white;
}

.ec-mobile-nav li a:hover .ec-mnav-arrow {
    color: var(--ec-primary);
    transform: translateX(3px);
}

/* ============================================
   Mobile Divider & Buttons
   ============================================ */
.ec-mobile-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 182, 255, .2) 50%, transparent 100%);
    margin: 16px 0;
}

.ec-mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ec-mobile-nav-buttons .ec-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: .95rem;
    border-radius: 12px;
    justify-content: center;
    gap: 8px;
}

/* ============================================
   Mobile Footer
   ============================================ */
.ec-mobile-footer {
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(56, 182, 255, .03) 0%, rgba(56, 182, 255, .08) 100%);
    border-top: 1px solid rgba(56, 182, 255, .1);
}

.ec-mobile-footer-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.ec-mobile-footer-actions .ec-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: .85rem;
    border-radius: 8px;
}

.ec-mobile-copyright {
    text-align: center;
    font-size: .75rem;
    color: var(--ec-text-muted);
    padding-top: 10px;
    border-top: 1px solid rgba(56, 182, 255, .1);
}

/* --- Main --- */
.ec-main {
    margin-top: var(--ec-header-h);
    min-height: calc(100vh - var(--ec-header-h));
}

/* ============================================
   Page Banners (bandeau haut de page)
   ============================================ */
.ec-page-banner {
    position: relative;
    padding: 60px 0 50px;
    overflow: hidden;
    text-align: center;
}

.ec-page-banner--compact {
    padding: 40px 0 32px;
}

/* Background shapes */
.ec-page-banner-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ec-page-banner-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .15;
}

.ec-page-banner-shape--1 {
    width: 400px;
    height: 400px;
    top: -180px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, .3) 0%, transparent 70%);
}

.ec-page-banner-shape--2 {
    width: 300px;
    height: 300px;
    bottom: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, .2) 0%, transparent 70%);
}

.ec-page-banner-shape--3 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 60%;
    background: radial-gradient(circle, rgba(255, 215, 0, .15) 0%, transparent 70%);
}

/* Variants */
.ec-page-banner--primary {
    background: linear-gradient(135deg, var(--ec-primary) 0%, #1a9de0 50%, #0984e3 100%);
}

.ec-page-banner--accent {
    background: linear-gradient(135deg, var(--ec-accent) 0%, #5241c5 50%, #38b6ff 100%);
}

.ec-page-banner--gradient {
    background: var(--ec-gradient-hero);
}

.ec-page-banner--dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #4a5568 100%);
}

.ec-page-banner--live {
    background: var(--ec-gradient-live);
}

/* Content */
.ec-page-banner-content {
    position: relative;
    z-index: 2;
}

.ec-page-banner-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    color: white;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    backdrop-filter: blur(6px);
}

.ec-page-banner-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.ec-page-banner-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.ec-page-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--ec-radius-full);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    backdrop-filter: blur(4px);
}

/* Responsive banner */
@media (max-width: 768px) {
    .ec-page-banner {
        padding: 40px 0 32px;
    }
    .ec-page-banner--compact {
        padding: 28px 0 22px;
    }
    .ec-page-banner-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        margin-bottom: 14px;
    }
    .ec-page-banner-title {
        font-size: 1.5rem;
    }
    .ec-page-banner-subtitle {
        font-size: .95rem;
    }
}

@media (max-width: 480px) {
    .ec-page-banner-title {
        font-size: 1.3rem;
    }
    .ec-page-banner-subtitle {
        font-size: .88rem;
    }
}

/* --- Buttons --- */
.ec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--ec-radius-full);
    font-weight: 600;
    font-size: .9rem;
    transition: all var(--ec-transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.ec-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    opacity: 0;
    transition: left .5s;
    left: -100%;
}

.ec-btn:hover::before {
    opacity: 1;
    left: 100%;
}

.ec-btn-primary {
    background: var(--ec-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(56, 182, 255, .3);
}

.ec-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(56, 182, 255, .4);
    background: var(--ec-primary-dark);
    color: #fff;
}

.ec-btn-live {
    background: var(--ec-gradient-live);
    color: #fff;
    box-shadow: var(--ec-shadow-live);
}

.ec-btn-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 59, 92, .45);
    color: #fff;
}

.ec-btn-outline {
    background: transparent;
    color: var(--ec-primary);
    border: 2px solid var(--ec-primary);
}

.ec-btn-outline:hover {
    background: var(--ec-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(56, 182, 255, .3);
}

.ec-btn-white {
    background: #fff;
    color: var(--ec-primary-dark);
    box-shadow: var(--ec-shadow);
}

.ec-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--ec-shadow-md);
    color: var(--ec-primary-dark);
}

.ec-btn-ghost {
    background: rgba(56, 182, 255, .08);
    color: var(--ec-primary);
    border: 1px solid rgba(56, 182, 255, .2);
}

.ec-btn-ghost:hover {
    background: rgba(56, 182, 255, .15);
    color: var(--ec-primary-dark);
    border-color: rgba(56, 182, 255, .35);
}

.ec-btn-sm {
    padding: 7px 16px;
    font-size: .82rem;
}

.ec-btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.ec-btn-xl {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.ec-btn-block {
    width: 100%;
    justify-content: center;
}

/* --- Cards --- */
.ec-card {
    display: flex;
    flex-direction: column;
    background: var(--ec-card-bg);
    border-radius: var(--ec-radius-lg);
    overflow: hidden;
    box-shadow: var(--ec-shadow-sm);
    border: 1px solid var(--ec-border);
    transition: all .35s cubic-bezier(.25, .8, .25, 1);
    color: var(--ec-text);
    text-decoration: none;
    position: relative;
}

.ec-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--ec-radius-lg);
    background: var(--ec-gradient-surface);
    pointer-events: none;
    z-index: 1;
}

.ec-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ec-shadow-lg);
    color: var(--ec-text);
    border-color: rgba(56, 182, 255, .2);
}

.ec-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: var(--ec-bg-alt);
    overflow: hidden;
}

.ec-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ec-card:hover .ec-card-img {
    transform: scale(1.05);
}

.ec-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.ec-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ec-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(56, 182, 255, .4);
    opacity: 0;
    transition: all var(--ec-transition);
    pointer-events: none;
    z-index: 3;
    backdrop-filter: blur(8px);
}

.ec-card:hover .ec-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.ec-card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.ec-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ec-text);
}

.ec-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .82rem;
    color: var(--ec-text-muted);
}

.ec-card-meta i {
    margin-right: 3px;
}

.ec-card-actions {
    margin-top: auto;
    padding-top: 8px;
}

/* Card live pulse */
.ec-card-live {
    border: 2px solid var(--ec-live);
    animation: liveCardPulse 2.5s ease-in-out infinite;
}

@keyframes liveCardPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--ec-live-glow); }
    50% { box-shadow: 0 0 25px 6px var(--ec-live-glow); }
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--ec-radius-full);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    pointer-events: auto;
}

.badge-live {
    background: var(--ec-live);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 59, 92, .4);
}

.badge-live .fa-circle {
    font-size: .45rem;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

.badge-success {
    background: rgba(0, 184, 148, .1);
    color: var(--ec-success);
    border: 1px solid rgba(0, 184, 148, .2);
}

.badge-info {
    background: rgba(9, 132, 227, .1);
    color: var(--ec-info);
    border: 1px solid rgba(9, 132, 227, .2);
}

.badge-warning {
    background: rgba(253, 203, 110, .2);
    color: #d68910;
    border: 1px solid rgba(253, 203, 110, .3);
}

.badge-danger {
    background: rgba(231, 76, 60, .1);
    color: var(--ec-danger);
    border: 1px solid rgba(231, 76, 60, .2);
}

.badge-dark {
    background: rgba(44, 62, 80, .08);
    color: var(--ec-text-secondary);
}

.badge-secondary {
    background: var(--ec-bg-alt);
    color: var(--ec-text-light);
    border: 1px solid var(--ec-border);
}

.badge-gradient {
    background: var(--ec-gradient);
    color: #fff;
}

/* --- Viewers / Price --- */
.ec-viewers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    border-radius: var(--ec-radius-full);
    font-size: .75rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.ec-price {
    padding: 4px 10px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    border-radius: var(--ec-radius-full);
    font-size: .8rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.ec-price-free {
    background: rgba(0, 214, 143, .85);
}

/* --- Grid --- */
.ec-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ec-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ec-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ec-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* --- Section --- */
.ec-section {
    padding: 60px 0;
}

.ec-section-title {
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ec-text);
    position: relative;
    padding-left: 18px;
}

.ec-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: var(--ec-gradient);
    border-radius: 2px;
}

.ec-section-title i {
    color: var(--ec-primary);
}

.ec-section-subtitle {
    color: var(--ec-text-light);
    font-size: 1.05rem;
    margin-top: 6px;
    padding-left: 18px;
}

.ec-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

/* --- Filters --- */
.ec-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.ec-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--ec-radius-full);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ec-text-light);
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    transition: all var(--ec-transition);
    cursor: pointer;
}

.ec-filter-btn:hover {
    border-color: rgba(56, 182, 255, .3);
    color: var(--ec-primary);
    background: rgba(56, 182, 255, .06);
}

.ec-filter-btn.active {
    background: var(--ec-primary);
    color: #fff;
    border-color: var(--ec-primary);
    box-shadow: var(--ec-shadow-primary);
}

.ec-filter-count {
    background: rgba(255, 255, 255, .2);
    padding: 1px 7px;
    border-radius: 50px;
    font-size: .75rem;
}

.ec-filter-btn:not(.active) .ec-filter-count {
    background: rgba(255, 255, 255, .06);
}

/* --- Empty State --- */
.ec-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--ec-surface);
    border: 2px dashed var(--ec-border);
    border-radius: var(--ec-radius-lg);
}

.ec-empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(56, 182, 255, .1) 0%, rgba(108, 92, 231, .08) 100%);
    color: var(--ec-primary);
    border-radius: 20px;
    font-size: 2rem;
    margin: 0 auto 20px;
    border: 1px solid rgba(56, 182, 255, .15);
}

.ec-empty h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ec-text);
}

.ec-empty p {
    color: var(--ec-text-light);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Live Dots --- */
.ec-live-dot {
    width: 12px;
    height: 12px;
    background: var(--ec-live);
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px var(--ec-live-glow), 0 0 16px var(--ec-live-glow);
}

.ec-live-dot-sm {
    width: 8px;
    height: 8px;
    background: var(--ec-live);
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.5s ease-in-out infinite;
}

/* --- Footer --- */
.ec-footer {
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    border-top: 1px solid var(--ec-border);
    padding: 56px 0 0;
    position: relative;
}

.ec-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ec-gradient);
}

.ec-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

/* Logo column */
.ec-footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    transition: transform var(--ec-transition);
}

.ec-footer-logo:hover {
    transform: scale(1.05);
}

.ec-footer-logo-img {
    height: 55px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
}

.ec-footer-tagline {
    color: var(--ec-text-light);
    font-size: .9rem;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 20px;
}

.ec-footer-socials {
    display: flex;
    gap: 10px;
}

.ec-footer-socials a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(56, 182, 255, .08);
    color: var(--ec-primary);
    font-size: .95rem;
    transition: all var(--ec-transition);
}

.ec-footer-socials a:hover {
    background: var(--ec-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(56, 182, 255, .3);
}

/* Link columns */
.ec-footer-links h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ec-text);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.ec-footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    background: var(--ec-primary);
    border-radius: 2px;
}

.ec-footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ec-footer-links li {
    margin-bottom: 6px;
}

.ec-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ec-text-light);
    font-size: .9rem;
    padding: 5px 0;
    transition: all var(--ec-transition);
}

.ec-footer-links a i {
    font-size: .75rem;
    color: var(--ec-text-muted);
    transition: color var(--ec-transition);
    width: 14px;
    text-align: center;
}

.ec-footer-links a:hover {
    color: var(--ec-primary);
    transform: translateX(4px);
}

.ec-footer-links a:hover i {
    color: var(--ec-primary);
}

/* Bottom bar */
.ec-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--ec-border);
    text-align: center;
    color: var(--ec-text-muted);
    font-size: .85rem;
}

.ec-footer-bottom a {
    color: var(--ec-primary);
    font-weight: 500;
}

.ec-footer-bottom a:hover {
    text-decoration: underline;
}

/* Footer compact */
.ec-footer-compact {
    background: #fff;
    border-top: 1px solid var(--ec-border);
    padding: 20px 0;
    text-align: center;
    color: var(--ec-text-muted);
    font-size: .85rem;
}

.ec-footer-compact a {
    color: var(--ec-primary);
}

/* --- Forms --- */
.ec-form-group {
    margin-bottom: 18px;
}

.ec-form-group label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: 6px;
    color: var(--ec-text-secondary);
}

.ec-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ec-border);
    border-radius: var(--ec-radius);
    font-size: .95rem;
    color: var(--ec-text);
    background: #fff;
    transition: border-color var(--ec-transition), box-shadow var(--ec-transition), background var(--ec-transition);
}

.ec-input:focus {
    outline: none;
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 4px rgba(56, 182, 255, .1);
    background: #fff;
}

.ec-input::placeholder {
    color: var(--ec-text-muted);
}

.ec-input-icon-wrap {
    position: relative;
}

.ec-input-icon-wrap .ec-input {
    padding-left: 44px;
}

.ec-input-icon-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ec-text-muted);
    font-size: .9rem;
}

/* Compat alias */
.ec-input-icon {
    position: relative;
}

.ec-input-icon .ec-input {
    padding-left: 44px;
}

.ec-input-icon>i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ec-text-muted);
    font-size: .9rem;
    pointer-events: none;
}

.ec-label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: 6px;
    color: var(--ec-text-secondary);
}

/* --- Alerts --- */
.ec-alert {
    padding: 14px 18px;
    border-radius: var(--ec-radius);
    font-size: .9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.ec-alert-danger {
    background: rgba(231, 76, 60, .08);
    color: var(--ec-danger);
    border: 1px solid rgba(231, 76, 60, .15);
}

.ec-alert-success {
    background: rgba(0, 184, 148, .08);
    color: var(--ec-success);
    border: 1px solid rgba(0, 184, 148, .15);
}

.ec-alert-info {
    background: rgba(9, 132, 227, .08);
    color: var(--ec-info);
    border: 1px solid rgba(9, 132, 227, .15);
}

/* --- Scroll Reveal --- */
.ec-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .6s cubic-bezier(.25, .46, .45, .94), transform .6s cubic-bezier(.25, .46, .45, .94);
}

.ec-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.ec-reveal-d1 { transition-delay: .1s; }
.ec-reveal-d2 { transition-delay: .2s; }
.ec-reveal-d3 { transition-delay: .3s; }
.ec-reveal-d4 { transition-delay: .4s; }
.ec-reveal-d5 { transition-delay: .5s; }

.ec-hidden {
    display: none !important;
}

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

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .ec-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .ec-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --ec-header-h: 60px;
    }

    .ec-nav {
        display: none;
    }

    .ec-nav-buttons {
        display: none;
    }

    .ec-mobile-menu-btn {
        display: flex;
    }

    .ec-user-menu {
        display: none;
    }

    /* Footer mobile: only logo column + copyright */
    .ec-footer-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ec-footer-links {
        display: none;
    }

    .ec-footer-brand {
        text-align: center;
    }

    .ec-footer-tagline {
        margin: 0 auto 20px;
    }

    .ec-footer-socials {
        justify-content: center;
    }

    .ec-footer {
        padding: 36px 0 0;
    }

    .ec-grid-2,
    .ec-grid-3,
    .ec-grid-4 {
        grid-template-columns: 1fr;
    }

    .ec-events-grid {
        grid-template-columns: 1fr;
    }

    .ec-section {
        padding: 40px 0;
    }

    .ec-section-title {
        font-size: 1.35rem;
    }

    .ec-btn-lg {
        padding: 12px 24px;
        font-size: .92rem;
    }
}

@media (max-width: 480px) {
    .ec-container {
        padding: 0 14px;
    }

    .ec-card-body {
        padding: 12px 14px;
    }

    .ec-section {
        padding: 32px 0;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--ec-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--ec-surface-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ec-text-muted);
}

/* --- Selection --- */
::selection {
    background: rgba(124, 111, 255, .25);
    color: #fff;
}