/* ─── VVM Bot Ultra Premium Modern Glassmorphism CSS ─── */
:root {
    --bg: #070913;
    --bg-gradient: radial-gradient(circle at 50% 0%, #151833 0%, #070913 75%);
    --surface: rgba(18, 22, 42, 0.65);
    --surface-solid: #111428;
    --surface2: rgba(26, 32, 60, 0.7);
    --surface-hover: rgba(35, 43, 80, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 242, 254, 0.3);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.35);
    --violet: #a855f7;
    --violet-glow: rgba(168, 85, 247, 0.35);
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --nav-h: 70px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* Qorong'i rejimda hozirgi qiymatlar bilan bir xil — pastdagi
       [data-theme="light"] bloki shu tokenlarni yorug' rejim uchun almashtiradi. */
    --text-strong: #ffffff;
    --cyan-text: var(--cyan);
    --surface-deep: rgba(12, 15, 30, 0.85);
    --surface-deep-hover: rgba(18, 23, 46, 0.95);
    --nav-bg: rgba(14, 17, 34, 0.85);
    --toast-bg: rgba(18, 22, 45, 0.95);
    --heading-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
}

/* ─── YORUG' REJIM (Telegram tg.colorScheme="light") ───
   app.js sahifa yuklanganda va "themeChanged" hodisasida <html> ga
   data-theme="light"/"dark" qo'yadi. Aksent ranglar (cyan/violet — brend
   identifikatsiyasi) va gradientli tugmalar o'zgarmaydi, faqat fon/matn/
   sirt tokenlari almashadi. */
:root[data-theme="light"] {
    --bg: #f4f6fb;
    --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #f4f6fb 75%);
    --surface: rgba(255, 255, 255, 0.75);
    --surface-solid: #ffffff;
    --surface2: rgba(241, 245, 249, 0.85);
    --surface-hover: rgba(226, 232, 240, 0.9);
    --border: rgba(15, 23, 42, 0.1);
    --border-accent: rgba(8, 145, 178, 0.35);
    --text: #0f172a;
    --muted: #64748b;
    --text-strong: #0f172a;
    --cyan-text: #0891b2;
    --surface-deep: rgba(241, 245, 249, 0.9);
    --surface-deep-hover: rgba(226, 232, 240, 0.95);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --toast-bg: rgba(255, 255, 255, 0.95);
    --heading-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}
:root[data-theme="light"] .glow { opacity: 0.10; }

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    height: 100%;
    background: var(--bg);
    background-image: var(--bg-gradient);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    overflow: hidden;
    user-select: none;
}

/* ─── DYNAMIC ANIMATED GLOW BG ─── */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}
.glow-1 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    top: -150px; right: -120px;
}
.glow-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
    bottom: 40px; left: -100px;
    animation-delay: -5s;
}
.glow-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: 45%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.18; }
    50% { transform: scale(1.15) translate(20px, -20px); opacity: 0.28; }
    100% { transform: scale(0.95) translate(-15px, 15px); opacity: 0.2; }
}

/* ─── LOADING SCREEN ─── */
#loading-screen {
    position: fixed; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 22px; z-index: 100;
    background: var(--bg);
    background-image: var(--bg-gradient);
}
#loading-screen p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.loader-ring {
    width: 52px; height: 52px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--cyan);
    border-right-color: var(--violet);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 0 20px var(--cyan-glow);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── APP WRAPPER ─── */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; z-index: 1; }
.hidden { display: none !important; }

/* ─── FLOATING GLASS BOTTOM NAV ─── */
.bottom-nav {
    position: fixed;
    bottom: 12px; left: 14px; right: 14px;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
    z-index: 50;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.2);
}
.nav-btn {
    flex: 1;
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 18px;
}
.nav-btn .nav-icon {
    font-size: 21px;
    line-height: 1;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s;
}
.nav-btn.active {
    color: var(--text-strong);
}
.nav-btn.active .nav-icon {
    transform: translateY(-2px) scale(1.15);
    filter: drop-shadow(0 0 10px var(--cyan));
}
.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 16px; height: 3px;
    background: var(--gradient-primary);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--cyan);
}
.nav-btn:active { transform: scale(0.92); }

/* ─── MAIN CONTENT ─── */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px calc(var(--nav-h) + 26px);
    -webkit-overflow-scrolling: touch;
}

/* ─── TAB PAGES ─── */
.tab-page {
    display: none;
    animation: pageSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-page.active { display: block; }
@keyframes pageSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── PAGE HEADER ─── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-top: 6px;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.subtitle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

/* ─── SESSION BADGE ─── */
.session-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.status-online {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}
.status-warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.status-offline {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

/* ─── AVATAR & SOUND TOGGLE ─── */
.avatar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sound-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sound-toggle-btn:active {
    transform: scale(0.9);
}
.sound-toggle-btn.active {
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow);
    background: rgba(0, 242, 254, 0.15);
}
.sound-toggle-btn.muted {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.1);
}
.avatar-wrap .avatar {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 20px var(--cyan-glow), inset 0 0 10px rgba(255,255,255,0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ─── LIMIT BANNER ─── */
.limit-banner {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.limit-icon { font-size: 32px; filter: drop-shadow(0 0 8px var(--amber)); }
.limit-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}
.limit-value {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--cyan-text);
}

/* ─── LIVE ACTIVE TASKS WIDGET ─── */
.active-tasks-card {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}
.active-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.active-tasks-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan-text);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.active-tasks-badge {
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    border-radius: 12px;
    padding: 3px 10px;
    box-shadow: 0 0 10px var(--cyan-glow);
}
.active-tasks-list { display: flex; flex-direction: column; gap: 10px; }
.active-task-item {
    background: var(--surface-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.active-task-item:hover, .active-task-item:active {
    transform: translateY(-2px) scale(1.01);
    border-color: var(--cyan);
    background: var(--surface-deep-hover);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.15);
}
.active-task-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.active-task-name { font-size: 14px; font-weight: 700; color: var(--text); }
.active-task-status { font-size: 11px; color: var(--cyan-text); font-weight: 600; }
.active-task-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.task-progress-bar {
    width: 100%; height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-top: 10px;
    overflow: hidden;
}
.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--cyan));
    background-size: 200% 100%;
    animation: shimmerProgress 2s linear infinite;
    border-radius: 6px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes shimmerProgress {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── STATS ROW ─── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}
.stat-mini {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.stat-mini:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}
.stat-mini.accent {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.1);
}
.stat-mini-icon { font-size: 24px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.stat-mini-num {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-strong);
}
.stat-mini-label { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ─── SECTION TITLE ─── */
.section-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

/* ─── QUICK ACTIONS ─── */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}
.action-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.action-card:hover, .action-card:active {
    transform: translateY(-3px) scale(1.02);
    background: var(--surface2);
    border-color: var(--cyan);
    box-shadow: 0 10px 28px rgba(0, 242, 254, 0.18);
}
.action-icon { font-size: 26px; }

/* ─── ADMIN ENTRY BUTTONS ─── */
.admin-entry {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.admin-entry:hover, .admin-entry:active {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--surface2);
}
.admin-entry-icon { font-size: 20px; }
.admin-entry-txt { flex: 1; text-align: left; }
.admin-entry-arrow { color: var(--muted); font-size: 22px; font-weight: 300; }

/* ─── CARDS & FORMS ─── */
.card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-strong);
    margin-bottom: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.input {
    width: 100%;
    background: var(--surface-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
}
.input:focus {
    border-color: var(--cyan);
    background: var(--surface-deep-hover);
    box-shadow: 0 0 20px var(--cyan-glow);
}
.input::placeholder { color: var(--muted); }
.field-hint {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
textarea.input { resize: vertical; min-height: 80px; }
select.input { cursor: pointer; }
select.input option { background: var(--surface-solid); color: var(--text); }

/* ─── TOGGLE BUTTONS ─── */
.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle-btn {
    background: var(--surface-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.toggle-btn:hover { border-color: rgba(255, 255, 255, 0.2); }
.toggle-btn.active {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--cyan);
    color: var(--cyan-text);
    box-shadow: 0 0 14px var(--cyan-glow);
}

/* ─── BUTTONS ─── */
.btn-primary {
    width: 100%;
    background: var(--gradient-primary);
    background-size: 150% 150%;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 6px;
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.25);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover, .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.4);
    opacity: 0.95;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-sm {
    background: var(--surface-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-sm:hover { border-color: var(--cyan); background: var(--surface2); }

/* ─── FILE UPLOAD ─── */
.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-deep);
    border: 1px dashed rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    transition: all 0.25s;
}
.file-upload:hover {
    border-color: var(--cyan);
    background: var(--surface-deep-hover);
    color: var(--text);
}

/* ─── DATABASE CARDS ─── */
.db-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: all 0.2s;
}
.db-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.db-card-top { display: flex; align-items: center; gap: 14px; }
.db-card-icon { font-size: 26px; flex-shrink: 0; }
.db-card-info { flex: 1; min-width: 0; }
.db-card-name { font-size: 16px; font-weight: 700; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-card-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.db-card-badge {
    background: rgba(0, 242, 254, 0.15);
    color: var(--cyan-text);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(0, 242, 254, 0.3);
}
.db-card-actions { display: flex; gap: 8px; align-items: center; }
.db-export-btn {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    color: var(--cyan-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}
.db-delete-btn {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    color: var(--rose);
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
}

/* ─── INFO CARD & STATUS BOX ─── */
.info-card {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 14px;
    color: var(--cyan-text);
    margin-top: 14px;
}
.status-box {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    max-height: 45vh;
    overflow-y: auto;
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.08);
    color: var(--text);
}

/* ─── TOAST ─── */
.toast {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    background: var(--toast-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--cyan);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 200;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px var(--cyan-glow);
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
@keyframes slideDown { from { top: -20px; opacity: 0; } to { top: 20px; opacity: 1; } }

/* ─── ADMIN GRID ─── */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
.admin-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-card:hover, .admin-card:active {
    transform: translateY(-2px) scale(1.02);
    background: var(--surface2);
    border-color: var(--violet);
}
.admin-card-icon { font-size: 26px; }

/* ─── ADMIN RO'YXAT QATORLARI (foydalanuvchilar/sessiyalar/adminlar...) ───
   admin.js allaqachon shu class nomlarini ishlatardi, lekin ular hech qachon
   stillashtirilmagan edi — ro'yxatlar brauzer sukut ko'rinishida chiqardi. */
.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
}
.admin-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.admin-item-main b { font-size: 14px; color: var(--text-strong); }
.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.muted-sm { font-size: 12px; color: var(--muted); }
.admin-pager { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 22px; }
.admin-h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 12px;
}
.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.admin-row:last-child { border-bottom: none; }
.admin-row span { color: var(--muted); }
.btn-sm.danger { border-color: rgba(244, 63, 94, 0.4); color: var(--rose); }
.btn-sm.danger:hover { background: rgba(244, 63, 94, 0.12); }
.status-idle {
    background: rgba(148, 163, 184, 0.15);
    color: var(--muted);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ─── SKELETON ─── */
.skeleton-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 75px;
    margin-bottom: 12px;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.75; }
}

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 45px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 52px; margin-bottom: 14px; opacity: 0.8; }
.empty-state p { font-size: 15px; }

/* ─── THEME CHOOSER ─── */
#theme-chooser { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--bg-gradient); padding: 24px; }
#theme-chooser.hidden { display: none; }
.chooser-title { font-family: var(--font-heading); font-size: 24px; }
.chooser-sub { color: var(--muted); margin-bottom: 12px; }
.chooser-cards { display: flex; gap: 12px; width: 100%; max-width: 420px; }
.chooser-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; }
.chooser-preview { font-size: 40px; }
.chooser-name { font-weight: 700; }
.chooser-desc { font-size: 12px; color: var(--muted); text-align: center; }
