/* =====================================================
   PLAYERS CRM - PROFESSIONAL PREMIUM DESIGN
   ===================================================== */

/* Variables CSS Premium - Design Élégant */
:root {
    /* Couleurs primaires - Bleu professionnel */
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.25);

    /* Accent - Or/Bronze élégant */
    --accent: #d4a574;
    --accent-light: #e5c9a8;
    --accent-glow: rgba(212, 165, 116, 0.3);

    /* Fond - Noir profond professionnel */
    --bg-dark: #0f0f12;
    --bg-card: rgba(22, 22, 28, 0.95);
    --bg-card-hover: rgba(32, 32, 40, 0.98);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-input: rgba(255, 255, 255, 0.06);

    /* Texte - Hiérarchie claire */
    --text-white: #ffffff;
    --text-light: #f1f5f9;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;

    /* Bordures - Subtiles */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(59, 130, 246, 0.4);

    /* États */
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.3);
    --warning: #eab308;
    --error: #ef4444;
    --error-glow: rgba(239, 68, 68, 0.3);

    /* Effets - Plus subtils */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px var(--primary-glow);
    --shadow-accent: 0 0 20px var(--accent-glow);

    /* Rayons - Plus petits pour un look pro */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.4s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html, body {
    max-width: 100vw;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background subtil professionnel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(212, 165, 116, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hidden {
    display: none !important;
}

/* =====================================================
   AUTHENTICATION PAGE
   ===================================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

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

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.auth-form h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-switch a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* =====================================================
   FORM ELEMENTS
   ===================================================== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-sm);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-sm), 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 40px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 20px var(--success-glow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 40px var(--success-glow);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 20px var(--error-glow);
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: var(--primary);
}

/* =====================================================
   MESSAGES & ERRORS
   ===================================================== */
.error-message {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
}

.error-message:empty {
    display: none;
}

.message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 0.3s ease-out;
}

.message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
}

/* =====================================================
   APP LAYOUT
   ===================================================== */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.date-display {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.btn-icon-danger:hover {
    background: var(--error);
    color: white;
}

/* Floating Action Buttons Container */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

/* FAB Base Styles */
.fab-messages,
.fab-notifications {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* FAB Messages */
.fab-messages {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.fab-messages:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

/* FAB Notifications */
.fab-notifications {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.fab-notifications:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.fab-messages:active,
.fab-notifications:active {
    transform: scale(0.95);
}

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--error);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 420px;
    max-height: 600px;
    background: #16161c;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notifications-header {
    padding: 1rem 1.25rem;
    background: #1e1e26;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notifications-header .btn-text {
    font-size: 0.8rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.notifications-header .btn-text:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-close-notif {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-close-notif:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .btn-close-notif {
        display: flex;
    }
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    background: #16161c;
}

.notifications-empty {
    padding: 3rem 2rem;
    text-align: center;
    background: #16161c;
    color: var(--text-muted);
}

.notifications-empty svg {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.notifications-empty p {
    font-size: 0.9rem;
}

/* Notification Item */
.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #16161c;
}

.notification-item:hover {
    background: #1e1e26;
}

.notification-item.unread {
    background: #1a1a24;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-icon.friend-request {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: #a78bfa;
}

.notification-icon.friend-accepted {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
}

.notification-icon.friend-rejected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #ef4444;
}

.notification-icon.event {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #4ade80;
}

.notification-icon.club {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #60a5fa;
}

.notification-icon.system {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #fbbf24;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.notification-content .notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notification-actions .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

.notif-accept-btn,
.notif-reject-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.notif-accept-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.notif-accept-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
}

.notif-reject-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notif-reject-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.friend-request-notif {
    cursor: default;
}

.friend-request-accepted {
    background: rgba(34, 197, 94, 0.05) !important;
    border-left: 3px solid #22c55e !important;
}

.friend-request-rejected {
    background: rgba(239, 68, 68, 0.05) !important;
    border-left: 3px solid #ef4444 !important;
    opacity: 0.7;
}

.notif-status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notif-status.accepted {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.notif-status.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.notif-status.error {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Mobile Notifications */
@media (max-width: 768px) {
    .fab-container {
        bottom: 1rem;
        right: 1rem;
        gap: 0.75rem;
    }

    .fab-messages,
    .fab-notifications {
        width: 54px;
        height: 54px;
    }

    .notifications-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        z-index: 9999;
        background: #1a1a2e !important;
        background-color: #1a1a2e !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        overflow-y: auto;
    }

    .notifications-header {
        padding: 1.25rem 1rem;
        position: sticky;
        top: 0;
        z-index: 1;
        background: #252540 !important;
        background-color: #252540 !important;
    }

    .notifications-header h3 {
        font-size: 1.2rem;
    }

    .notifications-list {
        flex: 1;
        max-height: none;
        padding-bottom: 2rem;
        background: #1a1a2e !important;
        background-color: #1a1a2e !important;
    }

    .notification-item {
        background: #1a1a2e !important;
        background-color: #1a1a2e !important;
    }

    .notification-item:hover,
    .notification-item.unread {
        background: #252540 !important;
        background-color: #252540 !important;
    }

    .notifications-empty {
        background: #1a1a2e !important;
        background-color: #1a1a2e !important;
    }

    .notification-item {
        padding: 1.25rem 1rem;
    }

    .notification-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .notification-content p {
        font-size: 1rem;
    }

    .notifications-empty {
        padding: 4rem 2rem;
    }

    .notifications-empty svg {
        width: 64px;
        height: 64px;
    }

    .notifications-empty p {
        font-size: 1.1rem;
    }
}

.user-greeting {
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-container {
    display: flex;
    flex: 1;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-glass);
    color: var(--text-white);
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-sm), 0 0 20px var(--primary-glow);
}

.categories-list .nav-link {
    font-size: 0.95rem;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    box-sizing: border-box;
}

.page {
    display: none;
    animation: fadeInUp 0.4s ease-out;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.page.active {
    display: block;
}

.page h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* =====================================================
   STATS CARDS
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.stat-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
    position: relative;
    z-index: 1;
}

.stat-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =====================================================
   DASHBOARD SECTIONS
   ===================================================== */
.dashboard-section {
    margin-bottom: 2.5rem;
}

.dashboard-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* My Clubs Shortcut Card */
.my-clubs-shortcut {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: all 0.3s ease;
}

.my-clubs-shortcut:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.shortcut-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.shortcut-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.shortcut-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 0.25rem 0;
}

.shortcut-text p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.my-clubs-shortcut .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .my-clubs-shortcut {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .shortcut-content {
        flex-direction: column;
        gap: 1rem;
    }

    .shortcut-icon {
        width: 56px;
        height: 56px;
    }

    .shortcut-text h3 {
        font-size: 1.25rem;
    }

    .my-clubs-shortcut .btn {
        width: 100%;
        justify-content: center;
    }
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    text-align: center;
}

.action-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.action-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.action-card span:last-child {
    font-weight: 600;
    font-size: 0.95rem;
}

/* =====================================================
   FILTERS BAR
   ===================================================== */
/* =====================================================
   PAGE RECHERCHE JOUEURS - HERO & DESIGN
   ===================================================== */

/* Hero de la page recherche */
.search-page-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.search-page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.search-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.search-hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.search-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features du hero */
.search-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.search-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.feature-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Box de recherche */
.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-box-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.search-box-header svg {
    color: var(--primary);
}

.search-box-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    flex: 1;
}

.search-box-header .btn {
    margin-left: auto;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    gap: 0.4rem;
}

.search-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-input-wrapper input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-glass);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.search-input-wrapper .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    flex-shrink: 0;
}

/* Filtres avancés */
.advanced-filters {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters-title svg {
    color: var(--primary);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    align-items: end;
}

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

.filter-action {
    justify-content: flex-end;
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Filtres compacts */
.filters-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Grille 6 colonnes pour joueurs (3x2) */
.filters-grid-players {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Section filtres avec chips */
.filters-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-row label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-row input[type="text"] {
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 0.95rem;
}

.filter-row-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.filter-item-small {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item-small label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Chips container */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.filter-chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-light);
}

.filter-chip.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-chip .chip-icon {
    font-size: 1rem;
}

/* Placeholder avant recherche */
.search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.search-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.search-placeholder h3 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.search-placeholder p {
    font-size: 0.95rem;
    max-width: 400px;
}

.search-placeholder strong {
    color: var(--primary-light);
}

/* Barre de re-filtrage */
.refilter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.refilter-bar .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.refilter-bar .btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary-light);
}

.active-filters-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-item label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-item select,
.filter-item input {
    padding: 0.65rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-glass);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-item select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-reset {
    justify-content: flex-end;
}

.btn-reset {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Section résultats */
.search-results {
    margin-top: 0.5rem;
}

.results-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.results-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.results-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

/* Legacy filters-bar pour autres pages */
.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-end;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.filters-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.filters-bar .btn {
    min-width: 140px;
}

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

/* Responsive - Page recherche joueurs */
@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .search-page-hero {
        padding: 1.5rem 1rem;
    }

    .search-hero-content h1 {
        font-size: 1.5rem;
    }

    .search-hero-subtitle {
        font-size: 0.95rem;
    }

    .search-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-feature {
        width: 100%;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .search-input-wrapper .btn {
        width: 100%;
        justify-content: center;
    }

    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-compact {
        grid-template-columns: 1fr;
    }

    .filters-grid-players {
        grid-template-columns: 1fr;
    }

    .filter-row-inline {
        grid-template-columns: 1fr;
    }

    .filter-reset {
        grid-column: span 2;
    }

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

    .search-actions {
        flex-direction: column;
    }

    .search-actions .btn,
    .search-actions .btn-reset {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-page-hero {
        padding: 1.25rem 1rem;
        text-align: center;
    }

    .search-hero-content h1 {
        font-size: 1.35rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filter-reset {
        grid-column: span 1;
    }
}

/* Player card body details */
.player-location,
.player-language {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.player-language {
    color: var(--accent-light);
}

/* =====================================================
   PLAYERS & CLUBS GRIDS
   ===================================================== */
.players-grid,
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.player-card,
.club-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.player-card::before,
.club-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.player-card:hover,
.club-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.player-card:hover::before,
.club-card:hover::before {
    opacity: 1;
}

.player-card-header,
.club-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.player-avatar,
.club-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.player-name,
.club-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
}

.player-username,
.club-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.player-card-body,
.club-card-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.club-card-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.club-members-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.online-indicator.offline {
    background: var(--text-dim);
    box-shadow: none;
    animation: none;
}

/* =====================================================
   CLUBS LIST (Dashboard)
   ===================================================== */
.clubs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clubs-list .club-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
}

.clubs-list .club-card-header {
    margin-bottom: 0;
    flex: 1;
}

/* =====================================================
   CLUB CARD PREMIUM - NOUVEAU DESIGN AVEC COUVERTURE
   ===================================================== */
.club-card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.club-card-premium:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Couverture */
.club-card-cover {
    position: relative;
    height: 120px;
    background-size: cover;
    background-position: center;
}

.club-card-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.club-card-icon-wrapper {
    position: absolute;
    bottom: -28px;
    left: 1.25rem;
    z-index: 2;
}

.club-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bg-dark);
    border: 3px solid var(--bg-card);
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
    box-shadow: var(--shadow-md);
}

.club-premium-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.club-role-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.club-role-badge.owner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
}

.club-role-badge.admin {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
}

.club-role-badge.member {
    background: rgba(100, 116, 139, 0.8);
}

/* Contenu */
.club-card-content {
    padding: 2rem 1.25rem 1.25rem;
}

.club-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.club-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    line-height: 1.3;
}

.club-card-category {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.subcategory-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    background: rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

.club-card-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    min-height: 2.5rem;
}

/* Stats */
.club-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.club-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.club-stat svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Grid responsive */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .clubs-grid {
        grid-template-columns: 1fr;
    }

    .club-card-cover {
        height: 100px;
    }

    .club-card-icon-wrapper {
        bottom: -24px;
    }

    .club-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .club-card-content {
        padding: 1.75rem 1rem 1rem;
    }

    .club-card-stats {
        gap: 0.5rem;
    }

    .club-stat {
        font-size: 0.75rem;
    }
}

.empty-message {
    color: var(--text-muted);
    font-style: italic;
    padding: 3rem;
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

/* =====================================================
   PROFILE FORM
   ===================================================== */
.profile-form {
    max-width: 650px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.password-section {
    max-width: 650px;
    margin-top: 2rem;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.password-section h3 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Section Premium intégrée au profil */
.premium-section {
    max-width: 650px;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(212, 165, 116, 0.1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.premium-section h3 {
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.premium-active-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.premium-icon {
    font-size: 1.5rem;
}

.premium-active-info p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.premium-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.plans-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
}

.plan-option.plan-recommended {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(59, 130, 246, 0.05));
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.plan-price-small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-badge-small {
    position: absolute;
    top: -8px;
    left: 1rem;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

/* =====================================================
   PROFILE PAGE PREMIUM DESIGN
   ===================================================== */

/* Profile Header Premium */
.profile-header-premium {
    position: relative;
    margin: -2rem -2rem 2rem -2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.profile-cover {
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #1a1a2e 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
}

/* Bouton changer cover */
.btn-change-cover {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.btn-change-cover:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Bouton changer avatar */
.btn-change-avatar {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.btn-change-avatar:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Avatar avec image */
.profile-avatar-large img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-large {
    position: relative;
}

.profile-header-content {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 0 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    border: 4px solid var(--bg-card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.profile-avatar-wrapper .online-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid var(--bg-card);
}

.profile-header-info {
    flex: 1;
    padding-bottom: 1.5rem;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-name-row h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.premium-badge-header {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-username-display {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0.25rem 0 0.5rem;
}

.profile-bio-display {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.5rem 0;
    max-width: 500px;
}

.profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.profile-meta-item svg {
    opacity: 0.7;
}

/* Profile Stats Row */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.profile-stat-card {
    text-align: center;
    padding: 0.75rem;
}

.profile-stat-card .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.profile-stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Content Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.profile-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Profile Cards */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.profile-card-header svg {
    color: var(--primary);
}

.profile-card-header h3 {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.profile-card .card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Premium Profile Form */
.profile-form-premium,
.password-form-premium {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-full svg {
    margin-right: 0.5rem;
}

/* Edit Toggle Button */
.btn-edit-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto;
}

.btn-edit-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-edit-toggle.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Card Summary */
.card-summary {
    animation: fadeIn 0.2s ease-out;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item-full {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 0.95rem;
    color: var(--text-white);
    font-weight: 500;
}

.summary-bio {
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.form-actions .btn {
    min-width: 120px;
}

/* Activities Tags Display */
.activities-tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activity-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-tag .tag-icon {
    font-size: 0.9rem;
}

.activity-tag .tag-category {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.no-data-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* Security Status */
.security-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius);
}

.security-icon {
    flex-shrink: 0;
}

.security-icon svg {
    color: #22c55e;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.security-title {
    font-weight: 600;
    color: var(--text-white);
}

.security-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Summary */
@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Friends List */
.friends-count-badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.friend-requests-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.friend-requests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.friend-requests-title {
    font-weight: 600;
    color: #fbbf24;
    font-size: 0.9rem;
}

.friend-requests-count {
    background: #fbbf24;
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.friend-requests-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.friend-request-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.friend-request-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.friend-request-info {
    flex: 1;
    min-width: 0;
}

.friend-request-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-request-username {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.friend-request-actions {
    display: flex;
    gap: 0.5rem;
}

.friend-request-actions .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
}

/* Friends List */
.friends-list {
    max-height: 400px;
    overflow-y: auto;
}

.friends-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.friends-empty svg {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.friends-empty p {
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 0.25rem;
}

.friends-empty span {
    font-size: 0.85rem;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.friend-item:hover {
    background: var(--bg-elevated);
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
}

.friend-avatar .friend-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--bg-card);
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-username {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.friend-actions {
    display: flex;
    gap: 0.5rem;
}

.friend-action-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.friend-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.friend-action-btn.danger:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* Premium Card Special Styling */
.profile-card-premium {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(212, 165, 116, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

.profile-card-premium .profile-card-header svg {
    color: var(--accent);
}

.premium-icon-large {
    font-size: 2rem;
}

.premium-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.plans-premium {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-card {
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
}

.plan-card-recommended {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(59, 130, 246, 0.08));
}

.plan-card .plan-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 10px;
}

.plan-card .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.plan-card .plan-name {
    font-weight: 600;
    color: var(--text-white);
}

.plan-card .plan-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.plan-card .plan-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Responsive Profile */
@media (max-width: 900px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header-premium {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }

    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.5rem;
        margin-top: -40px;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-header-info {
        padding-bottom: 1rem;
    }

    .profile-name-row {
        justify-content: center;
    }

    .profile-name-row h1 {
        font-size: 1.5rem;
    }

    .profile-meta-row {
        justify-content: center;
    }

    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 1.5rem;
    }

    .profile-card {
        padding: 1.25rem;
    }
}

/* =====================================================
   MODALS
   ===================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    overflow-x: hidden;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: fadeInUp 0.3s ease-out;
}

.modal-large {
    max-width: 720px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.modal-content form {
    padding: 1.75rem;
}

.modal-body {
    padding: 1.75rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--border);
    background: var(--bg-glass);
}

/* =====================================================
   CREATE CLUB FORM
   ===================================================== */
.create-club-form {
    padding: 0 !important;
}

.form-section {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.section-icon {
    font-size: 1.25rem;
}

/* Cover Image Upload */
.cover-image-upload {
    width: 100%;
}

.cover-image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 150px;
    background: var(--bg-dark);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.cover-image-preview:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
}

.cover-image-preview.has-image {
    border-style: solid;
    border-color: var(--success);
}

.cover-image-preview.has-image svg,
.cover-image-preview.has-image span {
    display: none;
}

.cover-image-preview svg {
    color: var(--text-dim);
}

.cover-image-preview span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.badge-optional {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-dim);
    margin-left: auto;
}

.chips-container-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.setting-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.setting-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.setting-card:has(input:checked) {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.setting-card input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.setting-card-full {
    grid-column: 1 / -1;
}

.setting-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.setting-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.setting-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setting-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}

.setting-text span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-right: 0.5rem;
}

.premium-requirement-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.premium-requirement-info a {
    color: #f59e0b;
    font-weight: 600;
}

/* Access Type Cards */
.access-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.access-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.75rem;
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.access-type-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.access-type-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
}

.access-type-card input[type="radio"] {
    display: none;
}

.access-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.access-type-icon {
    font-size: 2rem;
    line-height: 1;
}

.access-type-content strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}

.access-type-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.btn-large {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
}

.btn-icon {
    margin-right: 0.5rem;
}

@media (max-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 1.25rem 1rem;
    }

    .chips-container-form {
        gap: 0.4rem;
    }

    .chips-container-form .filter-chip {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    .access-type-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .access-type-card {
        flex-direction: row;
        padding: 1rem;
        text-align: left;
    }

    .access-type-content {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .access-type-icon {
        font-size: 1.5rem;
    }

    .access-type-content strong {
        font-size: 0.9rem;
    }

    .access-type-desc {
        display: none;
    }
}

/* =====================================================
   CLUB DETAIL - PREMIUM DESIGN
   ===================================================== */

/* Premium Modal Container */
.club-detail-premium {
    padding: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f18 50%, #0a0a0f 100%);
    max-width: 600px;
    max-height: 90vh;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 25px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.club-detail-premium .modal-body {
    padding: 0;
}

/* Cover Section */
.club-cover-section {
    position: relative;
    height: 240px;
    overflow: visible;
}

.club-cover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.club-cover-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        rgba(139, 92, 246, 0.2) 0%,
        transparent 40%,
        transparent 60%,
        rgba(236, 72, 153, 0.2) 100%);
    opacity: 0.5;
}

.club-cover-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
        rgba(10, 10, 15, 1) 0%,
        rgba(10, 10, 15, 0.85) 25%,
        rgba(10, 10, 15, 0.4) 50%,
        transparent 100%);
}

.club-cover-overlay {
    display: none;
}

.modal-close-overlay {
    position: fixed;
    top: calc(5vh + 1rem);
    right: calc(50% - 280px);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.modal-close-overlay:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Cover Upload Zone */
.cover-upload-zone {
    position: absolute;
    bottom: 4.5rem;
    right: 1rem;
    z-index: 10;
}

.cover-upload-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cover-upload-label:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Logo Container - Centré en bas de la cover */
.club-logo-container {
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.club-logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: linear-gradient(145deg, #1a1a2e 0%, #13132a 100%);
    border: 5px solid #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.8rem;
    box-shadow:
        0 15px 50px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.12),
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 2px 0 rgba(255,255,255,0.15);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-logo:hover {
    transform: scale(1.03);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.7),
        0 0 0 1px rgba(255,255,255,0.15),
        0 0 80px rgba(139, 92, 246, 0.25),
        inset 0 2px 0 rgba(255,255,255,0.2);
}

.logo-upload-zone {
    position: absolute;
    bottom: -5px;
    right: -5px;
}

.logo-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
    border: 3px solid #0a0a0f;
}

.logo-upload-label:hover {
    transform: scale(1.15);
}

/* Club Header Info - Centré */
.club-header-info {
    padding: 4.5rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.club-header-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    opacity: 0.5;
}

.club-header-info h2 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8f0 50%, #d0d0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.club-meta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: all 0.2s ease;
}

.meta-tag:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.meta-tag.category {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    font-weight: 600;
}

.meta-tag.location::before {
    content: '📍';
    font-size: 0.85em;
}

.meta-tag.level::before {
    content: '🎯';
    font-size: 0.85em;
}

.meta-tag.members::before {
    content: '👥';
    font-size: 0.85em;
}

.club-description {
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Club Badges */
.club-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.subscription-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1);
    transition: all 0.3s ease;
}

.subscription-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.2);
}

.subscription-badge .badge {
    background: none;
    padding: 0;
    font-size: 0.85rem;
}

.price-tag {
    font-weight: 700;
    color: #fbbf24;
    font-size: 0.9rem;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.invitation-code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.invitation-code-box:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.invitation-code-box .badge {
    font-size: 0.8rem;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.code-display strong {
    font-family: 'SF Mono', Monaco, monospace;
    color: #a78bfa;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
    background: rgba(139, 92, 246, 0.15);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.btn-xs {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border-radius: var(--radius);
}

/* Club Detail Body */
.club-detail-body {
    padding: 1.5rem 1.75rem 1.75rem 1.75rem !important;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(139, 92, 246, 0.02) 50%,
        rgba(236, 72, 153, 0.02) 100%);
    overflow: visible;
    max-height: none;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.section-header h4 svg {
    color: var(--primary);
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

/* Events & Members Sections */
.club-events-section,
.club-members-section {
    margin-bottom: 1.5rem;
}

.club-events-section:last-child,
.club-members-section:last-child {
    margin-bottom: 0;
}

/* Settings Section */
.club-settings {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(139, 92, 246, 0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(255,255,255,0.03);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label span {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

/* Responsive Mobile - Club Detail */
@media (max-width: 768px) {
    .club-detail-premium {
        margin: 0;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        background: linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Cover plus grande et impactante sur mobile */
    .club-cover-section {
        height: 200px;
        overflow: visible;
    }

    .club-cover-bg {
        background-size: cover;
        background-position: center;
    }

    .club-cover-bg::after {
        background: linear-gradient(0deg,
            rgba(10, 10, 15, 1) 0%,
            rgba(10, 10, 15, 0.8) 30%,
            rgba(10, 10, 15, 0.3) 60%,
            transparent 100%);
    }

    /* Logo centré sur mobile aussi */
    .club-logo-container {
        left: 50%;
        transform: translateX(-50%);
        bottom: -45px;
    }

    .club-logo {
        width: 90px;
        height: 90px;
        font-size: 2.8rem;
        border-width: 4px;
        border-radius: 20px;
        box-shadow:
            0 8px 30px rgba(0,0,0,0.6),
            0 0 0 1px rgba(255,255,255,0.1),
            inset 0 1px 0 rgba(255,255,255,0.15);
    }

    .logo-upload-zone {
        bottom: -3px;
        right: -3px;
    }

    .logo-upload-label {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .logo-upload-label svg {
        width: 14px;
        height: 14px;
    }

    /* Header info avec espace pour le logo */
    .club-header-info {
        padding: 3.5rem 1.25rem 1.25rem 1.25rem;
        text-align: center;
        background: transparent;
    }

    .club-header-info h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        font-weight: 800;
        background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .club-meta-tags {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        justify-content: center;
    }

    .meta-tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 20px;
    }

    .meta-tag.category {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
        border-color: rgba(139, 92, 246, 0.5);
    }

    .club-description {
        font-size: 0.85rem;
        line-height: 1.6;
        color: rgba(255,255,255,0.65);
        max-width: 100%;
    }

    .club-badges {
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
    }

    .subscription-badge {
        padding: 0.5rem 1rem;
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
        border: 1px solid rgba(251, 191, 36, 0.4);
        border-radius: 12px;
    }

    .invitation-code-box {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: rgba(139, 92, 246, 0.08);
        border: 1px solid rgba(139, 92, 246, 0.2);
        border-radius: 12px;
        width: 100%;
    }

    .code-display {
        font-size: 0.8rem;
    }

    .code-display strong {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    /* Body du modal */
    .club-detail-body {
        padding: 1.25rem !important;
        max-height: none;
        overflow: visible;
        background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.02) 100%);
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-bottom: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .section-header h4 {
        font-size: 0.95rem;
        font-weight: 600;
    }

    .section-header h4 svg {
        width: 18px;
        height: 18px;
    }

    .club-events-section,
    .club-members-section {
        margin-bottom: 1.25rem;
    }

    .club-settings {
        padding: 1rem;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
    }

    /* Upload zones */
    .cover-upload-zone {
        bottom: 4rem;
        right: 0.75rem;
    }

    .cover-upload-label {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        background: rgba(0,0,0,0.75);
        backdrop-filter: blur(10px);
    }

    .cover-upload-label span {
        display: none;
    }

    .modal-close-overlay {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        background: rgba(0,0,0,0.85);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    /* Membres */
    .member-item {
        padding: 0.85rem;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
    }

    .member-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .member-name {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .member-role {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
        border-radius: 20px;
    }

    /* Actions */
    #club-detail-actions {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        flex-wrap: wrap;
        background: rgba(0,0,0,0.3);
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    #club-detail-actions .btn {
        flex: 1;
        min-width: 100px;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        border-radius: 10px;
    }
}

/* Legacy support */
.club-detail-info {
    margin-bottom: 2rem;
}

.club-detail-info p {
    color: var(--text-muted);
    line-height: 1.6;
}

.club-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.club-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.club-members-section h4 {
    margin-bottom: 1rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.member-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(4px);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.member-name {
    flex: 1;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.member-role {
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-role.owner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.member-role.admin {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: white;
}

/* Change role button */
.btn-change-role {
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: auto;
}

.btn-change-role:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: white;
    transform: scale(1.1);
}

/* Role change modal */
.role-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.role-option {
    position: relative;
    cursor: pointer;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.role-option:hover .role-option-content {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.role-option.selected .role-option-content,
.role-option input:checked + .role-option-content {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.role-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.role-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.role-name {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.role-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Small modal for role change */
.modal-sm {
    max-width: 400px;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        min-width: 240px;
    }
}

/* Note: Styles mobile principaux déplacés en fin de fichier avec le menu hamburger */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .filters-bar .form-group {
        min-width: 100%;
    }

    .auth-box {
        padding: 2rem;
    }

    .auth-header h1 {
        font-size: 2.5rem;
    }

    .players-grid,
    .clubs-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   LOADING ANIMATION
   ===================================================== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* =====================================================
   UNREAD BADGE
   ===================================================== */
.unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--error), #ff6b6b);
    color: white;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* =====================================================
   PLAYER DETAIL MODAL - PREMIUM DESIGN
   ===================================================== */

/* Premium Modal Container */
.player-detail-premium {
    padding: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f18 50%, #0a0a0f 100%);
    max-width: 600px;
    max-height: 90vh;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 25px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.player-detail-premium .modal-body {
    padding: 0;
}

/* Cover Section */
.player-cover-section {
    position: relative;
    height: 180px;
    overflow: visible;
}

.player-cover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: cover;
    background-position: center;
}

.player-cover-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        rgba(59, 130, 246, 0.3) 0%,
        transparent 40%,
        transparent 60%,
        rgba(236, 72, 153, 0.3) 100%);
    opacity: 0.6;
}

.player-cover-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
        rgba(10, 10, 15, 1) 0%,
        rgba(10, 10, 15, 0.85) 25%,
        rgba(10, 10, 15, 0.4) 50%,
        transparent 100%);
}

/* Avatar Container - Centré en bas de la cover */
.player-avatar-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.player-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a2e 0%, #13132a 100%);
    border: 5px solid #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow:
        0 15px 50px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.12),
        0 0 60px rgba(59, 130, 246, 0.15),
        inset 0 2px 0 rgba(255,255,255,0.15);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-avatar-large:hover {
    transform: scale(1.03);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.7),
        0 0 0 1px rgba(255,255,255,0.15),
        0 0 80px rgba(59, 130, 246, 0.25),
        inset 0 2px 0 rgba(255,255,255,0.2);
}

.player-avatar-icon {
    font-size: 3.2rem;
}

/* Status Badge */
.player-status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #0a0a0f;
    z-index: 25;
}

.player-status-badge.online {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.player-status-badge.offline {
    background: #4b5563;
}

/* Player Header Info - Centré */
.player-header-info {
    padding: 4rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.player-header-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    opacity: 0.5;
}

.player-header-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8f0 50%, #d0d0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.player-username-display {
    font-size: 0.95rem;
    color: rgba(59, 130, 246, 0.9);
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.player-meta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.meta-tag.language::before {
    content: '🗣️';
    font-size: 0.85em;
}

.meta-tag.joined::before {
    content: '📅';
    font-size: 0.85em;
}

.player-bio-text {
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Player Badges */
.player-badges {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.premium-badge-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1);
}

/* Player Detail Body */
.player-detail-body {
    padding: 1.5rem 1.75rem 1.75rem 1.75rem !important;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(59, 130, 246, 0.02) 50%,
        rgba(139, 92, 246, 0.02) 100%);
    overflow: visible;
    max-height: none;
}

/* Activities Section */
.player-activities-section {
    margin-bottom: 1.5rem;
}

.activities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activity-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}

.activity-tag:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.activity-tag .activity-icon {
    font-size: 1rem;
}

/* Player Categories Section */
.player-categories-section {
    margin-bottom: 1.5rem;
}

.categories-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-group {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.category-group:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.category-icon {
    font-size: 1.3rem;
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.subcategory-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #93c5fd;
    transition: all 0.2s ease;
}

.subcategory-tag:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    transform: translateY(-1px);
}

/* Player Clubs Section */
.player-clubs-section {
    margin-bottom: 1.5rem;
}

.player-clubs-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.player-club-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-club-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(4px);
}

.player-club-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.player-club-info {
    flex: 1;
    min-width: 0;
}

.player-club-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-club-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.player-club-role {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: #c4b5fd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.player-club-role.owner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.no-data-message {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    font-style: italic;
    padding: 0.5rem 0;
}

/* =====================================================
   PRIVATE CLUB MODAL
   ===================================================== */
.private-club-modal {
    max-width: 500px;
    max-height: 90vh;
    padding: 0;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f18 50%, #0a0a0f 100%);
    border: 1px solid rgba(255,255,255,0.08);
    overflow-y: auto;
    overflow-x: hidden;
}

.private-club-cover {
    position: relative;
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.private-club-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.95) 100%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.15) 50%, rgba(236, 72, 153, 0.15) 100%);
}

.private-club-cover-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% -20%, rgba(139, 92, 246, 0.25) 0%, transparent 50%);
}

.private-club-logo {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(145deg, #1a1a2e 0%, #13132a 100%);
    border: 4px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(45px);
}

.private-club-emoji {
    font-size: 2.5rem;
}

.private-club-header {
    padding: 3.5rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.private-club-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #1a1a2e 0%, #13132a 100%);
    border: 3px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.private-club-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.badge-private {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.private-club-body {
    padding: 1.5rem 2rem;
}

.private-club-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.private-club-info p {
    margin: 0;
}

.private-club-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}

.private-club-message svg {
    color: rgba(239, 68, 68, 0.7);
    margin-bottom: 1rem;
}

.private-club-message h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.private-club-message p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.private-club-actions {
    padding: 1.25rem 2rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    gap: 1rem;
}

.private-club-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
    .private-club-modal {
        margin: 0;
        max-height: 100vh;
        height: auto;
        min-height: auto;
        border-radius: 0;
    }

    .private-club-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .private-club-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .private-club-header h2 {
        font-size: 1.2rem;
    }

    .private-club-body {
        padding: 1.25rem;
    }

    .private-club-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .private-club-message {
        padding: 1.5rem 1rem;
    }

    .private-club-message svg {
        width: 40px;
        height: 40px;
    }

    .private-club-actions {
        padding: 1rem 1.25rem;
        flex-direction: column;
    }
}

/* Player Stats Section */
.player-stats-section {
    margin-bottom: 1rem;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Player Detail Actions */
.player-detail-actions {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.player-detail-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Legacy support - keep for backward compatibility */
.player-detail-profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1rem 0;
}

.player-detail-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success-glow);
}

.status-indicator.offline {
    background: var(--text-dim);
}

.player-detail-info {
    flex: 1;
}

.player-username-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.player-bio {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.player-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =====================================================
   MESSAGES PAGE
   ===================================================== */
.messages-container {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Conversations List */
.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.conversation-item:hover {
    background: var(--bg-glass);
    border-color: var(--border);
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    flex-shrink: 0;
}

.conversation-avatar .online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--bg-card);
}

.conversation-avatar .online-indicator.offline {
    background: var(--text-dim);
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.conversation-username {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

.conversation-preview {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.unread-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
}

/* Chat Area */
.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
}

.btn-back {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-back:hover {
    background: var(--bg-card-hover);
    color: var(--text-white);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    font-size: 1.5rem;
}

.chat-username {
    font-weight: 600;
    color: var(--text-white);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
    animation: fadeInUp 0.3s ease;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-content {
    background: var(--bg-glass);
    color: var(--text-light);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    text-align: right;
}

.message.received .message-time {
    text-align: left;
}

.chat-input-form {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    border-top: 1px solid var(--border);
}

.chat-input-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.chat-input-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.chat-input-form .btn {
    padding: 1rem 1.5rem;
    white-space: nowrap;
}

/* =====================================================
   RESPONSIVE - PLAYER DETAIL PREMIUM
   ===================================================== */
@media (max-width: 768px) {
    .player-detail-premium {
        margin: 0;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        background: linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .player-cover-section {
        height: 160px;
        overflow: visible;
    }

    .player-cover-bg::after {
        background: linear-gradient(0deg,
            rgba(10, 10, 15, 1) 0%,
            rgba(10, 10, 15, 0.8) 30%,
            rgba(10, 10, 15, 0.3) 60%,
            transparent 100%);
    }

    .player-avatar-container {
        left: 50%;
        transform: translateX(-50%);
        bottom: -40px;
    }

    .player-avatar-large {
        width: 90px;
        height: 90px;
        font-size: 2.8rem;
        border-width: 4px;
    }

    .player-avatar-icon {
        font-size: 2.5rem;
    }

    .player-status-badge {
        width: 18px;
        height: 18px;
        border-width: 3px;
    }

    .player-header-info {
        padding: 3rem 1.25rem 1.25rem 1.25rem;
    }

    .player-header-info h2 {
        font-size: 1.4rem;
    }

    .player-username-display {
        font-size: 0.85rem;
    }

    .player-meta-tags {
        gap: 0.4rem;
    }

    .player-bio-text {
        font-size: 0.85rem;
    }

    .player-detail-body {
        padding: 1.25rem !important;
        max-height: none;
        overflow: visible;
    }

    .player-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem 0.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .activities-grid {
        gap: 0.4rem;
    }

    .activity-tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .player-detail-actions {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .player-detail-actions .btn {
        flex: 1;
        min-width: 100px;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

/* =====================================================
   RESPONSIVE MESSAGES
   ===================================================== */
@media (max-width: 768px) {
    .player-detail-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .player-meta {
        justify-content: center;
    }

    .message {
        max-width: 85%;
    }

    .chat-input-form {
        flex-direction: column;
    }

    .chat-input-form .btn {
        width: 100%;
    }
}

/* =====================================================
   ÉVÉNEMENTS
   ===================================================== */
.club-events-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.events-header h4 {
    margin: 0;
    color: var(--text-white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.event-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.event-card.full {
    opacity: 0.7;
}

.event-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    text-align: center;
}

.event-day {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.event-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.event-card-info {
    flex: 1;
    min-width: 0;
}

.event-card-title {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.event-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

.event-card-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.event-spots {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-glass);
    border-radius: var(--radius);
    color: var(--text-light);
}

.event-spots.full {
    background: var(--error);
    color: white;
}

.event-recurring {
    font-size: 1rem;
}

/* Event Detail Modal */
.event-detail-info {
    padding: 1rem 0;
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-meta-item {
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-light);
}

.event-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-detail-stats {
    display: flex;
    gap: 2rem;
}

.event-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius);
}

.event-stat-icon {
    font-size: 1.25rem;
}

.event-participants-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.event-participants-section h4 {
    margin-bottom: 1rem;
    color: var(--text-white);
}

.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.participant-avatar {
    font-size: 1rem;
}

.participant-name {
    color: var(--text-light);
}

/* Badges */
.registered-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.full-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--error);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Events */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-card-date {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .event-card-status {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .event-detail-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .events-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* =====================================================
   ABONNEMENTS CLUBS - PREMIUM
   ===================================================== */

/* Champs d'abonnement dans le formulaire */
.subscription-fields {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--primary-glow);
    border-radius: var(--radius);
}

.subscription-fields .form-row {
    margin-bottom: 0.5rem;
}

.subscription-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    font-style: italic;
}

/* Badge Premium dans le club detail */
.subscription-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid var(--primary-glow);
    border-radius: var(--radius);
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#club-subscription-price-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
}

/* Code d'invitation pour clubs privés */
.invitation-code-box {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
}

.badge-private {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.code-display strong {
    font-family: monospace;
    font-size: 1.2rem;
    background: var(--bg-elevated);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    letter-spacing: 2px;
    color: var(--primary);
}

/* Section paramètres club */
.club-settings {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.club-settings h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.settings-group {
    margin-bottom: 1rem;
}

.settings-group .form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.club-settings .btn-primary {
    margin-top: 0.5rem;
}

/* Bouton d'abonnement premium */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

/* Warning d'abonnement */
.sub-warning {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    color: var(--warning);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

/* Club card avec badge premium */
.club-card.premium {
    border: 1px solid var(--primary-glow);
    position: relative;
}

.club-card.premium::before {
    content: '💎';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.25rem;
}

/* Animation pour le bouton premium */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.btn-premium {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* =====================================================
   PAGE PREMIUM
   ===================================================== */

/* Badge Premium dans la nav */
.nav-premium {
    position: relative;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

.premium-badge.hidden {
    display: none;
}

/* Page Premium Container */
.premium-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Premium */
.premium-header {
    text-align: center;
    margin-bottom: 3rem;
}

.premium-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.premium-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Plans Container */
.premium-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Plan Card */
.plan-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
    box-shadow: var(--shadow-glow);
}

.plan-card.recommended {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05));
}

.plan-card.recommended::before {
    content: 'RECOMMANDÉ';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.plan-savings {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.plan-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    color: var(--success);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Premium Features Grid */
.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-glow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Premium Status Section */
.premium-status-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--primary-glow);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.premium-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.premium-active-badge .icon {
    font-size: 1.5rem;
}

.premium-status-info {
    margin: 1.5rem 0;
}

.premium-status-info p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0.5rem 0;
}

.premium-status-info strong {
    color: var(--accent-light);
}

#cancel-premium-btn {
    margin-top: 1rem;
}

#cancel-premium-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Premium */
@media (max-width: 768px) {
    .premium-header h2 {
        font-size: 2rem;
    }

    .plan-price {
        font-size: 2.5rem;
    }

    .premium-plans {
        grid-template-columns: 1fr;
    }
}

/* Premium Requirement Info */
.premium-requirement-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--primary-glow);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.premium-requirement-info a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

.premium-requirement-info a:hover {
    text-decoration: underline;
}

/* =====================================================
   MENU MOBILE (HAMBURGER)
   ===================================================== */

/* Bouton hamburger - caché sur desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
}

.menu-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-glow);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* Animation hamburger -> X */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay pour mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* =====================================================
   RESPONSIVE MOBILE - SIDEBAR DRAWER
   ===================================================== */
@media (max-width: 768px) {
    /* Afficher le bouton hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Header mobile amélioré */
    .app-header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 1rem 1.5rem;
    }

    .header-left {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .header-left h1 {
        font-size: 1.5rem;
    }

    .date-display {
        display: none;
    }

    .header-right {
        flex-direction: row;
        align-items: center;
    }

    .user-greeting {
        display: none;
    }

    #logout-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Container sans flex-direction column */
    .app-container {
        flex-direction: row;
        position: relative;
    }

    /* Sidebar drawer mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        min-width: 280px;
        height: 100vh;
        z-index: 999;
        border-right: 1px solid var(--border);
        border-bottom: none;
        padding: 2rem 1.5rem;
        padding-top: 80px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    }

    /* Bouton fermer dans sidebar (optionnel - déjà le hamburger fait X) */
    .sidebar-close {
        display: none;
    }

    /* Main content prend toute la largeur */
    .main-content {
        width: 100%;
        min-height: calc(100vh - 70px);
    }

    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Quick actions mobile */
    .quick-actions {
        grid-template-columns: 1fr;
    }

    /* Cards mobile */
    .player-card,
    .club-card,
    .event-card {
        padding: 1rem;
    }

    /* Modals mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }

    .modal-large {
        width: 95%;
        max-width: 95%;
    }

    /* Premium page mobile */
    .premium-plans {
        grid-template-columns: 1fr;
    }

    .plan-price {
        font-size: 2rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .app-header {
        padding: 0.75rem 1rem;
    }

    .header-left h1 {
        font-size: 1.25rem;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .main-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Messages mobile */
    .conversation-item {
        padding: 0.75rem;
    }

    .chat-messages {
        max-height: 300px;
    }
}

/* =====================================================
   ICÔNES CSS PROFESSIONNELLES
   ===================================================== */

/* Icônes SVG inline pour les stats */
.icon-users,
.icon-clubs,
.icon-star,
.icon-plus,
.icon-search,
.icon-grid {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    position: relative;
}

.icon-users::before,
.icon-clubs::before,
.icon-star::before,
.icon-plus::before,
.icon-search::before,
.icon-grid::before {
    content: '';
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.icon-users::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.icon-clubs::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.icon-star::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

.action-card .icon-plus,
.action-card .icon-search,
.action-card .icon-grid {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.icon-plus::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.icon-search::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.icon-grid::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Avatar icon professionnel */
.avatar-icon,
.player-avatar,
.member-avatar,
.participant-avatar,
.conversation-avatar,
.chat-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
    border: 2px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
}

.player-avatar::before,
.member-avatar::before,
.conversation-avatar::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Club icon par défaut */
.club-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--radius);
    font-size: 1.5rem;
    color: var(--bg-dark);
}

/* Stat card icon amélioration */
.stat-card .stat-icon {
    flex-shrink: 0;
}

/* =====================================================
   FORMULAIRES MOBILE - PLEIN ÉCRAN
   ===================================================== */

@media (max-width: 768px) {
    /* Modal plein écran sur mobile */
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 95vh;
        min-height: 50vh;
    }

    .modal-large {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Header modal mobile */
    .modal-header {
        padding: 1.25rem 1.5rem;
        position: sticky;
        top: 0;
        background: var(--bg-card);
        z-index: 10;
        border-bottom: 1px solid var(--border);
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }

    /* Formulaires pleine largeur */
    .modal-content form {
        padding: 1.25rem 1.5rem;
    }

    .modal-content .form-group {
        margin-bottom: 1.25rem;
    }

    .modal-content .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .modal-content .form-group input,
    .modal-content .form-group select,
    .modal-content .form-group textarea {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: var(--radius);
    }

    .modal-content .form-group textarea {
        min-height: 120px;
    }

    /* Form row en colonne sur mobile */
    .modal-content .form-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content .form-row .form-group {
        width: 100%;
    }

    /* Checkbox plus grand sur mobile */
    .modal-content .checkbox-label {
        padding: 1rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: var(--bg-glass);
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }

    .modal-content .checkbox-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    /* Actions modal */
    .modal-actions {
        padding: 1.25rem 1.5rem;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-actions .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
    }

    /* Bouton fermer modal */
    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    /* Subscription fields */
    .subscription-fields {
        padding: 1rem;
        margin-top: 1rem;
        background: var(--bg-glass);
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }

    .subscription-fields .form-row {
        flex-direction: column;
    }

    /* Premium requirement info */
    .premium-requirement-info {
        padding: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
}

/* Très petits écrans */
@media (max-width: 380px) {
    .modal-content form {
        padding: 1rem;
    }

    .modal-actions {
        padding: 1rem;
    }

    .modal-content .form-group input,
    .modal-content .form-group select,
    .modal-content .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* =====================================================
   ACTIVITÉS PRÉFÉRÉES - PROFIL
   ===================================================== */

.activities-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.activities-section h3 {
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.activities-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.activity-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.subcategories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.subcategory-chip:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.subcategory-chip.selected {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
}

.subcategory-chip input[type="checkbox"] {
    display: none;
}

.chip-icon {
    font-size: 1rem;
}

.chip-name {
    font-weight: 500;
}

/* =====================================================
   HOMEPAGE - HERO SECTION
   ===================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   HOMEPAGE - HOW IT WORKS
   ===================================================== */

.how-it-works {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0.5rem auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.05));
    border-radius: 50%;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =====================================================
   HOMEPAGE - CATEGORIES SHOWCASE
   ===================================================== */

.categories-showcase {
    margin-bottom: 2.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.category-card[data-category="gaming"]:hover {
    border-color: #8b5cf6;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.category-card[data-category="sport"]:hover {
    border-color: #22c55e;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
}

.category-card[data-category="music"]:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.category-card[data-category="boardgames"]:hover {
    border-color: #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.category-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* =====================================================
   HOMEPAGE - QUICK ACTIONS IMPROVED
   ===================================================== */

.dashboard-section {
    margin-bottom: 2.5rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    flex-shrink: 0;
    color: white;
}

.action-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.action-text strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.action-text small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Recent clubs list */
.clubs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.empty-message {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    grid-column: 1 / -1;
}

/* =====================================================
   HOMEPAGE - RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        display: flex;
        justify-content: space-around;
        gap: 1rem;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    /* Cacher les sections trop chargées sur mobile */
    .how-it-works {
        display: none;
    }

    .categories-showcase {
        display: none;
    }

    /* Actions simplifiées */
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        padding-top: 1rem;
        justify-content: center;
        gap: 1.5rem;
    }

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

    .hero-stat-value {
        font-size: 1.25rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }

    /* Section mes clubs simplifiée */
    .dashboard-section .section-title {
        font-size: 1.1rem;
    }

    /* Cacher les actions rapides sur très petit écran - le hero suffit */
    .dashboard-section:has(.quick-actions) {
        display: none;
    }
}

/* =====================================================
   GAMING PAGE - DUELS & LEADERBOARDS
   ===================================================== */

/* Gaming Header */
.gaming-header {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.gaming-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.gaming-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Gaming Section */
.gaming-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.gaming-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gaming-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gaming-icon {
    font-size: 1.75rem;
}

.gaming-section-title h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Duels Tabs */
.duels-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.duel-tab {
    padding: 0.6rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.duel-tab:hover {
    border-color: var(--primary);
    color: var(--text-white);
}

.duel-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Duel Tab Content */
.duel-tab-content {
    display: none;
}

.duel-tab-content.active {
    display: block;
}

/* Duel Cards Grid */
.duels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

/* Duel Card */
.duel-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}

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

.duel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.duel-players {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.duel-player {
    font-weight: 600;
    font-size: 0.95rem;
}

.duel-player.you {
    color: var(--primary);
}

.duel-player.opponent {
    color: var(--text-white);
}

.duel-vs {
    font-size: 1.25rem;
}

/* Duel Badges */
.duel-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.duel-badge.waiting {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.duel-badge.challenge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    animation: pulse 2s infinite;
}

.duel-badge.active {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.duel-badge.victory {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.duel-badge.defeat {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Duel Card Body */
.duel-card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.duel-game {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
}

.duel-date {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.duel-scores {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    background: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    margin-left: auto;
}

/* Duel Card Actions */
.duel-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Leaderboards */
.gaming-leaderboards {
    background: transparent;
    border: none;
    padding: 0;
}

.leaderboards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.leaderboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.leaderboard-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.leaderboard-item:hover {
    border-color: var(--primary);
}

.leaderboard-item.is-me {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: var(--radius);
    background: var(--bg-dark);
    color: var(--text-muted);
}

.leaderboard-rank.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.leaderboard-rank.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
}

.leaderboard-rank.rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.leaderboard-stats .wins {
    color: #22c55e;
}

.leaderboard-stats .losses {
    color: #ef4444;
}

.leaderboard-points {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
}

/* Empty state for duels */
#page-gaming .empty-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
}

/* =====================================================
   ARENA SELECTION PAGE
   ===================================================== */
.arena-select-container {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.arena-select-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.btn-back-arena {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-arena:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
}

.arena-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.arena-category-icon {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.arena-select-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.arena-select-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.arena-select-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.arena-select-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 30, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.arena-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.arena-select-card:hover .arena-card-glow {
    opacity: 1;
}

.arena-select-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.arena-card-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    border: 2px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.arena-select-card:hover .arena-card-icon {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.arena-select-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.arena-select-card > p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.arena-card-prize {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    animation: prize-pulse 2s ease-in-out infinite;
}

@keyframes prize-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
    50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
}

.arena-card-prize .prize-icon {
    font-size: 1.25rem;
}

.arena-card-prize span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fbbf24;
}

.arena-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.arena-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
}

.feature-icon {
    font-size: 1.1rem;
}

.arena-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.arena-select-card:hover .arena-card-action {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* =====================================================
   ARENA SOLO & CLUBS PAGES - PREMIUM DESIGN
   ===================================================== */

/* Arena Hero Section */
.arena-hero {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.arena-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
    animation: heroGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.arena-hero .btn-back-arena {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
}

.arena-hero-content {
    position: relative;
    text-align: center;
    padding: 1rem 0 2rem;
}

.arena-hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.arena-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.arena-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.arena-hero-badge.clubs {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.arena-hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Arena Hero Clubs Variant */
.arena-hero.arena-hero-clubs {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 50%, rgba(180, 83, 9, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.arena-hero.arena-hero-clubs .arena-hero-bg {
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(217, 119, 6, 0.2) 0%, transparent 50%);
}

/* Club Info Card */
.arena-clubs-info {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    position: relative;
}

.club-info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.club-info-icon {
    font-size: 1.5rem;
}

.club-info-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats Bar */
.arena-stats-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.arena-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 90px;
}

.arena-stat.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
    border-color: rgba(251, 191, 36, 0.3);
}

.arena-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.arena-stat.highlight .arena-stat-value {
    color: #fbbf24;
}

.arena-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Arena Content */
.arena-content {
    padding: 0;
}

/* CTA Button */
.arena-cta {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-arena-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

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

.btn-arena-cta.clubs {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-arena-cta.clubs:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-arena-cta .cta-icon {
    font-size: 1.75rem;
}

.btn-arena-cta .cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-arena-cta .cta-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-arena-cta .cta-text small {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Arena Navigation */
.arena-nav {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.arena-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.arena-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.arena-nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.arena-nav-item .nav-icon {
    font-size: 1.2rem;
}

.arena-nav-item .nav-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arena-nav-item .nav-badge:empty,
.arena-nav-item .nav-badge[data-count="0"] {
    display: none;
}

/* Tab Content */
.arena-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.arena-tab-content.active {
    display: block;
}

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

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Duels Grid */
.duels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Leaderboard Wrapper */
.leaderboard-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.leaderboard-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.leaderboard-header p {
    color: var(--text-muted);
}

/* Leaderboard Podium */
.leaderboard-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    min-width: 140px;
}

.podium-item:hover {
    transform: translateY(-5px);
}

.podium-item.gold {
    order: 2;
    transform: scale(1.1);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2);
}

.podium-item.gold:hover {
    transform: scale(1.1) translateY(-5px);
}

.podium-item.silver {
    order: 1;
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.15), rgba(169, 169, 169, 0.1));
    border-color: rgba(192, 192, 192, 0.4);
}

.podium-item.bronze {
    order: 3;
    background: linear-gradient(145deg, rgba(205, 127, 50, 0.15), rgba(180, 83, 9, 0.1));
    border-color: rgba(205, 127, 50, 0.4);
}

.podium-rank {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.podium-item.gold .podium-rank { color: #fbbf24; }
.podium-item.silver .podium-rank { color: #9ca3af; }
.podium-item.bronze .podium-rank { color: #b45309; }

.podium-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.podium-item.gold .podium-avatar { border-color: rgba(251, 191, 36, 0.5); }
.podium-item.silver .podium-avatar { border-color: rgba(156, 163, 175, 0.5); }
.podium-item.bronze .podium-avatar { border-color: rgba(180, 83, 9, 0.5); }

.podium-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.podium-points {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.leaderboard-table {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-position {
    width: 40px;
    font-weight: 700;
    color: var(--text-muted);
}

.leaderboard-row-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 1rem;
}

.leaderboard-row-info {
    flex: 1;
}

.leaderboard-row-name {
    font-weight: 600;
    color: white;
}

.leaderboard-row-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.leaderboard-row-points {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Leaderboard List */
.leaderboard-list {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.leaderboard-list .empty-state {
    padding: 2rem;
}

/* Gaming Mobile Responsive */
@media (max-width: 768px) {
    .gaming-header {
        padding: 1.5rem;
    }

    .gaming-header h1 {
        font-size: 1.5rem;
    }

    .gaming-section {
        padding: 1rem;
    }

    .gaming-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gaming-section-header .btn {
        width: 100%;
        justify-content: center;
    }

    .duels-tabs {
        flex-wrap: wrap;
    }

    .duel-tab {
        flex: 1;
        min-width: 100px;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .duels-grid {
        grid-template-columns: 1fr;
    }

    .duel-card-header {
        flex-direction: column;
    }

    .duel-scores {
        margin-left: 0;
    }

    .leaderboards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .duel-players {
        font-size: 0.9rem;
    }

    .duel-card-actions {
        width: 100%;
    }

    .duel-card-actions .btn {
        flex: 1;
    }
}

/* Arena Mobile Responsive */
@media (max-width: 768px) {
    /* Page Arena Selection */
    .arena-select-container {
        padding: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .arena-select-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .btn-back-arena {
        position: relative;
        margin-bottom: 1rem;
        display: inline-flex;
    }

    .arena-category-icon {
        font-size: 2rem;
    }

    .arena-select-header h1 {
        font-size: 1.5rem;
    }

    .arena-select-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .arena-select-card {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .arena-card-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .arena-select-card h2 {
        font-size: 1.25rem;
    }

    /* Pages Arena Solo & Clubs */
    #page-arena-solo,
    #page-arena-clubs {
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .arena-hero {
        padding: 1.25rem;
        margin: 0 0 1rem 0;
        border-radius: var(--radius);
    }

    .arena-hero .btn-back-arena {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
    }

    .arena-hero-content {
        padding: 0.5rem 0 1rem;
    }

    .arena-hero-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .arena-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .arena-hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .arena-hero-desc {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    /* Stats Bar Mobile */
    .arena-stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .arena-stat {
        padding: 0.75rem;
        min-width: auto;
    }

    .arena-stat-value {
        font-size: 1.25rem;
    }

    .arena-stat-label {
        font-size: 0.7rem;
    }

    /* Club Info Mobile */
    .arena-clubs-info {
        margin-top: 1rem;
        padding: 0 0.5rem;
    }

    .club-info-card {
        padding: 0.75rem 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Arena Content Mobile */
    .arena-content {
        padding: 0 1rem 1rem;
    }

    /* CTA Button Mobile */
    .arena-cta {
        margin-bottom: 1.5rem;
    }

    .btn-arena-cta {
        width: 100%;
        padding: 1rem 1.25rem;
        justify-content: center;
    }

    .btn-arena-cta .cta-icon {
        font-size: 1.5rem;
    }

    .btn-arena-cta .cta-text strong {
        font-size: 1rem;
    }

    .btn-arena-cta .cta-text small {
        font-size: 0.8rem;
    }

    /* Arena Navigation Tabs Mobile */
    .arena-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .arena-nav-item {
        padding: 0.85rem 1rem;
        justify-content: center;
    }

    .arena-nav-item .nav-icon {
        font-size: 1rem;
    }

    .arena-nav-item .nav-text {
        font-size: 0.9rem;
    }

    .arena-nav-item .nav-badge {
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
    }

    /* Duels Grid Mobile */
    .duels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Empty State Mobile */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state .empty-icon {
        font-size: 2.5rem;
    }

    .empty-state p {
        font-size: 1rem;
    }

    /* Leaderboard Mobile */
    .leaderboard-wrapper {
        padding: 0;
    }

    .leaderboard-header {
        margin-bottom: 1.5rem;
    }

    .leaderboard-header h2 {
        font-size: 1.25rem;
    }

    .leaderboard-podium {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .podium-item {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        flex-direction: row;
        gap: 1rem;
    }

    .podium-item.gold {
        order: 1;
        transform: none;
    }

    .podium-item.silver {
        order: 2;
    }

    .podium-item.bronze {
        order: 3;
    }

    .podium-rank {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .podium-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    .podium-name {
        font-size: 0.95rem;
    }

    .podium-points {
        font-size: 0.8rem;
    }

    /* Leaderboard Table Mobile */
    .leaderboard-table,
    .leaderboard-list {
        border-radius: var(--radius);
    }

    .leaderboard-row {
        padding: 0.85rem 1rem;
    }

    .leaderboard-position {
        width: 30px;
        font-size: 0.9rem;
    }

    .leaderboard-row-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-right: 0.75rem;
    }

    .leaderboard-row-name {
        font-size: 0.9rem;
    }

    .leaderboard-row-stats {
        font-size: 0.75rem;
    }

    .leaderboard-row-points {
        font-size: 0.95rem;
    }
}

/* Arena Extra Small Mobile */
@media (max-width: 380px) {
    .arena-hero {
        padding: 1rem;
    }

    .arena-hero h1 {
        font-size: 1.25rem;
    }

    .arena-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .arena-stat {
        padding: 0.6rem;
    }

    .arena-stat-value {
        font-size: 1.1rem;
    }

    .btn-arena-cta {
        padding: 0.85rem 1rem;
    }

    .arena-nav-item {
        padding: 0.75rem;
    }

    .podium-item {
        max-width: 100%;
        padding: 0.85rem 1rem;
    }
}

/* =====================================================
   TOURNAMENT CARDS
   ===================================================== */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.tournament-card {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 30, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.tournament-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.tournament-card.full {
    opacity: 0.7;
}

.tournament-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tournament-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    color: var(--primary);
}

.tournament-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.tournament-status.open {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.tournament-status.in_progress {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.tournament-status.finished {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

.tournament-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.tournament-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tournament-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tournament-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tournament-meta-item .meta-icon {
    font-size: 1rem;
}

.tournament-prize {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #fbbf24;
}

.tournament-prize .prize-icon {
    margin-right: 0.5rem;
}

.tournament-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tournament-card-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Tournament Mobile */
@media (max-width: 768px) {
    .tournaments-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .tournament-card {
        padding: 1.25rem;
    }

    .tournament-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tournament-card-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tournament-card-actions {
        flex-direction: column;
    }

    .tournament-card-actions .btn {
        width: 100%;
    }
}

/* Duel Type Selection */
.duel-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.duel-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.75rem;
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.duel-type-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.duel-type-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
}

.duel-type-card input[type="radio"] {
    display: none;
}

.duel-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.duel-type-icon {
    font-size: 2rem;
    line-height: 1;
}

.duel-type-content strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}

.duel-type-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.3;
}

/* Public duel badge */
.duel-badge.public {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.duel-public-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

@media (max-width: 480px) {
    .duel-type-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   DUEL STATS WIDGET - PREMIUM DESIGN
   ===================================================== */
.duel-stats-widget.premium {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.duel-stats-widget.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.duel-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.duel-stats-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.duel-stats-title svg {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.duel-stats-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

.btn-add-funds {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    position: relative;
    z-index: 10;
}

.btn-add-funds:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Wallet Hero Card */
.wallet-hero-card {
    position: relative;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 0.875rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow:
        0 10px 25px -5px rgba(99, 102, 241, 0.4),
        0 4px 10px -5px rgba(0, 0, 0, 0.3);
}

.wallet-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.wallet-hero-content {
    position: relative;
    z-index: 1;
}

.wallet-hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.wallet-hero-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wallet-hero-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.wallet-hero-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.stat-mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.stat-mini-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.stat-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.stat-mini-card.wins .stat-mini-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
}

.stat-mini-card.losses .stat-mini-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #ef4444;
}

.stat-mini-card.balance .stat-mini-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
    color: #6366f1;
}

.stat-mini-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.stat-mini-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

.stat-mini-card.wins .stat-mini-value {
    color: #22c55e;
}

.stat-mini-card.losses .stat-mini-value {
    color: #ef4444;
}

.stat-mini-card.balance .stat-mini-value.positive {
    color: #22c55e;
}

.stat-mini-card.balance .stat-mini-value.negative {
    color: #ef4444;
}

.stat-mini-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-mini-card {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }

    .stat-mini-icon {
        width: 36px;
        height: 36px;
    }

    .stat-mini-value {
        font-size: 1.1rem;
    }

    .wallet-hero-amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .duel-stats-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-add-funds {
        justify-content: center;
    }

    .wallet-hero-amount {
        font-size: 1.75rem;
    }

    .wallet-hero-icon {
        display: none;
    }
}

/* =====================================================
   DUEL MODE SELECTION (FRIENDLY/PAID)
   ===================================================== */
.duel-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.duel-mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.75rem;
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.duel-mode-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.duel-mode-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
}

.duel-mode-card[data-mode="paid"].selected {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

.duel-mode-card input[type="radio"] {
    display: none;
}

.duel-mode-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.duel-mode-icon {
    font-size: 1.5rem;
}

.duel-mode-content strong {
    font-size: 0.9rem;
    color: var(--text-light);
}

.duel-mode-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
}

@media (max-width: 480px) {
    .duel-mode-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   BET BADGES
   ===================================================== */
.duel-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.duel-bet-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
}

.duel-friendly-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(100, 100, 100, 0.15);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.duel-pot {
    font-size: 0.8rem;
    color: #fbbf24;
    font-weight: 600;
    margin-top: 0.5rem;
}

.duel-card.duel-paid {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), transparent);
}

.duel-card.duel-paid:hover {
    border-color: rgba(251, 191, 36, 0.5);
}

.duel-public-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    color: #3b82f6;
}

.duel-card.duel-public {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
}

.duel-card.duel-public:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.duel-player.pending-opponent {
    color: var(--text-dim);
    font-style: italic;
    opacity: 0.7;
}

/* =====================================================
   ADD FUNDS MODAL
   ===================================================== */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.quick-amount-btn {
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quick-amount-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.quick-amount-btn:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   FIL D'ACTUALITÉ / FEED - PREMIUM
   ======================================== */

.feed-section {
    margin-top: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.feed-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.feed-header svg {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.feed-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Post Composer - Premium */
.post-composer {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.95) 0%, rgba(15, 15, 28, 0.98) 100%);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin-bottom: 2rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 0 80px rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}

.post-composer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 100%;
    animation: gradientMove 4s ease infinite;
}

.post-composer::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

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

.composer-avatar {
    flex-shrink: 0;
    position: relative;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
}

.composer-avatar::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    animation: avatarGlow 3s ease infinite;
    opacity: 0.6;
    z-index: -1;
}

@keyframes avatarGlow {
    0%, 100% { background-position: 0% 50%; opacity: 0.5; }
    50% { background-position: 100% 50%; opacity: 0.8; }
}

.composer-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: all 0.3s ease;
}

.composer-avatar:hover img {
    transform: scale(1.05);
    box-shadow:
        0 0 35px rgba(99, 102, 241, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.4);
}

.composer-avatar img[src]:not([src=""]) {
    display: block;
}

.composer-avatar img[src]:not([src=""]) + .composer-avatar-placeholder {
    display: none;
}

.composer-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 50%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.composer-avatar:hover .composer-avatar-placeholder {
    transform: scale(1.05);
    box-shadow:
        0 0 40px rgba(99, 102, 241, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4);
}

.composer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.composer-content textarea {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(145deg, rgba(18, 18, 30, 0.95), rgba(12, 12, 22, 0.98));
    border: 2px solid rgba(99, 102, 241, 0.12);
    border-radius: 18px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    resize: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 90px;
    box-shadow:
        inset 0 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: inherit;
}

.composer-content textarea:hover {
    border-color: rgba(99, 102, 241, 0.25);
    background: linear-gradient(145deg, rgba(22, 22, 38, 0.95), rgba(15, 15, 28, 0.98));
}

.composer-content textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.12),
        0 0 40px rgba(99, 102, 241, 0.08),
        inset 0 3px 10px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(99, 102, 241, 0.03);
    background: linear-gradient(145deg, rgba(25, 25, 45, 0.98), rgba(18, 18, 35, 0.99));
}

.composer-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    font-style: italic;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.5rem;
}

.composer-media-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-composer-action {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(145deg, rgba(35, 35, 55, 0.9), rgba(25, 25, 40, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-composer-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-composer-action:hover::before {
    left: 100%;
}

.btn-composer-action:hover {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(45, 45, 70, 0.95));
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.25),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-composer-action:hover svg {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
    transform: scale(1.1);
}

.btn-composer-action svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    color: var(--primary-light);
}

.btn-composer-action:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Toggle Public */
.toggle-public {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.toggle-public:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
}

.toggle-public input {
    display: none;
}

.toggle-public-slider {
    width: 36px;
    height: 20px;
    background: rgba(100, 100, 120, 0.4);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-public-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #888;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-public input:checked + .toggle-public-slider {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.toggle-public input:checked + .toggle-public-slider::before {
    transform: translateX(16px);
    background: white;
}

.toggle-public-label {
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 600;
    transition: color 0.2s ease;
}

.toggle-public input:not(:checked) ~ .toggle-public-label {
    color: var(--text-muted);
}

#btn-publish-post {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 50%, var(--accent) 100%);
    background-size: 200% 100%;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 6px 25px rgba(99, 102, 241, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#btn-publish-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

#btn-publish-post:hover:not(:disabled)::before {
    left: 100%;
}

#btn-publish-post:hover:not(:disabled) {
    background-position: 100% 50%;
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 35px rgba(99, 102, 241, 0.5),
        0 6px 20px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(212, 165, 116, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#btn-publish-post:active:not(:disabled) {
    transform: translateY(-1px) scale(1);
    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#btn-publish-post:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
    background: linear-gradient(135deg, rgba(100, 100, 120, 0.5), rgba(70, 70, 90, 0.5));
    transform: none;
}

/* Media Preview - Premium */
.media-preview {
    position: relative;
    margin-top: 1rem;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.95), rgba(10, 10, 20, 0.98));
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
}

.media-preview::before {
    content: 'Apercu';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    z-index: 5;
}

.media-preview img,
.media-preview video {
    max-width: 100%;
    max-height: 320px;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

.btn-remove-media {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.95), rgba(20, 20, 35, 0.98));
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-remove-media:hover {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(239, 68, 68, 0.4),
        0 0 20px rgba(239, 68, 68, 0.2);
}

/* Upload Progress - Premium */
.upload-progress {
    margin-top: 1rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.98), rgba(15, 15, 28, 0.99));
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: uploadPulse 2s ease-in-out infinite;
}

@keyframes uploadPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(99, 102, 241, 0.1); }
    50% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 60px rgba(99, 102, 241, 0.2); }
}

.upload-progress-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.upload-progress-header .upload-icon {
    color: var(--primary-light);
    animation: uploadBounce 1s ease-in-out infinite;
}

@keyframes uploadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.upload-progress-header span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}

.upload-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 50%, var(--accent) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: progressShine 1.5s ease-in-out infinite;
    position: relative;
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 1.5s ease-in-out infinite;
}

@keyframes progressShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.upload-progress-info span:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-progress-info span:last-child {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Posts Container - Premium */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.posts-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-muted);
}

.posts-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.6) 0%, rgba(20, 20, 35, 0.8) 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    position: relative;
}

.posts-empty::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent, rgba(168, 85, 247, 0.1));
    z-index: -1;
}

.posts-empty svg {
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.posts-empty h3 {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem;
}

.posts-empty p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Individual Post - Premium */
.post-item {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: var(--transition);
}

.post-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.post-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(99, 102, 241, 0.3);
}

.post-user-info {
    flex: 1;
    min-width: 0;
}

.post-username {
    font-weight: 700;
    color: var(--text-light);
    display: block;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.post-username:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.post-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.post-menu-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary);
}

.post-content {
    padding: 0 1.5rem 1.25rem;
}

.post-text {
    color: var(--text-light);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
}

.post-media {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(20, 20, 30, 1), rgba(10, 10, 20, 1));
    position: relative;
    border-radius: 0;
}

.post-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
    transition: transform 0.3s ease;
}

.post-media:hover img {
    transform: scale(1.02);
}

.post-media video {
    width: 100% !important;
    max-height: 500px;
    height: auto;
    display: block !important;
    background: #000;
    outline: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.post-video {
    background: #000;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    color: #666;
    font-size: 0.9rem;
}

.post-media video::-webkit-media-controls {
    opacity: 1;
}

.post-media video::-webkit-media-controls-panel {
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

/* Mobile video fixes */
@media (max-width: 768px) {
    .post-media video {
        max-height: 300px;
        width: 100% !important;
        object-fit: contain;
    }

    .post-video {
        min-height: 150px;
    }
}

/* Post Actions - Premium */
.post-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
}

.post-action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary);
}

.post-action-btn.liked {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.post-action-btn.liked svg {
    fill: currentColor;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}

.post-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Comments Section - Premium */
.post-comments-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.5rem;
    display: none;
    background: rgba(0, 0, 0, 0.1);
}

.post-comments-section.expanded {
    display: block;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.comments-list::-webkit-scrollbar {
    width: 4px;
}

.comments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem;
    font-size: 0.9rem;
    font-style: italic;
}

.comment-item {
    display: flex;
    gap: 0.875rem;
    animation: fadeInUp 0.3s ease;
}

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

.comment-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.comment-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.comment-bubble {
    flex: 1;
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.5), rgba(30, 30, 50, 0.6));
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-username {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.comment-username:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.comment-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.35rem;
    line-height: 1.5;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.comment-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0;
    transition: var(--transition);
}

.comment-item:hover .comment-delete-btn {
    opacity: 1;
}

.comment-delete-btn:hover {
    color: var(--error);
}

/* Comment Form - Premium */
.comment-form {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-form textarea {
    flex: 1;
    padding: 0.75rem 1rem;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 35, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.9rem;
    resize: none;
    min-height: 44px;
    transition: var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form button {
    padding: 0.65rem 1.25rem;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    font-weight: 600;
}

.comment-form button:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Post Delete Menu - Premium */
.post-menu {
    position: relative;
}

.post-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(145deg, rgba(35, 35, 55, 0.98), rgba(25, 25, 45, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
    display: none;
    backdrop-filter: blur(10px);
}

.post-menu-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

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

.post-menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.post-menu-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.post-menu-item.danger {
    color: #ef4444;
}

.post-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Post Visibility Badge */
.post-visibility-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    margin-right: 0.5rem;
}

.post-visibility-badge.public {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.post-visibility-badge.private {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Load More Button - Premium */
#load-more-posts {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 35, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

#load-more-posts:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Feed Responsive */
@media (max-width: 768px) {
    .feed-section {
        margin-top: 1.5rem;
    }

    .post-composer {
        padding: 1rem;
    }

    .composer-avatar {
        width: 48px;
        height: 48px;
    }

    .composer-avatar::before {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
    }

    .composer-avatar img,
    .composer-avatar-placeholder {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .composer-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .composer-media-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .composer-media-buttons .btn-composer-action {
        flex: 1;
        min-width: 80px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .composer-media-buttons .toggle-public {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        order: 3;
    }

    #btn-publish-post {
        width: 100%;
        justify-content: center;
    }

    .post-header {
        padding: 0.875rem 1rem;
    }

    .post-content {
        padding: 0 1rem 0.875rem;
    }

    .post-actions {
        padding: 0.5rem 0.75rem;
    }

    .post-action-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }

    .post-comments-section {
        padding: 0.875rem 1rem;
    }
}

/* ===== PLAYER POSTS SECTION (Modal Joueur) ===== */
.player-posts-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.player-posts-section .section-header {
    margin-bottom: 1rem;
}

.player-posts-section .section-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-posts-section .section-header h4 svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.player-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-posts-list .post-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.player-posts-list .post-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.player-posts-list .post-header {
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-posts-list .post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.player-posts-list .post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.player-posts-list .post-author-info {
    flex: 1;
    min-width: 0;
}

.player-posts-list .post-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.player-posts-list .post-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.player-posts-list .post-content {
    padding: 0 1rem 0.875rem;
}

.player-posts-list .post-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.player-posts-list .post-media {
    margin-top: 0.75rem;
}

.player-posts-list .post-media img,
.player-posts-list .post-media video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
}

.player-posts-list .post-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.player-posts-list .post-action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-posts-list .post-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.player-posts-list .post-action-btn.liked {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.player-posts-list .post-action-btn svg {
    width: 16px;
    height: 16px;
}

.player-posts-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.player-posts-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

/* Mobile adjustments for player posts */
@media (max-width: 768px) {
    .player-posts-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .player-posts-list .post-media img,
    .player-posts-list .post-media video {
        max-height: 200px;
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
.app-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    text-align: center;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-toast.toast-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.app-toast.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.app-toast.toast-info {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

/* ===== SUCCESS MESSAGE OVERLAY ===== */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.success-overlay.show {
    opacity: 1;
}

.success-modal {
    background: linear-gradient(145deg, #1a1a2e, #16162a);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(34, 197, 94, 0.2);
    max-width: 90%;
}

.success-overlay.show .success-modal {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
    animation: successPulse 0.6s ease;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.success-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .app-toast {
        bottom: 80px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .success-modal {
        padding: 2rem;
        margin: 1rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon svg {
        width: 30px;
        height: 30px;
    }

    .success-title {
        font-size: 1.25rem;
    }
}

/* =====================================================
   PREMIUM MODAL
   ===================================================== */
.modal-premium-upgrade {
    max-width: 500px;
    width: 95%;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f17 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.modal-header-premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-modal-title svg {
    color: gold;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.premium-modal-title h2 {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.premium-modal-body {
    padding: 1.5rem;
}

.premium-feature-required {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.05) 100%);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #ff9999;
    font-size: 0.95rem;
    text-align: center;
}

.premium-features-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.premium-features-list h4 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.premium-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-features-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-features-list li:last-child {
    border-bottom: none;
}

.plans-premium-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.plans-premium-modal .plan-card {
    padding: 1.25rem;
}

.plans-premium-modal .plan-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    text-align: center;
}

.plans-premium-modal .plan-header {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
}

.plans-premium-modal .plan-name {
    font-size: 0.9rem;
}

.plans-premium-modal .plan-price {
    font-size: 1.5rem;
}

@media (max-width: 500px) {
    .modal-premium-upgrade {
        margin: 0 auto;
        width: 100%;
        max-width: 100vw;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .premium-modal-body {
        padding: 1rem;
        max-height: calc(90vh - 150px);
        overflow-y: auto;
    }

    .plans-premium-modal {
        grid-template-columns: 1fr;
    }

    .plans-premium-modal .plan-card-recommended {
        order: -1;
    }

    .premium-features-list {
        padding: 1rem;
    }

    .premium-features-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
}

/* =====================================================
   FORM SECTION DIVIDER
   ===================================================== */
.form-section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-section-divider svg {
    opacity: 0.7;
}

/* =====================================================
   PLAYERS HERO - PREMIUM
   ===================================================== */
.players-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.players-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: -100px;
    right: -50px;
    animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    bottom: -50px;
    left: -30px;
    animation: float-orb 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-orb 6s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes pulse-orb {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

.players-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.players-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.players-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.players-hero-title .text-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.players-hero-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.players-hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.hero-feature-text strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.hero-feature-text span {
    color: #64748b;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .players-hero {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .players-hero-title {
        font-size: 1.75rem;
    }

    .players-hero-subtitle {
        font-size: 1rem;
    }

    .players-hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-feature {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
    }

    .hero-feature-text {
        text-align: left;
    }

    .hero-orb-1 {
        width: 150px;
        height: 150px;
    }

    .hero-orb-2 {
        width: 100px;
        height: 100px;
    }

    .hero-orb-3 {
        width: 80px;
        height: 80px;
    }
}

/* =====================================================
   CLUBS HERO - PREMIUM
   ===================================================== */
.clubs-hero {
    position: relative;
    background: linear-gradient(135deg, #0c1220 0%, #1a1f35 50%, #0c1220 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clubs-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.clubs-orb-1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #10b981, #059669);
    top: -120px;
    right: -80px;
    animation: float-orb 9s ease-in-out infinite;
}

.clubs-orb-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    bottom: -80px;
    left: -50px;
    animation: float-orb 11s ease-in-out infinite reverse;
}

.clubs-orb-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation: pulse-orb 7s ease-in-out infinite;
}

.clubs-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.clubs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.clubs-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient-clubs {
    background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clubs-hero-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.clubs-hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.clubs-hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.clubs-hero-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.clubs-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.clubs-feature-text strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.clubs-feature-text span {
    color: #64748b;
    font-size: 0.75rem;
}

.clubs-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.clubs-hero-cta .btn {
    min-width: 200px;
}

.clubs-hero-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.clubs-hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Clubs Hero */
@media (max-width: 900px) {
    .clubs-hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clubs-hero {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .clubs-hero-title {
        font-size: 1.75rem;
    }

    .clubs-hero-subtitle {
        font-size: 1rem;
    }

    .clubs-hero-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .clubs-hero-feature {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
    }

    .clubs-feature-text {
        text-align: left;
    }

    .clubs-hero-cta {
        flex-direction: column;
    }

    .clubs-hero-cta .btn {
        width: 100%;
        min-width: unset;
    }

    .clubs-orb-1 {
        width: 180px;
        height: 180px;
    }

    .clubs-orb-2 {
        width: 120px;
        height: 120px;
    }

    .clubs-orb-3 {
        width: 100px;
        height: 100px;
    }
}

/* =====================================================
   CLUBS SEARCH FORM - PREMIUM DESIGN
   ===================================================== */
.clubs-search-container {
    padding: 0 1rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Quick Search Bar */
.clubs-quick-search {
    margin-bottom: 1.5rem;
}

.quick-search-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}

.quick-search-input:focus-within {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.quick-search-input > svg {
    flex-shrink: 0;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

.quick-search-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    color: var(--text-white);
}

.quick-search-input input::placeholder {
    color: var(--text-dim);
}

.quick-search-input input:focus {
    outline: none;
}

.quick-search-input .btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    flex-shrink: 0;
}

/* Filters Panel */
.clubs-filters-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.filters-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.filters-panel-header:hover {
    background: rgba(16, 185, 129, 0.05);
}

.filters-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filters-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border-radius: var(--radius);
    color: var(--success);
}

.filters-header-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.15rem;
}

.filters-header-text span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.filters-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: var(--transition);
}

.filters-panel-header:hover .filters-toggle-icon {
    color: var(--success);
}

.filters-toggle-icon.expanded {
    transform: rotate(180deg);
}

/* Filters Content */
.filters-panel-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filters-panel-content.expanded {
    max-height: 600px;
}

.filters-panel-content-inner {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Filters Grid */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Filter Cards */
.filter-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
}

.filter-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.filter-card-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-card-label svg {
    color: var(--success);
}

.filter-card select,
.filter-card input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-card select:focus,
.filter-card input:focus {
    outline: none;
    border-color: var(--success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.filter-card select option {
    background: var(--bg-dark);
    color: var(--text-white);
}

/* Location Inputs */
.location-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-inputs select,
.location-inputs input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.9rem;
}

/* Filters Actions */
.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.filters-actions .btn-ghost {
    color: var(--text-muted);
}

.filters-actions .btn-ghost:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.filters-actions .btn-primary {
    background: linear-gradient(135deg, var(--success), #059669);
}

.filters-actions .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Active Filters Bar */
.active-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--success);
}

.active-filter-chip button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    color: var(--success);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.active-filter-chip button:hover {
    opacity: 1;
}

/* Search Results */
.search-results {
    padding: 0 1rem;
}

.results-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.results-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}

.results-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .clubs-search-container {
        padding: 0 0.75rem 1.5rem;
    }

    .quick-search-input {
        flex-direction: column;
        padding: 0.75rem;
    }

    .quick-search-input .btn {
        width: 100%;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filters-actions {
        flex-direction: column;
    }

    .filters-actions .btn {
        width: 100%;
    }

    .active-filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   SEARCH WIZARD - STEP BY STEP
   ===================================================== */
.page-header-simple {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
}

.page-header-simple h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.page-header-simple p {
    color: var(--text-muted);
    font-size: 1rem;
}

.search-wizard {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wizard-step {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    overflow: hidden;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.wizard-step.active {
    opacity: 1;
    pointer-events: auto;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-glow);
}

.wizard-step.completed {
    opacity: 0.7;
    pointer-events: auto;
}

.wizard-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.wizard-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.wizard-step.active .wizard-step-number {
    background: var(--primary);
    color: white;
}

.wizard-step.completed .wizard-step-number {
    background: var(--success);
    color: white;
}

.wizard-step-info {
    flex: 1;
}

.wizard-step-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.wizard-step-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

.wizard-skip-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-skip-btn:hover {
    background: var(--bg-input);
    color: var(--text-light);
}

.wizard-step-content {
    padding: 1.25rem;
}

/* Activity Cards */
.activity-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.activity-card {
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.activity-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.activity-card.selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.activity-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.activity-card-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

/* Subcategory Chips */
.subcategory-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subcategory-chip {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.subcategory-chip:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.subcategory-chip.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Location Filters */
.location-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.location-filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-filter-item label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.location-filter-item select,
.location-filter-item input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.location-filter-item select:focus,
.location-filter-item input:focus {
    outline: none;
    border-color: var(--primary);
}

.wizard-next-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Language Only Filter */
.language-filter-only {
    text-align: center;
}

.filter-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.language-select-large {
    max-width: 300px;
    margin: 0 auto 1rem auto;
}

.language-select-large label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.language-select-large select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
}

.language-select-large select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Search Input */
.search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrapper input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
}

.wizard-step1-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.wizard-step1-actions .btn {
    flex: 1;
    padding: 0.875rem 1.25rem;
}

/* Search Method Cards */
.search-method-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .search-method-cards {
        grid-template-columns: 1fr;
    }
}

.search-method-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.search-method-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.search-method-card.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.search-method-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.search-method-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.search-method-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.search-method-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.search-method-hint span {
    background: var(--bg);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.search-method-input {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-method-card#search-method-direct {
    cursor: default;
}

.search-method-card#search-method-direct:hover {
    transform: none;
}

.search-method-input input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
}

.search-method-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-method-input .btn {
    width: 100%;
}

.wizard-final-actions {
    display: flex;
    gap: 0.75rem;
}

.wizard-final-actions .btn-lg {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* Refilter Bar */
.refilter-bar-new {
    max-width: 700px;
    margin: 0 auto 1rem auto;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.active-filters-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filters-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.active-filters-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

/* Results Section */
.results-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.results-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

#players-results-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .activity-cards {
        grid-template-columns: 1fr 1fr;
    }

    .location-filters {
        grid-template-columns: 1fr;
    }

    .wizard-final-actions {
        flex-direction: column;
    }

    .wizard-step-header {
        flex-wrap: wrap;
    }

    .wizard-skip-btn {
        margin-left: auto;
    }

    .page-header-simple h1 {
        font-size: 1.5rem;
    }
}

/* =====================================================
   CATEGORY COMMUNITY PAGE STYLES
   ===================================================== */

/* Category Page Layout */
.category-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-dark);
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.category-header .btn-back {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.category-header .btn-back:hover {
    background: var(--bg-glass);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    font-size: 1.75rem;
}

.category-title h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

/* Category Navigation Tabs */
.category-nav {
    display: flex;
    overflow-x: auto;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-nav-item .nav-icon {
    font-size: 1.25rem;
}

.category-nav-item:hover {
    color: var(--text-light);
}

.category-nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Category Content */
.category-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.category-tab-content {
    display: none;
}

.category-tab-content.active {
    display: block;
}

/* Category Sections Headers */
.category-events-header,
.category-tournaments-header,
.category-help-header,
.category-coaches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-events-header h3,
.category-tournaments-header h3,
.category-help-header h3,
.category-coaches-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

/* Mini Tabs for Tournaments */
.category-tournaments-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.mini-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.mini-tab:hover {
    background: var(--bg-input);
    color: var(--text-light);
}

.mini-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Category Post Card */
.category-post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-author {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.9rem;
}

.post-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-type-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--bg-glass);
    color: var(--text-muted);
}

.post-type-badge.announcement {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
}

.post-type-badge.question {
    background: rgba(234, 179, 8, 0.2);
    color: var(--warning);
}

.post-type-badge.help {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.post-content {
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 0.5rem 0;
}

.post-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.post-footer {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

.post-action:hover {
    background: var(--bg-glass);
    color: var(--text-light);
}

/* Category Event Card */
.category-event-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.category-event-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    min-width: 50px;
}

.event-day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 500;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 0.25rem 0;
}

.event-club {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.25rem 0;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.event-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Category Tournament Card */
.category-tournament-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.category-tournament-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.tournament-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tournament-game {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 500;
}

.tournament-type {
    font-size: 0.7rem;
    background: var(--bg-glass);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.tournament-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 0.5rem 0;
}

.tournament-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.tournament-card-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.spots-warning {
    font-size: 0.75rem;
    color: var(--warning);
    font-weight: 500;
}

.tournament-card-prize {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--accent);
}

/* Help Request Card */
.help-request-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.help-request-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.help-request-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.help-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.help-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.help-author {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-white);
}

.help-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.help-resolved-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
    border-radius: var(--radius-full);
}

.help-open-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(234, 179, 8, 0.2);
    color: var(--warning);
    border-radius: var(--radius-full);
}

.help-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 0.25rem 0;
}

.help-preview {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

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

.help-game {
    font-size: 0.75rem;
    color: var(--primary-light);
}

.help-replies {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Coach Card */
.coach-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.coach-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.coach-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.coach-info {
    flex: 1;
}

.coach-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 0.25rem 0;
}

.coach-specialties {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.25rem 0;
}

.coach-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.coach-rating {
    color: var(--warning);
}

/* Category Coaches Filters */
.category-coaches-filters {
    margin-bottom: 1rem;
}

.category-coaches-filters .form-select {
    width: 100%;
    max-width: 250px;
}

/* Empty State in Category */
.category-tab-content .empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.category-tab-content .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.category-tab-content .empty-state p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.category-tab-content .empty-state small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Responsive Category Page */
@media (max-width: 600px) {
    .category-header {
        padding: 0.75rem;
    }

    .category-title h1 {
        font-size: 1rem;
    }

    .category-icon {
        font-size: 1.5rem;
    }

    .category-nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .category-nav-item .nav-icon {
        font-size: 1rem;
    }

    .category-content {
        padding: 0.75rem;
    }

    .event-date-badge {
        min-width: 45px;
        padding: 0.4rem 0.5rem;
    }

    .event-day {
        font-size: 1rem;
    }

    .coach-avatar {
        width: 48px;
        height: 48px;
    }

    .coach-card .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   SYSTÈME DE GAINS ÉVÉNEMENTS
======================================== */

.prize-pool-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 0.5rem;
}

.prize-pool-section label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 600;
}

.prize-pool-section .prize-icon {
    font-size: 1.2rem;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.event-prize-stat {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
}

.event-prize-stat span {
    color: var(--gold);
    font-weight: 600;
}

/* Section gagnants */
.event-winners-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.event-winners-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.winner-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.winner-rank.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.winner-rank.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #333;
}

.winner-rank.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: #fff;
}

.winner-rank.rank-other {
    background: var(--bg-glass);
    color: var(--text-secondary);
}

.winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.winner-info {
    flex: 1;
}

.winner-name {
    font-weight: 600;
    color: var(--text-primary);
}

.winner-prize {
    font-size: 0.85rem;
    color: var(--gold);
}

.winner-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
}

/* Modal distribution des gains */
.prize-pool-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.prize-pool-badge, .prize-remaining-badge {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.prize-pool-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.prize-remaining-badge {
    background: var(--bg-glass);
    border: 1px solid var(--border);
}

.prize-pool-label, .prize-remaining-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.prize-pool-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.prize-remaining-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.winners-selection-section h4,
.selected-winners-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.distribute-participants {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
}

.distribute-participant {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.distribute-participant:hover {
    border-color: var(--primary);
    background: var(--bg-glass);
}

.distribute-participant.selected {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.distribute-participant .participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.distribute-participant .participant-name {
    flex: 1;
    font-weight: 500;
}

.distribute-participant .participant-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.distribute-participant.selected .participant-check {
    background: var(--gold);
    border-color: var(--gold);
    color: #333;
}

.selected-winners {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.selected-winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.selected-winner-item .winner-rank-select {
    width: 70px;
}

.selected-winner-item .winner-rank-select select {
    padding: 0.4rem;
    font-size: 0.9rem;
}

.selected-winner-item .winner-name {
    flex: 1;
    font-weight: 600;
}

.selected-winner-item .winner-prize-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-winner-item .winner-prize-input input {
    width: 100px;
    padding: 0.4rem 0.75rem;
    text-align: right;
}

.selected-winner-item .winner-remove {
    color: var(--error);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.2rem;
}

.btn-distribute-prizes {
    background: linear-gradient(135deg, var(--gold), #FFA500);
    color: #333;
    font-weight: 600;
}

.btn-distribute-prizes:hover {
    background: linear-gradient(135deg, #FFA500, var(--gold));
}

@media (max-width: 768px) {
    .prize-pool-info {
        flex-direction: column;
        gap: 1rem;
    }

    .distribute-participants {
        grid-template-columns: 1fr;
    }

    .selected-winner-item {
        flex-wrap: wrap;
    }

    .selected-winner-item .winner-prize-input {
        width: 100%;
        margin-top: 0.5rem;
    }
}
