/* ==================== VARIABLES ==================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #22222e;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    
    --accent-primary: #5865F2;
    --accent-secondary: #7289da;
    --accent-gradient: linear-gradient(135deg, #5865F2 0%, #eb459e 100%);
    
    --success: #57F287;
    --warning: #FEE75C;
    --error: #ED4245;
    --info: #5865F2;
    
    --purple: #9b59b6;
    --pink: #eb459e;
    --cyan: #00d4ff;
    --orange: #f39c12;
    --twitch: #9146FF;
    --tiktok: #ff0050;
    --yellow: #FEE75C;
    --blue: #5865F2;
    --gold: #FFD700;
    --gray: #95A5A6;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-glow {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent-primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==================== GUILD SELECTOR ==================== */
.guild-selector-wrapper {
    position: relative;
}

.guild-selector {
    position: relative;
}

.guild-select-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
    justify-content: space-between;
}

.guild-select-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.guild-select-btn.active {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.guild-select-btn .guild-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.guild-chevron {
    font-size: 0.7rem;
    transition: var(--transition);
    color: var(--text-secondary);
}

.guild-select-btn.active .guild-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.guild-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.guild-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.guild-icon-global {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.2);
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.guild-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    box-shadow: var(--shadow-lg);
}

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

.guild-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.guild-dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.guild-dropdown-item.active {
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent-primary);
}

.guild-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

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

.guild-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.guild-dropdown-item.active .guild-item-desc {
    color: var(--text-secondary);
}

.guild-check {
    font-size: 0.8rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.guild-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Scrollbar pour le dropdown */
.guild-dropdown::-webkit-scrollbar {
    width: 6px;
}

.guild-dropdown::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.guild-dropdown::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

.guild-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== GUILD BADGES ==================== */
.guild-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.65rem;
    margin-left: 0.4rem;
    flex-shrink: 0;
}

.badge-warning {
    background: rgba(254, 231, 92, 0.2);
    color: var(--warning);
    border: 1px solid rgba(254, 231, 92, 0.3);
}

.badge-info {
    background: rgba(88, 101, 242, 0.2);
    color: var(--accent-primary);
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.badge-success {
    background: rgba(87, 242, 135, 0.2);
    color: var(--success);
    border: 1px solid rgba(87, 242, 135, 0.3);
}

/* Badge dans le bouton sélecteur */
.guild-select-btn .guild-badge {
    position: absolute;
    top: -4px;
    right: 28px;
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
}

.guild-item-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--bg-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-menu a.logout:hover {
    color: var(--error);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
}

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

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

.btn.disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-discord {
    background: #5865F2;
    color: white;
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--pink);
    bottom: -100px;
    left: -100px;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--cyan);
    top: 50%;
    left: 30%;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-window {
    width: 400px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--error);
}

.mockup-dots span:nth-child(2) { background: var(--warning); }
.mockup-dots span:nth-child(3) { background: var(--success); }

.mockup-title {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mockup-content {
    padding: 1.5rem;
}

.mock-message {
    display: flex;
    gap: 1rem;
}

.mock-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.mock-name {
    font-weight: 600;
    color: var(--accent-primary);
}

.bot-tag {
    background: var(--accent-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.mock-embed {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    overflow: hidden;
}

.embed-bar {
    width: 4px;
    background: var(--success);
}

.embed-content {
    padding: 1rem;
}

.embed-content strong {
    color: var(--text-primary);
}

.embed-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: 100px 5%;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 50px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon.mod { background: rgba(237, 66, 69, 0.15); color: var(--error); }
.feature-icon.tickets { background: rgba(87, 242, 135, 0.15); color: var(--success); }
.feature-icon.notif { background: rgba(145, 70, 255, 0.15); color: var(--twitch); }
.feature-icon.presence { background: rgba(235, 69, 158, 0.15); color: var(--pink); }
.feature-icon.welcome { background: rgba(0, 212, 255, 0.15); color: var(--cyan); }
.feature-icon.dashboard { background: rgba(88, 101, 242, 0.15); color: var(--accent-primary); }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-list i {
    color: var(--success);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 100px 5%;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    filter: blur(150px);
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 2rem 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-brand i {
    color: var(--accent-primary);
}

.footer-brand .accent {
    color: var(--accent-primary);
}

.footer-content p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    background: var(--accent-primary);
    color: white;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    position: relative;
}

.login-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
}

.login-logo {
    margin-bottom: 2rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.4);
}

.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-info i {
    color: var(--success);
}

.login-alert {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(254, 231, 92, 0.1);
    border: 1px solid rgba(254, 231, 92, 0.3);
    border-radius: var(--radius-md);
    color: var(--warning);
    text-align: left;
}

.login-alert strong {
    color: var(--text-primary);
}

.login-alert p {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-perms {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.login-perms p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.login-perms ul {
    list-style: none;
}

.login-perms li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-perms i {
    color: var(--accent-primary);
}

/* ==================== DASHBOARD PAGE ==================== */
.dashboard-page {
    padding-top: 70px;
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: calc(100vh - 70px);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
}

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

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.sidebar-name {
    display: block;
    font-weight: 600;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--success);
}

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

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent-primary);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-link.logout:hover {
    background: rgba(237, 66, 69, 0.15);
    color: var(--error);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

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

.header-title h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
}

.header-title p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.stat-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
}

.stat-card-icon.purple { background: rgba(155, 89, 182, 0.15); color: var(--purple); }
.stat-card-icon.blue { background: rgba(88, 101, 242, 0.15); color: var(--accent-primary); }
.stat-card-icon.green { background: rgba(87, 242, 135, 0.15); color: var(--success); }
.stat-card-icon.orange { background: rgba(243, 156, 18, 0.15); color: var(--orange); }

.stat-card-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.quick-action:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.15);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.module-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    opacity: 0.5;
    transition: var(--transition);
}

.module-card.active {
    opacity: 1;
}

.module-card i:first-child {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.module-card.active i:first-child {
    color: var(--accent-primary);
}

.module-status i {
    font-size: 0.5rem;
    color: var(--error);
}

.module-card.active .module-status i {
    color: var(--success);
}

/* ==================== FEATURES PAGE ==================== */
.features-toggle-grid {
    display: grid;
    gap: 1rem;
}

.feature-toggle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-toggle-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.feature-toggle-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
}

.feature-toggle-icon.purple { background: rgba(155, 89, 182, 0.15); color: var(--purple); }
.feature-toggle-icon.red { background: rgba(237, 66, 69, 0.15); color: var(--error); }
.feature-toggle-icon.green { background: rgba(87, 242, 135, 0.15); color: var(--success); }
.feature-toggle-icon.cyan { background: rgba(0, 212, 255, 0.15); color: var(--cyan); }
.feature-toggle-icon.pink { background: rgba(235, 69, 158, 0.15); color: var(--pink); }
.feature-toggle-icon.twitch { background: rgba(145, 70, 255, 0.15); color: var(--twitch); }
.feature-toggle-icon.tiktok { background: rgba(255, 0, 80, 0.15); color: var(--tiktok); }

.feature-toggle-info {
    flex: 1;
}

.feature-toggle-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-toggle-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-hover);
    border-radius: 28px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--success);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch.small {
    width: 40px;
    height: 22px;
}

.toggle-switch.small .toggle-slider::before {
    width: 16px;
    height: 16px;
}

.toggle-switch.small input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.feature-toggle-details {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.detail-item span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

/* ==================== SETTINGS PAGE ==================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.settings-card-header i {
    color: var(--accent-primary);
}

.settings-card-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.settings-card-body {
    padding: 1.5rem;
}

.color-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.color-setting label {
    color: var(--text-secondary);
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-input-wrapper input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
}

.color-value {
    font-family: monospace;
    color: var(--text-muted);
}

.word-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.input-field.small {
    width: 80px;
    padding: 0.5rem;
    text-align: center;
}

.banned-words-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.word-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(237, 66, 69, 0.15);
    border: 1px solid rgba(237, 66, 69, 0.3);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 0.9rem;
}

.word-remove {
    color: var(--error);
    opacity: 0.7;
    transition: var(--transition);
}

.word-remove:hover {
    opacity: 1;
}

.no-words {
    color: var(--text-muted);
    font-style: italic;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.setting-row label {
    color: var(--text-secondary);
}

.settings-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(88, 101, 242, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.settings-info i {
    color: var(--accent-primary);
}

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

.sanction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

.sanction-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.sanction-icon.mute { background: rgba(254, 231, 92, 0.15); color: var(--warning); }
.sanction-icon.kick { background: rgba(243, 156, 18, 0.15); color: var(--orange); }
.sanction-icon.ban { background: rgba(237, 66, 69, 0.15); color: var(--error); }

.sanction-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transform: translateY(100px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast.hidden {
    display: none;
}

.toast i {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast.success {
    background: rgba(87, 242, 135, 0.15);
    border-color: rgba(87, 242, 135, 0.3);
    color: var(--success);
}

.toast.success i {
    color: var(--success);
}

.toast.error {
    background: rgba(237, 66, 69, 0.15);
    border-color: rgba(237, 66, 69, 0.3);
    color: var(--error);
}

.toast.error i {
    color: var(--error);
}

.toast.warning {
    background: rgba(254, 231, 92, 0.15);
    border-color: rgba(254, 231, 92, 0.3);
    color: var(--warning);
}

.toast.warning i {
    color: var(--warning);
}

.toast.info {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
    color: var(--info);
}

.toast.info i {
    color: var(--info);
}

#toast-message {
    flex: 1;
    line-height: 1.4;
    font-weight: 500;
}

/* ==================== ERROR PAGE ==================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
}

.error-container {
    text-align: center;
}

.error-icon {
    font-size: 5rem;
    color: var(--warning);
    margin-bottom: 2rem;
}

.error-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==================== ERROR ALERT ==================== */
.login-alert.error {
    background: rgba(237, 66, 69, 0.15);
    border: 1px solid rgba(237, 66, 69, 0.3);
    color: var(--error);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.login-alert.error i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.login-alert.error strong {
    display: block;
    margin-bottom: 0.5rem;
}

.login-alert.error p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.login-alert.error code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    word-break: break-all;
}

/* ==================== TICKET TYPES ==================== */
.ticket-types-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ticket-type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.ticket-type-item:hover {
    border-color: var(--accent-primary);
    background: rgba(88, 101, 242, 0.05);
}

.ticket-type-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.ticket-type-emoji {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.ticket-type-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

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

.ticket-type-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ticket-type-color {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
}

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

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

.btn-danger {
    background: rgba(237, 66, 69, 0.15);
    color: var(--error);
    border-color: rgba(237, 66, 69, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(237, 66, 69, 0.25);
    border-color: var(--error);
}

.no-items {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

.settings-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.settings-info i {
    color: var(--accent-primary);
    margin-top: 0.2rem;
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.hidden {
    display: none;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

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

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

.modal-header h2,
.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-hover);
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

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

.form-input[type="number"] {
    -moz-appearance: textfield;
}

.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .sidebar {
        display: none;
    }
    
    .dashboard-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mockup-window {
        width: 100%;
        max-width: 350px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== APPEARANCE PAGE ==================== */

/* Avatar Preview Section */
.avatar-preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.avatar-preview {
    position: relative;
    margin-bottom: 1rem;
}

.avatar-large {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
    object-fit: cover;
    transition: var(--transition);
}

.avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.5);
}

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.avatar-badge i {
    color: white;
    font-size: 18px;
}

.avatar-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

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

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

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

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

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(88, 101, 242, 0.1);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.info-box i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-box strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.info-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Les styles toast sont définis plus haut dans le fichier */

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

/* Select Input Styling */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-input option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .avatar-preview-section {
        padding: 1.5rem;
    }
    
    .avatar-large {
        width: 96px;
        height: 96px;
    }
    
.toast {
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
}
}

/* ==================== GESTION AVANCÉE ==================== */
.manage-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.manage-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.manage-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
}

.manage-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manage-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.manage-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.manage-content {
    display: none;
}

.manage-content.active {
    display: block;
}

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

.manage-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.manage-item-content {
    flex: 1;
}

.manage-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.manage-item-body {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.manage-item-footer {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.role-tag {
    background: var(--accent-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Consolas', monospace;
}

.badge {
    background: var(--accent-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.empty-state,
.loading,
.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.log-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.select-input {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 200px;
}

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

.feature-toggle-icon.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.feature-toggle-icon.yellow {
    background: linear-gradient(135deg, #FEE75C 0%, #FFD700 100%);
}

.feature-toggle-icon.gray {
    background: linear-gradient(135deg, #95A5A6 0%, #7F8C8D 100%);
}

/* ==================== SÉLECTEUR DE CANAL ==================== */
.channel-select-wrapper {
    position: relative;
    min-width: 250px;
}

.channel-select {
    position: relative;
    width: 100%;
}

.channel-select-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.channel-select-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.channel-select-btn i.fa-hashtag {
    color: var(--text-muted);
    flex-shrink: 0;
}

.channel-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-select-chevron {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.channel-select.show .channel-select-chevron {
    transform: rotate(180deg);
}

.channel-select-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.channel-select-dropdown.show {
    display: flex;
}

.channel-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
}

.channel-select-search i {
    color: var(--text-muted);
    flex-shrink: 0;
}

.channel-select-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
}

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

.channel-select-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.channel-category {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.channel-category:first-child {
    margin-top: 0;
}

.channel-option {
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.channel-option:hover {
    background: var(--bg-hover);
}

.channel-option.selected {
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent-primary);
}

.channel-option.selected i {
    color: var(--accent-primary);
}

.channel-option i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.log-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ==================== LEGAL PAGES (Terms & Privacy) ==================== */
.legal-page {
    min-height: calc(100vh - 80px);
    padding: 60px 5%;
    background: var(--bg-primary);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 0;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-section li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

.legal-section a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer legal links */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

.footer-legal span {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1.5rem;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .footer-legal span {
        display: none;
    }
}

