:root {
    --bg-dark: #050814;
    --sidebar-bg: #080d1e;
    --card-bg: rgba(12, 19, 42, 0.75);
    --card-border: rgba(0, 150, 255, 0.18);

    --primary-blue: #0070f3;
    --accent-cyan: #00c8ff;
    --accent-purple: #7000ff;
    --blue-glow: rgba(0, 112, 243, 0.55);
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b9bb4;
    --text-muted: #52637a;

    --status-green-bg: rgba(0, 230, 118, 0.12);
    --status-green-text: #00e676;
    --status-green-border: rgba(0, 230, 118, 0.3);

    --status-yellow-bg: rgba(255, 196, 0, 0.12);
    --status-yellow-text: #ffc400;
    --status-yellow-border: rgba(255, 196, 0, 0.3);

    --status-red-bg: rgba(255, 23, 68, 0.12);
    --status-red-text: #ff1744;
    --status-red-border: rgba(255, 23, 68, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* LIGHT THEME VARIABLES */
body.light-theme {
    --bg-dark: #f0f4fa;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: rgba(0, 112, 243, 0.2);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
}

body.light-theme .bg-canvas {
    opacity: 0.15;
}

body.light-theme .sidebar,
body.light-theme .topbar,
body.light-theme .panel-card,
body.light-theme .login-card,
body.light-theme .modal-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.light-theme .input-field-wrapper input,
body.light-theme .styled-input,
body.light-theme .topbar-search input {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ANTI-INSPECT / DISALLOW TEXT SELECTION */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* AI CHAT CONSOLE STYLES */
.ai-chat-box {
    background: rgba(5, 8, 20, 0.85);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.4;
}

.ai-msg.bot {
    align-self: flex-start;
    background: rgba(0, 112, 243, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--text-primary);
}

.ai-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0070f3, #00c8ff);
    color: #ffffff;
    font-weight: 600;
}

/* SPEED LINES CANVAS BACKGROUND */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* AMBIENT GLOW BLOBS */
.ambient-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.glow-1 {
    top: -100px;
    left: 20%;
    background: radial-gradient(circle, #0070f3 0%, rgba(0, 200, 255, 0.4) 60%, transparent 100%);
}

.glow-2 {
    bottom: -120px;
    right: 20%;
    background: radial-gradient(circle, #7000ff 0%, rgba(0, 112, 243, 0.3) 60%, transparent 100%);
    animation-delay: -6s;
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.1); }
}

/* SPEED LINES CANVAS BACKGROUND */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* LOGIN CONTAINER & ULTRA GLASS CARD */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    background: radial-gradient(circle at 50% 50%, rgba(10, 16, 36, 0.75), rgba(3, 6, 16, 0.98));
    padding: 20px;
}

.login-card-wrapper {
    position: relative;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.4), rgba(112, 0, 255, 0.2), rgba(0, 112, 243, 0.4));
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 112, 243, 0.3);
    animation: containerFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes containerFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-card {
    background: rgba(8, 14, 30, 0.92);
    border-radius: 26px;
    width: 440px;
    max-width: 100%;
    padding: 40px 36px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    text-align: center;
}

/* HEADER BADGE & LOGO */
.login-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.login-logo-box {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 16px auto;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.2), rgba(112, 0, 255, 0.2));
    border: 1.5px solid rgba(0, 200, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(0, 200, 255, 0.35);
    transition: transform 0.3s ease;
}

.login-card-wrapper:hover .login-logo-box {
    transform: scale(1.05) rotate(2deg);
}

.login-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.gradient-text {
    background: linear-gradient(135deg, #00c8ff, #0070f3, #7000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 500;
}

/* FORM & INPUTS */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    opacity: 0.7;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.field-icon-right {
    position: absolute;
    right: 14px;
    font-size: 16px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.field-icon-right:hover {
    opacity: 1;
}

.input-field-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    background: rgba(5, 8, 22, 0.85);
    border: 1.5px solid rgba(0, 200, 255, 0.18);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.input-field-wrapper input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(5, 8, 25, 0.95);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.35), inset 0 0 10px rgba(0, 200, 255, 0.1);
}

.input-field-wrapper input:focus + .field-icon,
.input-field-wrapper input:focus ~ .field-icon {
    opacity: 1;
    transform: scale(1.1);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}

.checkbox-container input {
    accent-color: var(--primary-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.secure-tag {
    font-size: 11px;
    color: var(--accent-cyan);
    font-weight: 600;
    opacity: 0.85;
}

.login-error {
    font-size: 13px;
    color: #ff1744;
    background: rgba(255, 23, 68, 0.12);
    border: 1px solid rgba(255, 23, 68, 0.35);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
}

/* GLOW BUTTON */
.btn-blue-glow {
    position: relative;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0070f3 0%, #00c8ff 50%, #7000ff 100%);
    background-size: 200% auto;
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 30px rgba(0, 112, 243, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 4px;
    overflow: hidden;
}

.btn-blue-glow:hover {
    background-position: right center;
    box-shadow: 0 8px 35px rgba(0, 200, 255, 0.65);
    transform: translateY(-2px);
}

.btn-blue-glow:active {
    transform: translateY(0) scale(0.98);
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-divider span {
    padding: 0 12px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.btn-whatsapp-support {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-md);
    color: #25d366;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-whatsapp-support:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.6);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
    transform: translateY(-1px);
}

.accent-link {
    color: var(--accent-cyan);
    font-weight: 600;
    text-decoration: none;
}

.accent-link:hover {
    text-decoration: underline;
}

/* APP LAYOUT */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* MOBILE BACKDROP */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 80;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(0, 200, 255, 0.12);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
    z-index: 90;
    transition: transform 0.3s ease;
}

.btn-close-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.brand-avatar-box {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(0, 112, 243, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

.brand-text-box {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.brand-highlight {
    color: var(--accent-cyan);
}

.brand-badge {
    font-size: 9px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 0.8px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
}

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

.nav-item.active {
    background: rgba(0, 112, 243, 0.25);
    border-color: rgba(0, 200, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.25);
}

.nav-arrow {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.7;
}

.nav-icon {
    font-size: 16px;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-info-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(5, 8, 20, 0.7);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 200, 255, 0.18);
}

.u-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

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

.u-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.u-name { font-size: 12px; font-weight: 700; color: var(--text-primary); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.u-role { font-size: 9px; font-weight: 800; color: var(--accent-cyan); letter-spacing: 0.5px; }

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.footer-item.danger {
    color: #ff1744;
}

.footer-item.danger:hover {
    background: rgba(255, 23, 68, 0.12);
}

/* MAIN WRAPPER & TOPBAR */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.topbar {
    height: 70px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 200, 255, 0.1);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-mobile-toggle {
    display: none;
    background: rgba(12, 19, 42, 0.7);
    border: 1px solid rgba(0, 200, 255, 0.25);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.topbar-search {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 14px;
}

.topbar-search input {
    width: 100%;
    padding: 9px 85px 9px 36px;
    background: rgba(5, 8, 20, 0.7);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
}

.shortcut-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-family: monospace;
    color: var(--text-muted);
}

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

.topbar-action-btn {
    background: rgba(12, 19, 42, 0.7);
    border: 1px solid rgba(0, 200, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.topbar-action-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 200, 255, 0.15);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
}

.user-role {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0070f3, #00c8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 0 16px rgba(0, 112, 243, 0.5);
    overflow: hidden;
}

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

/* BROADCAST ANNOUNCEMENT MODAL STYLES */
.admin-broadcast-panel {
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.25);
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.notif-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.notif-card-item {
    background: rgba(5, 8, 20, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.notif-body {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* AVATAR LOCKED BOX */
.avatar-locked-box {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00e676;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

/* LIVE TIMER TICKER STYLES */
.timer-ticker {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    color: var(--accent-cyan);
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.25);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.timer-ticker.expired {
    color: #ff1744;
    background: rgba(255, 23, 68, 0.1);
    border-color: rgba(255, 23, 68, 0.25);
}

/* AVATAR UPLOAD COMPONENT */
.avatar-upload-box {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.avatar-preview-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0070f3, #00c8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.4);
    overflow: hidden;
}

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

.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* LOGS CONSOLE */
.logs-console-box {
    background: #03050c;
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #00e676;
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    display: flex;
    gap: 10px;
}

.log-time { color: var(--text-muted); }
.log-info { color: #00c8ff; }
.log-warn { color: #ffc400; }
.log-err { color: #ff1744; }

.support-contact-item {
    font-size: 14px;
    color: var(--text-primary);
    padding: 12px;
    background: rgba(5, 8, 20, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 200, 255, 0.15);
}

/* CONTENT VIEWS */
.content-view {
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 24px;
}

.content-view.active {
    display: flex;
}

.view-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.view-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.btn-action-primary {
    padding: 12px 22px;
    background: linear-gradient(135deg, #0070f3, #00c8ff);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 112, 243, 0.45);
    transition: all 0.2s ease;
}

.btn-action-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 200, 255, 0.65);
    transform: translateY(-1px);
}

/* MINI STATS COUNTERS */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.mini-stat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-stat:hover {
    transform: translateY(-2px);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-blue .stat-icon-box { background: rgba(0, 112, 243, 0.18); border: 1px solid rgba(0, 112, 243, 0.35); color: #0070f3; }
.stat-green .stat-icon-box { background: var(--status-green-bg); border: 1px solid var(--status-green-border); color: #00e676; }
.stat-yellow .stat-icon-box { background: var(--status-yellow-bg); border: 1px solid var(--status-yellow-border); color: #ffc400; }
.stat-red .stat-icon-box { background: var(--status-red-bg); border: 1px solid var(--status-red-border); color: #ff1744; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-count {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.stat-name {
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
}

.stat-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* PANEL CARD & TABLE */
.panel-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.panel-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-left-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-responsive {
    overflow-x: auto;
}

.selling-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.selling-table th {
    text-align: left;
    padding: 14px 20px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.selling-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.selling-table tr:hover td {
    background: rgba(0, 200, 255, 0.04);
}

.uid-font {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent-cyan);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.badge.green { background: var(--status-green-bg); color: var(--status-green-text); border: 1px solid var(--status-green-border); }
.badge.yellow { background: var(--status-yellow-bg); color: var(--status-yellow-text); border: 1px solid var(--status-yellow-border); }
.badge.red { background: var(--status-red-bg); color: var(--status-red-text); border: 1px solid var(--status-red-border); }
.badge.purple { background: rgba(112, 0, 255, 0.18); color: #c084fc; border: 1px solid rgba(112, 0, 255, 0.35); }

.empty-box {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon-box {
    font-size: 44px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.text-right { text-align: right; }
.hidden { display: none !important; }

.btn-delete-row {
    padding: 6px 12px;
    background: var(--status-red-bg);
    border: 1px solid var(--status-red-border);
    color: var(--status-red-text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-delete-row:hover {
    background: rgba(255, 23, 68, 0.3);
}

/* MODAL BACKDROP */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.modal-card {
    background: #080d1e;
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 20px;
    width: 460px;
    max-width: 100%;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 112, 243, 0.3);
}

body.light-theme .modal-card {
    background: #ffffff;
    border-color: #cbd5e1;
}

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.btn-secondary {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    .btn-mobile-toggle {
        display: flex;
    }

    .btn-close-mobile {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    }

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

    .topbar {
        padding: 0 16px;
    }

    .topbar-search {
        width: 180px;
    }

    .shortcut-badge {
        display: none;
    }

    .user-meta {
        display: none;
    }

    .content-view {
        padding: 16px;
    }

    .view-title {
        font-size: 20px;
    }

    .view-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-action-primary {
        width: 100%;
        text-align: center;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
