/* =========================================================================
   style.css
   -------------------------------------------------------------------------
   Stylesheet utama Telegram Bot API Dashboard.
   Pure CSS - tanpa framework (tanpa Bootstrap/Tailwind).
   Tema: Glassmorphism ringan, rounded, modern, responsive.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================= DESIGN TOKENS ============================= */
:root {
    /* Warna dasar - Dark mode (default) */
    --bg-base: #0A0F1E;
    --bg-elevated: #0F1830;
    --bg-grid-line: rgba(255, 255, 255, 0.035);

    --glass-bg: rgba(255, 255, 255, 0.045);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-highlight: rgba(255, 255, 255, 0.06);

    --accent-primary: #2AABEE;
    --accent-primary-dim: rgba(42, 171, 238, 0.16);
    --accent-secondary: #6C5CE7;
    --accent-cyan: #22D3EE;

    --success: #22C55E;
    --success-dim: rgba(34, 197, 94, 0.15);
    --danger: #F04862;
    --danger-dim: rgba(240, 72, 98, 0.15);
    --warning: #F5A623;
    --warning-dim: rgba(245, 166, 35, 0.15);

    --text-primary: #E8EDF6;
    --text-secondary: #96A2BC;
    --text-muted: #616E8C;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    --shadow-elevated: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --sidebar-width: 264px;
}

/* Tema Light Mode */
body.theme-light {
    --bg-base: #EEF2F9;
    --bg-elevated: #F7F9FD;
    --bg-grid-line: rgba(15, 23, 42, 0.035);

    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.9);

    --text-primary: #101828;
    --text-secondary: #4B5670;
    --text-muted: #8894AC;

    --shadow-elevated: 0 20px 50px -24px rgba(30, 41, 82, 0.25);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition-base), color var(--transition-base);
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); }
::selection { background: var(--accent-primary-dim); }

/* Scrollbar tipis */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-elevated);
}

.muted { color: var(--text-muted); font-size: 13.5px; }

/* ============================================================================
   HALAMAN LOGIN (AUTH)
   ============================================================================ */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, #101c3a 0%, var(--bg-base) 55%);
}

.auth-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--bg-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid-line) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.auth-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}
.auth-glow-1 { background: var(--accent-primary); top: -160px; left: -120px; }
.auth-glow-2 { background: var(--accent-secondary); bottom: -180px; right: -140px; }

.auth-wrapper { position: relative; z-index: 2; width: 100%; max-width: 440px; padding: 20px; }

.auth-card {
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    animation: fadeUp 0.5s ease both;
}

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

.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand-icon { margin-bottom: 14px; }
.auth-brand h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.auth-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 10px; line-height: 1.6; }

.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-footer { text-align: center; margin-top: 26px; color: var(--text-muted); font-size: 12.5px; }

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 14px 0 6px; display: block; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.form-input, .form-select, textarea.form-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(127, 140, 170, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14.5px;
    outline: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus { border-color: var(--accent-primary); background: rgba(42, 171, 238, 0.06); }

.form-input-sm, .form-select-sm { padding: 9px 12px; font-size: 13px; }

.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 46px; }
.input-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    padding: 8px; border-radius: 8px; display: flex;
}
.input-toggle:hover { color: var(--text-primary); background: rgba(127,140,170,0.1); }

.form-stack { display: flex; flex-direction: column; }
textarea.form-input { resize: vertical; min-height: 100px; font-family: var(--font-body); }

select.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2396A2BC' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-primary { background: linear-gradient(135deg, var(--accent-primary), #1D8FD1); color: #fff; box-shadow: 0 8px 24px -8px rgba(42, 171, 238, 0.6); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-danger { background: linear-gradient(135deg, var(--danger), #C93A52); color: #fff; box-shadow: 0 8px 24px -8px rgba(240, 72, 98, 0.5); }
.btn-danger:hover { filter: brightness(1.08); }

.btn-outline { background: transparent; border-color: var(--glass-border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.btn-ghost { background: rgba(127,140,170,0.08); color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(127,140,170,0.14); }

.btn-row { display: flex; gap: 10px; margin-top: 16px; }

.btn-spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================================
   ALERT
   ============================================================================ */
.alert {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 13px 16px; border-radius: var(--radius-sm);
    font-size: 13.5px; line-height: 1.5; margin-bottom: 16px;
}
.alert-danger { background: var(--danger-dim); color: #FF95A4; border: 1px solid rgba(240,72,98,0.3); }
.alert-icon { font-size: 16px; }

/* ============================================================================
   APP SHELL (DASHBOARD LAYOUT)
   ============================================================================ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--bg-elevated);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 40;
    transition: transform var(--transition-base);
}

.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 22px 22px;
    font-family: var(--font-display); font-weight: 700; font-size: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; }

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13.8px; font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-item:hover { background: rgba(127,140,170,0.08); color: var(--text-primary); }
.nav-item.active { background: var(--accent-primary-dim); color: var(--accent-primary); font-weight: 600; }
.nav-item .ic { flex-shrink: 0; }

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

/* ============================================================================
   TOPBAR + MAIN AREA
   ============================================================================ */
.main-area { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-base);
    position: sticky; top: 0; z-index: 30;
}

.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; }

.topbar-bot { display: flex; align-items: center; gap: 10px; }
.topbar-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--glass-border); }
.topbar-bot-meta { display: flex; flex-direction: column; line-height: 1.25; }
.topbar-bot-meta strong { font-size: 14px; }
.topbar-bot-meta span { font-size: 12px; color: var(--text-muted); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px;
    background: rgba(127,140,170,0.1); font-size: 12.5px; color: var(--text-secondary);
    font-family: var(--font-mono);
}

.theme-switch {
    position: relative;
    width: 52px; height: 28px;
    background: rgba(127,140,170,0.15);
    border-radius: 999px;
    cursor: pointer;
    display: flex; align-items: center;
    padding: 0 7px;
    justify-content: space-between;
}
.theme-switch .ic { width: 14px; height: 14px; color: var(--text-muted); z-index: 1; }
.theme-knob {
    position: absolute; top: 3px; left: 3px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-primary);
    transition: transform var(--transition-base);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.theme-light .theme-knob { transform: translateX(24px); }

.content-scroll { flex: 1; padding: 26px 28px 60px; }

/* ============================================================================
   SECTIONS & CARDS
   ============================================================================ */
.page-section { display: none; animation: fadeIn 0.35s ease both; }
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.section-head { margin-bottom: 22px; }
.section-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--text-secondary); font-size: 13.8px; margin-top: 4px; }

.card {
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 15.5px; font-weight: 700; }
.card-head-wrap { flex-direction: column; align-items: stretch; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px; border-radius: var(--radius-md);
}
.stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon-success { background: var(--success-dim); color: var(--success); }
.stat-icon-danger { background: var(--danger-dim); color: var(--danger); }
.stat-icon-warning { background: var(--warning-dim); color: var(--warning); }
.stat-icon-info { background: rgba(34,211,238,0.15); color: var(--accent-cyan); }
.stat-icon-primary { background: var(--accent-primary-dim); color: var(--accent-primary); }

.stat-body { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-value { font-size: 19px; font-weight: 700; font-family: var(--font-display); }

/* Key-Value table */
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table th, .kv-table td { text-align: left; padding: 11px 4px; font-size: 13.5px; border-bottom: 1px solid var(--glass-border); }
.kv-table th { color: var(--text-muted); font-weight: 500; width: 45%; }
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: none; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.tag-success { background: var(--success-dim); color: var(--success); }
.tag-danger { background: var(--danger-dim); color: var(--danger); }
.tag-live { background: var(--danger-dim); color: var(--danger); animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.monitor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.monitor-list li { display: flex; justify-content: space-between; font-size: 13.5px; border-bottom: 1px dashed var(--glass-border); padding-bottom: 10px; }
.monitor-list li:last-child { border-bottom: none; padding-bottom: 0; }
.monitor-list span { color: var(--text-muted); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.info-item { background: rgba(127,140,170,0.06); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.info-item span { font-size: 12px; color: var(--text-muted); }
.info-item strong { font-size: 14.5px; }

/* Data table (log, chat id) */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--glass-border); white-space: nowrap; }
.data-table th { color: var(--text-muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.data-table tbody tr { transition: background var(--transition-fast); cursor: default; }
.data-table tbody tr:hover { background: rgba(127,140,170,0.06); }
.data-table tbody tr.clickable { cursor: pointer; }
.empty-row td { text-align: center; color: var(--text-muted); padding: 28px; white-space: normal; }

.copy-btn {
    background: rgba(127,140,170,0.12); border: none; color: var(--text-secondary);
    padding: 5px 10px; border-radius: 8px; font-size: 12px; cursor: pointer;
    font-family: var(--font-mono);
}
.copy-btn:hover { color: var(--accent-primary); background: var(--accent-primary-dim); }

/* JSON viewer */
.json-viewer {
    background: rgba(0,0,0,0.22);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12.8px;
    line-height: 1.7;
    max-height: 480px;
    overflow: auto;
}
body.theme-light .json-viewer { background: rgba(15,23,42,0.04); }

.json-key { color: #7DD3FC; }
.json-string { color: #86EFAC; }
.json-number { color: #FCA5A5; }
.json-boolean { color: #FDE68A; }
.json-null { color: var(--text-muted); }
.json-toggle { cursor: pointer; user-select: none; color: var(--text-muted); }
.json-toggle:hover { color: var(--text-primary); }
.json-collapsed > .json-children { display: none; }
.json-children { margin-left: 18px; border-left: 1px dashed var(--glass-border); padding-left: 12px; }
mark.json-highlight { background: var(--warning); color: #1a1a1a; border-radius: 3px; padding: 0 2px; }

.result-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.result-meta-item {
    flex: 1; min-width: 120px;
    background: rgba(127,140,170,0.06); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 10px 14px;
}
.result-meta-item span { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.result-meta-item strong { font-size: 13.5px; font-family: var(--font-mono); }

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; }
.setting-row strong { display: block; margin-bottom: 4px; }

/* ============================================================================
   MODAL
   ============================================================================ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(4,8,20,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 100; opacity: 0; pointer-events: none; transition: opacity var(--transition-base);
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { width: 100%; max-width: 640px; max-height: 82vh; border-radius: var(--radius-md); display: flex; flex-direction: column; transform: translateY(16px); transition: transform var(--transition-base); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--glass-border); }
.modal-head h3 { font-size: 15.5px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-body h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 18px 0 8px; }
.modal-body h4:first-child { margin-top: 0; }

/* ============================================================================
   TOAST
   ============================================================================ */
.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 200; max-width: 340px; }
.toast {
    padding: 14px 16px; border-radius: var(--radius-sm);
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px; color: #fff;
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
    animation: toastIn 0.3s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.toast-success { background: linear-gradient(135deg, #16A34A, #15803D); }
.toast-error { background: linear-gradient(135deg, #DC2626, #B91C1C); }
.toast-warning { background: linear-gradient(135deg, #D97706, #B45309); }

/* ============================================================================
   LOADING OVERLAY
   ============================================================================ */
.loading-overlay {
    position: fixed; inset: 0; background: rgba(4,8,20,0.35);
    display: none; align-items: center; justify-content: center; z-index: 300;
    backdrop-filter: blur(2px);
}
.loading-overlay.show { display: flex; }
.loading-spinner {
    width: 44px; height: 44px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2); border-top-color: var(--accent-primary);
    animation: spin 0.8s linear infinite;
}

/* ============================================================================
   ICONS (inline SVG via mask, ringan tanpa file eksternal)
   ============================================================================ */
.ic { width: 18px; height: 18px; display: inline-block; background-color: currentColor; flex-shrink: 0; }
.ic-grid { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-bot { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='8' width='16' height='12' rx='2'/%3E%3Ccircle cx='9' cy='14' r='1'/%3E%3Ccircle cx='15' cy='14' r='1'/%3E%3Cpath d='M12 8V4M9 4h6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='8' width='16' height='12' rx='2'/%3E%3Ccircle cx='9' cy='14' r='1'/%3E%3Ccircle cx='15' cy='14' r='1'/%3E%3Cpath d='M12 8V4M9 4h6'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-user { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-users { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 21c0-3.6 2.9-6.5 6.5-6.5s6.5 2.9 6.5 6.5'/%3E%3Ccircle cx='17' cy='8' r='3'/%3E%3Cpath d='M15 14.5c3.3.3 6 3 6 6.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 21c0-3.6 2.9-6.5 6.5-6.5s6.5 2.9 6.5 6.5'/%3E%3Ccircle cx='17' cy='8' r='3'/%3E%3Cpath d='M15 14.5c3.3.3 6 3 6 6.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-info { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-refresh { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 4v5h5M20 20v-5h-5'/%3E%3Cpath d='M4.6 15a8 8 0 0 0 14.8-3M19.4 9A8 8 0 0 0 4.6 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 4v5h5M20 20v-5h-5'/%3E%3Cpath d='M4.6 15a8 8 0 0 0 14.8-3M19.4 9A8 8 0 0 0 4.6 12'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-send { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 2 11 13M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 2 11 13M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-forward { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M15 17l5-5-5-5M4 18v-2a4 4 0 0 1 4-4h12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M15 17l5-5-5-5M4 18v-2a4 4 0 0 1 4-4h12'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-trash { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 6h18M8 6V4h8v2m-9 0 1 14h8l1-14'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 6h18M8 6V4h8v2m-9 0 1 14h8l1-14'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-webhook { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='6' cy='16' r='2.5'/%3E%3Ccircle cx='16' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='M8 15 14 8M9 17h6.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='6' cy='16' r='2.5'/%3E%3Ccircle cx='16' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='M8 15 14 8M9 17h6.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-log { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M9 12h6M9 16h6M9 8h2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M9 12h6M9 16h6M9 8h2'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-terminal { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m7 9 4 3-4 3M13 15h4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m7 9 4 3-4 3M13 15h4'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-settings { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a7.97 7.97 0 0 0 0-6l2-1.7-2-3.4-2.5 1a8 8 0 0 0-5.2-3L11 0H9L8.3 1.9a8 8 0 0 0-5.2 3l-2.5-1-2 3.4L0.6 9a7.97 7.97 0 0 0 0 6l-2 1.7 2 3.4 2.5-1a8 8 0 0 0 5.2 3L9 24h2l0.7-1.9a8 8 0 0 0 5.2-3l2.5 1 2-3.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M4.2 4.2l2.2 2.2M17.6 17.6l2.2 2.2M2 12h3M19 12h3M4.2 19.8l2.2-2.2M17.6 6.4l2.2-2.2'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-logout { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-key { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m10.8 12.2 8.2-8.2 2 2-2 2 2 2-3 3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m10.8 12.2 8.2-8.2 2 2-2 2 2 2-3 3'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-sun { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M2 12h2M20 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M2 12h2M20 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-moon { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-power { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2v9'/%3E%3Cpath d='M18.4 6.6a9 9 0 1 1-12.8 0'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2v9'/%3E%3Cpath d='M18.4 6.6a9 9 0 1 1-12.8 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-wifi { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 8.5a16 16 0 0 1 20 0M5.5 12a11 11 0 0 1 13 0M9 15.5a6 6 0 0 1 6 0'/%3E%3Ccircle cx='12' cy='19' r='1'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 8.5a16 16 0 0 1 20 0M5.5 12a11 11 0 0 1 13 0M9 15.5a6 6 0 0 1 6 0'/%3E%3Ccircle cx='12' cy='19' r='1'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-clock { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-activity { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-check { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-x { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-play { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 4l14 8-14 8V4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 4l14 8-14 8V4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ic-download { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v13m0 0-4-4m4 4 4-4M4 19h16'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v13m0 0-4-4m4 4 4-4M4 19h16'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1080px) {
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-elevated); }
    .sidebar.open { transform: translateX(0); }
    .main-area { margin-left: 0; }
    .hamburger { display: flex; }
    .topbar-bot-meta span { display: none; }
}

@media (max-width: 560px) {
    .content-scroll { padding: 18px 16px 50px; }
    .auth-card { padding: 30px 22px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .card { padding: 16px; }
    .data-table th, .data-table td { padding: 10px; }
}
