/* ============================================================
   Nova Bot Dashboard — Styles (Redesign)
   ============================================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-elevated: #1a1a26;
    --bg-sidebar: #0e0e16;
    
    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #5a5a72;
    
    --accent-primary: #7c5cfc;
    --accent-secondary: #5865F2;
    --accent-glow: rgba(124, 92, 252, 0.3);
    --accent-gradient: linear-gradient(135deg, #7c5cfc 0%, #5865F2 50%, #4752c4 100%);
    
    --discord-blurple: #5865F2;
    --success: #43b581;
    --warning: #faa61a;
    --danger: #f04747;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.12);
    
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    
    --sidebar-width: 260px;
    --navbar-height: 64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--accent-primary); text-decoration: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 3px; }

/* ==================== LOGIN SCREEN ==================== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-bg { position: absolute; inset: 0; pointer-events: none; }

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.login-orb-1 {
    width: 500px; height: 500px;
    background: rgba(124, 92, 252, 0.15);
    top: -200px; right: -100px;
}

.login-orb-2 {
    width: 400px; height: 400px;
    background: rgba(88, 101, 242, 0.1);
    bottom: -150px; left: -50px;
}

.login-grid {
    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: 64px 64px;
}

.login-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: loginAppear 0.5s ease;
}

@keyframes loginAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
    width: 64px; height: 64px;
    background: var(--accent-gradient);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.login-logo svg { width: 28px; height: 28px; }

.login-card h1 {
    font-size: 1.5rem; font-weight: 800;
    margin-bottom: 8px; letter-spacing: -0.02em;
}

.login-card p {
    font-size: 0.92rem; color: var(--text-secondary);
    margin-bottom: 32px; line-height: 1.6;
}

.login-error {
    display: none; background: rgba(240, 71, 71, 0.1);
    border: 1px solid rgba(240, 71, 71, 0.3);
    border-radius: var(--radius-xs);
    padding: 12px; margin-bottom: 16px;
    font-size: 0.85rem; color: var(--danger);
}
.login-error.visible { display: block; }

.btn-login-discord {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 14px 24px;
    background: var(--discord-blurple); color: white;
    border: none; border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-login-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

/* ==================== DASHBOARD LAYOUT ==================== */
.dashboard { display: none; min-height: 100vh; }
.dashboard.active { display: flex; }

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    z-index: 100;
    transition: transform var(--transition-medium);
}

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

.sidebar-logo {
    width: 36px; height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xs);
    display: flex; align-items: center; justify-content: center;
    color: white; flex-shrink: 0;
}

.sidebar-logo svg { width: 18px; height: 18px; }

.sidebar-brand {
    font-size: 1.1rem; font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-brand span {
    display: block; font-size: 0.72rem;
    color: var(--text-muted); font-weight: 500;
    letter-spacing: 0.04em; text-transform: uppercase;
}

.sidebar-nav {
    flex: 1; padding: 12px; overflow-y: auto;
}

.sidebar-section { margin-bottom: 8px; }

.sidebar-section-title {
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 8px 12px 4px;
}

.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    margin-bottom: 2px;
}

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

.sidebar-link.active {
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-primary);
}

.sidebar-link svg,
.sidebar-link i { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-user {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 12px;
}

.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%; object-fit: cover;
}

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

.sidebar-user-name {
    font-size: 0.88rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar-user-status {
    font-size: 0.72rem; color: var(--success);
}

.sidebar-logout {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    padding: 6px; border-radius: var(--radius-xs);
    transition: all var(--transition-fast);
    display: flex; align-items: center;
}

.sidebar-logout:hover { color: var(--danger); background: rgba(240,71,71,0.1); }
.sidebar-logout svg { width: 18px; height: 18px; }

.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99;
    backdrop-filter: blur(4px);
}

/* ---------- Top Navbar ---------- */
.top-navbar {
    position: sticky; top: 0;
    height: var(--navbar-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 50;
}

.navbar-left {
    display: flex; align-items: center; gap: 16px;
}

.navbar-left h2 {
    font-size: 1.1rem; font-weight: 700;
    letter-spacing: -0.01em;
}

.navbar-toggle {
    display: none !important;
    background: none; border: none;
    color: var(--text-secondary); cursor: pointer;
    padding: 8px; border-radius: var(--radius-xs);
}

.navbar-toggle:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.navbar-toggle svg { width: 22px; height: 22px; }

.navbar-right {
    display: flex; align-items: center; gap: 12px;
}

.navbar-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    background: transparent;
}

.navbar-btn:hover { color: var(--text-primary); border-color: var(--border-color-hover); background: rgba(255,255,255,0.03); }
.navbar-btn svg { width: 16px; height: 16px; }

.navbar-btn.invite {
    background: rgba(124, 92, 252, 0.1);
    border-color: rgba(124, 92, 252, 0.3);
    color: var(--accent-primary);
}
.navbar-btn.invite:hover {
    background: rgba(124, 92, 252, 0.2);
    border-color: var(--accent-primary);
    color: white;
}

.sidebar-link.invite-link {
    color: var(--accent-primary);
}
.sidebar-link.invite-link:hover {
    background: rgba(124, 92, 252, 0.1);
}

.navbar-user {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-user:hover { background: rgba(255,255,255,0.04); }

.navbar-avatar {
    width: 32px; height: 32px;
    border-radius: 50%; object-fit: cover;
}

.navbar-user span {
    font-size: 0.88rem; font-weight: 600;
}

.navbar-chevron { width: 16px; height: 16px; color: var(--text-muted); transition: transform var(--transition-fast); }
.navbar-user.open .navbar-chevron { transform: rotate(180deg); }

.navbar-dropdown {
    display: none;
    position: absolute; top: 100%; right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.navbar-user.open .navbar-dropdown { display: block; }

.navbar-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.navbar-dropdown-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.navbar-dropdown-item.danger:hover { color: var(--danger); background: rgba(240,71,71,0.08); }
.navbar-dropdown-item svg { width: 16px; height: 16px; }

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

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

.content-body {
    padding: 32px;
    max-width: 1200px;
}

/* ---------- Page Structure ---------- */
.dash-page { display: none !important; }
.dash-page.active { display: block !important; animation: fadeIn 0.3s ease; }

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

.page-header { margin-bottom: 32px; }

.page-header-title {
    font-size: 1.6rem; font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 4px;
}

.page-header-title span { color: var(--accent-primary); }

.page-header-sub {
    font-size: 0.95rem; color: var(--text-secondary);
}

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

.stat-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all var(--transition-fast);
}

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

.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon svg { width: 22px; height: 22px; }
.stat-card-icon.purple { background: rgba(124, 92, 252, 0.1); color: var(--accent-primary); }
.stat-card-icon.green { background: rgba(67, 181, 129, 0.1); color: var(--success); }
.stat-card-icon.blue { background: rgba(88, 101, 242, 0.1); color: var(--discord-blurple); }
.stat-card-icon.yellow { background: rgba(250, 166, 26, 0.1); color: var(--warning); }

.stat-card-body { min-width: 0; }

.stat-card-label {
    font-size: 0.78rem; color: var(--text-muted);
    font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-value {
    font-size: 1.6rem; font-weight: 800;
    letter-spacing: -0.02em;
}

/* ---------- Sections ---------- */
.dash-section { margin-bottom: 32px; }

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

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

.section-link {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 500;
    color: var(--accent-primary);
    background: none; border: none; cursor: pointer;
    transition: all var(--transition-fast);
}

.section-link:hover { gap: 10px; }
.section-link svg { width: 16px; height: 16px; }

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

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; align-items: center; gap: 16px;
    transition: all var(--transition-fast);
    cursor: default;
}

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

.server-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-secondary);
}

.server-card-icon img {
    width: 100%; height: 100%; object-fit: cover;
}

.server-card-body { flex: 1; min-width: 0; }

.server-card-name {
    font-size: 0.95rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}

.server-card-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--text-muted);
}

.server-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
}

.server-badge.owner {
    background: rgba(250, 166, 26, 0.1); color: var(--warning);
}

.server-badge.bot-active {
    background: rgba(67, 181, 129, 0.1); color: var(--success);
}

.server-badge.no-bot {
    background: rgba(90, 90, 114, 0.15); color: var(--text-muted);
}

.server-card-actions { flex-shrink: 0; }

.server-invite-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.8rem; font-weight: 600;
    background: var(--accent-primary); color: white;
    border: none; cursor: pointer;
    transition: all var(--transition-fast);
}

.server-invite-btn:hover {
    background: #6b4be0;
    transform: translateY(-1px);
}

.server-invite-btn svg { width: 14px; height: 14px; }

/* ---------- Filter Tabs ---------- */
.filter-tabs {
    display: flex; gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover { border-color: var(--border-color-hover); color: var(--text-primary); }

.filter-tab.active {
    background: rgba(124, 92, 252, 0.1);
    border-color: rgba(124, 92, 252, 0.3);
    color: var(--accent-primary);
}

.filter-tab svg { width: 16px; height: 16px; }

.filter-badge {
    background: rgba(255,255,255,0.08);
    padding: 1px 7px;
    border-radius: 100px;
    font-size: 0.72rem;
}

.filter-tab.active .filter-badge {
    background: rgba(124, 92, 252, 0.2);
}

/* ---------- Profile Card ---------- */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 600px;
}

.profile-banner {
    height: 120px;
    background: var(--accent-gradient);
    position: relative;
}

.profile-content {
    display: flex; align-items: flex-end; gap: 20px;
    padding: 0 28px;
    margin-top: -40px;
    position: relative;
}

.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    object-fit: cover;
}

.profile-info { padding-bottom: 16px; }

.profile-name {
    font-size: 1.3rem; font-weight: 800;
    letter-spacing: -0.01em;
}

.profile-id {
    font-size: 0.82rem; color: var(--text-muted);
    font-family: monospace;
}

.profile-details {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex; flex-direction: column; gap: 16px;
}

.profile-detail {
    display: flex; align-items: center; gap: 14px;
}

.profile-detail svg {
    width: 18px; height: 18px;
    color: var(--text-muted); flex-shrink: 0;
}

.profile-detail-label {
    display: block;
    font-size: 0.75rem; color: var(--text-muted);
    font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-detail-value {
    display: block;
    font-size: 0.95rem; font-weight: 600;
}

/* ---------- Loading / Empty State ---------- */
.loading-state, .empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 24px;
    text-align: center;
    grid-column: 1 / -1;
}

.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

.loading-state p, .empty-state p {
    font-size: 0.88rem; color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2.5rem; margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 8px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .navbar-toggle {
        display: flex !important;
    }

    .navbar-btn span { display: none; }

    .content-body {
        padding: 20px 16px;
    }

    .page-header-title {
        font-size: 1.3rem;
    }

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

    .dash-stats {
        grid-template-columns: 1fr;
    }

    .top-navbar {
        padding: 0 16px;
    }

    .profile-content {
        padding: 0 20px;
    }

    .profile-details {
        padding: 16px 20px;
    }
}

@media (min-width: 769px) {
    .sidebar-overlay { display: none !important; }
}

@media (max-width: 480px) {
    .navbar-user span { display: none; }
    .filter-tabs { gap: 6px; }
    .filter-tab { padding: 8px 12px; font-size: 0.8rem; }
    .filter-tab svg { width: 14px; height: 14px; }
}

/* ==================== SERVER DETAIL PAGE ==================== */
.server-detail-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 32px;
}
.server-detail-header .back-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-xs);
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card); border: 1px solid var(--border-color);
    cursor: pointer; transition: all var(--transition-fast);
}
.server-detail-header .back-btn:hover { color: var(--text-primary); border-color: var(--border-color-hover); }
.server-detail-header .back-btn svg { width: 16px; height: 16px; }
.server-detail-header .server-name-title { font-size: 1.4rem; font-weight: 800; }

/* Module Tabs */
.module-tabs {
    display: flex; gap: 4px; margin-bottom: 24px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 4px;
    overflow-x: auto;
}
.module-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-xs);
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap; border: none; background: none;
}
.module-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.module-tab.active { background: rgba(124, 92, 252, 0.15); color: var(--accent-primary); }
.module-tab svg { width: 16px; height: 16px; }

/* Module Panels */
.module-panel { display: none; animation: fadeIn 0.3s ease; }
.module-panel.active { display: block; }

/* Module Card (settings container) */
.module-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
}
.module-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.module-card-title {
    font-size: 1.15rem; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.module-card-title svg { width: 20px; height: 20px; color: var(--accent-primary); }

/* Toggle Switch */
.toggle-switch {
    position: relative; width: 48px; height: 26px;
    cursor: pointer; display: inline-block;
}
.toggle-switch input { display: none; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #3a3a4f; border-radius: 26px;
    transition: all var(--transition-fast);
}
.toggle-slider::before {
    content: ''; position: absolute;
    width: 20px; height: 20px; left: 3px; bottom: 3px;
    background: white; border-radius: 50%;
    transition: all var(--transition-fast);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-primary);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Form Groups */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.form-hint {
    font-size: 0.78rem; color: var(--text-muted);
    margin-top: 6px;
}
.form-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* Inputs & Selects */
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px;
    background: var(--bg-elevated); border: 1px solid var(--border-color);
    border-radius: var(--radius-xs); color: var(--text-primary);
    font-size: 0.9rem; font-family: inherit;
    transition: all var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-select { appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239898b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: calc(100% - 12px) center;
    padding-right: 36px;
}
.form-select option { background: var(--bg-card); color: var(--text-primary); }
.form-textarea { min-height: 100px; resize: vertical; }

/* Color Picker */
.color-picker-group { display: flex; align-items: center; gap: 12px; }
.color-picker-group input[type="color"] {
    width: 40px; height: 40px; border: 2px solid var(--border-color);
    border-radius: var(--radius-xs); cursor: pointer;
    background: none; padding: 2px;
}

/* Save Button */
.save-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600;
    background: var(--accent-gradient); color: white;
    border: none; cursor: pointer;
    transition: all var(--transition-fast);
}
.save-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.save-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.save-btn svg { width: 16px; height: 16px; }

/* Toast Notifications */
.toast {
    position: fixed; bottom: 24px; right: 24px;
    padding: 14px 24px; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 600;
    color: white; z-index: 9999;
    transform: translateY(100px); opacity: 0;
    transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* Embed Builder */
.embed-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.embed-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-elevated); border: 1px solid var(--border-color);
    border-radius: var(--radius-xs); padding: 14px 18px;
    cursor: pointer; transition: all var(--transition-fast);
}
.embed-item:hover { border-color: var(--border-color-hover); }
.embed-item-name { font-weight: 600; font-size: 0.92rem; }
.embed-item-date { font-size: 0.78rem; color: var(--text-muted); }
.embed-item-actions { display: flex; gap: 8px; }
.embed-action-btn {
    padding: 6px 10px; border-radius: var(--radius-xs);
    font-size: 0.78rem; font-weight: 600;
    border: 1px solid var(--border-color); background: none;
    color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition-fast);
}
.embed-action-btn:hover { color: var(--text-primary); border-color: var(--border-color-hover); }
.embed-action-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.embed-action-btn.send:hover { color: var(--success); border-color: var(--success); }

/* Embed Preview */
.embed-preview {
    background: var(--bg-elevated); border-left: 4px solid var(--accent-primary);
    border-radius: 4px; padding: 16px 20px; margin: 16px 0;
    max-width: 520px;
}
.embed-preview-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.embed-preview-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
.embed-preview-footer { font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; }
.embed-preview-fields { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.embed-preview-field-name { font-weight: 700; font-size: 0.82rem; }
.embed-preview-field-value { font-size: 0.82rem; color: var(--text-secondary); }

/* Mod Actions Table */
.mod-actions-table { width: 100%; border-collapse: collapse; }
.mod-actions-table th, .mod-actions-table td {
    padding: 10px 14px; text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}
.mod-actions-table th {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.mod-actions-table tr:hover td { background: rgba(255,255,255,0.02); }
.action-badge {
    display: inline-flex; padding: 2px 8px;
    border-radius: 100px; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase;
}
.action-badge.ban { background: rgba(240,71,71,0.15); color: var(--danger); }
.action-badge.kick { background: rgba(250,166,26,0.15); color: var(--warning); }
.action-badge.mute { background: rgba(88,101,242,0.15); color: var(--discord-blurple); }
.action-badge.warn { background: rgba(250,166,26,0.15); color: #ffa500; }
.action-badge.unmute, .action-badge.unban { background: rgba(67,181,129,0.15); color: var(--success); }

/* Ticket List */
.ticket-list-table { width: 100%; border-collapse: collapse; }
.ticket-list-table th, .ticket-list-table td {
    padding: 10px 14px; text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}
.ticket-list-table th {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.ticket-status {
    display: inline-flex; padding: 2px 8px;
    border-radius: 100px; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase;
}
.ticket-status.open { background: rgba(67,181,129,0.15); color: var(--success); }
.ticket-status.closed { background: rgba(240,71,71,0.15); color: var(--danger); }

/* Send Embed Modal */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); z-index: 1000;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal-content {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 28px;
    max-width: 480px; width: 90%;
}
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.modal-btn {
    padding: 10px 20px; border-radius: var(--radius-xs);
    font-size: 0.88rem; font-weight: 600;
    border: 1px solid var(--border-color); background: none;
    color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition-fast);
}
.modal-btn:hover { color: var(--text-primary); border-color: var(--border-color-hover); }
.modal-btn.primary { background: var(--accent-gradient); color: white; border: none; }
.modal-btn.primary:hover { transform: translateY(-1px); }
