/* ===== SAYAX ESPORT - MAIN STYLES ===== */

/* CSS Variables - Dark Gaming Theme */
:root {
    /* Primary Colors - Red (slightly transparent for modern look) */
    --primary: rgba(230, 27, 25, 0.95);
    --primary-dark: rgba(184, 22, 20, 0.95);
    --primary-light: rgba(255, 61, 59, 0.95);
    --primary-glow: rgba(230, 27, 25, 0.5);
    
    /* Accent Colors - Blue (slightly transparent) */
    --accent: rgba(60, 74, 199, 0.95);
    --accent-dark: rgba(47, 58, 158, 0.95);
    --accent-glow: rgba(60, 74, 199, 0.5);
    
    /* Neutral Colors (subtle translucency for depth) */
    --bg-dark: rgba(10, 10, 15, 0.98);
    --bg-darker: rgba(5, 5, 8, 0.98);
    --bg-card: rgba(18, 18, 26, 0.90);
    --bg-card-hover: rgba(26, 26, 37, 0.92);
    --bg-elevated: rgba(30, 30, 42, 0.90);
    
    /* Text Colors (softened slightly) */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(160, 160, 176, 0.9);
    --text-muted: rgba(96, 96, 112, 0.8);
    
    /* Borders */
    --border-color: rgba(42, 42, 58, 0.6);
    --border-glow: rgba(255, 70, 85, 0.3);
    
    /* Status Colors (slightly transparent) */
    --success: rgba(0, 255, 136, 0.95);
    --warning: rgba(255, 170, 0, 0.95);
    --error: rgba(255, 68, 68, 0.95);
    --live: rgba(255, 0, 0, 0.95);
    
    /* Sizing */
    --navbar-height: 70px;
    --container-max: 1400px;
    --border-radius: 2px;
    --border-radius-lg: 4px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    border-radius: 2px;
}

/* ===== CONTEXT MENU ===== */
.context-menu {
    position: fixed;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(40, 40, 60, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10010 !important;
    display: none;
    min-width: 180px;
    padding: 8px;
    animation: contextMenuFadeIn 0.2s ease-out;
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.context-menu.show {
    display: block;
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu li {
    padding: 12px 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.context-menu li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.context-menu li:hover {
    /* No hover effect */
}

.context-menu li:hover::before {
    left: 100%;
}

.context-menu li.edit {
    color: #5cd65c; /* vert clair */
    font-weight: 600;
}

.context-menu li.edit:hover {
    background: rgba(92, 214, 92, 0.18); /* fond très léger */
    color: #3ac43a; /* un peu plus soutenu au hover */
}

.context-menu li.delete {
    color: #ff6b6b;
    font-weight: 600;
}

.context-menu li i {
    margin-right: 8px;
    font-size: 1em;
    width: 16px;
    text-align: center;
}

/* ===== HEADER BANNER ===== */
.header-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.6) 50%,
        rgba(10, 10, 15, 0.95) 100%
    );
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.banner-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.banner-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px var(--primary-glow);
    margin-bottom: 10px;
}

.banner-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--navbar-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-logo:hover {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: calc(var(--navbar-height) - 20px);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 20px;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: var(--primary);
    transition: transform var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu {
    position: relative;
    padding-right: 170px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    position: relative;
}

.nav-griffes {
    position: absolute;
    top: 58%;
    left: calc(100% + 240px);
    width: 144px;
    height: auto;
    object-fit: contain;
    transform: translateY(-50%) rotate(-10deg);
    z-index: 5;
}

.user-profile {
    position: relative;
}

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    min-height: 46px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    font-family: 'Rajdhani', sans-serif;
}

.user-profile-btn:hover {
    transform: translateY(-1px);
    background: transparent;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.user-profile-btn .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.user-profile-btn .profile-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-profile-btn .user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-btn .user-role {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}

.user-profile-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}

.user-profile-btn:hover i {
    background: transparent;
    color: var(--text-primary);
}

.user-profile-btn.no-dropdown i,
.user-profile-btn.no-dropdown .fa-chevron-down {
    display: none;
}

.user-profile-btn.no-dropdown {
    padding-right: 14px;
}

.user-profile-btn.no-dropdown:hover {
    background: transparent;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 780px) {
    .user-profile-btn {
        gap: 8px;
        padding: 8px 14px;
        min-height: 42px;
    }

    .user-profile-btn .user-name {
        font-size: 0.85rem;
    }

    .user-profile-btn .user-role {
        display: none;
    }
}

@media (max-width: 520px) {
    .user-profile-btn {
        width: auto;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .user-profile-btn .profile-meta {
        min-width: 0;
    }
}

.user-profile.active .user-profile-btn i {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-top: 8px;
}

.user-profile.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-badges {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.role-badge i {
    font-size: 10px;
}

.dropdown-divider {
    margin: 8px 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition-fast);
    border-radius: 4px;
    margin: 4px;
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-item i {
    color: var(--text-secondary);
    width: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 2px;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 24px;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

#partenaires.section {
    padding-top: 0;
}

.section-dark {
    background: var(--bg-darker);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn-add-partner {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 2px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 18px;
}

.btn-add-partner:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.title-accent {
    width: 40px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 2px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-danger {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(185, 28, 28, 0.3);
}

/* ===== FILE INPUT ===== */
.file-input-container {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.file-input-container:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.file-input-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-text {
    color: var(--text-secondary);
    pointer-events: none;
}

.file-input-text i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: var(--text-muted);
}

.file-input-text strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.file-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== NEWS SECTION ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 380px);
    gap: 30px;
    padding: 0;
    justify-content: center;
}

.news-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.news-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

#news-load-more {
    padding: 14px 30px;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#news-load-more:hover {
    transform: translateY(-2px);
}

#news-load-more.hidden {
    display: none;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ===== MATCH SECTION ===== */
.match-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.match-tab {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.match-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.match-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

.matches-container {
    max-width: 900px;
    margin: 0 auto;
}

.match-panel {
    display: none;
}

.match-panel.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.match-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.match-card:hover::before {
    opacity: 1;
}

.match-card.live {
    border-color: var(--live);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.match-card.win {
    border-color: rgba(0, 255, 136, 0.4);
}

.match-card.loss {
    border-color: rgba(255, 68, 68, 0.4);
}

.match-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    justify-self: start;
}

.match-score {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0.02em;
    text-align: center;
    justify-self: center;
}

.match-result {
    padding: 6px 16px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    justify-self: end;
}

.match-result.win {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.match-result.loss {
    background: rgba(255, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.team img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    transition: transform 0.3s ease;
}

.team img:hover {
    transform: scale(1.05);
}

.team span {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-align: center;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.date-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.map {
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.8;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--live);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.match-result-badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 15px;
}

.match-result-badge.win {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.match-result-badge.loss {
    background: rgba(255, 68, 68, 0.15);
    color: var(--error);
}

.match-tournament {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team .score {
    font-size: 2rem;
    color: var(--primary);
}

.match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.match-vs {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-muted);
}

.match-date,
.match-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.match-map,
.match-map-live,
.match-map-result {
    font-size: 0.85rem;
    color: var(--accent);
    text-align: center;
}

.match-map span {
    color: var(--text-muted);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    margin: 40px auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.modal-content form {
    padding: 20px;
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(230, 27, 25, 0.45);
    border-radius: 10px;
}

.small-modal {
    max-width: 400px;
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.datetime-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .datetime-row {
        grid-template-columns: 1fr;
    }
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

#cropper-modal .modal-content {
    width: 95%;
    max-width: 940px;
    max-height: calc(100vh - 80px);
    margin: 40px auto;
    padding: 20px;
    background: rgba(15, 17, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.cropper-body {
    display: grid;
    grid-template-columns: 1.5fr 0.55fr;
    gap: 18px;
    align-items: start;
}

.cropper-preview {
    width: 100%;
    height: min(640px, calc(100vh - 160px));
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    align-items: center;
    justify-items: center;
}

.cropper-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cropper-toolbar {
    display: grid;
    gap: 10px;
}

.cropper-toolbar .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.cropper-toolbar .btn:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.14);
}

.cropper-toolbar .btn.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.cropper-toolbar .btn.btn-outline {
    border-color: rgba(255, 255, 255, 0.12);
}

.cropper-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.cropper-preview strong {
    font-size: 0.95rem;
    color: var(--accent);
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    margin-left: 4px; /* Margin left for text */
}

.modal-body .partner-name {
    font-weight: 600;
    color: var(--primary);
    margin-left: 4px;
}

#partner-form,
#edit-partner-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 2px; /* Small margin for text */
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select,
.form-group input[type="date"],
.form-group input[type="time"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-fast);
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 18px;
    cursor: pointer;
    padding-right: 48px;
    background-color: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.form-group select:focus {
    background-color: var(--bg-card);
}

.form-group select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.form-group select option:hover,
.form-group select option:focus {
    background-color: rgba(230, 27, 25, 0.16);
    color: var(--text-primary);
}

.form-group select optgroup {
    background-color: var(--bg-card);
    color: var(--text-secondary);
}

.form-group select::-ms-expand {
    display: none;
}

.form-group input[type="date"],
.form-group input[type="time"] {
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 44px;
}

.form-group input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 7v13h16V7M16 3v4M8 3v4'/%3E%3C/svg%3E");
}

.form-group input[type="time"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E");
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 27, 25, 0.1);
    background: var(--bg-primary);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    background: var(--bg-primary);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.form-group input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Custom file input container */
.file-input-container {
    position: relative;
    width: 100%;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    box-sizing: border-box;
}

.file-input-container:hover {
    border-color: var(--primary);
    background: rgba(230, 27, 25, 0.02);
}

.file-input-container.dragover {
    border-color: var(--primary);
    background: rgba(230, 27, 25, 0.05);
}

.file-input-container .file-input-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    pointer-events: none;
}

.file-input-container .file-input-text strong {
    color: var(--text-primary);
}

.file-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 2px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== CALENDRIER MODERNE ===== */
.calendar-container {
    background: linear-gradient(135deg, #181824 60%, #23234a 100%);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(60,74,199,0.18), 0 2px 8px rgba(0,0,0,0.4);
    padding: 28px 24px 18px 24px;
    max-width: 900px;
    min-width: 600px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}
.calendar-nav {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    background: #18181c;
    border: 1px solid #23232a;
    border-radius: 5px;
    color: #fff;
    transition: background 0.18s, color 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px #0006;
    cursor: pointer;
}
.calendar-nav:hover {
    background: #23232a;
    color: var(--primary);
    transform: scale(1.08);
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #a0a0b0;
    font-size: 1.05em;
}
.calendar-weekdays span {
    text-align: center;
    padding: 4px 0;
}
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.calendar-day {
    background: #23234a;
    border-radius: 10px;
    min-height: 44px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    position: relative;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 0 0 0;
    border: 2px solid transparent;
}
.calendar-day.today {
    border: 2px solid #9146ff;
    background: #181824;
}
.calendar-day.selected {
    border: 2px solid #e61b19;
    background: #1a1a25;
}
.calendar-day.other-month {
    color: #606070;
    background: #181824;
    opacity: 0.7;
    cursor: default;
}
.calendar-day.has-event {
    box-shadow: 0 2px 8px #9146ff33;
}
.calendar-day:hover:not(.other-month) {
    background: #3c4ac7;
    color: #fff;
}
.event-dots {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 2px;
}
.event-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.event-dot.match { background: #e61b19; }
.event-dot.stream { background: #9146ff; }
.event-dot.video { background: #ff0000; }
.event-dot.tournament { background: #EB07C5; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}
.calendar-events {
    margin-top: 18px;
    background: #181824;
    border-radius: 14px;
    padding: 18px 16px 12px 16px;
    box-shadow: 0 2px 12px #23234a33;
}
.calendar-events h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.no-events {
    color: #a0a0b0;
    text-align: center;
    padding: 18px 0 10px 0;
    font-weight: 600;
}
.events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #23234a;
    border-radius: 10px;
    padding: 10px 12px;
    border-left: 4px solid #9146ff;
    box-shadow: 0 1px 4px #9146ff22;
    transition: background 0.18s;
}
.event-item.match { border-left-color: #e61b19; }
.event-item.stream { border-left-color: #9146ff; }
.event-item.video { border-left-color: #ff0000; }
.event-item.tournament { border-left-color: #EB07C5; }
.event-icon {
    font-size: 1.3em;
    color: #fff;
    margin-right: 2px;
}
.event-item.stream .event-icon { color: #9146ff; }
.event-item.video .event-icon { color: #ff0000; }
.event-item.match .event-icon { color: #e61b19; }
.event-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.event-title {
    font-weight: 700;
    font-size: 1.08em;
    color: #fff;
}
.event-time {
    color: #a0a0b0;
    font-size: 0.97em;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.event-time i {
    color: #9146ff;
}

/* ===== CALENDAR EVENT BADGES ===== */
.customcal-day-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    width: 100%;
    padding: 0.25rem 0;
}

.customcal-event-badge {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.customcal-event-badge:hover {
    opacity: 0.9;
    transform: translateX(0.125rem);
}

.customcal-event-badge--match {
    --tw-bg-opacity: 0.2;
    background-color: rgb(220 38 38 / var(--tw-bg-opacity, 0.2));
    color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.customcal-event-badge--match-text {
    color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.customcal-event-badge--stream {
    --tw-bg-opacity: 0.2;
    background-color: rgb(168 85 247 / var(--tw-bg-opacity, 0.2));
    color: rgb(168 85 247 / var(--tw-text-opacity, 1));
}

.customcal-event-badge--stream-text {
    color: rgb(168 85 247 / var(--tw-text-opacity, 1));
}

.customcal-event-badge--video {
    --tw-bg-opacity: 0.2;
    background-color: rgb(239 68 68 / var(--tw-bg-opacity, 0.2));
    color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.customcal-event-badge--video-text {
    color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.customcal-event-badge--tournament {
    --tw-bg-opacity: 0.18;
    background-color: rgb(235 7 197 / var(--tw-bg-opacity, 0.18));
    color: rgb(235 7 197 / var(--tw-text-opacity, 1));
}

.customcal-event-badge--tournament-text {
    color: rgb(235 7 197 / var(--tw-text-opacity, 1));
}

.customcal-event-badge-content {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    width: 100%;
}

.customcal-event-badge-content i.fa-solid {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.customcal-event-badge-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.customcal-event-badge-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

/* ===== SAYAX ESPORT - COMPONENTS STYLES ===== */

/* ===== CALENDAR - Modern Design ===== */
.calendar-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 35px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
}

.calendar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
}

.calendar-month {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}



.calendar-grid {
    padding: 25px 30px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.calendar-weekdays span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    background: var(--bg-elevated);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    gap: 4px;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 5px 20px var(--primary-glow);
    border-color: var(--primary-light);
}

.calendar-day.other-month {
    opacity: 0.25;
    pointer-events: none;
}

.calendar-day.has-event {
    border: 2px solid var(--accent);
    background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(60, 74, 199, 0.1) 100%);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.event-dots {
    display: flex;
    gap: 4px;
    position: absolute;
    bottom: 6px;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.event-dot.match { 
    background: var(--primary); 
    box-shadow: 0 0 8px var(--primary);
}
.event-dot.stream { 
    background: #9146ff; 
    box-shadow: 0 0 8px #9146ff;
}
.event-dot.video { 
    background: #ff0000; 
    box-shadow: 0 0 8px #ff0000;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding: 20px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.legend-item .dot.match { 
    background: var(--primary); 
    box-shadow: 0 0 10px var(--primary);
}
.legend-item .dot.stream { 
    background: #9146ff; 
    box-shadow: 0 0 10px #9146ff;
}
.legend-item .dot.video { 
    background: #ff0000; 
    box-shadow: 0 0 10px #ff0000;
}
.legend-item .dot.tournament {
    background: #EB07C5;
    box-shadow: 0 0 10px #EB07C5;
}

.calendar-events {
    padding: 25px 30px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-top: 1px solid var(--border-color);
}

.calendar-events h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-events h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-events {
    color: var(--text-muted);
    text-align: center;
    padding: 30px;
    font-size: 0.95rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.event-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all var(--transition-fast);
}

.event-item:hover {
    transform: translateX(5px);
    background: var(--bg-card-hover);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.event-item.stream { border-left-color: #9146ff; }
.event-item.video { border-left-color: #ff0000; }

.event-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 27, 25, 0.2) 0%, rgba(230, 27, 25, 0.1) 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

.event-item.stream .event-icon { 
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.2) 0%, rgba(145, 70, 255, 0.1) 100%); 
}
.event-item.video .event-icon { 
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 0, 0, 0.1) 100%); 
}

.event-item.tournament .event-icon {
    background: linear-gradient(135deg, rgba(235, 7, 197, 0.18) 0%, rgba(235, 7, 197, 0.08) 100%);
}

.event-icon i {
    font-size: 18px;
    color: var(--primary);
}

.event-item.stream .event-icon i { color: #9146ff; }
.event-item.video .event-icon i { color: #ff0000; }
.event-item.tournament .event-icon i { color: #EB07C5; }

.event-details {
    flex: 1;
}

.event-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.event-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-time i {
    font-size: 12px;
    color: var(--accent);
}

/* ===== TEAM SECTION ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.team-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
}

.team-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-md);
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.team-tab-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--bg-primary);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.team-tab-link i {
    transition: transform var(--transition-normal);
}

.team-tab-link:hover i {
    transform: translateX(5px);
}

.player-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.player-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.player-card .btn {
    margin-top: 10px;
}

.player-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--transition-slow);
    transform: scale(1.5) translateY(35px);
}

.player-card:hover .player-image img {
    transform: scale(1.6) translateY(0px);
}

.player-role {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.player-info {
    padding: 20px;
}

.player-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.player-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.agent-tag {
    padding: 5px 12px;
    background: var(--bg-elevated);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== SHOP SECTION ===== */
.shop-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    width: min(380px, 100%);
    animation: fadeIn 0.6s ease-out;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.product-image {
    position: relative;
    height: 250px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-height: 90%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 4px;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.shop-cta {
    text-align: center;
}

/* ===== PARTNERS GRID ===== */
.partners-actions {
    text-align: right;
    margin-bottom: 8px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 150px;
    padding: 18px 14px;
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.partner-logo-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.partner-logo-wrap img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.partner-card:hover .partner-logo-wrap img {
    filter: grayscale(0);
    transform: scale(1.06);
}

.partner-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .partner-card {
        padding: 16px 12px;
    }

    .partner-logo-wrap {
        min-height: 70px;
    }
}

/* ===== TWITCH POPUP ===== */
.twitch-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.twitch-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #9146ff;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: blink 1s infinite;
}

.close-popup {
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.close-popup:hover {
    opacity: 1;
}

.twitch-streams {
    max-height: 300px;
    overflow-y: auto;
}

.twitch-stream-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.twitch-stream-item:last-child {
    border-bottom: none;
}

.twitch-stream-item:hover {
    background: var(--bg-card-hover);
}

.stream-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9146ff 0%, #6441a5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stream-avatar-icon i {
    font-size: 18px;
    color: #fff;
}

.stream-info {
    flex: 1;
    min-width: 0;
}

.stream-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-game {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-viewers {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--accent);
}


/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.footer-socials a i {
    font-size: 18px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-socials a:hover i {
    color: var(--text-primary);
}

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-socials a:hover svg {
    fill: var(--text-primary);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}
/* ===== CUSTOMCAL - CALENDRIER MODERNE, SIMPLE & INSTRUCTIF ===== */


.customcal-container {
    background: #111112;
    border-radius: 5px;
    box-shadow: 0 2px 12px #000a;
    padding: 24px 16px 14px 16px;
    width: 100%;
    min-width: 900px;
    max-width: 1600px;
    margin: 0 auto 40px auto;
    color: #fff;
    font-family: var(--font-body);
    position: relative;
    border: 1px solid #18181c;
}

.customcal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.customcal-grid {
  margin-bottom: 10px;
}

.customcal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  font-weight: 600;
  color: #a0a0b0;
  font-size: 1.05em;
}
.customcal-weekdays span {
  text-align: center;
  padding: 4px 0;
}

.customcal-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 0;
    border: 1px solid #23243a;
    border-radius: 4px;
    overflow: hidden;
}
.customcal-day {
        background: transparent;
        border-radius: 0;
        min-height: 120px;
        height: 120px;
        text-align: left;
        font-size: 1.08em;
        font-weight: 600;
        color: #fff;
        position: relative;
        cursor: pointer;
        transition: background 0.18s, color 0.18s;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 8px 10px 0 10px;
        border: 1px solid #23243a;
        border-right: none;
        border-bottom: none;
}
.customcal-day:nth-child(7n) {
    border-right: 1px solid #23243a;
}
.customcal-day:nth-last-child(-n+7) {
    border-bottom: 1px solid #23243a;
}
.customcal-day.today {
  border: 2px solid #9146ff;
  background: #181824;
}
.customcal-day.selected,
.customcal-day--active {
    border: 2px solid var(--primary);
    background: #18181c;
    color: #fff;
    box-shadow: 0 0 0 2px #222 inset;
}
.customcal-day.other-month {
  color: #606070;
  background: #181824;
  opacity: 0.7;
  cursor: default;
}
.customcal-day.has-event {
  box-shadow: 0 2px 8px #9146ff33;
}
.customcal-day:hover:not(.other-month) {
  background: #3c4ac7;
  color: #fff;
}

.customcal-day-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    padding-bottom: 6px;
}

.customcal-day-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.customcal-day-indicator.match { background: #e61b19; }
.customcal-day-indicator.stream { background: #9146ff; }
.customcal-day-indicator.video { background: #ff0000; }

.customcal-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 0 0;
  font-size: 0.95em;
}
.customcal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0a0b0;
}

.calendar-admin-actions {
    text-align: right;
    margin-bottom: 20px;
}

.calendar-admin-hint {
    margin: 0 0 18px 0;
    color: #a0a0b0;
    font-size: 0.95rem;
    text-align: right;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-event-form .form-group {
    margin-bottom: 16px;
}

.calendar-event-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.calendar-event-form input,
.calendar-event-form select,
.calendar-event-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.calendar-event-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

/* ===== Custom Calendar Event - Modern, Simple, Dark ===== */
.customcal-events {
    margin-top: 20px;
    background: #111112;
    border-radius: 4px;
    padding: 20px 18px 14px 18px;
    box-shadow: 0 2px 8px #000a;
    border: 1px solid #18181c;
}
.customcal-events h4 {
    font-family: var(--font-heading);
    font-size: 1.08em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.customcal-no-events {
    color: #555;
    text-align: center;
    padding: 20px 0 12px 0;
    font-weight: 500;
    font-size: 1em;
}
.customcal-events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.customcal-event-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(230,27,25,0.08);
    border-radius: 3px;
    padding: 6px 12px;
    border-left: 4px solid var(--primary);
    box-shadow: none;
    transition: background 0.18s;
    margin-bottom: 4px;
    color: #fff;
    font-size: 0.98em;
    font-weight: 500;
    width: 100%;
    justify-content: flex-start;
    cursor: context-menu;
}
.customcal-event-item.match { border-left-color: var(--primary); }
.customcal-event-item.stream { border-left-color: var(--accent); }
.customcal-event-item.video { border-left-color: #fff; }
.customcal-event-icon {
    font-size: 1.2em;
    color: #fff;
    margin-right: 0;
    opacity: 0.85;
}
.customcal-event-item.stream .customcal-event-icon { color: var(--accent); }
.customcal-event-item.video .customcal-event-icon { color: #fff; }
.customcal-event-item.match .customcal-event-icon { color: var(--primary); }
.customcal-event-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.customcal-event-title {
    font-weight: 600;
    font-size: 1em;
    color: #fff;
    letter-spacing: 0.2px;
}
.customcal-event-time {
    color: #888;
    font-size: 0.95em;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.customcal-event-time i {
    color: #444;
    opacity: 0.7;
}

/* ===== CONTEXT MENU ===== */
.context-menu {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 150px;
    display: none;
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: background 0.2s;
}

.context-menu-item:hover {
    background: var(--bg-secondary);
}

.context-menu-item i {
    font-size: 1rem;
    width: 16px;
}

/* ===== TEAM CARDS - DARK MINIMAL DESIGN ===== */
.teams-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
}

.team-card {
    position: relative;
    width: min(380px, 100%);
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.6s ease-out;
    animation-delay: var(--card-delay, 0s);
    background: var(--bg-card);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.team-card-image {
    background-color: #000;
    position: relative;
    height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform var(--transition-normal);
}



.team-card-content {
    padding: 20px;
    text-align: center;
}

.team-card-name {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.team-card-game {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-card-game i {
    font-size: 0.95rem;
    opacity: 0.8;
}

.team-card-players {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.team-card-players i {
    font-size: 1rem;
    opacity: 0.7;
}

.team-card-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}
.team-card:hover .team-card-button {
    background: var(--primary-dark);
}

.team-card-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.team-card-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.team-card:hover .team-card-button i {
    transform: translateX(2px);
}

/* Responsive Teams Grid */
@media (max-width: 1024px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .team-card {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .team-card {
        height: 300px;
    }
    
    .team-card-name {
        font-size: 1.3rem;
    }
    
    .team-card-content {
        padding: 18px 15px;
    }
}

@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .team-card {
        height: 280px;
    }
    
    .team-card-name {
        font-size: 1.2rem;
    }
}

.context-menu-item.delete:hover {
    background: rgba(230, 27, 25, 0.1);
    color: var(--primary);
}

/* ===== CUSTOM SCROLLBAR - MODERN RED DESIGN ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(230, 27, 25, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 4px;
    border: 1px solid rgba(230, 27, 25, 0.2);
    transition: all var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
    border-color: rgba(230, 27, 25, 0.4);
}

::-webkit-scrollbar-corner {
    background: rgba(230, 27, 25, 0.1);
}

/* ===== ANIMATION CLASSES ===== */
.animate-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CROPPER MODAL STYLES ===== */
.cropper-modal .modal-content {
    max-width: 980px;
    width: calc(100% - 40px);
    padding: 16px;
}
.cropper-modal .cropper-body {
    padding: 8px 0 16px 0;
}
.cropper-modal .modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
}
.cropper-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}
@media (max-width: 780px) {
    .cropper-modal .cropper-body { flex-direction: column; }
    .cropper-modal .cropper-body > div:last-child { width: 100%; display:flex; gap:8px; flex-wrap:wrap; }
}

