/* ============================================================
   Dashboard — Design System Premium
   Inspiré de Discord + SaaS moderne
   ============================================================ */

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

/* ── Variables ────────────────────────────────────────────── */
:root {
    /* Couleurs principales */
    --blurple:        #5865F2;
    --blurple-hover:  #4752C4;
    --blurple-glow:   rgba(88, 101, 242, 0.35);
    --green:          #57F287;
    --yellow:         #FEE75C;
    --red:            #ED4245;

    /* Backgrounds */
    --bg-deep:        #0d0e12;
    --bg-primary:     #111218;
    --bg-secondary:   #17191f;
    --bg-card:        #1e2029;
    --bg-card-hover:  #252834;
    --bg-input:       #2b2d36;
    --bg-sidebar:     #13141a;

    /* Borders */
    --border:         rgba(255, 255, 255, 0.06);
    --border-hover:   rgba(255, 255, 255, 0.12);

    /* Textes */
    --text-primary:   #f2f3f5;
    --text-secondary: #b5bac1;
    --text-muted:     #6d6f78;

    /* Effets */
    --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow:    0 0 40px rgba(88, 101, 242, 0.15);
    --radius:         12px;
    --radius-sm:      8px;
    --radius-lg:      16px;

    /* Transitions */
    --transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Sidebar */
    --sidebar-width:  260px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blurple);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--blurple-hover); }

img { max-width: 100%; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blurple); }

/* ============================================================
   LANDING PAGE
   ============================================================ */

/* Background animé avec gradient */
.landing-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(88, 101, 242, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 90% 110%, rgba(87, 242, 135, 0.08) 0%, transparent 60%),
        var(--bg-deep);
    z-index: -1;
}

/* Grille de fond */
.landing-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    background: rgba(17, 18, 24, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blurple), #7289da);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px var(--blurple-glow);
}

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

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    min-height: calc(100vh - 73px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: var(--blurple);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeInDown 0.6s ease forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.7s ease forwards;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--blurple) 0%, #9b59b6 50%, var(--blurple) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.9s ease forwards;
}

/* Features section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blurple), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blurple), #7289da);
    color: white;
    box-shadow: 0 4px 15px var(--blurple-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blurple-hover), #5e73c4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--blurple-glow);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #7289da);
    color: white;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

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

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

.btn-outline:hover {
    border-color: var(--blurple);
    color: var(--blurple);
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

.btn-danger {
    background: rgba(237, 66, 69, 0.1);
    color: var(--red);
    border: 1px solid rgba(237, 66, 69, 0.3);
}
.btn-danger:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.btn-success {
    background: rgba(87, 242, 135, 0.1);
    color: var(--green);
    border: 1px solid rgba(87, 242, 135, 0.3);
}
.btn-success:hover {
    background: var(--green);
    color: #0d0e12;
    border-color: var(--green);
}

/* ============================================================
   GUILDS SELECTION PAGE
   ============================================================ */

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

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

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-title span {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-left: 0.5rem;
}

.guilds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.guild-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: var(--transition-slow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.guild-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(88,101,242,0.04), transparent);
    opacity: 0;
    transition: var(--transition);
}

.guild-card:hover {
    border-color: var(--blurple);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 0 30px rgba(88,101,242,0.1);
}

.guild-card:hover::after { opacity: 1; }

.guild-card.not-joined {
    opacity: 0.55;
    border-style: dashed;
}

.guild-card.not-joined:hover { opacity: 1; }

.guild-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 2px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
}

.guild-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guild-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.guild-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-joined {
    background: rgba(87, 242, 135, 0.12);
    color: var(--green);
    border: 1px solid rgba(87, 242, 135, 0.25);
}

.badge-invite {
    background: rgba(88, 101, 242, 0.12);
    color: var(--blurple);
    border: 1px solid rgba(88, 101, 242, 0.25);
}

/* ============================================================
   LAYOUT DASHBOARD (SIDEBAR)
   ============================================================ */

.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    transition: var(--transition);
}

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

.sidebar-guild {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sidebar-guild-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-input);
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-guild-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-guild-info { overflow: hidden; }

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

.sidebar-guild-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 0.75rem 0.35rem;
    margin-top: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

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

.nav-item.active {
    background: rgba(88, 101, 242, 0.15);
    color: var(--blurple);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--blurple);
    border-radius: 0 3px 3px 0;
    margin-left: -0.85rem;
}

.nav-item .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
    background: var(--blurple);
    color: white;
}

/* User info bas de sidebar */
.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-input);
}

.sidebar-user-info { flex: 1; overflow: hidden; }

.sidebar-username {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-primary);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(17, 18, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
    gap: 1rem;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.topbar-actions { display: flex; gap: 0.75rem; align-items: center; }

.content-area { padding: 2rem; }

/* ============================================================
   CARDS & STATS
   ============================================================ */

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

.card:hover {
    border-color: var(--border-hover);
}

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

.card-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--stat-color, var(--blurple));
    opacity: 0.06;
    transform: translate(20px, -20px);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(88, 101, 242, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.stat-info { flex: 1; }

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* ============================================================
   MODULE TOGGLE SWITCHES
   ============================================================ */

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

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

.module-card:hover {
    border-color: var(--border-hover);
}

.module-card.enabled {
    border-color: rgba(87, 242, 135, 0.2);
    background: linear-gradient(135deg, rgba(87, 242, 135, 0.03), var(--bg-card));
}

.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.module-info { flex: 1; }

.module-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.module-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-input);
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.toggle input:checked + .toggle-slider {
    background: rgba(87, 242, 135, 0.2);
    border-color: rgba(87, 242, 135, 0.4);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px) translateY(-50%);
    background: var(--green);
}

/* ============================================================
   LEADERBOARD TABLE
   ============================================================ */

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

.lb-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.lb-row:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.lb-rank {
    width: 28px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.lb-rank.gold { color: #FFD700; }
.lb-rank.silver { color: #C0C0C0; }
.lb-rank.bronze { color: #CD7F32; }

.lb-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blurple);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--blurple), #9b59b6);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   ALERTS & NOTIFICATIONS
   ============================================================ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    border: 1px solid;
    margin-bottom: 1.5rem;
}

.alert-info {
    background: rgba(88, 101, 242, 0.08);
    border-color: rgba(88, 101, 242, 0.25);
    color: #a5b4fc;
}

.alert-success {
    background: rgba(87, 242, 135, 0.08);
    border-color: rgba(87, 242, 135, 0.25);
    color: #86efac;
}

.alert-warning {
    background: rgba(254, 231, 92, 0.08);
    border-color: rgba(254, 231, 92, 0.25);
    color: #fef08a;
}

.alert-danger {
    background: rgba(237, 66, 69, 0.08);
    border-color: rgba(237, 66, 69, 0.25);
    color: #fca5a5;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-control:focus {
    border-color: var(--blurple);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

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

select.form-control option {
    background: var(--bg-input);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================================
   USER AVATAR
   ============================================================ */

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-input);
    border: 2px solid var(--border);
}

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

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blurple); }

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-auto { margin-top: auto; }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

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

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 1.5rem; }
    .hero { padding: 4rem 1.5rem 3rem; }
    .features { padding: 2rem 1.5rem; }
    .page-container { padding: 2rem 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content-area { padding: 1.25rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .guilds-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; }
}
