/* ===== VARIABLES ET RESET ===== */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff6b00;
    --dark-bg: #0a0e27;
    --darker-bg: #050811;
    --light-bg: #1a1f3a;
    --text-light: #ffffff;
    --text-gray: #b8c5d6;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --success-color: #00ff88;
    --warning-color: #ffaa00;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ET CARROUSEL ===== */
#header {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header réduit pour les pages non-accueil */
#header.header-small {
    height: 400px;
    min-height: 400px;
}

#header.header-small .carousel-background {
    height: 100%;
}

#header.header-small .header-content {
    height: 400px;
    padding: 120px 20px 60px;
    justify-content: center;
}

#header.header-small .header-title {
    font-size: 48px;
}

#header.header-small .header-description {
    font-size: 18px;
    max-width: 700px;
}

#header.header-small .btn-primary {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 15px;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.7) 0%, rgba(5, 8, 17, 0.9) 100%);
    z-index: 2;
}

/* ===== NAVBAR ===== */
.navbar {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 14, 39, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-center-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.nav-right {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    margin: 0 10px;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-link {
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

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

.btn-connexion {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-connexion:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-inscription {
    padding: 10px 25px;
    background: var(--accent-gradient);
    border-radius: 5px;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-inscription:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

/* ===== CONTENU HEADER ===== */
.header-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 100px);
    text-align: center;
    padding: 0 20px;
}

.header-title {
    font-size: 72px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: fadeInDown 1s ease-out;
}

.header-description {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.btn-primary {
    display: inline-block;
    padding: 18px 45px;
    background: var(--accent-gradient);
    color: var(--text-light);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s backwards;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 20px;
    position: relative;
    z-index: 10;
}

.section-dark {
    background: var(--dark-bg);
}

.section-light {
    background: var(--light-bg);
}

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

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 60px;
}

/* ===== SECTION SERVEUR UNIQUE ===== */
.server-container-single {
    display: flex;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.server-card-main {
    background: linear-gradient(145deg, rgba(26, 31, 58, 0.9), rgba(10, 14, 39, 0.95));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 20px 40px;
    width: 100%;
    max-width: 1100px;
    min-height: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-card-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

/* Scrollbar styling pour la carte serveur */
.server-card-main::-webkit-scrollbar {
    width: 8px;
}

.server-card-main::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.server-card-main::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

.server-card-main::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.server-card-main:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
}

.server-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.server-icon-large {
    font-size: 50px;
    line-height: 1;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.server-title-section h3 {
    font-size: 32px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.server-version {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
    margin: 0;
}

.server-description {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.server-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 28px;
}

.stat-info {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 3px;
    white-space: nowrap;
}

.stat-name {
    font-size: 10px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.server-status-badge.online {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
}

.server-status-badge.offline {
    background: rgba(255, 107, 0, 0.2);
    color: var(--secondary-color);
}

.server-status-badge.starting {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning-color);
}

.loading-spinner {
    display: inline-block;
    animation: blink 1.4s infinite both;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

.server-ip-section {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ip-label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.ip-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-ip {
    flex: 1;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    user-select: all;
}

.btn-copy-ip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-ip:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.server-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.btn-join-server {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-join-server:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.server-update-time {
    text-align: center;
    position: relative;
    z-index: 1;
}

.server-update-time small {
    color: var(--text-gray);
    font-size: 12px;
    opacity: 0.7;
}

/* Grille 4 colonnes pour les stats serveur */
.server-stats-4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .server-stats-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .server-stats-4col {
        grid-template-columns: 1fr;
    }
}

/* Badge TPS */
.tps-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.tps-badge.tps-excellent {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.tps-badge.tps-good {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.tps-badge.tps-medium {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.tps-badge.tps-bad {
    background: rgba(255, 107, 0, 0.2);
    color: #ff6b00;
}

/* Section joueurs connectés */
.players-online-section {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.players-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.players-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.players-count {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 14, 39, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.2s ease;
}

.player-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.player-item img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.player-item span {
    font-weight: 500;
}

/* ===== SECTION FONCTIONNALITÉS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(10, 14, 39, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===== SECTION STATISTIQUES ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 64px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 20px;
    color: var(--text-gray);
    font-weight: 600;
}

/* ===== SECTION ACTUALITÉS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.news-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 102, 255, 0.2));
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.news-date {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.8;
}

.news-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.news-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--text-light);
}

/* ===== SECTION CTA ===== */
.section-cta {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 25px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
}

.btn-secondary {
    display: inline-block;
    padding: 18px 45px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--darker-bg);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--text-gray);
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 14px;
    margin: 5px 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        padding: 15px 30px;
        gap: 15px;
    }

    .nav-center-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-right {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
    }

    .header-title {
        font-size: 56px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-center-container {
        gap: 15px;
        font-size: 14px;
    }

    .nav-link {
        font-size: 14px;
    }

    .logo {
        height: 50px;
    }

    #header {
        height: 100vh;
        min-height: 600px;
    }

    #header.header-small {
        height: 350px;
        min-height: 350px;
    }

    .header-title {
        font-size: 42px;
    }

    .header-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 36px;
    }

    .cta-title {
        font-size: 38px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

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

    /* Responsive pour la section serveur */
    .server-card-main {
        padding: 30px 25px;
        width: 100%;
        min-height: auto;
    }

    .server-container-single {
        max-width: 95%;
    }

    .server-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .server-icon-large {
        width: 80px;
        height: 80px;
        font-size: 60px;
    }

    .server-title-section h3 {
        font-size: 28px;
    }

    .server-description {
        font-size: 16px;
    }

    .server-stats-grid.server-stats-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 18px;
    }

    .stat-icon {
        font-size: 36px;
    }

    .stat-value {
        font-size: 24px;
    }

    .ip-container {
        flex-direction: column;
    }

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

    .server-ip {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-center-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    #header {
        height: 100vh;
        min-height: 500px;
    }

    #header.header-small {
        height: 300px;
        min-height: 300px;
    }

    .header-title {
        font-size: 32px;
    }

    .header-description {
        font-size: 14px;
    }

    .stat-number {
        font-size: 48px;
    }
}

/* ==================== LAUNCHER PAGE ==================== */
.info-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    color: var(--text-gray);
    line-height: 2;
    font-size: 1.05em;
    padding: 5px 0;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.download-card {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
    background: rgba(10, 14, 39, 0.95);
}

.download-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.download-card h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 600;
}

.download-compatibility {
    color: var(--text-gray);
    margin-bottom: 10px;
    font-size: 0.95em;
}

.download-format {
    display: inline-block;
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-family: monospace;
    margin-bottom: 15px;
}

.btn-download {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
}

.download-version {
    color: var(--text-gray);
    font-size: 0.9em;
    margin-top: 10px;
    margin-bottom: 0;
}

.note-box {
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.note-box p {
    color: var(--text-gray);
    margin: 0;
    font-size: 1em;
}

.note-box strong {
    color: var(--primary-color);
}

/* ==================== MODPACKS PAGE ==================== */
.modpack-description {
    max-width: 900px;
    margin: 0 auto;
}

.modpack-card {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modpack-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
}

.modpack-intro {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
    text-align: center;
}

.modpack-intro strong {
    color: var(--primary-color);
}

.modpack-highlight {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(0, 212, 255, 0.08);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.highlight-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.highlight-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.highlight-content p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.7;
}

.modpack-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.feature-item p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95em;
}

.modpack-mods {
    margin-top: 40px;
}

.modpack-mods h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.3em;
}

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

.mod-badge {
    padding: 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.mod-badge:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

.mods-note {
    margin-top: 20px;
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    font-size: 0.95em;
}

.modpack-cta {
    margin-top: 40px;
    text-align: center;
}

.cta-note {
    margin-top: 15px;
    color: var(--text-gray);
    font-size: 0.9em;
}

/* ==================== NAV USER/GUEST ==================== */
#navGuest {
    display: flex;
    gap: 15px;
    align-items: center;
}

#navUser {
    display: none;
    align-items: center;
    gap: 15px;
}

/* ==================== USER MENU & DROPDOWN ==================== */
.user-menu {
    position: relative;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-skin {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.user-menu-button span {
    color: #fff;
    font-weight: 500;
}

.user-credits {
    background: rgba(46, 204, 113, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    color: #2ecc71;
    font-weight: 600;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #ecf0f1;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.user-dropdown a:hover {
    background: #f8f9fa;
}

/* ==================== ORIGIN STORY - MODPACKS PAGE ==================== */
.origin-story {
    margin: 40px 0;
}

.origin-header {
    text-align: center;
    margin-bottom: 50px;
}

.gussdx-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    margin-bottom: 20px;
}

.origin-creator {
    font-size: 1.2em;
    color: var(--text-gray);
    margin: 0;
}

.origin-creator strong {
    color: var(--primary-color);
    font-size: 1.3em;
}

.story-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 60px;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.timeline-icon {
    font-size: 48px;
    background: rgba(0, 212, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

.origin-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.origin-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.origin-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.origin-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.origin-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.origin-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .gussdx-logo {
        max-width: 250px;
    }

    .origin-creator {
        font-size: 1.1em;
    }

    .origin-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-item {
        gap: 20px;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.2em;
    }

    .modpack-highlight {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .highlight-icon {
        font-size: 40px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .gussdx-logo {
        max-width: 200px;
    }

    .origin-creator {
        font-size: 1em;
        padding: 0 15px;
    }

    .origin-creator strong {
        font-size: 1.2em;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-content {
        border-left: none;
        border-top: 3px solid var(--primary-color);
    }

    .timeline-icon {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }

    .origin-card {
        padding: 25px;
    }

    .origin-card-icon {
        font-size: 40px;
    }

    .modpack-highlight {
        padding: 20px;
    }

    .highlight-icon {
        font-size: 36px;
    }

    .highlight-content h4 {
        font-size: 1.2em;
    }
}

/* ==================== DYNMAP PAGE ==================== */
.dynmap-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    margin-top: 20px;
}

.dynmap-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.sidebar-card p {
    color: var(--text-gray);
    font-size: 0.95em;
    line-height: 1.6;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.player-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.player-name {
    color: var(--text-light);
    font-weight: 500;
}

.no-players, .error-text {
    color: var(--text-gray);
    font-style: italic;
    text-align: center;
    padding: 10px;
}

.locations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.locations-list li {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.locations-list strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 5px;
}

.coords {
    color: var(--text-gray);
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    color: var(--text-gray);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list code {
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.dynmap-viewer {
    position: relative;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    min-height: 700px;
}

.map-controls {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.btn-control:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

.map-iframe {
    width: 100%;
    height: calc(100% - 60px);
    min-height: 640px;
    border: none;
}

.map-placeholder {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 39, 0.95);
}

.placeholder-content {
    text-align: center;
    padding: 40px;
}

.placeholder-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.placeholder-content h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.placeholder-content p {
    color: var(--text-gray);
    font-size: 1.1em;
    margin: 10px 0;
}

.loading-spinner {
    text-align: center;
    color: var(--text-gray);
    padding: 20px;
}

/* Responsive Dynmap */
@media (max-width: 1024px) {
    .dynmap-container {
        grid-template-columns: 1fr;
    }

    .dynmap-sidebar {
        order: 2;
    }

    .dynmap-viewer {
        order: 1;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .map-controls {
        flex-wrap: wrap;
    }

    .btn-control {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
    }

    .map-iframe {
        min-height: 400px;
    }

    .dynmap-viewer {
        min-height: 450px;
    }
}

@media (max-width: 480px) {
    .sidebar-card {
        padding: 15px;
    }

    .player-item {
        padding: 8px;
    }

    .placeholder-icon {
        font-size: 60px;
    }

    .placeholder-content h3 {
        font-size: 1.4em;
    }
}

/* ==================== VOTES PAGE ==================== */

/* Stats globales */
.vote-global-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.vote-stat-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.vote-stat-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.vote-stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.vote-stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.vote-stat-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Notice de connexion */
.vote-login-notice {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.1), rgba(255, 107, 0, 0.1));
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.notice-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.notice-content h3 {
    color: var(--warning-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.notice-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Stats utilisateur */
.user-vote-stats {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.user-stats-header h3 {
    text-align: center;
    color: var(--success-color);
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-stats-content {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.user-stat {
    text-align: center;
}

.user-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-light);
}

.user-stat-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* Section titre */
.vote-section-title {
    text-align: center;
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Grille des sites de vote */
.vote-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.vote-site-card {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.vote-site-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.vote-site-card.can-vote {
    border-color: rgba(0, 255, 136, 0.4);
}

.vote-site-card.on-cooldown {
    opacity: 0.7;
}

.vote-site-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.vote-site-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.vote-site-reward {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.vote-site-cooldown {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.vote-site-cooldown.available {
    color: var(--success-color);
}

.vote-site-cooldown.waiting {
    color: var(--warning-color);
}

.btn-vote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-vote.available {
    background: var(--accent-gradient);
    color: var(--bg-darker);
}

.btn-vote.available:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-vote.disabled {
    background: rgba(100, 100, 100, 0.3);
    color: var(--text-gray);
    cursor: not-allowed;
}

/* Section paliers */
.vote-milestones-section {
    margin-bottom: 50px;
}

.milestones-description {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.milestone-card {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.milestone-card.unlocked {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.05);
}

.milestone-card.claimed {
    opacity: 0.6;
}

.milestone-card.claimed::after {
    content: 'Reclamee';
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--success-color);
    color: var(--bg-darker);
    padding: 5px 40px;
    font-size: 10px;
    font-weight: 700;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.milestone-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.milestone-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
}

.milestone-votes {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.milestone-reward {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.milestone-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.milestone-progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.btn-claim {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-claim.available {
    background: var(--success-color);
    color: var(--bg-darker);
}

.btn-claim.available:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(0, 255, 136, 0.4);
}

.btn-claim.locked {
    background: rgba(100, 100, 100, 0.3);
    color: var(--text-gray);
    cursor: not-allowed;
}

/* Récompenses en attente */
.pending-rewards-section {
    max-width: 700px;
    margin: 0 auto 40px;
}

.pending-rewards-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.1));
    border: 2px solid var(--success-color);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    }
}

.pending-rewards-icon {
    font-size: 48px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.pending-rewards-info {
    flex: 1;
}

.pending-rewards-info h3 {
    margin: 0 0 5px;
    color: var(--success-color);
    font-size: 18px;
}

.pending-rewards-info p {
    margin: 0 0 5px;
    color: var(--text-light);
    font-size: 16px;
}

.pending-rewards-info small {
    color: var(--text-gray);
    font-size: 13px;
}

.btn-claim-rewards {
    background: linear-gradient(135deg, var(--success-color), #00b894);
    color: #0a0e27;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-claim-rewards:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.btn-claim-rewards:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.pending-rewards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.pending-reward-item {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.reward-type-icon {
    font-size: 20px;
}

.reward-details {
    display: flex;
    flex-direction: column;
}

.reward-description {
    color: var(--text-light);
}

.reward-date {
    color: var(--text-gray);
    font-size: 12px;
}

/* Classement */
.vote-leaderboard-section {
    max-width: 700px;
    margin: 0 auto;
}

.leaderboard-container {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.leaderboard-table {
    width: 100%;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 100px;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: background 0.3s ease;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: rgba(0, 212, 255, 0.05);
}

.leaderboard-row.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), transparent);
}

.leaderboard-row.top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent);
}

.leaderboard-row.top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent);
}

.leaderboard-rank {
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.leaderboard-rank.gold {
    color: #ffd700;
}

.leaderboard-rank.silver {
    color: #c0c0c0;
}

.leaderboard-rank.bronze {
    color: #cd7f32;
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    image-rendering: pixelated;
}

.leaderboard-name {
    font-weight: 600;
    color: var(--text-light);
}

.leaderboard-votes,
.leaderboard-credits {
    text-align: center;
    font-weight: 600;
}

.leaderboard-votes {
    color: var(--primary-color);
}

.leaderboard-credits {
    color: var(--success-color);
}

.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

/* Responsive votes */
@media (max-width: 768px) {
    .vote-global-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .user-stats-content {
        gap: 30px;
    }

    .user-stat-value {
        font-size: 28px;
    }

    .vote-sites-grid {
        grid-template-columns: 1fr;
    }

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

    .pending-rewards-card {
        flex-direction: column;
        text-align: center;
    }

    .pending-rewards-info {
        text-align: center;
    }

    .leaderboard-row {
        grid-template-columns: 50px 1fr 70px;
    }

    .leaderboard-credits {
        display: none;
    }
}

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

    .leaderboard-row {
        grid-template-columns: 40px 1fr 60px;
        padding: 12px 15px;
    }

    .leaderboard-avatar {
        width: 28px;
        height: 28px;
    }
}

/* ===== PAGE PROFIL ===== */
.profile-login-required {
    text-align: center;
    padding: 60px 20px;
}

.profile-login-required .login-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.profile-login-required h2 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.profile-login-required p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

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

.profile-header-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--dark-bg) 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    width: 120px;
    height: auto;
    image-rendering: pixelated;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-stats-row {
    display: flex;
    gap: 40px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.profile-stat .stat-label {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.profile-section {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-section-wide {
    grid-column: span 2;
}

.profile-section .section-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-section .section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.profile-section .section-content {
    padding: 25px;
}

/* Récompenses en attente */
.pending-credits-card,
.pending-rcon-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.pending-credits-icon,
.pending-rcon-icon {
    font-size: 2rem;
}

.pending-credits-info,
.pending-rcon-info {
    flex-grow: 1;
}

.pending-credits-label,
.pending-rcon-label {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.pending-credits-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
}

.pending-rcon-count {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-claim-credits,
.btn-claim-rcon {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-claim-credits:hover,
.btn-claim-rcon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.btn-claim-credits:disabled,
.btn-claim-rcon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pending-reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 8px;
}

.pending-reward-item .reward-icon {
    font-size: 1.2rem;
}

.pending-reward-item .reward-details {
    flex-grow: 1;
}

.pending-reward-item .reward-description {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
}

.pending-reward-item .reward-date {
    display: block;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.pending-reward-item .reward-credits {
    color: var(--success-color);
    font-weight: bold;
}

.no-pending-message {
    text-align: center;
    padding: 30px;
    color: var(--text-gray);
}

.no-pending-message .no-pending-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* Préférences de récompenses */
.reward-preference-card {
    padding: 10px 0;
}

.preference-description {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.preference-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.preference-option {
    display: block;
    cursor: pointer;
}

.preference-option input {
    display: none;
}

.preference-option .option-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.preference-option:hover .option-content {
    border-color: rgba(0, 212, 255, 0.3);
}

.preference-option.selected .option-content,
.preference-option input:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.preference-option .option-icon {
    font-size: 2rem;
}

.preference-option .option-text {
    flex-grow: 1;
}

.preference-option .option-title {
    display: block;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 5px;
}

.preference-option .option-desc {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.preference-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 8px;
    color: var(--warning-color);
    font-size: 0.9rem;
}

.preference-note .note-icon {
    flex-shrink: 0;
}

/* Info profil header */
.profile-email {
    color: var(--text-gray);
    margin-bottom: 5px;
}

.profile-member-since {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Formulaires profil */
.profile-section .form-group {
    margin-bottom: 20px;
}

.profile-section .form-group label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.profile-section .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.profile-section .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.profile-section .form-group input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.profile-section .btn-save {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-section .btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.profile-section .btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Informations du compte */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.account-info-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
}

.account-info-item .info-label {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.account-info-item .info-value {
    display: block;
    color: var(--text-light);
    font-weight: 500;
}

.account-info-item .info-uuid {
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.btn-refresh-uuid {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-refresh-uuid:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.3);
}

.btn-refresh-uuid:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.account-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 8px;
    color: var(--warning-color);
    font-size: 0.9rem;
    margin-top: 20px;
}

.account-note .note-icon {
    flex-shrink: 0;
}

/* Historique */
.rewards-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-info {
    text-align: center;
    padding: 30px;
    color: var(--text-gray);
}

.history-info a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

    .profile-section-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }

    .profile-stats-row {
        justify-content: center;
        gap: 30px;
    }

    .profile-info h2 {
        font-size: 1.5rem;
    }

    .pending-credits-card,
    .pending-rcon-card {
        flex-direction: column;
        text-align: center;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }

    .profile-stat .stat-value {
        font-size: 1.5rem;
    }

    .preference-option .option-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== BADGES ===== */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badges-loading {
    color: var(--text-secondary);
    padding: 20px;
    text-align: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid;
    border-radius: 12px;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    font-size: 2rem;
}

.badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.badge-count {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.no-badges-message {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.no-badges-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

/* ===== DISCORD ===== */
.discord-unlinked,
.discord-linked {
    text-align: center;
    padding: 20px;
}

.discord-icon {
    margin-bottom: 15px;
}

.discord-icon svg {
    opacity: 0.8;
}

.discord-icon.linked svg {
    opacity: 1;
}

.discord-unlinked p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

.discord-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.discord-details {
    text-align: left;
}

.discord-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
}

.discord-username {
    color: #5865F2;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-discord-unlink {
    background: transparent;
    border: 1px solid rgba(255, 107, 0, 0.5);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-discord-unlink:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--accent);
}

.discord-note {
    margin-top: 20px;
    padding: 12px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.gussdx-discord-link {
    color: #5865F2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gussdx-discord-link:hover {
    color: #4752C4;
    text-decoration: underline;
}
