/* style.css - PREMIUM CYBER OVERHAUL */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Core Palette - HSL for better harmony */
    --bg-deep: 220, 15%, 4%;
    --bg-card: 222, 18%, 8%;
    --bg-glass: rgba(10, 14, 23, 0.7);

    --accent-primary: 210, 100%, 55%;
    /* Electric Blue */
    --accent-secondary: 270, 95%, 65%;
    /* Neon Purple */
    --accent-gold: 40, 95%, 60%;
    /* Premium Gold */
    --accent-success: 152, 100%, 45%;
    /* Emerald Green */
    --accent-danger: 0, 95%, 65%;
    /* Crimson Red */

    --text-main: 210, 20%, 98%;
    --text-dim: 215, 15%, 70%;
    --text-dark: 215, 15%, 50%;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);

    --sidebar-width: 280px;
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
a,
.clickable-search,
.sidebar-link,
.dash-tab,
.log-line,
.terminal-header {
    cursor: pointer;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #06090f;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.02) 0%, transparent 40%);
    color: hsl(var(--text-main));
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Atmosphere (V4.0 Ultra) */
.app-bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(14, 165, 233, 0.08) 0%, transparent 60%);
}

.glow-orb {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    animation: orbMove 30s infinite alternate ease-in-out;
}

.orb-1 {
    background: #0ea5e9;
    top: -200px;
    left: -200px;
}

.orb-2 {
    background: #7c3aed;
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes orbMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(150px, 150px) scale(1.3);
    }
}

/* --- Premium Switch Styles --- */
.switch-premium {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch-premium input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-neon {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-neon:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

input:checked+.slider-neon {
    background-color: hsla(var(--accent-success), 0.2);
    border-color: hsla(var(--accent-success), 0.5);
}

input:checked+.slider-neon:before {
    transform: translateX(22px);
    background-color: hsl(var(--accent-success));
    box-shadow: 0 0 15px hsla(var(--accent-success), 0.8);
}

input:focus+.slider-neon {
    box-shadow: 0 0 1px hsl(var(--accent-primary));
}

.slider-neon:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Custom Scrollbar - Minimalist */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--accent-primary));
}

button,
a {
    cursor: pointer !important;
}

/* SIDEBAR V5.0 AETHER */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(6, 9, 15, 0.6);
    backdrop-filter: blur(40px) saturate(160%);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 18px;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 10px 45px;
    position: relative;
    transition: transform 0.4s;
}

.sidebar-logo:hover {
    transform: scale(1.02);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 15px;
    padding-right: 5px;
}

/* Ẩn bớt thanh cuộn cho đẹp */
.sidebar-menu::-webkit-scrollbar {
    width: 3px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-bottom: 8px;
    font-weight: 500;
    position: relative;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.12) 0%, transparent 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.05);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3.5px;
    background: #0ea5e9;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 18px #0ea5e9, 0 0 5px #0ea5e9;
    animation: sideBreathe 2s infinite ease-in-out;
}

@keyframes sideBreathe {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.6;
        transform: scaleY(0.9);
    }
}

.sidebar-link i {
    font-size: 1.35rem;
    /* Slightly larger for V5.0 */
    transition: all 0.4s;
}

.sidebar-link:hover i {
    transform: scale(1.25) rotate(12deg);
    color: #0ea5e9;
    filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.5));
}


.sidebar-link:hover i {
    transform: scale(1.2) rotate(-5deg);
    color: hsl(var(--accent-primary));
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1002;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px 60px;
    width: calc(100% - var(--sidebar-width));
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.header-title h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 5px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-title p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.6);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.05), transparent 70%);
    pointer-events: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--text-dim));
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* QUICK SEARCH CARDS */
.quick-search-card {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.quick-search-card:hover::before {
    left: 100%;
}

.quick-search-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: hsla(var(--accent-primary), 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.quick-search-card.active {
    background: hsla(var(--accent-primary), 0.15);
    border-color: hsl(var(--accent-primary));
    box-shadow: 0 0 30px hsla(var(--accent-primary), 0.3);
}

.quick-search-card i {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.quick-search-card:hover i {
    transform: scale(1.2);
}

/* BUTTONS */
.btn-premium {
    background: white;
    color: black;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 750;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn-premium.outline {
    background: var(--bg-glass);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-premium.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-premium.neon {
    background: linear-gradient(135deg, hsl(var(--accent-primary)), hsl(var(--accent-secondary)));
    color: white;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
    border: none;
}

.btn-premium.neon:hover {
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.6);
    filter: brightness(1.15);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes orbMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes rowPulse {
    0% {
        background: rgba(14, 165, 233, 0.2);
        transform: scale(1.02);
    }

    100% {
        background: transparent;
        transform: scale(1);
    }
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* SEARCH AREA */
/* SEARCH AREA V5.0 AETHER */
.search-container {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.search-field label {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.custom-input {
    background: rgba(10, 15, 25, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px 18px;
    color: #fff;
    font-size: 14.5px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.custom-input:hover {
    background: rgba(10, 15, 25, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.custom-input:focus {
    background: rgba(10, 15, 25, 0.8);
    border-color: #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15), inset 0 0 10px rgba(14, 165, 233, 0.05);
    transform: scale(1.01);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* DATA TABLE */
/* DATA TABLE V5.0 AETHER */
.data-container {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(35px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
}


.table-header {
    padding: 25px 35px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table th {
    padding: 18px 25px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-table td {
    padding: 20px 25px;
    font-size: 14px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-table tr {
    transition: all 0.4s;
}

.premium-table tr:hover {
    background: rgba(255, 255, 255, 0.035) !important;
    transform: scale(0.998);
}


/* BADGES */
/* BADGES V5.0 AETHER */
.badge {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.badge i {
    font-size: 12px;
}

.badge.blue {
    background: rgba(14, 165, 233, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

.badge.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.badge.gold {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}


/* MISC */
.phone-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: hsl(var(--accent-gold));
}

/* TRUST BAR V5.0 AETHER */
.trust-bar-bg {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-bar-fill {
    height: 100%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    position: relative;
}

.trust-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: barShine 1.5s infinite;
}

@keyframes barShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* Verified Row Highlight */
tbody tr.verified-row {
    background-color: rgba(14, 165, 233, 0.03);
}

tbody tr.verified-row:hover {
    background-color: rgba(14, 165, 233, 0.08);
    /* Stronger hover for real leads */
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Trust Meter Progress bar */
.trust-meter-bg {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
}

.trust-meter-fill {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* Golden Lead Row */
tbody tr.golden-lead {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.05), transparent) !important;
    border-left: 3px solid #ffd700 !important;
}

tbody tr.golden-lead:hover {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.1), transparent) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1) !important;
}

.golden-badge {
    color: #ffd700;
    font-size: 10px;
    font-weight: 800;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Avatar Zoom */
.lead-avatar img {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-in;
}

.lead-avatar:hover img {
    transform: scale(2.5);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Copy Button Styling */
.action-copy {
    color: var(--accent-blue);
}

.action-copy:hover {
    background: rgba(14, 165, 233, 0.1) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* --- New Premium Auth Overlay --- */
.auth-overlay-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #05070a;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Mesh Gradient */
.auth-overlay-premium::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 1) 0%, rgba(5, 7, 10, 1) 100%);
    animation: meshRotate 20s linear infinite;
    z-index: -1;
}

@keyframes meshRotate {
    0% {
        transform: translate(-10%, -10%) rotate(0deg);
    }

    100% {
        transform: translate(-10%, -10%) rotate(360deg);
    }
}

.auth-container {
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    height: auto;
    max-height: 95vh;
    display: flex;
    background: rgba(15, 20, 28, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(14, 165, 233, 0.05);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-container::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-left {
    flex: 1.2;
    background: radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.15), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.1), transparent 50%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
    z-index: 0;
}

.auth-left-content {
    position: relative;
    z-index: 2;
}

.auth-logo-mmo {
    width: 180px;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.3));
}

.auth-left h2 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-left p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 340px;
    line-height: 1.6;
}

.auth-illustration {
    position: absolute;
    bottom: 30px;
    right: 15px;
    width: 95%;
    border-radius: 15px;
    opacity: 0.15;
    filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.2));
    z-index: 1;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.auth-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 12, 17, 0.4);
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.auth-form-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.auth-input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 16px 16px 52px;
    color: #fff;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.1),
        inset 0 0 10px rgba(14, 165, 233, 0.05);
    outline: none;
}

.auth-input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-blue);
}

.auth-input-wrapper:focus-within::after {
    width: 60%;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
}

.forgot-pass {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.auth-submit-btn {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.4);
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    animation: btnShine 4s infinite ease-in-out;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

@media (max-width: 900px) {
    .auth-left {
        display: none;
    }

    .auth-container {
        max-width: 450px;
        height: auto;
    }
}


@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.auth-footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }
}

tbody tr {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.4s ease forwards;
}

tbody tr:hover {
    transform: scale(1.01) translateY(-3px);
    background-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    z-index: 5;
}

.stat-value {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.stat-value.bump {
    transform: scale(1.4);
    color: #fff !important;
    text-shadow: 0 0 10px currentColor;
}

#live-log.active {
    animation: glowPulse 2s infinite ease-in-out;
}

.log-line {
    border-left: 2px solid transparent;
    transition: all 0.3s;
}

.log-line:hover {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: #10b981;
}

#status-text i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: 0.2s;
}

.action-edit {
    background-color: rgba(14, 165, 233, 0.2);
    color: var(--accent-blue);
}

.action-edit:hover {
    background-color: var(--accent-blue);
    color: white;
}

.action-copy {
    background-color: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.action-copy:hover {
    background-color: var(--accent-purple);
    color: white;
}

.action-delete {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.action-delete:hover {
    background-color: #ef4444;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 8px;
}

.page-num,
.page-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

/* MODALS */
.v-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth overlay luôn ở trên cùng */
#auth-overlay {
    z-index: 999999 !important;
    position: fixed !important;
    inset: 0 !important;
    pointer-events: auto !important;
}

#auth-overlay .modal-content {
    position: relative;
    z-index: 1000000;
    pointer-events: auto !important;
}

#auth-overlay input,
#auth-overlay button {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1000001;
}


.modal-content {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--glass-shadow);
    animation: modalSlide 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 25px;
}

/* TOASTS (Đã di dời ra giữa cho sếp) */
.toast-container {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2200000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    gap: 12px;
}

.premium-toast {
    background: rgba(13, 18, 30, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-top: 2px solid hsl(var(--accent-primary));
    /* Neon edge */
    border-radius: 50px;
    /* Pill style */
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    white-space: nowrap;
    pointer-events: auto;
}

.premium-toast.success {
    border-top-color: #10b981;
}

.premium-toast.warning {
    border-top-color: #f59e0b;
}

.premium-toast.error {
    border-top-color: #ef4444;
}

.premium-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* DASHBOARD SPECIFIC COMPONENTS */
.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: hsla(var(--accent-primary), 0.05);
    border-radius: 24px;
    border: 1px solid hsla(var(--accent-primary), 0.1);
    margin-bottom: 40px;
}

.welcome-info h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.welcome-stats {
    display: flex;
    gap: 30px;
}

.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mini-stat .label {
    font-size: 11px;
    color: hsl(var(--text-dim));
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-stat .value {
    font-size: 18px;
    font-weight: 700;
}

.stat-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--accent-success));
    margin-right: 5px;
    box-shadow: 0 0 10px hsl(var(--accent-success));
}

/* DASHBOARD TABS */
.dashboard-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 16px;
    width: fit-content;
}

.dash-tab {
    padding: 10px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: hsl(var(--text-dim));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.dash-tab.active {
    background: hsla(var(--accent-primary), 0.2);
    color: #fff;
    box-shadow: 0 4px 15px hsla(var(--accent-primary), 0.2);
}

/* GROUP CARDS */
.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.group-card {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.group-card:hover {
    border-color: hsla(var(--accent-primary), 0.3);
    transform: translateY(-5px);
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.group-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.group-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: hsl(var(--text-dim));
}

.group-progress {
    margin: 20px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 8px;
}

.group-actions {
    display: flex;
    gap: 10px;
}

.group-actions .btn-premium {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

/* DASHBOARD EXTRA COMPONENTS (Charts & Activity) */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    min-height: 250px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-placeholder {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Mock Pie Chart */
.pie-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(hsl(var(--accent-primary)) 0% 45%,
            hsl(var(--accent-secondary)) 45% 75%,
            hsl(var(--accent-success)) 75% 100%);
    margin-right: 20px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: hsl(var(--text-dim));
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

/* Mock Line Chart */
.line-chart-svg {
    width: 100%;
    height: 80px;
    stroke: hsl(var(--accent-primary));
    fill: none;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px hsla(var(--accent-primary), 0.5));
}

/* Activity List */
.activity-card {
    grid-column: span 3;
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 13px;
    font-weight: 600;
}

.activity-time {
    font-size: 11px;
    color: hsl(var(--text-dim));
}

.activity-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--accent-success));
    box-shadow: 0 0 5px hsl(var(--accent-success));
}

/* SEARCH PAGE SPECIFIC */
.search-hero {
    background: radial-gradient(circle at top right, hsla(var(--accent-primary), 0.1), transparent),
        var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.search-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.search-hero p {
    color: hsl(var(--text-dim));
    font-size: 16px;
    margin-bottom: 40px;
}

.floating-info {
    position: absolute;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.search-container-v2 {
    max-width: 650px;
    margin: 0 auto;
}

.search-bar-container {
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-radius: 50px;
}

.hero-search-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 22px 35px;
    padding-right: 150px;
    color: #fff;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-search-input:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: hsl(var(--accent-primary));
    box-shadow: 0 0 30px hsla(var(--accent-primary), 0.3);
    outline: none;
    transform: scale(1.01);
}

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, hsl(var(--accent-primary)), hsl(var(--accent-secondary)));
    border: none;
    border-radius: 40px;
    padding: 0 35px;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100 !important;
    pointer-events: auto !important;
}

.hero-search-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px hsla(var(--accent-primary), 0.4);
}

.search-trends {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: hsl(var(--text-dim));
}

.trend-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trend-tag:hover {
    background: hsla(var(--accent-primary), 0.2);
    border-color: hsla(var(--accent-primary), 0.4);
    color: hsl(var(--accent-primary));
    transform: translateY(-2px);
}

.quick-search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.quick-search-card {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-search-card:hover {
    border-color: hsla(var(--accent-primary), 0.5);
    background: hsla(var(--accent-primary), 0.05);
    transform: translateY(-5px);
}

.quick-search-card i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.quick-search-card .label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.quick-search-card .count {
    font-size: 11px;
    color: hsl(var(--text-dim));
}

.advanced-search-card {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
}

.form-group-custom {
    margin-bottom: 25px;
}

.form-group-custom label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: hsl(var(--text-dim));
    margin-bottom: 12px;
}

.data-type-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.data-pill {
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: hsl(var(--text-dim));
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-pill.active {
    background: hsla(var(--accent-primary), 0.2);
    border-color: hsl(var(--accent-primary));
    color: #fff;
}

/* LEADS LIST SPECIFIC */
.status-dot-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.active {
    background: hsl(var(--accent-success));
    box-shadow: 0 0 8px hsl(var(--accent-success));
}

.dot.pending {
    background: hsl(var(--accent-gold));
    box-shadow: 0 0 8px hsl(var(--accent-gold));
}

.dot.blocked {
    background: hsl(var(--accent-danger));
    box-shadow: 0 0 8px hsl(var(--accent-danger));
}

.lead-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lead-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.lead-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lead-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.lead-sub {
    font-size: 11px;
    color: hsl(var(--text-dim));
    display: flex;
    align-items: center;
    gap: 10px;
}

.lead-sub span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pagination Adjustments */
.lead-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid var(--glass-border);
}

/* ANALYTICS PAGE SPECIFIC */
.analytics-header {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"),
        var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-card-large {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
}

.region-distribution-item {
    margin-bottom: 20px;
}

.region-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.region-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(to right, hsl(var(--accent-primary)), hsl(var(--accent-secondary)));
}

/* SETTINGS PAGE SPECIFIC */
.settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.settings-nav-card {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
}

.settings-sub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    color: hsl(var(--text-dim));
    font-size: 13px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    cursor: pointer;
}

.settings-sub-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.settings-sub-link.active {
    background: hsla(var(--accent-primary), 0.2);
    border: 1px solid hsla(var(--accent-primary), 0.3);
    color: #fff;
}

.setting-content-card {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
}

.setting-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* PAGE WRAPPERS */
.page-view,
.dash-tab-view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-view.active,
.dash-tab-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* UTILS */
.glow-text {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, hsl(var(--accent-primary)), hsl(var(--accent-secondary)));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-card {
    background: var(--bg-glass);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.premium-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

.header-icon-btn {
    background: transparent;
    border: none;
    color: hsl(var(--text-dim));
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* TERMINAL V2 - QUANTUM MATRIX LOGS */
.terminal-v2 {
    background: rgba(8, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
    position: relative;
    user-select: none;
}

.terminal-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 3px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.15;
}

.terminal-header {
    background: rgba(14, 165, 233, 0.05);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-body {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    scroll-behavior: smooth;
    color: rgba(255, 255, 255, 0.9);
}

.terminal-body::-webkit-scrollbar {
    width: 5px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.log-line {
    margin-bottom: 6px;
    display: flex;
    gap: 12px;
    animation: slideInTerminal 0.3s ease-out;
    padding: 4px 0;
}

@keyframes slideInTerminal {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-time {
    color: rgba(14, 165, 233, 0.4);
    font-size: 11px;
    font-weight: 600;
    min-width: 90px;
}

.log-line.success {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.log-line.error {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.05);
    border-radius: 4px;
    padding-left: 8px;
}

.log-line.info {
    color: #0ea5e9;
}

.log-line.highlight-pulse {
    animation: successPulse 2.5s infinite;
    font-weight: bold;
    color: #10b981;
}

@keyframes successPulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    }

    100% {
        opacity: 0.8;
    }
}

/* SCANNER RADAR & SCANNING EFFECTS */
.radar-container {
    width: 180px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, hsla(var(--accent-primary), 0.15) 0%, transparent 70%);
}

#radar {
    width: 130px;
    height: 130px;
    border: 1.5px solid hsla(var(--accent-primary), 0.4);
    border-radius: 50%;
    position: relative;
    display: block;
    /* Show by default standby */
    opacity: 0.5;
    transition: all 0.5s ease;
}

#radar.active {
    opacity: 1;
    border-color: hsl(var(--accent-primary));
    box-shadow: 0 0 20px hsla(var(--accent-primary), 0.3);
    animation: radarRotate 4s linear infinite;
}

#radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 65px;
    background: linear-gradient(to top, hsl(var(--accent-primary)), transparent);
    transform-origin: bottom center;
    transform: translate(-50%, -100%);
    box-shadow: 0 0 15px hsl(var(--accent-primary));
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid hsla(var(--accent-primary), 0.1);
    border-radius: 50%;
}

.pulse-ring {
    position: absolute;
    width: 10px;
    height: 10px;
    background: hsl(var(--accent-primary));
    border-radius: 50%;
    opacity: 0;
}

#radar.active .pulse-ring {
    animation: pulseScan 2s infinite ease-out;
}

@keyframes radarRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseScan {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(15);
        opacity: 0;
    }
}

/* SCANNING STATUS PILLS */
.scan-status-pills {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.status-pills-live {
    padding: 6px 12px;
    background: hsla(var(--accent-success), 0.1);
    border: 1px solid hsla(var(--accent-success), 0.3);
    border-radius: 50px;
    color: hsl(var(--accent-success));
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}