/* ========================================= */
/* ===== MODE CLAIR/SOMBRE ================ */
/* ========================================= */

/* ===== VARIABLES DARK (défaut) ===== */
:root {
    /* Palette Dark */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1623;
    --bg-card: #141b2d;
    --bg-glass: rgba(20, 27, 45, 0.6);
    
    --text-primary: #f3f4f6;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    
    --accent-gold: #f0b90b;
    --accent-gold-light: #ffd700;
    --accent-gold-dark: #aa8c2c;
    
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-green: #4ade80;
    --accent-red: #ef4444;
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== VARIABLES LIGHT ===== */
[data-theme="light"] {
    /* Palette Light */
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.15);
    
    --accent-gold: #d4a500;
    --accent-gold-light: #ffc107;
    --accent-gold-dark: #997700;
    
    --accent-purple: #7c3aed;
    --accent-blue: #2563eb;
    --accent-green: #10b981;
    --accent-red: #dc2626;
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ===== TRANSITIONS ===== */
*,
*::before,
*::after {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* ===== THEME SWITCHER TOGGLE ===== */
.theme-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    gap: 8px;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(240, 185, 11, 0.3);
}

.theme-btn.active {
    background: var(--accent-gold);
    color: #0a0e1a;
    border-color: var(--accent-gold);
}

.theme-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.theme-btn:hover .theme-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== HEADER ADJUSTMENTS FOR LIGHT MODE ===== */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

[data-theme="light"] .hero-title {
    filter: none;
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-secondary);
}

[data-theme="light"] .section-alt {
    background: rgba(203, 213, 225, 0.5);
}

[data-theme="light"] .class-card,
[data-theme="light"] .news-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .leaderboard-table,
[data-theme="light"] .footer,
[data-theme="light"] .player-panel,
[data-theme="light"] .news-panel,
[data-theme="light"] .sidebar-right,
[data-theme="light"] .profile-hero {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="light"] .guild-banner {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}

[data-theme="light"] .guild-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .sidebar-widget {
    background: var(--bg-card);
    border-color: var(--border);
}

/* ===== TEXT GRADIENT ADAPTATION ===== */
[data-theme="light"] .hero-title,
[data-theme="light"] .rpg-title,
[data-theme="light"] .logo-text,
[data-theme="light"] .hero-title,
[data-theme="light"] .profile-name,
[data-theme="light"] .guild-name {
    filter: none;
    color: var(--accent-gold);
}

/* ===== BORDER ADJUSTMENTS ===== */
[data-theme="light"] .navbar {
    border-bottom-color: var(--border);
}

[data-theme="light"] .divider,
[data-theme="light"] hr {
    border-color: var(--border-light);
}

/* ===== FORM INPUTS ===== */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

/* ===== LINKS ===== */
[data-theme="light"] a {
    color: var(--accent-blue);
}

[data-theme="light"] a:hover {
    color: var(--accent-gold);
}

/* ===== BUTTONS ===== */
[data-theme="light"] .btn-primary {
    background: var(--accent-gold);
    color: #0a0e1a;
}

[data-theme="light"] .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(212, 165, 0, 0.1);
}

/* ===== BADGES & TAGS ===== */
[data-theme="light"] .news-tag,
[data-theme="light"] .profile-tag,
[data-theme="light"] .lb-class-badge {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border);
}

/* ===== PROGRESS BARS ===== */
[data-theme="light"] .xp-bar-track,
[data-theme="light"] .leaderboard-header {
    background: rgba(0, 0, 0, 0.05);
}

/* ===== MODALS ===== */
[data-theme="light"] .modal-content,
[data-theme="light"] .modal-overlay {
    background: rgba(255, 255, 255, 0.95);
}

/* ===== PARTICLES ===== */
[data-theme="light"] .particle {
    background: var(--accent-gold);
    opacity: 0.4;
}

/* ===== RESPONSIVE THEME SWITCHER ===== */
@media (max-width: 600px) {
    .theme-switcher {
        bottom: 16px;
        right: 16px;
    }
    
    .theme-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* ===== RESET & VARIABLES ===== */
:root {
    --bg-dark: #0a0e1a;
    --bg-card: #111827;
    --bg-glass: rgba(17, 24, 39, 0.6);
    --accent-gold: #f0b90b;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.nav-shop {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    padding: 6px 16px !important;
    border-radius: 8px;
    color: white !important;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.discord-btn:hover { background: #4752C4; }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #0a0e1a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
}

.hero-overlay { position: absolute; inset: 0; }

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    animation: fadeUp 1s ease-out;
}

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

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), #ffd700, #fff8dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gold);
    color: #0a0e1a;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 185, 11, 0.3);
}

.copy-icon { font-size: 1rem; }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    background: rgba(240, 185, 11, 0.05);
}

.player-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.player-count strong { color: #4ade80; font-weight: 600; }

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: rgba(15, 23, 42, 0.5); }

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* ===== CLASS CARDS ===== */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.class-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.class-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.class-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-purple);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

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

.class-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.class-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--accent-gold);
}

.class-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.class-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.stat {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ===== LEADERBOARD ===== */
.leaderboard-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.leaderboard-header,
.leaderboard-row > div {
    display: grid;
    grid-template-columns: 60px 1fr 120px 100px 1fr;
    align-items: center;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.leaderboard-header {
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.lb-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 100px 1fr;
    align-items: center;
    padding: 14px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(139, 92, 246, 0.05); }

.lb-rank-num { font-weight: 700; }
.lb-rank-1 { color: #ffd700; }
.lb-rank-2 { color: #c0c0c0; }
.lb-rank-3 { color: #cd7f32; }

.lb-player-name { font-weight: 500; color: var(--accent-blue); }
.lb-class-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.lb-level { color: var(--accent-gold); font-weight: 600; }
.lb-guild-name { color: var(--text-secondary); }

/* ===== NEWS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.3s, border-color 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}

.news-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.news-tag.update { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.news-tag.maintenance { background: rgba(250, 204, 21, 0.15); color: #facc15; }

.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

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

/* ===== FOOTER ===== */
.footer {
    background: #050810;
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--accent-gold);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; }
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-section a:hover { color: var(--accent-gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-dark);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }
    .hamburger { display: block; }
    .discord-btn { display: none; }

    .leaderboard-header,
    .lb-row {
        grid-template-columns: 40px 1fr 80px;
    }

    .lb-class, .lb-guild { display: none; }
}

@media (max-width: 600px) {
    .footer-content { grid-template-columns: 1fr; }
    .class-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* ===== TEXT CENTER UTILITY ===== */
.text-center { text-align: center; }

/* ===== SECTION NARROW ===== */
.section-narrow { padding: 48px 0; }
.section-narrow .section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 4px; }
.section-narrow .section-desc { margin-bottom: 32px; }

/* ===== PROFILE HERO ===== */
.profile-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding-top: 64px;
    background: linear-gradient(135deg, #0f172a 0%, #1a1040 40%, #0a0e1a 100%);
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 50%, rgba(239, 68, 68, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.profile-overlay { position: absolute; inset: 0; }

.profile-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    align-items: center;
}

/* ===== AVATAR ===== */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 3px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 0 40px rgba(240, 185, 11, 0.25);
    animation: fadeUp 0.8s ease-out;
}

.profile-level-badge {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-gold), #d4af37);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a0e1a;
    box-shadow: 0 4px 16px rgba(240, 185, 11, 0.4);
}

/* ===== PROFILE INFO ===== */
.profile-info {
    animation: fadeUp 0.8s ease-out 0.1s both;
}

.profile-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.profile-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.profile-tag {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.class-tag-warrior {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}
.class-tag-mage {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}
.class-tag-archer {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}
.class-tag-healer {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
}
.class-tag-rogue {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.guild-tag {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border-color: rgba(139, 92, 246, 0.3);
}

.rank-tag {
    background: rgba(240, 185, 11, 0.15);
    color: var(--accent-gold);
    border-color: rgba(240, 185, 11, 0.3);
}

.profile-quote {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    max-width: 500px;
    line-height: 1.5;
}

/* ===== PROFILE META ===== */
.profile-meta {
    grid-column: 1 / -1;
    display: flex;
    gap: 32px;
    margin-top: 8px;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* ===== XP BAR ===== */
.xp-bar-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}

.xp-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.xp-bar-label strong { color: var(--accent-gold); }

.xp-bar-track {
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #ffd700, #fff8dc);
    border-radius: 12px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
}

.xp-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.xp-bar-percent {
    position: absolute;
    top: 50%;
    right: 36px;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(240, 185, 11, 0.1);
}

.stat-card-icon { font-size: 2rem; margin-bottom: 12px; }

.stat-card-value {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

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

/* ===== EQUIPMENT LAYOUT ===== */
.equipment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Character silhouette */
.equipment-character {
    display: flex;
    justify-content: center;
}

.char-silhouette {
    position: relative;
    width: 280px;
    height: 480px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.char-silhouette::after {
    content: '👤';
    font-size: 6rem;
    opacity: 0.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.char-slot {
    position: absolute;
    width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    z-index: 2;
}

.char-slot:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(240, 185, 11, 0.15);
}

.char-slot.active {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.2);
}

.slot-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.slot-name { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.slot-item { font-size: 0.8rem; color: var(--accent-gold); font-weight: 500; display: block; margin-top: 4px; }

/* Slot positions around silhouette */
.char-head { top: 20px; left: 50%; transform: translateX(-50%); }
.char-head:hover { transform: translateX(-50%) scale(1.05); }

.char-chest { top: 130px; left: 50%; transform: translateX(-50%); }
.char-chest:hover { transform: translateX(-50%) scale(1.05); }

.char-weapon { top: 130px; right: -40px; }
.char-ring { top: 130px; left: -40px; }

.char-legs { top: 250px; left: 50%; transform: translateX(-50%); }
.char-legs:hover { transform: translateX(-50%) scale(1.05); }

.char-boots { bottom: 20px; left: 50%; transform: translateX(-50%); }
.char-boots:hover { transform: translateX(-50%) scale(1.05); }

.char-amulet { top: 70px; right: -40px; }

/* ===== EQUIPMENT DETAILS ===== */
.equipment-details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.details-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.details-rarity {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.rarity-common { background: rgba(156, 163, 175, 0.15); color: #9ca3af; }
.rarity-rare { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.rarity-epic { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.rarity-legendary { background: rgba(240, 185, 11, 0.15); color: var(--accent-gold); }

.details-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.details-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
}

.detail-row span:first-child { color: var(--text-secondary); }
.detail-row span:last-child { color: #4ade80; font-weight: 600; }

.details-enchant { margin-bottom: 20px; }
.details-enchant h4 {
    font-size: 0.95rem;
    color: var(--accent-purple);
    margin-bottom: 8px;
}
.details-enchant ul {
    list-style: none;
    padding: 0;
}
.details-enchant li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    line-height: 1.5;
}

.details-flavor {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: border-color 0.2s, transform 0.2s;
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement-card.unlocked {
    opacity: 1;
    filter: none;
}

.achievement-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.ach-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.ach-info { flex: 1; }
.ach-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.ach-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 4px;
}
.ach-date {
    font-size: 0.75rem;
    color: var(--accent-gold);
}
.ach-progress {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    animation: fadeUp 0.6s ease-out;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: border-color 0.2s;
}

.timeline-content:hover {
    border-color: var(--accent-gold);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted, var(--text-secondary));
}

/* ===== RESPONSIVE PROFILE ===== */
@media (max-width: 768px) {
    .profile-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .profile-avatar-wrapper {
        margin: 0 auto;
    }

    .profile-tags { justify-content: center; }
    .profile-quote { margin: 0 auto; }

    .profile-meta {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .equipment-layout { grid-template-columns: 1fr; }

    .char-silhouette { margin: 0 auto; width: 240px; height: 420px; }
    .char-weapon, .char-ring, .char-amulet { right: -20px; }
    .char-ring { left: -20px; right: auto; }

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

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

@media (max-width: 480px) {
    .profile-avatar { width: 120px; height: 120px; font-size: 3.5rem; }
    .profile-level-badge { width: 44px; height: 44px; font-size: 1.1rem; }
    .stats-grid { grid-template-columns: 1fr; }
}

.lb-profile-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.lb-profile-link:hover {
    color: var(--accent-gold) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lb-player-name a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* ===== PAGE HEADER (UNIVERSIEL) ===== */
.page-header {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1a1040 100%);
    padding: 80px 20px 40px;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(240, 185, 11, 0.08) 0%, transparent 60%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--accent-gold), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.page-header > p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 24px;
}

/* BLOG STYLES ===== */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(240, 185, 11, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-gold);
}

.blog-image {
    height: 160px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-category {
    font-size: 0.75rem;
    color: var(--accent-gold);
    background: rgba(240, 185, 11, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

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

.blog-title a {
    text-decoration: none;
    color: inherit;
}

.blog-title a:hover { color: var(--accent-gold); }

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.page-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
    background: rgba(240, 185, 11, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* BLOG LAYOUT */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.blog-sidebar {
    position: sticky;
    top: 84px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.category-list a:hover, .category-list a.active {
    background: rgba(240, 185, 11, 0.1);
    color: var(--accent-gold);
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.popular-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    width: 24px;
}

.popular-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.popular-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-form input {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ===== GUILDS STYLES ===== */
.guilds-hero {
    min-height: 280px;
}

.guild-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 24px;
}

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

.guild-stat .stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guild-stat .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guild-search-bar {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.guild-search-bar input {
    flex: 1;
    min-width: 250px;
    max-width: 500px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.guild-select {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
}

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

.guild-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s;
    color: inherit;
}

.guild-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.guild-card .guild-logo {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.guild-card .guild-info {
    flex: 1;
}

.guild-card .guild-name {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.guild-card .guild-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.guild-card .guild-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.guild-card .guild-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.guild-card .guild-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--border);
    padding: 8px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
}

.guild-card .recruiting { color: #4ade80 !important; }
.guild-card .closed { color: #ef4444 !important; }

/* ===== GUILD DETAIL PAGE ===== */
.guild-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a2840 0%, #0d1520 100%);
    padding: 80px 20px 40px;
}

.guild-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(240, 185, 11, 0.1) 0%, transparent 50%);
}

.guild-banner-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.guild-logo-wrapper {
    position: relative;
}

.guild-logo {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 4px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    box-shadow: 0 0 40px rgba(240, 185, 11, 0.3);
}

.guild-tier {
    position: absolute;
    bottom: -12px;
    right: -12px;
    background: linear-gradient(135deg, var(--accent-gold), #ffd700);
    color: #0a0e1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.tier-1 { background: linear-gradient(135deg, #ffd700, #f0b90b); }
.tier-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.tier-3 { background: linear-gradient(135deg, #cd7f32, #b87333); }

.guild-info {
    flex: 1;
}

.guild-name {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.guild-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.guild-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

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

.guild-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.recruiting { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
.status-dot.closed { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }

.guild-actions {
    display: flex;
    gap: 16px;
}

.join-btn {
    background: var(--accent-gold);
    color: #0a0e1a;
    padding: 12px 28px;
}

/* ===== GUILDS TABS ===== */
.guild-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(240, 185, 11, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active { display: block; }

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

/* OVERVIEW GRID */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.overview-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-box {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.stat-val {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

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

.territories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.territory-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.terr-name { font-weight: 500; color: var(--text-primary); }
.terr-date { font-size: 0.8rem; color: var(--text-secondary); }

/* MEMBERS LIST */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: background 0.2s;
}

.member-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

.member-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-name {
    font-weight: 500;
    color: var(--text-primary);
}

.member-role {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.member-role.leader {
    background: rgba(240, 185, 11, 0.2);
    color: var(--accent-gold);
}

.member-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.member-lvl {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* ACTIVITY LOG */
.activity-log {
    position: relative;
    padding-left: 40px;
}

.activity-log::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.log-entry {
    position: relative;
    margin-bottom: 24px;
}

.log-entry::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--accent-gold);
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.log-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.log-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.log-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.log-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* GUILD ACHIEVEMENTS */
.achievements-guild {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.achievement-guild-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.achievement-guild-item .ach-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-guild-item h4 {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.achievement-guild-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ERROR MESSAGE */
.error-message {
    text-align: center;
    padding: 60px 20px;
}

.error-message h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .guild-banner-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .guild-logo-wrapper {
        margin: 0 auto;
    }
    
    .guild-meta {
        justify-content: center;
    }
    
    .guild-actions {
        justify-content: center;
    }
    
    .guild-stats {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .guild-card {
        flex-direction: column;
        text-align: center;
    }
    
    .guild-card .guild-meta {
        justify-content: center;
    }
}

/* ========================================= */
/* ===== ANIMATIONS AVANCÉES ============== */
/* ========================================= */

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ===== PARALLAX HERO ===== */
.parallax-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ===== FLOATING ELEMENTS ===== */
.float-element {
    animation: float 6s ease-in-out infinite;
}

.float-delay-1 { animation-delay: 1s; }
.float-delay-2 { animation-delay: 2s; }
.float-delay-3 { animation-delay: 3s; }

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

/* ===== GLOW PULSE ===== */
.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(240, 185, 11, 0.2); }
    50% { box-shadow: 0 0 40px rgba(240, 185, 11, 0.5); }
}

/* ===== TEXT GRADIENT ANIMATION ===== */
.gradient-animate {
    background: linear-gradient(135deg, #f0b90b, #ffd700, #8b5cf6, #f0b90b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

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

/* ===== CARD TILT EFFECT ===== */
.tilt-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* ===== STAT COUNTER ANIMATION ===== */
.counter {
    display: inline-block;
}

/* ===== SCALE IN ON LOAD ===== */
.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== SLIDE IN FROM LEFT/RIGHT ===== */
.slide-left {
    animation: slideLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.slide-right {
    animation: slideRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== PROGRESS BAR ANIMATE ===== */
.progress-animate {
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-animate.animate {
    width: var(--target-width, 100%);
}

/* ===== PARTICLES ===== */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleRise 8s linear infinite;
}

@keyframes particleRise {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}


/* ========================================= */
/* ===== NOTIFICATIONS =================== */
/* ========================================= */

/* ===== BANNER ALERT ===== */
.notif-banner {
    position: relative;
    background: linear-gradient(90deg, rgba(240, 185, 11, 0.15), rgba(139, 92, 246, 0.15));
    border-bottom: 1px solid var(--accent-gold);
    padding: 12px 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 999;
    animation: slideDown 0.5s ease-out;
}

.notif-banner.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

.notif-banner.dismissed { display: none; }

.notif-banner-icon {
    font-size: 1.2rem;
    animation: bounce 1s ease infinite;
}

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

.notif-banner-text { font-weight: 500; }

.notif-banner-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent-gold);
    transition: opacity 0.2s;
}

.notif-banner-link:hover { opacity: 0.7; }

.notif-banner-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.notif-banner-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Variant colors */
.notif-banner.variant-update {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-bottom-color: var(--accent-blue);
}

.notif-banner.variant-event {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.15), rgba(59, 130, 246, 0.15));
    border-bottom-color: #4ade80;
}

.notif-banner.variant-maintenance {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.15), rgba(239, 68, 68, 0.1));
    border-bottom-color: #facc15;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.toast.removing {
    animation: toastSlideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content { flex: 1; }

.toast-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 0 0 12px 12px;
    animation: toastProgress 5s linear forwards;
}

.toast { position: relative; overflow: hidden; }

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover { color: var(--text-primary); }

/* Toast variants */
.toast.variant-success { border-left: 3px solid #4ade80; }
.toast.variant-warning { border-left: 3px solid #facc15; }
.toast.variant-error { border-left: 3px solid #ef4444; }
.toast.variant-info { border-left: 3px solid var(--accent-blue); }


/* ========================================= */
/* ===== SYSTÈME DE VOTE ================= */
/* ========================================= */

/* ===== VOTE WIDGET HOME ===== */
.vote-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vote-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0.5;
}

.vote-widget-content {
    position: relative;
    z-index: 2;
}

.vote-widget h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.vote-widget p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== VOTE STATUS ===== */
.vote-status {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.vote-site {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 140px;
    transition: border-color 0.3s, transform 0.3s;
}

.vote-site:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.vote-site.voted {
    border-color: #4ade80;
    opacity: 0.7;
}

.vote-site-icon {
    font-size: 2rem;
}

.vote-site-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vote-site-btn {
    padding: 8px 16px;
    background: var(--accent-gold);
    color: #0a0e1a;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.vote-site-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.vote-site-btn.voted {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    cursor: default;
    pointer-events: none;
}

.vote-check {
    font-size: 1.2rem;
    color: #4ade80;
}

/* ===== VOTE COUNTDOWN ===== */
.vote-countdown {
    margin-bottom: 24px;
}

.vote-countdown-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.vote-countdown-timer {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    gap: 16px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-number {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    min-width: 60px;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== VOTE REWARDS ===== */
.vote-rewards {
    margin-top: 24px;
}

.vote-rewards h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.reward-item:hover { border-color: var(--accent-gold); }

.reward-icon { font-size: 1.8rem; }
.reward-name { font-size: 0.8rem; color: var(--text-primary); font-weight: 500; text-align: center; }
.reward-amount { font-size: 0.75rem; color: var(--accent-gold); font-weight: 600; }

/* ===== VOTE STREAK ===== */
.vote-streak {
    margin-top: 24px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.streak-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.streak-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.streak-current {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.streak-days {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.streak-day {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.streak-day.completed {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.streak-day.today {
    border-color: var(--accent-gold);
    animation: glowPulse 2s infinite;
}

.streak-day-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.streak-day.completed .streak-day-number { color: #4ade80; }

.streak-day-icon {
    font-size: 0.6rem;
    position: absolute;
    top: -6px;
    right: -6px;
}

/* ===== VOTE STATS BAR ===== */
.vote-stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 24px;
}

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

.vote-stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

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


/* ========================================= */
/* ===== RESPONSIVE ANIM/VOTE/NOTIF ======= */
/* ========================================= */

@media (max-width: 768px) {
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .vote-site { min-width: 120px; }

    .vote-stats-bar {
        flex-direction: column;
        gap: 16px;
    }

    .countdown-number {
        min-width: 48px;
        padding: 6px 12px;
    }

    .streak-day {
        width: 40px;
        height: 40px;
    }

    .notif-banner {
        font-size: 0.8rem;
        padding: 10px 36px 10px 16px;
    }
}

/* ========================================= */
/* ===== AUTH / LOGIN / REGISTER ========== */
/* ========================================= */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1623 50%, #141b2d 100%);
}

[data-theme="light"] .auth-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ===== VISUAL PANEL ===== */
.auth-visual {
    background: linear-gradient(135deg, #1a1040 0%, #0a0e1a 100%);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(240, 185, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.auth-logo {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 4s ease-in-out infinite;
}

.auth-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.auth-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 40px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FORMS PANEL ===== */
.auth-forms {
    padding: 48px 40px;
    position: relative;
}

.form-panel {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.form-panel.active {
    display: block;
}

.form-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme="light"] .input-wrapper input {
    background: rgba(0, 0, 0, 0.03);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

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

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toggle-password:hover { opacity: 1; }

.input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ===== CHECKBOX ===== */
.remember-me {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.remember-me input[type="checkbox"]:checked {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0a0e1a;
    font-size: 0.75rem;
    font-weight: 700;
}

.checkmark { display: none; }

.terms-check a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* ===== FORM OPTIONS ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.forgot-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.forgot-link:hover { color: var(--accent-gold); }

/* ===== ERROR / SUCCESS ===== */
.form-error {
    display: none;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #f87171;
    font-size: 0.85rem;
    margin-bottom: 16px;
    animation: shake 0.4s ease;
}

.form-error.show { display: block; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.form-success {
    display: none;
    padding: 12px 16px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    color: #4ade80;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.form-success.show { display: block; }

/* ===== BUTTONS ===== */
.btn-auth {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login {
    background: var(--accent-gold);
    color: #0a0e1a;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 185, 11, 0.3);
}

.btn-register {
    background: var(--accent-gold);
    color: #0a0e1a;
    margin-top: 8px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 185, 11, 0.3);
}

.btn-discord-login {
    background: #5865F2;
    color: white;
    margin-top: 16px;
}

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

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

/* ===== DIVIDER ===== */
.form-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.form-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== SWITCH ===== */
.form-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-switch a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.form-switch a:hover { opacity: 0.7; }

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
    margin-bottom: 20px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background 0.3s;
}

.strength-bar.weak { background: #ef4444; }
.strength-bar.medium { background: #facc15; }
.strength-bar.strong { background: #4ade80; }

.strength-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.strength-label.weak { color: #f87171; }
.strength-label.medium { color: #facc15; }
.strength-label.strong { color: #4ade80; }

/* ===== USER DROPDOWN (navbar) ===== */
.user-dropdown {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 6px 16px 6px 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

.user-avatar-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(240, 185, 11, 0.15);
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid var(--accent-gold);
}

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

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

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

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.dropdown-header .dropdown-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dropdown-header .dropdown-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    width: 100%;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(240, 185, 11, 0.1);
    color: var(--accent-gold);
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ===== LOGIN BUTTON (navbar, when logged out) ===== */
.login-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gold);
    color: #0a0e1a;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.login-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(240, 185, 11, 0.3);
}

/* ===== AUTH GUARD ===== */
.auth-required-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    animation: fadeIn 0.3s ease-out;
}

.auth-required-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-required-modal h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.auth-required-modal p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-required-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-visual {
        display: none;
    }
    
    .auth-forms {
        padding: 32px 24px;
    }
    
    .user-name-mini {
        display: none;
    }
    
    .user-avatar-btn {
        padding: 6px;
    }
}

/* ===== EDITABLE QUOTE ===== */
.profile-quote-wrapper {
    position: relative;
    display: inline-block;
    max-width: 500px;
}

.profile-quote-editable {
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px dashed transparent;
}

.profile-quote-editable:hover {
    opacity: 0.7;
    border-color: var(--accent-gold);
    background: rgba(240, 185, 11, 0.05);
}

.profile-quote-edit-icon {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-quote-editable:hover .profile-quote-edit-icon {
    opacity: 1;
}

.profile-quote-input {
    width: 100%;
    max-width: 500px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.5;
    resize: none;
    min-height: 60px;
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

.profile-quote-input:focus {
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.15);
}

.profile-quote-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.quote-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quote-save {
    background: var(--accent-gold);
    color: #0a0e1a;
}

.quote-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.quote-cancel {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.quote-cancel:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* ========================================= */
/* ===== BOUTIQUE EN CONSTRUCTION ========= */
/* ========================================= */

/* ===== HERO ===== */
.shop-hero {
    background: linear-gradient(135deg, #0f172a 0%, #2a1040 50%, #0a0e1a 100%);
}

.shop-hero::before {
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(240, 185, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

/* ===== CONTAINER ===== */
.construction-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

/* ===== ANIMATION GRUE ===== */
.construction-animation {
    position: relative;
    height: 200px;
    margin-bottom: 40px;
    overflow: hidden;
}

.crane {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 140px;
    animation: craneSway 4s ease-in-out infinite;
}

@keyframes craneSway {
    0%, 100% { transform: translateX(calc(-50% - 10px)) rotate(-2deg); }
    50% { transform: translateX(calc(-50% + 10px)) rotate(2deg); }
}

.crane-arm {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 3px;
}

.crane-arm::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    width: 4px;
    height: 36px;
    background: var(--accent-gold);
}

.crane-arm::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -8px;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border: 3px solid var(--accent-gold);
    border-radius: 4px;
}

.crane-hook {
    position: absolute;
    bottom: 50px;
    right: 12px;
    width: 2px;
    height: 40px;
    background: var(--text-muted);
}

.crane-hook::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--text-muted);
    border-top: none;
    border-right: none;
    border-radius: 0 0 0 50%;
}

.crane-load {
    position: absolute;
    bottom: 10px;
    right: -5px;
    font-size: 2.5rem;
    animation: loadSwing 2s ease-in-out infinite;
}

@keyframes loadSwing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.ground-line {
    position: absolute;
    bottom: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.dust-particle {
    position: absolute;
    bottom: 20px;
    font-size: 1.2rem;
    opacity: 0;
    animation: dustRise 3s ease-out infinite;
}

.dust-particle.p1 { left: 30%; animation-delay: 0s; }
.dust-particle.p2 { left: 50%; animation-delay: 1s; }
.dust-particle.p3 { left: 70%; animation-delay: 2s; }

@keyframes dustRise {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    30% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-60px) scale(1.5); }
}

/* ===== MESSAGE ===== */
.construction-message {
    margin-bottom: 40px;
}

.construction-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.construction-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ===== TEASERS ===== */
.construction-teasers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.teaser-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.teaser-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(240, 185, 11, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.teaser-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.teaser-item:hover::before { opacity: 1; }

.teaser-icon {
    font-size: 2rem;
    filter: grayscale(0.5);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.teaser-item:hover .teaser-icon {
    filter: grayscale(0);
    opacity: 1;
}

.teaser-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.teaser-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* ===== PROGRESS BAR ===== */
.construction-progress {
    max-width: 500px;
    margin: 0 auto 40px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-percent {
    color: var(--accent-gold);
    font-weight: 600;
}

.progress-track {
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #ffd700);
    border-radius: 6px;
    position: relative;
    animation: progressShimmer 2s ease-in-out infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* ===== NOTIFY FORM ===== */
.construction-notify {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.construction-notify h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.construction-notify p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.notify-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.notify-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.notify-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

.notify-form button {
    padding: 12px 24px;
    background: var(--accent-gold);
    color: #0a0e1a;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
}

.notify-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(240, 185, 11, 0.3);
}

.notify-success {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    color: #4ade80;
    font-size: 0.9rem;
    animation: fadeIn 0.4s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .construction-teasers {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .notify-form button {
        width: 100%;
    }
}