@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a28;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border: #2d2d44;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --gold: #f59e0b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== BARRE DE DÉFILEMENT GLOBALE — sombre, sans flèches ===== */
html {
    scrollbar-width: thin;
    scrollbar-color: #2d2d44 #0a0a0f;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track { background: #0a0a0f; }
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb { background: #2d2d44; border-radius: 6px; }
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover { background: #3a3a55; }
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner { background: #0a0a0f; }

/* ===== NAVIGATION ===== */
nav {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.05rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

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

.nav-link-premium {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link-premium:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

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

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    background: transparent;
    padding: 0.5rem 0;
    border-radius: 0;
    border: none;
}

/* Coins display */
.coins-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(245,158,11,0.10);
}

.coins-display i { font-size: 0.85rem; }

.admin-badge {
    background: linear-gradient(135deg, var(--warning), #d97706);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.admin-badge:hover { transform: translateY(-2px); }

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    padding: 0.4rem 0.9rem 0.4rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(8px);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255,255,255,0.30);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.user-name { font-weight: 600; color: var(--text-primary); }

.user-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1001;
    animation: slideDown 0.3s ease-out;
}

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

.user-menu a, .user-menu button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

.user-menu .menu-admin-btn { color: var(--warning); }
.user-menu .menu-admin-btn:hover { background: rgba(245, 158, 11, 0.15); }
.user-menu .menu-logout-btn:hover { background: var(--error); }
.user-menu .menu-divider { border-top: 1px solid var(--border); margin: 0.3rem 0; }

.btn-login {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

/* ===== NOTIFICATION BELL ===== */
.notif-bell-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notif-bell-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
}

.notif-bell-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(88,101,242,0.2);
}

.notif-bell-btn.has-notif {
    color: var(--accent);
    border-color: rgba(88,101,242,0.4);
    animation: bellRing 2.5s ease infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(12deg); }
    10% { transform: rotate(-12deg); }
    15% { transform: rotate(8deg); }
    20% { transform: rotate(-8deg); }
    25% { transform: rotate(0deg); }
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--error);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg-primary);
    line-height: 1;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ===== NOTIFICATION MODAL (overlay centré) ===== */
.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
    padding: 1rem;
}

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

.notif-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.notif-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-primary);
}

.notif-modal-title i { color: var(--accent); }

.notif-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

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

.notif-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 1rem;
}

.notif-modal-body::-webkit-scrollbar { width: 4px; }
.notif-modal-body::-webkit-scrollbar-track { background: transparent; }
.notif-modal-body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
}

.notif-item.unread {
    background: rgba(88,101,242,0.07);
    border-color: rgba(88,101,242,0.15);
}

.notif-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border);
}

.notif-item.unread:hover {
    background: rgba(88,101,242,0.12);
    border-color: rgba(88,101,242,0.3);
}

.notif-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-item-icon.credits { background: rgba(245,158,11,0.15); color: var(--gold); }
.notif-item-icon.gift    { background: rgba(88,101,242,0.15); color: var(--accent); }
.notif-item-icon.system  { background: rgba(34,197,94,0.15); color: var(--success); }
.notif-item-icon.warn    { background: rgba(239,68,68,0.15); color: var(--error); }

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

.notif-item-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.notif-item-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notif-item-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-top: 0.3rem;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.notif-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.notif-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; color: var(--border); }

.notif-modal-footer {
    padding: 1rem 1.8rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.8rem;
}

.notif-footer-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notif-footer-btn:hover {
    background: rgba(88,101,242,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== DETAIL NOTIFICATION MODAL ===== */
.notif-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    padding: 1rem;
}

.notif-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.notif-detail-top {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.2rem 0;
}

.notif-detail-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

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

.notif-detail-body {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.notif-detail-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.2rem;
}

.notif-detail-icon-wrap.credits { background: rgba(245,158,11,0.15); color: var(--gold); }
.notif-detail-icon-wrap.gift    { background: rgba(88,101,242,0.15); color: var(--accent); }
.notif-detail-icon-wrap.system  { background: rgba(34,197,94,0.15); color: var(--success); }
.notif-detail-icon-wrap.warn    { background: rgba(239,68,68,0.15); color: var(--error); }

.notif-detail-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.notif-detail-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.notif-detail-time {
    font-size: 0.8rem;
    color: var(--border);
    margin-bottom: 1.5rem;
}

.notif-detail-dismiss {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    width: 100%;
}

.notif-detail-dismiss:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(88,101,242,0.35);
}

/* ===== TRANSFER USER MODAL ===== */
.transfer-select-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    z-index: 9050;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    padding: 1rem;
}

.transfer-select-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

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

.transfer-select-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-primary);
}

.transfer-select-title i { color: var(--accent); }

.transfer-select-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

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

.transfer-select-search-wrap {
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid var(--border);
}

.transfer-select-search {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1.1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.transfer-select-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.1);
}

.transfer-select-results {
    overflow-y: auto;
    flex: 1;
    padding: 0.8rem;
}

.transfer-select-results::-webkit-scrollbar { width: 4px; }
.transfer-select-results::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.transfer-user-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.transfer-user-row:hover {
    background: rgba(88,101,242,0.08);
    border-color: rgba(88,101,242,0.25);
}

.transfer-user-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.transfer-user-info { flex: 1; }
.transfer-user-info .u-name { font-weight: 600; font-size: 0.95rem; }
.transfer-user-info .u-sub  { font-size: 0.8rem; color: var(--text-secondary); }

.transfer-user-row .select-arrow {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.transfer-user-row:hover .select-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

.transfer-privacy-note {
    margin: 0 1.8rem 1.2rem;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.22);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.transfer-privacy-note i { color: var(--warning); flex-shrink: 0; margin-top: 1px; }

/* ===== EDGE SCROLL ZONES (dashboard) ===== */
.edge-scroll-zone {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 24px;
    z-index: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edge-scroll-zone.left  { left: 0; }
.edge-scroll-zone.right { right: 0; }

.edge-scroll-zone.active { opacity: 1; pointer-events: auto; }

.edge-scroll-bar {
    width: 4px;
    height: 100px;
    border-radius: 4px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    opacity: 0.7;
    animation: edgePulse 1.5s ease-in-out infinite;
}

@keyframes edgePulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
    50% { opacity: 0.9; transform: scaleY(1); }
}

/* ===== MAINTENANCE PAGE ===== */
.maintenance-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.maintenance-icon {
    font-size: 8rem;
    color: var(--warning);
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.maintenance-page h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.maintenance-page p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin: 0 auto;
}

.maintenance-status {
    margin-top: 3rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

.maintenance-status p {
    font-size: 1rem;
    margin: 0;
    color: var(--warning);
    font-weight: 600;
}

/* ===== HERO ===== */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .accent {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .accent-gold {
    background: linear-gradient(135deg, var(--gold), #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ===== FEATURES GRID ===== */
.features {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(26, 26, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(88, 101, 242, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-icon.gold { background: linear-gradient(135deg, var(--gold), #d97706); }

.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; }
.feature-card p { color: var(--text-secondary); line-height: 1.7; font-size: 1.05rem; }

/* ===== JOIN SERVER BANNER ===== */
.join-server-banner {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.join-server-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.join-server-card .join-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.join-server-card .join-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.btn-discord {
    background: #5865f2;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.5);
    background: #4752c4;
}

/* ===== STATS ===== */
.stats {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: rgba(26, 26, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item h2.gold-stat {
    background: linear-gradient(135deg, var(--gold), #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-item p { color: var(--text-secondary); font-size: 1.1rem; font-weight: 500; }

/* ===== FOOTER ===== */
footer {
    max-width: 1400px;
    margin: 6rem auto 0;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* ===== PREMIUM PAGE ===== */
.premium-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.4);
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.premium-page h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-page .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.pricing-card {
    background: rgba(26, 26, 40, 0.8);
    border: 2px solid rgba(88, 101, 242, 0.5);
    border-radius: 24px;
    padding: 3rem;
    max-width: 460px;
    margin: 0 auto 4rem;
    position: relative;
    box-shadow: 0 0 60px rgba(88, 101, 242, 0.1);
}

.pricing-card .popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-card .price {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin: 1rem 0 0.3rem;
}

.pricing-card .price span {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
    line-height: 1;
}

.pricing-card .price-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-card .price-label strong { color: var(--success); }

.pricing-features { list-style: none; text-align: left; margin-bottom: 2.5rem; }

.pricing-features li {
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--success); width: 18px; text-align: center; }

.btn-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.4);
}

.premium-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ===== DASHBOARD PAGE (ancien) ===== */
.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.dashboard-header { margin-bottom: 3rem; }

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.dev-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}

.dev-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.dev-page h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dev-page p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
}

.login-required {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}

.login-required-icon {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.login-required h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.login-required p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ===== ADMIN PANEL ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

.admin-mobile-header {
    display: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.hamburger-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.admin-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.admin-sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar h2 { margin: 0; font-size: 1.5rem; font-weight: 800; }

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    flex: 1;
    align-items: stretch;
}

.admin-nav-link {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.admin-nav-link:hover { background: rgba(88, 101, 242, 0.1); color: var(--accent); }
.admin-nav-link.active { background: var(--accent); color: white; }
.admin-nav-link i { width: 20px; text-align: center; font-size: 1.1rem; }

.admin-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.admin-content {
    margin-left: 280px;
    flex: 1;
    padding: 3rem;
    max-width: 100%;
}

.admin-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--text-primary); }

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.admin-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(88, 101, 242, 0.1); }
.admin-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }

.admin-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1); }

.admin-btn {
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.admin-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3); }
.admin-btn.btn-danger { background: var(--error); }
.admin-btn.btn-danger:hover { background: #dc2626; box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3); }
.admin-btn.btn-success { background: var(--success); }
.admin-btn.btn-success:hover { background: #16a34a; box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3); }
.admin-btn.btn-warning { background: var(--warning); color: #000; }
.admin-btn.btn-warning:hover { background: #d97706; box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3); }

.user-search-result {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.user-search-result:hover { border-color: var(--accent); transform: translateX(5px); }
.user-info-admin { display: flex; align-items: center; gap: 1rem; }
.user-avatar-admin { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--accent); }
.user-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-ban { background: var(--error) !important; }
.btn-unban { background: var(--success) !important; }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-secondary); transition: .4s; border-radius: 34px;
}
.toggle-slider:before {
    position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .toggle-slider { background-color: var(--accent); }
input:checked + .toggle-slider:before { transform: translateX(26px); }

/* ===== ADMIN PREMIUM FEATURE TOGGLES ===== */
.feature-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.4rem;
    transition: all 0.2s;
}

.feature-toggle-row:hover {
    border-color: var(--accent);
}

.feature-toggle-info { flex: 1; }
.feature-toggle-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.feature-toggle-name i { color: var(--accent); width: 18px; }

.feature-toggle-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feature-premium-tag {
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Toast */
.toast {
    position: fixed; top: 2rem; right: 2rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 1rem 1.5rem;
    z-index: 10000; animation: slideIn 0.3s ease-out;
    display: flex; align-items: center; gap: 0.8rem;
    max-width: 360px; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--error); }
.toast.info    { border-left: 4px solid var(--accent); }

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

/* Admin stats grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

.admin-stat-card .stat-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
}

.admin-stat-card .stat-val.gold { color: var(--gold); }

.admin-stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.admin-list-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-list-item .item-info { display: flex; align-items: center; gap: 1rem; }
.admin-list-item .item-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); }
.admin-list-item .item-name { font-weight: 600; }
.admin-list-item .item-sub { color: var(--text-secondary); font-size: 0.85rem; }

.flex-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.flex-col { display: flex; flex-direction: column; gap: 0.8rem; }

.coins-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.owner-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold);
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.banned-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--error);
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== DASHBOARD LAYOUT ===== */
.dash-layout {
    display: flex;
    min-height: calc(100vh - 70px);
    background: var(--bg-primary);
}

.dash-sidebar {
    width: 260px;
    min-width: 260px;
    background: #0d0d14;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 100;
}

/* ===== SIDEBAR SCROLLBAR — sombre, sans flèches ===== */
.dash-sidebar::-webkit-scrollbar { width: 6px; }
.dash-sidebar::-webkit-scrollbar-track { background: #0d0d14; border-radius: 4px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: #2d2d44; border-radius: 4px; }
.dash-sidebar::-webkit-scrollbar-thumb:hover { background: #3a3a55; }
.dash-sidebar::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
.dash-sidebar::-webkit-scrollbar-corner { background: #0d0d14; }
.dash-sidebar { scrollbar-width: thin; scrollbar-color: #2d2d44 #0d0d14; }

.dash-sidebar-inner {
    display: flex;
    flex-direction: column;
    padding: 1.2rem 0.8rem 2rem 0.8rem;
    gap: 0.2rem;
    flex: 1;
    min-height: min-content;
}

.dash-sidebar-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #555577;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.2rem;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dash-nav-link:hover {
    color: var(--text-primary);
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88,101,242,0.2);
}

.dash-nav-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(88,101,242,0.3);
}

.dash-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.dash-nav-section {
    font-size: 0.68rem;
    font-weight: 700;
    color: #555577;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 0.8rem 0.3rem;
    margin-top: 0.3rem;
}

.dash-content {
    margin-left: 260px;
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    background: var(--bg-primary);
    min-height: calc(100vh - 70px);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(45, 45, 68, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center; /* ← AJOUTÉ */
}

.dash-content::-webkit-scrollbar { width: 6px; }
.dash-content::-webkit-scrollbar-track { background: rgba(45, 45, 68, 0.2); }
.dash-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* REMPLACER */
.dash-section {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dash-section.overview-section {
    align-items: flex-start;
}

.dash-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: left;
    width: 100%;
}

.dash-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
}

.dash-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

@media (max-width: 1100px) {
    .dash-overview-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .dash-overview-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .dash-overview-grid { grid-template-columns: 1fr; }
}

.dash-overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.2s;
    min-height: 110px;
}

.dash-overview-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88,101,242,0.12);
}

.dash-overview-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
    min-width: 56px;
}

.dash-overview-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.dash-overview-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dev-banner {
    background: rgba(88, 101, 242, 0.06);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.3rem;
}

.dev-banner strong { color: var(--text-primary); display: block; margin-bottom: 0.2rem; }
.dev-banner p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* Dashboard Profile */
.dash-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.dash-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
}

.dash-profile-name {
    font-size: 1.5rem;
    font-weight: 800;
}

.dash-profile-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* Dashboard Premium */
.dash-premium-card {
    background: var(--bg-card);
    border: 1px solid rgba(88,101,242,0.4);
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.dash-premium-header {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.dash-premium-price { margin: 1rem 0; }

.dash-buy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.dash-buy-btn:hover:not(.disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88,101,242,0.35);
}

.dash-buy-btn.disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    border: 1px solid var(--border);
}

/* Transfer Credits */
.dash-transfer-search {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.dash-transfer-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.1);
}

/* Bouton pour ouvrir la fenêtre de sélection de destinataire */
.dash-transfer-pick-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
    text-align: left;
}

.dash-transfer-pick-btn:hover {
    border-color: var(--accent);
    background: rgba(88,101,242,0.06);
    color: var(--accent);
}

.dash-transfer-pick-btn i { color: var(--accent); }

.dash-transfer-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-height: 280px;
    overflow-y: auto;
}

.dash-transfer-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-transfer-user:hover, .dash-transfer-user.selected {
    border-color: var(--accent);
    background: rgba(88,101,242,0.08);
}

.dash-transfer-user.selected { box-shadow: 0 0 0 2px rgba(88,101,242,0.3); }

.dash-transfer-user img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.dash-transfer-user-name { font-weight: 600; font-size: 0.95rem; }
.dash-transfer-user-sub  { font-size: 0.8rem; color: var(--text-secondary); }

.dash-transfer-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 0.5rem;
}

.dash-transfer-amount {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.dash-transfer-amount:focus {
    outline: none;
    border-color: var(--accent);
}

.dash-transfer-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.dash-transfer-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.dash-selected-user-box {
    background: rgba(88,101,242,0.08);
    border: 1px solid rgba(88,101,242,0.3);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash-selected-user-box img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.dash-selected-clear {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.dash-selected-clear:hover { color: var(--error); background: rgba(239,68,68,0.1); }

.dash-info-box {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.dash-info-box i { color: var(--warning); margin-top: 2px; }

/* ===== DASHBOARD MESSAGES ===== */
.dash-messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: calc(100vh - 140px);
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.msg-contacts-panel {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.msg-contacts-header {
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msg-contacts-search {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
}

.msg-contacts-search input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.msg-contacts-search input:focus {
    outline: none;
    border-color: var(--accent);
}

.msg-contacts-list {
    flex: 1;
    overflow-y: auto;
}

.msg-contacts-list::-webkit-scrollbar { width: 4px; }
.msg-contacts-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.msg-contact-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    position: relative;
}

.msg-contact-item:hover { background: rgba(255,255,255,0.04); }

.msg-contact-item.active {
    background: rgba(88,101,242,0.12);
    border-right: 3px solid var(--accent);
}

.msg-contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    position: relative;
}

.msg-contact-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.msg-contact-info { flex: 1; min-width: 0; }
.msg-contact-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-contact-preview { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.15rem; }

.msg-contact-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; flex-shrink: 0; }
.msg-contact-time { font-size: 0.7rem; color: var(--text-secondary); }

.msg-unread-count {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Chat zone */
.msg-chat-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.msg-chat-header img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.msg-chat-header-name { font-weight: 700; font-size: 1rem; }
.msg-chat-header-status { font-size: 0.78rem; color: var(--success); }

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

.msg-chat-messages::-webkit-scrollbar { width: 4px; }
.msg-chat-messages::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* REMPLACER */
.msg-bubble-wrap {
    display: flex;
    gap: 0.7rem;
    align-items: flex-end;
}

.msg-bubble-wrap.new-msg {
    animation: msgAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.msg-bubble-wrap.mine { flex-direction: row-reverse; }

.msg-bubble-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.msg-bubble {
    max-width: 65%;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.msg-bubble-wrap:not(.mine) .msg-bubble {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.msg-bubble-wrap.mine .msg-bubble {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-bubble-time {
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 0.3rem;
}

.msg-bubble-wrap.mine .msg-bubble-time { text-align: right; }

.msg-date-sep {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    position: relative;
}

.msg-date-sep::before, .msg-date-sep::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border);
}

.msg-date-sep::before { left: 0; }
.msg-date-sep::after  { right: 0; }

.msg-chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.msg-chat-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    resize: none;
    max-height: 120px;
    transition: border-color 0.2s;
    line-height: 1.5;
}

.msg-chat-input:focus {
    outline: none;
    border-color: var(--accent);
}

.msg-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    flex-shrink: 0;
}

.msg-send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 4px 14px rgba(88,101,242,0.45);
}

.msg-send-btn:active { transform: scale(0.95); }

.msg-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    gap: 1rem;
    font-size: 0.95rem;
}

.msg-empty-state i { font-size: 3rem; color: var(--border); }

/* ===== GIVEAWAY CARDS ===== */
.giveaway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.giveaway-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.giveaway-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #7c3aed);
}

.giveaway-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(88,101,242,0.15);
}

.giveaway-card.ended { opacity: 0.65; }
.giveaway-card.ended::before { background: var(--border); }

.giveaway-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.giveaway-prize {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    flex: 1;
}

.giveaway-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.giveaway-status.active  { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.giveaway-status.ended   { background: rgba(148,163,184,0.1); color: var(--text-secondary); border: 1px solid var(--border); }
.giveaway-status.pending { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }

.giveaway-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.giveaway-meta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.giveaway-meta-row i {
    width: 16px;
    text-align: center;
    color: var(--accent);
    font-size: 0.8rem;
}

.giveaway-timer {
    background: rgba(88,101,242,0.08);
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    text-align: center;
    margin-bottom: 1.2rem;
}

.giveaway-timer-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.giveaway-timer-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.giveaway-enter-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.giveaway-enter-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88,101,242,0.4);
}

.giveaway-enter-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    border: 1px solid var(--border);
}

.giveaway-enter-btn.entered {
    background: rgba(34,197,94,0.15);
    color: var(--success);
    border: 1px solid rgba(34,197,94,0.3);
    cursor: default;
}

/* ===== SERVER CARDS ===== */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

.server-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(88,101,242,0.15);
}

.server-card-banner {
    height: 80px;
    background: linear-gradient(135deg, rgba(88,101,242,0.3), rgba(124,58,237,0.3));
    position: relative;
}

.server-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    border: 3px solid var(--bg-card);
    position: absolute;
    bottom: -20px;
    left: 1.2rem;
    object-fit: cover;
}

.server-card-icon-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    border: 3px solid var(--bg-card);
    background: var(--accent);
    position: absolute;
    bottom: -20px;
    left: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.server-card-body {
    padding: 1.6rem 1.2rem 1.2rem;
    padding-top: 2rem;
}

.server-card-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.server-card-id {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.server-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.server-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    font-weight: 600;
}

.server-tag.admin   { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.server-tag.premium { background: rgba(88,101,242,0.15); color: var(--accent); border: 1px solid rgba(88,101,242,0.3); }
.server-tag.bot     { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.server-tag.no-bot  { background: rgba(239,68,68,0.12); color: var(--error); border: 1px solid rgba(239,68,68,0.25); }

.server-card-action {
    width: 100%;
    padding: 0.65rem;
    border-radius: 9px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.server-card-action.manage {
    background: rgba(88,101,242,0.12);
    color: var(--accent);
    border: 1px solid rgba(88,101,242,0.3);
}

.server-card-action.manage:hover {
    background: var(--accent);
    color: white;
}

.server-card-action.add {
    background: rgba(34,197,94,0.1);
    color: var(--success);
    border: 1px solid rgba(34,197,94,0.25);
}

.server-card-action.add:hover {
    background: var(--success);
    color: white;
}

/* ===== COMING SOON ===== */
.dash-coming-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.dash-coming-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
}

/* Admin Premium Price tab */
.admin-price-display {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE TABLET ===== */
@media (max-width: 1024px) {
    .dash-messages-layout {
        grid-template-columns: 240px 1fr;
    }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    nav { padding: 0.8rem 1rem; }
    .nav-container { gap: 0.5rem; }
    .logo { font-size: 1.2rem; gap: 0.5rem; }
    .logo img { width: 30px; height: 30px; }
    .nav-links { display: none; }
    .user-section { gap: 0.4rem; }
    .coins-display { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
    .admin-badge { padding: 0.3rem 0.5rem; font-size: 0.7rem; gap: 0.3rem; }
    .user-profile { padding: 0.3rem 0.6rem; gap: 0.4rem; }
    .user-avatar { width: 28px; height: 28px; }
    .user-name { display: none; }
    .user-menu { top: 45px; right: 0; min-width: 180px; }
    .btn-login { padding: 0.5rem 0.8rem; font-size: 0.8rem; }

    /* Notification bell compact */
    .notif-bell-btn { width: 36px; height: 36px; font-size: 1rem; }

    .hero { padding: 3rem 1.5rem 2rem; }
    .hero h1 { font-size: 2.2rem; line-height: 1.2; white-space: normal; }
    .hero p { font-size: 1.1rem; margin: 0 auto 2rem; line-height: 1.6; }
    .cta-buttons { flex-direction: column; width: 100%; gap: 1rem; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; padding: 1rem 1.5rem; font-size: 1rem; }

    .features, .stats {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        margin: 2rem 1.5rem;
        gap: 1.5rem;
        max-width: calc(100% - 3rem);
    }

    .feature-card { padding: 2rem 1.5rem; }
    .feature-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .feature-card h3 { font-size: 1.3rem; }
    .stat-item h2 { font-size: 2.5rem; }
    footer { margin: 3rem auto 0; padding: 1.5rem; font-size: 0.9rem; }

    .join-server-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }

    .maintenance-page { padding: 1.5rem; }
    .maintenance-icon { font-size: 5rem; margin-bottom: 1.5rem; }
    .maintenance-page h1 { font-size: 2rem; }
    .maintenance-page p { font-size: 1.1rem; }
    .maintenance-status { margin-top: 2rem; padding: 1rem 1.5rem; }

    .premium-page { padding: 3rem 1.5rem; }
    .premium-page h1 { font-size: 2.2rem; }
    .pricing-card { padding: 2rem 1.5rem; }

    /* Admin mobile */
    .admin-mobile-header { display: flex; justify-content: space-between; align-items: center; }
    .admin-sidebar { transform: translateX(-100%); z-index: 1000; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; padding: 1.5rem; }
    .admin-card { padding: 1.5rem; }
    .admin-card h2, .admin-content h2 { font-size: 1.3rem; }
    .user-search-result { flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1rem; }
    .user-actions { width: 100%; justify-content: stretch; }
    .user-actions button { flex: 1; }
    .admin-input { font-size: 16px; }

    /* Dashboard mobile */
    .dash-layout { flex-direction: column; }
    .dash-sidebar {
        width: 100%;
        height: auto;
        position: static;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .dash-sidebar-inner {
        flex-direction: row;
        padding: 0.8rem;
        gap: 0.5rem;
        overflow-x: auto;
        min-height: unset;
    }
    .dash-sidebar-title { display: none; }
    .dash-nav { flex-direction: row; gap: 0.3rem; }
    .dash-nav-link span { display: none; }
    .dash-nav-link { padding: 0.6rem; justify-content: center; }
    .dash-nav-section { display: none; }
    .dash-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    .dash-overview-grid { grid-template-columns: 1fr 1fr; }
    .dash-transfer-row { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

    /* Messages mobile */
    .dash-messages-layout { grid-template-columns: 1fr; height: calc(100vh - 200px); }
    .msg-contacts-panel { display: none; }
    .msg-contacts-panel.mobile-visible { display: flex; position: fixed; inset: 0; z-index: 200; background: var(--bg-card); }
    .msg-chat-panel { display: flex; }

    /* Giveaways mobile */
    .giveaway-grid { grid-template-columns: 1fr; }
    .server-grid { grid-template-columns: 1fr; }

    /* Modals plein écran mobile */
    .notif-modal { max-height: 90vh; border-radius: 20px 20px 0 0; }
    .transfer-select-modal { max-height: 90vh; border-radius: 20px 20px 0 0; }
    .notif-overlay { align-items: flex-end; }
    .transfer-select-overlay { align-items: flex-end; }
    .notif-detail-overlay { align-items: center; }
    .notif-detail-card { max-width: 100%; margin: 1rem; }

    /* Edge scroll zones masqués sur mobile (touch) */
    .edge-scroll-zone { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .maintenance-icon { font-size: 4rem; }
    .maintenance-page h1 { font-size: 1.7rem; }
    .dash-overview-grid { grid-template-columns: 1fr; }
    .msg-bubble { max-width: 85%; }
    .giveaway-card { padding: 1.4rem; }
}

/* ===== IPHONE SAFE AREA ===== */
@supports (padding: env(safe-area-inset-bottom)) {
    .msg-chat-input-area {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    .dash-sidebar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* =====================================================
   STYLES MANQUANTS — correspondance exacte index.html
   ===================================================== */

/* ===== MODAL OVERLAY GENERIQUE ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.notif-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.65);
    padding: 2rem;
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
    text-align: center;
}

.generic-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.65);
    padding: 2rem;
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.generic-modal::-webkit-scrollbar { width: 4px; }
.generic-modal::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    z-index: 1;
}

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

/* ===== NOTIFICATION BELL (classes utilisées dans le JS) ===== */
.notif-bell {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.notif-bell:hover {
    color: var(--accent);
}

.notif-bell.has-notif {
    color: var(--accent);
    border-color: rgba(88,101,242,0.4);
    animation: bellRing 2.5s ease infinite;
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--error);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg-primary);
    line-height: 1;
    animation: popIn 0.3s ease;
}

/* ===== NOTIFICATION DROPDOWN ===== */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    transform: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 360px;
    /* 4 items visibles (~72px/item) + header ~52px */
    max-height: calc(52px + 4 * 72px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 2000;
    animation: slideDown 0.25s ease-out forwards;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(0,0,0,0.2);
}
.notif-dropdown::-webkit-scrollbar { width: 4px; }
.notif-dropdown::-webkit-scrollbar-track { background: transparent; }
.notif-dropdown::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.notif-read-all {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.notif-read-all:hover { background: rgba(88,101,242,0.1); }

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    position: relative;
}

.notif-item.unread {
    background: rgba(88,101,242,0.06);
}

.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item.unread:hover { background: rgba(88,101,242,0.1); }

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Types de notif */
.notif-icon.credits_modified,
.notif-icon.credits_received { background: rgba(245,158,11,0.15); }
.notif-icon.giveaway_win      { background: rgba(88,101,242,0.15); }
.notif-icon.premium_activated { background: rgba(34,197,94,0.15); }
.notif-icon.message           { background: rgba(148,163,184,0.1); }
.notif-icon.warn              { background: rgba(239,68,68,0.15); }

.notif-text { flex: 1; min-width: 0; }

.notif-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.notif-preview {
    font-size: 0.78rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-time {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-loading,
.notif-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.notif-empty i { font-size: 2.2rem; color: var(--border); }

/* ===== NOTIF MODAL CONTENT ===== */
.notif-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.notif-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.notif-modal-msg {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.notif-modal-time {
    font-size: 0.8rem;
    color: var(--border);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ===== MESSENGER ===== */
.messenger-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    flex: 1;
    height: 100%;
    background: var(--bg-card);
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    min-height: 0;
}

.dash-content.messenger-active {
    overflow: hidden !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: calc(100vh - 70px);
    min-height: unset;
    max-height: calc(100vh - 70px);
    scrollbar-width: none;
}

body.messenger-fullscreen .dash-content.messenger-active {
    height: 100vh;
    max-height: 100vh;
}

body.messenger-fullscreen .dash-layout {
    min-height: 100vh;
}

body.messenger-fullscreen .dash-sidebar {
    top: 0;
    height: 100vh;
}

.dash-content.messenger-active::-webkit-scrollbar {
    display: none;
}

.messenger-sidebar {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(88,101,242,0.04) 100%);
}

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

.messenger-sidebar-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.messenger-new-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(88,101,242,0.12);
    border: 1px solid rgba(88,101,242,0.3);
    color: var(--accent);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.messenger-new-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.messenger-search-wrap {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
}

.messenger-search {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.messenger-search:focus {
    outline: none;
    border-color: var(--accent);
}

.conv-list {
    flex: 1;
    overflow-y: scroll;
    overscroll-behavior: contain;
}

.conv-list::-webkit-scrollbar { width: 4px; }
.conv-list::-webkit-scrollbar-track { background: transparent; }
.conv-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.conv-list::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
.conv-list::-webkit-scrollbar-corner { background: transparent; }

.conv-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    position: relative;
}

.conv-item:hover { background: rgba(255,255,255,0.04); }

.conv-item.active {
    background: rgba(88,101,242,0.12);
    border-right: 3px solid var(--accent);
}

.conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    object-fit: cover;
}

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

.conv-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-preview {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

.conv-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.conv-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.conv-unread-badge {
    background: var(--accent);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ===== MESSENGER INTÉGRÉ ===== */
.dash-messenger-wrap {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
}

.dash-messenger-panel {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

/* Sidebar */
.dm-sidebar {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0d0d14;
}

.dm-sidebar-header {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.dm-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dm-new-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(88,101,242,0.12);
    border: 1px solid rgba(88,101,242,0.3);
    color: var(--accent);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dm-new-btn:hover {
    background: var(--accent);
    color: white;
}

.dm-search-wrap {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.dm-search {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.83rem;
    transition: border-color 0.2s;
}

.dm-search:focus { outline: none; border-color: var(--accent); }

.dm-conv-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.dm-conv-list::-webkit-scrollbar { width: 4px; }
.dm-conv-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* Zone principale */
.dm-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    background: var(--bg-primary);
}

.dm-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    gap: 1rem;
    font-size: 0.95rem;
    padding: 2rem;
    text-align: center;
}

.dm-empty-state i {
    font-size: 3rem;
    color: var(--border);
}

.dm-conv-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
    background: var(--bg-card);
}

.dm-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

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

.dm-input-area {
    padding: 0.9rem 1.2rem 1.1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.7rem;
    align-items: flex-end;
    flex-shrink: 0;
    background: var(--bg-card);
}

.dm-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dm-send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .dash-messenger-panel {
        grid-template-columns: 1fr;
        height: calc(100vh - 180px);
    }
    .dm-sidebar { display: none; }
    .dm-sidebar.mobile-visible { display: flex; }
}

/* Messenger main area */
.messenger-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    flex: 1;
}

.messenger-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    gap: 1rem;
    font-size: 0.95rem;
    padding: 2rem;
    text-align: center;
}

.messenger-empty-state i {
    font-size: 3.5rem;
    color: var(--border);
}

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

.conv-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.conv-header-name {
    font-weight: 700;
    font-size: 1rem;
}

/* REMPLACER PAR */
.messages-area {
    flex: 1;
    overflow-y: scroll;
    overscroll-behavior: contain;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.messages-area::-webkit-scrollbar { width: 4px; height: 4px; }
.messages-area::-webkit-scrollbar-track { background: transparent; }
.messages-area::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.messages-area::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
.messages-area::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
.messages-area::-webkit-scrollbar-corner { background: transparent; }

/* Message bubbles — classes exactes du JS */
.msg-bubble-wrap {
    display: flex;
    gap: 0.7rem;
    align-items: flex-end;
}

@keyframes msgAppear {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.msg-bubble-wrap.mine  { flex-direction: row-reverse; }
.msg-bubble-wrap.theirs { flex-direction: row; }

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    flex-shrink: 0;
    object-fit: cover;
}

.msg-bubble {
    max-width: 65%;
    padding: 0.7rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
    position: relative;
    transition: transform 0.15s ease;
}

.msg-bubble:hover { transform: scale(1.01); }

.msg-bubble.theirs {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.msg-bubble.mine {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(88,101,242,0.25);
}

.msg-time {
    font-size: 0.68rem;
    opacity: 0.65;
    text-align: right;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

.msg-bubble.mine .msg-time { color: rgba(255,255,255,0.75); }
.msg-bubble.theirs .msg-time { color: var(--text-secondary); }

/* Input zone */
.messenger-input-area {
    padding: 1rem 1.5rem 1.4rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
    flex-shrink: 0;
    background: var(--bg-card);
}

.msg-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    resize: none;
    max-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
}

.msg-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.12);
}

/* ===== DASH LOADING STATE ===== */
.dash-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== RESPONSIVE MESSENGER ===== */
@media (max-width: 768px) {
    .messenger-layout {
        grid-template-columns: 1fr;
        height: calc(100vh - 200px);
    }

    .messenger-sidebar {
        display: none;
    }

    .messenger-sidebar.mobile-visible {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: var(--bg-card);
        border-radius: 0;
    }

    .messenger-main {
        display: flex;
    }

    .msg-bubble { max-width: 85%; }

    .notif-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
        left: auto;
        transform: none;
    }

    .generic-modal {
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
    }

    .modal-overlay.bottom-sheet {
        align-items: flex-end;
    }
}

/* ===== LOGS STYLES ===== */
.logs-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.log-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s;
}

.log-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.log-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.log-icon.credit { background: rgba(245,158,11,0.15); color: var(--gold); }
.log-icon.premium { background: rgba(88,101,242,0.15); color: var(--accent); }
.log-icon.giveaway { background: rgba(34,197,94,0.15); color: var(--success); }
.log-icon.transfer { background: rgba(148,163,184,0.1); color: var(--text-secondary); }
.log-icon.system { background: rgba(239,68,68,0.15); color: var(--error); }

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

.log-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.log-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.log-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.dash-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--border);
}

/* ===== PREMIUM LOCK SCREEN ===== */
.premium-lock-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 300px;
}

.premium-lock-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.premium-lock-screen h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.premium-lock-screen p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.6;
}

/* ===== SERVER LIST (Dashboard format) ===== */
.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
}

.server-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(88,101,242,0.12);
}

.server-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.server-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
}

.server-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.server-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.server-id {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.server-status i {
    font-size: 0.5rem;
}

.server-status.online {
    color: var(--success);
}

.server-status.offline {
    color: var(--error);
}

.server-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ===== GIVEAWAY TABS ===== */
.giveaway-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    padding: 0.4rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.gtab {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gtab:hover {
    background: rgba(88,101,242,0.1);
    color: var(--accent);
}

.gtab.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(88,101,242,0.3);
}

/* ===== GIVEAWAY GRID (dashboard) ===== */
#giveaway-content .giveaway-card {
    margin-bottom: 1rem;
}

/* ===== MOBILE RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .server-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .server-card-left {
        width: 100%;
    }
    
    .server-actions {
        width: 100%;
    }
    
    .server-actions button,
    .server-actions a {
        flex: 1;
        justify-content: center;
    }
    
    .giveaway-tabs {
        flex-direction: column;
    }
    
    .gtab {
        width: 100%;
    }
    
    /* Nav links sur mobile */
    .nav-links {
        display: none;
    }
}
