/* ============================================================
   SMM PRO — Unified Premium Glassmorphism Design System
   Version: 2.0 | Dark-first with Light mode
   ============================================================ */

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

/* ============================================================
   1. CSS VARIABLES / THEMING
   ============================================================ */
:root {
    /* ——— LIGHT MODE ——— */
    --bg-body: linear-gradient(135deg, #e8d5f5 0%, #a8d8f0 50%, #d4e7f7 100%);
    --blob-1: #b8a9e8;
    --blob-2: #7ec8e3;
    --blob-3: #c4a7e7;
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(255, 255, 255, 0.75);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    --text-main: #1a1a2e;
    --text-sub: #555770;
    --primary: #6366f1;
    --primary-light: rgba(99, 102, 241, 0.12);
    --accent: #8b5cf6;
    --accent-light: rgba(139, 92, 246, 0.12);
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.12);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.12);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.12);
    --info: #0ea5e9;
    --info-light: rgba(14, 165, 233, 0.12);
    --nav-hover: rgba(99, 102, 241, 0.06);
    --input-bg: rgba(255, 255, 255, 0.55);
    --btn-text: #fff;
    --table-border: rgba(0, 0, 0, 0.06);
    --table-head-bg: rgba(99, 102, 241, 0.04);
    --dropdown-bg: #ffffff;
    --msg-user: linear-gradient(135deg, #6366f1, #8b5cf6);
    --msg-admin: rgba(255, 255, 255, 0.85);
    --glow-primary: 0 0 30px rgba(99, 102, 241, 0.25);
    --glow-accent: 0 0 30px rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #0a0a1a 0%, #1a1040 50%, #0d1525 100%);
    --blob-1: #6366f1;
    --blob-2: #06b6d4;
    --blob-3: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --text-main: #f0f0ff;
    --text-sub: #9ca3be;
    --primary: #818cf8;
    --primary-light: rgba(129, 140, 248, 0.12);
    --accent: #a78bfa;
    --accent-light: rgba(167, 139, 250, 0.12);
    --nav-hover: rgba(129, 140, 248, 0.08);
    --input-bg: rgba(0, 0, 0, 0.25);
    --table-border: rgba(255, 255, 255, 0.06);
    --table-head-bg: rgba(129, 140, 248, 0.06);
    --dropdown-bg: #1a1a2e;
    --msg-user: linear-gradient(135deg, #818cf8, #a78bfa);
    --msg-admin: rgba(255, 255, 255, 0.06);
    --glow-primary: 0 0 40px rgba(129, 140, 248, 0.2);
    --glow-accent: 0 0 40px rgba(167, 139, 250, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-body);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
input, button, select, textarea { font: inherit; }

/* ============================================================
   3. ANIMATED BACKGROUND BLOBS
   ============================================================ */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    transition: background 0.6s ease;
    pointer-events: none;
}

body::before {
    width: 450px; height: 450px;
    background: var(--blob-1);
    top: -100px; left: -80px;
    animation: blobFloat 8s ease-in-out infinite;
}

body::after {
    width: 380px; height: 380px;
    background: var(--blob-2);
    bottom: -80px; right: -60px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Particle grid overlay */
.wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

/* ============================================================
   4. ANIMATION UTILITIES
   ============================================================ */
.animate-fade-in {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

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

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: var(--glow-primary); }
    50% { box-shadow: var(--glow-accent); }
}

/* ============================================================
   5. LAYOUT
   ============================================================ */
.wrapper {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   6. GLASS CARD
   ============================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

/* ============================================================
   7. SIDEBAR
   ============================================================ */
.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    padding: 28px 18px;
    height: calc(100vh - 40px);
    position: sticky;
    top: 20px;
    z-index: 50;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover { transform: scale(1.06); }

.logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    border-radius: 14px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: var(--text-sub);
    text-decoration: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--nav-hover);
    color: var(--text-main);
    transform: translateX(6px);
    border-color: rgba(99, 102, 241, 0.1);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleY(1);
}

.nav-links a.active {
    background: linear-gradient(90deg, var(--primary-light), transparent);
    font-weight: 700;
}

.nav-links a i { width: 20px; text-align: center; font-size: 16px; }

.nav-links a.nav-admin { color: #f59e0b !important; }
.nav-links a.nav-logout { color: #ef4444 !important; }

/* User mini card */
.user-mini {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px dashed var(--glass-border);
}

.avatar-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
}

.user-mini .user-name { font-weight: 700; font-size: 14px; }
.user-mini .user-balance { font-size: 12px; color: var(--primary); font-weight: 700; }

/* ============================================================
   8. MAIN & HEADER
   ============================================================ */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.welcome h2 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.welcome span {
    color: var(--text-sub);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.header-right { display: flex; align-items: center; gap: 14px; }
.header-actions { display: flex; gap: 10px; }

/* Theme Toggle */
.theme-toggle-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 18px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover {
    transform: rotate(20deg) scale(1.12);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow-primary);
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn-glow {
    padding: 13px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: var(--btn-text);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.btn-glow:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

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

.btn-glass {
    padding: 13px 30px;
    border-radius: 50px;
    background: var(--glass-bg);
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-glass:hover {
    background: var(--nav-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================================
   10. STATS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-box {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
}

.stat-box:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.stat-box h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    z-index: 1;
    letter-spacing: -1px;
}

.stat-box p {
    color: var(--text-sub);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    z-index: 1;
}

.stat-icon-bg {
    position: absolute;
    right: -10px; bottom: -10px;
    font-size: 85px;
    opacity: 0.06;
    transform: rotate(-15deg);
    color: var(--text-main);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.stat-box:hover .stat-icon-bg {
    transform: rotate(0deg) scale(1.15);
    opacity: 0.12;
    color: var(--primary);
}

.stat-link {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 4px;
    z-index: 1;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.stat-link:hover { gap: 8px; }

/* ============================================================
   11. SECTION & SERVICES
   ============================================================ */
.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.3px;
}

.section-title::before {
    content: '';
    width: 5px; height: 26px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 10px;
    display: inline-block;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.service-card {
    padding: 32px 18px;
    text-align: center;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover {
    background: var(--nav-hover);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.s-icon {
    width: 68px; height: 68px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: var(--input-bg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover .s-icon {
    transform: scale(1.15) rotate(8deg);
}

.service-card span { font-weight: 700; font-size: 15px; }

/* ============================================================
   12. TABLES
   ============================================================ */
.table-container,
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    border-radius: 16px;
}

.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 650px;
}

.glass-table th,
.glass-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--table-border);
}

.glass-table th {
    font-weight: 700;
    color: var(--text-sub);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: var(--table-head-bg);
}

.glass-table th:first-child { border-top-left-radius: 14px; }
.glass-table th:last-child { border-top-right-radius: 14px; }
.glass-table td { font-size: 14px; color: var(--text-main); font-weight: 500; }
.glass-table tr:last-child td { border-bottom: none; }

.glass-table tbody tr {
    transition: background-color 0.25s ease, transform 0.2s;
}
.glass-table tbody tr:hover {
    background-color: var(--nav-hover);
}

.mono-font {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    letter-spacing: -0.3px;
}

/* ============================================================
   13. BADGES
   ============================================================ */
.badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge.success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge.pending {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge.processing {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid rgba(14, 165, 233, 0.25);
}
.badge.error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ============================================================
   14. FORMS
   ============================================================ */
.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-main);
    margin-bottom: 18px;
    font-size: 14px;
    transition: all 0.35s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--nav-hover);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-glass input,
.form-glass textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-glass input:focus,
.form-glass textarea:focus {
    border-color: var(--primary);
    background: var(--nav-hover);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-sub); }

.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-sub); font-size: 14px; }

.form-input {
    width: 100%;
    padding: 13px 13px 13px 46px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.3s ease;
}
.form-input:focus { border-color: var(--primary); background: var(--nav-hover); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45); }

/* ============================================================
   15. CUSTOM SELECT (tao-don.php)
   ============================================================ */
.custom-select-wrapper { position: relative; user-select: none; margin-bottom: 24px; }
.custom-select-trigger {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; font-size: 14px; font-weight: 600; color: var(--text-main);
    background: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 16px;
    cursor: pointer; transition: 0.3s;
}
.custom-select-trigger:hover { border-color: var(--primary); background: var(--nav-hover); }
.custom-select-trigger::after { content: '\f107'; font-family: "Font Awesome 6 Free"; font-weight: 900; transition: 0.3s; margin-left: 10px; }
.custom-select.open .custom-select-trigger { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.custom-select.open .custom-select-trigger::after { transform: rotate(180deg); color: var(--primary); }

.custom-options {
    position: absolute; top: 115%; left: 0; right: 0; z-index: 100;
    background: var(--dropdown-bg); border: 1px solid var(--glass-border); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 400px; overflow-y: auto;
}
.custom-select.open .custom-options { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }

.select-search-box { padding: 12px; border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; background: var(--dropdown-bg); z-index: 10; border-radius: 16px 16px 0 0; }
.select-search-input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--glass-border); background: var(--input-bg); color: var(--text-main); font-size: 13px; }
.select-search-input:focus { border-color: var(--primary); }

.option-group-label {
    padding: 10px 18px; font-size: 11px; font-weight: 800; color: var(--text-sub);
    text-transform: uppercase; background: var(--table-head-bg); letter-spacing: 1px;
    position: sticky; top: 58px; z-index: 5;
    border-bottom: 1px solid var(--glass-border); border-top: 1px solid var(--glass-border);
    display: flex; align-items: center; gap: 8px;
}

.option { padding: 13px 18px; cursor: pointer; transition: 0.2s; font-size: 13px; border-bottom: 1px solid var(--table-border); color: var(--text-main); display: flex; align-items: center; justify-content: space-between; }
.option:hover { background: var(--nav-hover); padding-left: 24px; color: var(--primary); }
.option.selected { background: var(--primary-light); color: var(--primary); font-weight: 700; border-left: 3px solid var(--primary); }
.option-name { display: flex; gap: 10px; align-items: center; }
.option-id { color: var(--text-sub); font-family: 'SF Mono', monospace; font-size: 11px; border: 1px solid var(--glass-border); padding: 3px 7px; border-radius: 6px; background: var(--input-bg); }
.option-price { font-weight: 800; color: var(--accent); background: var(--accent-light); padding: 4px 12px; border-radius: 10px; font-size: 12px; }

.service-info { background: var(--nav-hover); border-radius: 16px; padding: 24px; margin-bottom: 24px; border: 1px solid var(--glass-border); display: none; animation: slideDown 0.4s; }
.info-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 14px; border-bottom: 1px dashed var(--glass-border); padding-bottom: 14px; color: var(--text-sub); }
.info-value { color: var(--primary); font-weight: 800; font-size: 16px; }
.info-desc { font-size: 13px; color: var(--text-sub); line-height: 1.7; background: var(--input-bg); padding: 14px; border-radius: 12px; border: 1px solid var(--glass-border); }

.total-box { background: var(--nav-hover); padding: 24px; border-radius: 16px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--glass-border); }
.total-label { color: var(--text-sub); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.total-amount { font-weight: 900; font-size: 28px; color: var(--danger); }

.custom-options::-webkit-scrollbar { width: 5px; }
.custom-options::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ============================================================
   16. ANNOUNCEMENT BANNER
   ============================================================ */
.announcement-banner {
    padding: 22px;
    margin-bottom: 24px;
    border-left: 4px solid var(--warning);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: opacity 0.4s;
}

@media (min-width: 901px) {
    .announcement-banner {
        position: sticky;
        top: 20px;
        z-index: 45;
        backdrop-filter: blur(25px);
    }
}

.ann-icon {
    width: 48px; height: 48px;
    background: var(--warning-light);
    color: var(--warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.ann-close {
    background: var(--nav-hover);
    border: none;
    color: var(--text-main);
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ann-close:hover { background: var(--primary); color: #fff; }

/* ============================================================
   17. TELEGRAM BOX
   ============================================================ */
.tele-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), transparent);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}
.tele-box::after {
    content: '\f2c6';
    font-family: "Font Awesome 6 Brands";
    position: absolute;
    right: -20px; top: -20px;
    font-size: 150px;
    opacity: 0.04;
    color: #0088cc;
    transform: rotate(-15deg);
    pointer-events: none;
}

.tele-connected {
    padding: 16px;
    background: var(--success-light);
    border: 1px dashed var(--success);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* ============================================================
   18. DEPOSIT / NAP TIEN
   ============================================================ */
.deposit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bank-info-row { display: flex; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-border); }
.bank-info-row:last-child { border-bottom: none; }
.bank-label { color: var(--text-sub); font-size: 13px; }
.bank-value { font-weight: 700; color: var(--text-main); font-family: 'SF Mono', monospace; }
.copy-btn { cursor: pointer; color: var(--primary); margin-left: 8px; font-size: 12px; transition: 0.3s; }
.copy-btn:hover { color: var(--accent); transform: scale(1.2); }
.qr-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.qr-img { width: 100%; max-width: 320px; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); background: #fff; transition: 0.4s; }
.qr-img:hover { transform: scale(1.02); }

/* ============================================================
   19. SUPPORT / CHAT
   ============================================================ */
.support-layout { display: flex; width: 100%; height: 600px; gap: 0; }
.ticket-list { width: 300px; border-right: 1px solid var(--glass-border); padding-right: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ticket-content { flex: 1; padding-left: 15px; display: flex; flex-direction: column; }

.ticket-item { padding: 13px; border-radius: 14px; background: var(--input-bg); color: var(--text-main); text-decoration: none; border: 1px solid transparent; transition: 0.25s; display: block; }
.ticket-item:hover { background: var(--nav-hover); border-color: var(--primary); transform: translateX(4px); }
.ticket-item.active { border-color: var(--primary); background: var(--primary-light); }
.ticket-title { font-weight: 700; font-size: 14px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ticket-meta { font-size: 11px; color: var(--text-sub); display: flex; justify-content: space-between; }

.btn-new-ticket { padding: 11px; border-radius: 12px; background: var(--accent-light); color: var(--accent); text-align: center; text-decoration: none; font-weight: 700; border: 1px dashed var(--accent); transition: 0.3s; margin-bottom: 10px; display: block; }
.btn-new-ticket:hover { background: var(--accent); color: #fff; border-style: solid; }

.chat-box { display: flex; flex-direction: column; gap: 14px; max-height: 500px; overflow-y: auto; padding: 8px; scroll-behavior: smooth; }
.message { display: flex; flex-direction: column; max-width: 78%; padding: 13px 18px; border-radius: 20px; font-size: 14px; line-height: 1.6; }
.msg-user { align-self: flex-end; background: var(--msg-user); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.msg-admin { align-self: flex-start; background: var(--msg-admin); color: var(--text-main); border: 1px solid var(--glass-border); border-bottom-left-radius: 6px; }
.msg-time { font-size: 10px; opacity: 0.65; margin-top: 5px; text-align: right; }

.chat-input-area { display: flex; gap: 10px; margin-top: 16px; }
.chat-input { flex: 1; background: var(--input-bg); border: 1px solid var(--glass-border); padding: 12px 18px; border-radius: 50px; color: var(--text-main); font-family: inherit; transition: 0.3s; }
.chat-input:focus { border-color: var(--primary); background: var(--nav-hover); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.btn-send { width: 46px; height: 46px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: 0.3s; flex-shrink: 0; }
.btn-send:hover { transform: scale(1.1); box-shadow: var(--glow-primary); }

/* ============================================================
   20. AUTH PAGES
   ============================================================ */
.auth-box { width: 100%; max-width: 460px; padding: 44px; }
.auth-title { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 6px; letter-spacing: -0.5px; }
.auth-sub { text-align: center; color: var(--text-sub); margin-bottom: 30px; font-size: 14px; }
.toggle-theme { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-main); transition: 0.3s; }
.toggle-theme:hover { transform: rotate(15deg) scale(1.1); border-color: var(--primary); }

.alert-error { background: var(--danger-light); border: 1px solid rgba(239, 68, 68, 0.25); color: #ef4444; padding: 14px; border-radius: 14px; margin-bottom: 18px; font-size: 13px; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.alert-success { background: var(--success-light); border: 1px solid rgba(16, 185, 129, 0.25); color: #10b981; padding: 14px; border-radius: 14px; margin-bottom: 18px; font-size: 13px; display: flex; gap: 10px; align-items: center; font-weight: 500; }

/* ============================================================
   21. GUEST HERO
   ============================================================ */
.guest-hero .hero-card {
    padding: 64px 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guest-hero .hero-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.06;
    filter: blur(60px);
    pointer-events: none;
}

.hero-logo { max-width: 280px; width: 100%; height: auto; margin-bottom: 32px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15)); border-radius: 18px; animation: float 6s ease-in-out infinite; }
.hero-title { font-size: 38px; font-weight: 900; margin-bottom: 20px; background: linear-gradient(135deg, var(--text-main), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.3; letter-spacing: -1px; }
.hero-desc { font-size: 16px; color: var(--text-sub); max-width: 650px; margin: 0 auto 40px; line-height: 1.7; }
.hero-buttons { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero-buttons .btn-glow,
.hero-buttons .btn-glass { padding: 16px 40px; font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-top: 32px; }
.feature-card { padding: 36px 22px; text-align: center; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); cursor: default; }
.feature-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--glow-primary); }
.feature-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.feature-number { font-size: 38px; font-weight: 900; margin-bottom: 6px; }
.feature-label { color: var(--text-sub); font-weight: 600; }

/* ============================================================
   22. TOASTS
   ============================================================ */
.toast-glass {
    position: fixed;
    top: 24px; right: 24px;
    padding: 16px 28px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.35);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(calc(100% + 40px));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9000;
}
.toast-glass.show { transform: translateX(0); }
.toast-glass.error { background: rgba(239, 68, 68, 0.95); box-shadow: 0 12px 35px rgba(239, 68, 68, 0.35); }
.toast-icon { width: 32px; height: 32px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ============================================================
   23. FOOTER
   ============================================================ */
.site-footer {
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-socials { margin-bottom: 12px; font-size: 20px; display: flex; justify-content: center; gap: 16px; }
.footer-socials i { cursor: pointer; transition: all 0.3s ease; color: var(--text-sub); }
.footer-socials i:hover { transform: translateY(-3px) scale(1.15); }
.footer-socials .fa-facebook:hover { color: #1877f2; }
.footer-socials .fa-instagram:hover { color: #e4405f; }
.footer-socials .fa-telegram:hover { color: #0088cc; }

/* ============================================================
   24. MOBILE MENU
   ============================================================ */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

.overlay-mobile {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 99;
    display: none;
    transition: 0.3s;
}

/* ============================================================
   25. DEPOSIT NOTE BOX
   ============================================================ */
.deposit-note {
    margin-top: 20px;
    padding: 18px;
    background: var(--warning-light);
    border-radius: 14px;
    color: var(--warning);
    font-size: 13px;
    line-height: 1.7;
}
.deposit-note ul { padding-left: 20px; margin-top: 6px; }

/* ============================================================
   26. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .wrapper { display: block; padding: 12px; }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0; bottom: 0;
        z-index: 100;
        height: 100vh;
        width: 280px;
        background: var(--bg-body);
        transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        border-radius: 0;
        border-right: 1px solid var(--glass-border);
    }
    .sidebar.active { left: 0; box-shadow: 12px 0 35px rgba(0, 0, 0, 0.2); }

    .main { padding-top: 16px; }
    .mobile-menu-btn { display: block; }
    .header-actions { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .deposit-layout { grid-template-columns: 1fr; }

    .support-layout { flex-direction: column; height: auto; }
    .ticket-list { width: 100%; height: 200px; border-right: none; border-bottom: 1px solid var(--glass-border); padding-right: 0; padding-bottom: 15px; margin-bottom: 15px; }
    .ticket-content { padding-left: 0; height: 500px; }

    .welcome h2 { font-size: 20px; }
    .hero-title { font-size: 26px; }
    .hero-buttons .btn-glow,
    .hero-buttons .btn-glass { padding: 14px 28px; font-size: 14px; }
}

@media (max-width: 600px) {
    .services-container { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-grid { grid-template-columns: 1fr; }
    .auth-box { padding: 28px 20px; }
}

/* ============================================================
   27. SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
/* ============================================================
   28. ADMIN VISION OS THEME
   ============================================================ */
body.admin-v5 {
    --bg-color: #050505;
    --mesh-1: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%);
    --mesh-2: radial-gradient(at 50% 0%, hsla(225,39%,30%,0.4) 0, transparent 50%);
    --mesh-3: radial-gradient(at 100% 0%, hsla(339,49%,30%,0.4) 0, transparent 50%);
    --vision-bg: rgba(20, 20, 25, 0.4);
    --vision-border: rgba(255, 255, 255, 0.08);
    --vision-hover: rgba(255, 255, 255, 0.05);
    --vision-active: rgba(255, 255, 255, 0.1);
    --vision-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --success: #10b981;
    --danger: #f43f5e;
    --warn: #f59e0b;
    
    background-color: var(--bg-color);
    background-image: var(--mesh-1), var(--mesh-2), var(--mesh-3);
    background-attachment: fixed;
    color: var(--text-main); height: 100vh; overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="light"] body.admin-v5 {
    --bg-color: #f0f4f8;
    --mesh-1: radial-gradient(at 0% 0%, hsla(210,100%,95%,1) 0, transparent 50%);
    --mesh-2: radial-gradient(at 50% 0%, hsla(225,100%,85%,0.6) 0, transparent 50%);
    --mesh-3: radial-gradient(at 100% 0%, hsla(339,100%,85%,0.6) 0, transparent 50%);
    --vision-bg: rgba(255, 255, 255, 0.6);
    --vision-border: rgba(255, 255, 255, 0.8);
    --vision-hover: rgba(0, 0, 0, 0.03);
    --vision-active: rgba(0, 0, 0, 0.06);
    --vision-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    --text-main: #0f172a;
    --text-muted: #64748b;
}

body.admin-v5 .vision-glass {
    background: var(--vision-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--vision-border);
    box-shadow: var(--vision-shadow);
}

body.admin-v5 .layout { display: flex; height: 100vh; padding: 20px; gap: 24px; max-width: 1800px; margin: 0 auto; }
body.admin-v5 .sidebar { width: 280px; border-radius: 32px; padding: 24px 16px; display: flex; flex-direction: column; flex-shrink: 0; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
body.admin-v5 .brand { font-size: 20px; font-weight: 800; padding: 0 16px 32px; display: flex; align-items: center; gap: 12px; letter-spacing: -0.5px; }
body.admin-v5 .brand .icon-box { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent-purple)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; box-shadow: 0 8px 20px var(--primary-glow); }
body.admin-v5 .nav-menu { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; padding: 0 8px; }
body.admin-v5 .nav-menu::-webkit-scrollbar { width: 0; }
body.admin-v5 .nav-btn { padding: 14px 16px; border-radius: 16px; color: var(--text-muted); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 14px; cursor: pointer; border: none; background: transparent; transition: all 0.3s ease; position: relative; overflow: hidden; }
body.admin-v5 .nav-btn:hover { background: var(--vision-hover); color: var(--text-main); transform: translateX(4px); }
body.admin-v5 .nav-btn.active { background: var(--vision-active); color: var(--text-main); box-shadow: inset 0 0 0 1px var(--vision-border); }
body.admin-v5 .nav-btn.active::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 4px; background: var(--primary); border-radius: 0 4px 4px 0; box-shadow: 0 0 10px var(--primary); }
body.admin-v5 .nav-btn i { width: 20px; font-size: 18px; text-align: center; }
body.admin-v5 .badge-pill { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 12px; box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4); }
body.admin-v5 .sidebar-footer { padding: 16px 8px 0; display: flex; gap: 10px; border-top: 1px solid var(--vision-border); }
body.admin-v5 .action-btn { flex: 1; height: 44px; border-radius: 14px; background: var(--vision-hover); border: 1px solid var(--vision-border); color: var(--text-main); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; text-decoration: none; }
body.admin-v5 .action-btn:hover { background: var(--vision-active); transform: translateY(-2px); }
body.admin-v5 .main-window { flex: 1; border-radius: 32px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
body.admin-v5 .header { height: 80px; padding: 0 32px; border-bottom: 1px solid var(--vision-border); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.02); }
body.admin-v5 .header h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
body.admin-v5 .tab-content { flex: 1; overflow-y: auto; padding: 32px; position: relative; }
body.admin-v5 .tab-pane { display: none; animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
body.admin-v5 .tab-pane.active { display: block; }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.98) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
body.admin-v5 .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 32px; }
body.admin-v5 .stat-card { padding: 24px; border-radius: 24px; background: var(--vision-hover); border: 1px solid var(--vision-border); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; transition: 0.3s; }
body.admin-v5 .stat-card:hover { transform: translateY(-5px); background: var(--vision-active); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
body.admin-v5 .stat-header { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
body.admin-v5 .stat-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
body.admin-v5 .stat-val { font-size: 36px; font-weight: 800; letter-spacing: -1px; }
body.admin-v5 .v5-panel { background: var(--vision-hover); border: 1px solid var(--vision-border); border-radius: 24px; padding: 24px; margin-bottom: 24px; }
body.admin-v5 .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
body.admin-v5 .panel-head h3 { font-size: 18px; font-weight: 700; }
body.admin-v5 .table-container { overflow-x: auto; margin: 0 -12px; padding: 0 12px; }
body.admin-v5 table { width: 100%; border-collapse: separate; border-spacing: 0 8px; white-space: nowrap; }
body.admin-v5 th { padding: 0 16px 12px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
body.admin-v5 td { padding: 16px; background: rgba(128,128,128,0.05); font-size: 14px; font-weight: 500; border-top: 1px solid var(--vision-border); border-bottom: 1px solid var(--vision-border); }
body.admin-v5 td:first-child { border-left: 1px solid var(--vision-border); border-radius: 16px 0 0 16px; }
body.admin-v5 td:last-child { border-right: 1px solid var(--vision-border); border-radius: 0 16px 16px 0; }
body.admin-v5 tbody tr { transition: 0.2s; }
body.admin-v5 tbody tr:hover td { background: var(--vision-active); }
body.admin-v5 .v5-input { background: rgba(0,0,0,0.1); border: 1px solid var(--vision-border); color: var(--text-main); padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; outline: none; transition: 0.3s; }
body.admin-v5 .v5-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); background: rgba(0,0,0,0.2); }
body.admin-v5 .btn-glass { padding: 10px 20px; border-radius: 14px; background: var(--vision-hover); border: 1px solid var(--vision-border); color: var(--text-main); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
body.admin-v5 .btn-glass:hover { background: var(--vision-active); transform: scale(1.02); }
body.admin-v5 .btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent-purple)); border: none; color: #fff; box-shadow: 0 8px 20px var(--primary-glow); }
body.admin-v5 .btn-primary:hover { box-shadow: 0 12px 25px var(--primary-glow); }
body.admin-v5 .btn-danger { background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.3); color: var(--danger); text-decoration: none; }
body.admin-v5 .btn-danger:hover { background: rgba(244, 63, 94, 0.2); }
body.admin-v5 .btn-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: var(--success); }
body.admin-v5 .btn-success:hover { background: rgba(16, 185, 129, 0.2); }
body.admin-v5 .btn-icon { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 12px; }
body.admin-v5 .badge-st { padding: 6px 12px; border-radius: 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
body.admin-v5 .b-green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
body.admin-v5 .b-red { background: rgba(244, 63, 94, 0.15); color: var(--danger); }
body.admin-v5 .b-warn { background: rgba(245, 158, 11, 0.15); color: var(--warn); }
body.admin-v5 .b-outline { border: 1px solid var(--vision-border); color: var(--text-muted); }
body.admin-v5 .overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); z-index: 100; opacity: 0; pointer-events: none; transition: 0.4s; }
body.admin-v5 .overlay.show { opacity: 1; pointer-events: all; }
body.admin-v5 .offcanvas { position: fixed; top: 16px; bottom: 16px; right: -800px; width: 480px; max-width: calc(100vw - 32px); border-radius: 32px; z-index: 101; display: flex; flex-direction: column; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -20px 0 60px rgba(0,0,0,0.3); }
body.admin-v5 .offcanvas.show { right: 16px; }
body.admin-v5 .oc-header { padding: 24px 32px; border-bottom: 1px solid var(--vision-border); display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 18px; }
body.admin-v5 .oc-body { padding: 24px; flex: 1; overflow-y: auto; }
body.admin-v5 .chat-msgs { display: flex; flex-direction: column; gap: 12px; height: 100%; overflow-y: auto; padding-right: 8px; }
body.admin-v5 .msg { max-width: 80%; padding: 12px 16px; border-radius: 20px; font-size: 14px; line-height: 1.5; }
body.admin-v5 .msg.admin { align-self: flex-end; background: linear-gradient(135deg, var(--primary), var(--accent-purple)); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 4px 15px var(--primary-glow); }
body.admin-v5 .msg.user { align-self: flex-start; background: var(--vision-hover); border: 1px solid var(--vision-border); border-bottom-left-radius: 4px; }
body.admin-v5 .msg-time { font-size: 10px; display: block; margin-top: 6px; opacity: 0.7; text-align: right; }
body.admin-v5 .v5-toast { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); z-index: 1000; padding: 14px 24px; border-radius: 50px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
body.admin-v5 .v5-toast.show { top: 32px; }
body.admin-v5 .mobile-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; }

@media (max-width: 1024px) {
    body.admin-v5 .layout { padding: 12px; flex-direction: column; }
    body.admin-v5 .sidebar { position: fixed; top: 12px; bottom: 12px; left: -320px; width: 280px; z-index: 99; }
    body.admin-v5 .sidebar.show { left: 12px; }
    body.admin-v5 .main-window { height: calc(100vh - 24px); }
    body.admin-v5 .header { padding: 0 20px; height: 70px; }
    body.admin-v5 .mobile-toggle { display: block; }
    body.admin-v5 .tab-content { padding: 20px; }
}
