/* ==========================================
   CSS SYSTEM - LANDING PAGE CRM BĐS AI
   ========================================== */

/* 1. VARIABLES & DESIGN TOKENS */
:root {
    /* Color Palette */
    --color-primary: #1E56A0;
    --color-primary-dark: #163172;
    --color-primary-light: #297FCA;
    --color-accent: #00B4D8;
    --color-bg-light: #F8F9FD;
    --color-bg-white: #FFFFFF;
    --color-text-dark: #1A1F2C;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    
    /* Vibrant Status Colors */
    --color-hot: #FF4C60;
    --color-warm: #FFA41B;
    --color-cool: #3A86FF;
    --color-frozen: #8D99AE;
    --color-success: #2EC4B6;
    
    /* App Mockup Specific Colors */
    --app-bg: #FFFFFF;
    --app-sidebar-bg: #FAFBFD;
    --app-text: #2C3E50;
    --app-border: #E8ECEF;
    --app-dark-panel: #0D1321;
    
    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(30, 86, 160, 0.06);
    --shadow-lg: 0 20px 40px rgba(30, 86, 160, 0.12);
    --shadow-glow: 0 0 20px rgba(41, 127, 202, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* 2. BASE RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 3. BUTTONS & UTILITIES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-bg-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 127, 202, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(30, 86, 160, 0.05);
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: crimson;
    color: #ffffff;
    border: 1px solid rgba(30, 86, 160, 0.12);
}


.text-center { text-align: center; }
.text-white { color: var(--color-bg-white); }
.text-light { color: #A0AEC0; }
.text-muted { color: var(--color-text-muted); }
.text-red { color: var(--color-hot); }
.text-green { color: var(--color-success); }
.text-orange { color: var(--color-warm); }
.text-blue { color: var(--color-primary-light); }
.text-cyan { color: var(--color-accent); }

.bg-blue { background-color: rgba(41, 127, 202, 0.1); }
.bg-green { background-color: rgba(46, 196, 182, 0.1); }
.bg-orange { background-color: rgba(255, 164, 27, 0.1); }
.bg-pink { background-color: rgba(255, 76, 96, 0.1); }
.bg-yellow { background-color: rgba(255, 206, 86, 0.1); }
.bg-purple { background-color: rgba(111, 66, 193, 0.1); }
.bg-teal { background-color: rgba(32, 201, 151, 0.1); }
.bg-indigo { background-color: rgba(102, 16, 242, 0.1); }
.bg-violet { background-color: rgba(184, 115, 220, 0.1); }

.required { color: var(--color-hot); }

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-hot);
    box-shadow: 0 0 0 0 rgba(255, 76, 96, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 76, 96, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 76, 96, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 76, 96, 0); }
}

.green-dot {
    background-color: var(--color-success);
    box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.7);
    animation: pulse-green 1.6s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(46, 196, 182, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
}

/* SECTION HEADER */
.section-header {
    max-width: 700px;
    margin: 0 auto 30px;
}

.sub-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 17px;
}

/* 4. HEADER NAVIGATION */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(248, 249, 253, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-normal);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 80px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.badge-ai {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-bg-white);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    vertical-align: middle;
    margin-left: 2px;
}

/* Main Nav */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--color-primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-header-trial {
    padding: 8px 20px;
    font-size: 14px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--color-text-dark);
}

/* 5. MOBILE DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-bg-white);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: right var(--transition-normal);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.drawer-close {
    font-size: 24px;
    color: var(--color-text-dark);
}

.drawer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.drawer-nav a {
    font-size: 18px;
    font-weight: 600;
    display: block;
    padding: 8px 15px;
}

.btn-drawer-trial {
    width: 100%;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 6. HERO SECTION */
/* 6. HERO SECTION */
.hero-section {
    position: relative;
    padding: 20px 0 10px;
    background: 
        linear-gradient(135deg, rgba(244, 247, 252, 0.22) 0%, rgba(244, 247, 252, 0.48) 100%),
        url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    overflow: hidden;
}

/* Grid overlay */
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(30, 86, 160, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 86, 160, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 85%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 85%);
    pointer-events: none;
    z-index: 1;
}

/* Blur Blobs */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.7;
    animation: floatBlob 16s infinite alternate ease-in-out;
}

.hero-bg-shapes .shape-1 {
    top: -10%;
    left: 5%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.3) 0%, rgba(0, 180, 216, 0) 70%);
    animation-delay: 0s;
}

.hero-bg-shapes .shape-2 {
    bottom: -5%;
    right: 5%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(41, 127, 202, 0.25) 0%, rgba(41, 127, 202, 0) 70%);
    animation-delay: 3s;
}

.hero-bg-shapes .shape-3 {
    top: 25%;
    right: 30%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 76, 96, 0.16) 0%, rgba(255, 76, 96, 0) 70%);
    animation-delay: 6s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(50px, -70px) scale(1.15);
    }
    66% {
        transform: translate(-40px, 40px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* Floating Real Estate & AI Icons */
.hero-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.hero-bg-icons .floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 35px rgba(30, 86, 160, 0.12), 0 2px 5px rgba(30, 86, 160, 0.05);
    border: 1px solid rgba(30, 86, 160, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.95;
    transition: all var(--transition-normal);
}

.hero-bg-icons .floating-icon i {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Float Animations for Icons */
.hero-bg-icons .icon-1 {
    top: 15%;
    left: 10%;
    animation: floatIcon1 12s infinite ease-in-out;
}

.hero-bg-icons .icon-2 {
    bottom: 25%;
    left: 8%;
    animation: floatIcon2 14s infinite ease-in-out;
}

.hero-bg-icons .icon-3 {
    top: 18%;
    right: 10%;
    animation: floatIcon3 13s infinite ease-in-out;
}

.hero-bg-icons .icon-4 {
    bottom: 22%;
    right: 8%;
    animation: floatIcon4 15s infinite ease-in-out;
}

.hero-bg-icons .icon-5 {
    top: 48%;
    left: 4%;
    animation: floatIcon5 11s infinite ease-in-out;
}

.hero-bg-icons .icon-6 {
    top: 45%;
    right: 4%;
    animation: floatIcon6 16s infinite ease-in-out;
}

@keyframes floatIcon1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(8deg); }
}
@keyframes floatIcon2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-10deg); }
}
@keyframes floatIcon3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(12deg); }
}
@keyframes floatIcon4 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(18px) rotate(-8deg); }
}
@keyframes floatIcon5 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(6deg); }
}
@keyframes floatIcon6 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(22px) rotate(-15deg); }
}

/* Hide floating icons on mobile for cleaner layout */
@media (max-width: 991px) {
    .hero-bg-icons {
        display: none;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-right-col {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    .hero-left-col {
        align-items: center;
        text-align: center;
    }
    .hero-right-col {
        margin-top: 20px;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
}

.highlight-text {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 580px;
}

/* Key benefits checklist */
.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    width: 100%;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.benefit-item i {
    color: var(--color-success);
    font-size: 17px;
}

@media (max-width: 991px) {
    .hero-benefits {
        align-items: center;
    }
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .hero-buttons {
        justify-content: center;
    }
}

.btn-hero-cta {
    padding: 16px 36px;
    font-size: 16px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 86, 160, 0.12);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: 0 8px 25px rgba(30, 86, 160, 0.04);
}

@media (max-width: 991px) {
    .hero-stats {
        /* justify-content: space-between; */
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        /* flex-direction: column; */
        gap: 20px;
        align-items: center;
        padding: 20px;
    }
    .stat-divider {
        display: none;
    }
}

.stat-item {
    text-align: left;
}

@media (max-width: 991px) {
    .stat-item {
        text-align: center;
    }
}

.stat-num-container {
    display: flex;
    align-items: baseline;
}

@media (max-width: 991px) {
    .stat-num-container {
        justify-content: center;
    }
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-plus {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary-light);
    margin-left: 2px;
}

.stat-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-top: 6px;
    line-height: 1.35;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(30, 86, 160, 0.15);
}

/* Hero Right Column: Dashboard Mockup Preview */
.hero-dashboard-preview {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(30, 86, 160, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: floatDashboard 6s infinite ease-in-out;
}

@keyframes floatDashboard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.preview-header {
    background-color: rgba(248, 249, 253, 0.9);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.preview-dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.preview-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background-color: #FF5F56; }
.dot-yellow { background-color: #FFBD2E; }
.dot-green { background-color: #27C93F; }

.preview-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.preview-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.card-icon.green-bg {
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-success);
}

.card-info {
    flex-grow: 1;
}

.card-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 2px;
}

.card-info p {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.status-pill {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-top: 4px;
}

.status-pulsing {
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--color-accent);
    position: relative;
}

.preview-chat-container {
    background-color: #F8F9FD;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px dashed var(--color-border);
}

.chat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-msg .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #E2E8F0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.chat-msg .avatar.ai-avatar {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-bg-white);
}

.msg-bubble {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 0 12px 12px 12px;
    padding: 8px 12px;
    max-width: 85%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.user-msg .msg-bubble {
    background-color: #E6F8F3;
    border-color: rgba(46, 196, 182, 0.2);
}

.msg-bubble .sender {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.user-msg .msg-bubble .sender {
    color: var(--color-success);
}

.msg-bubble p {
    font-size: 11px;
    color: var(--color-text-dark);
    line-height: 1.4;
    font-weight: 500;
}

.badge-auto {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 8.5px;
    font-weight: 700;
    background-color: rgba(30, 86, 160, 0.1);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-top: 6px;
}

.lead-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 9px;
    font-weight: 800;
    background-color: rgba(255, 76, 96, 0.1);
    color: var(--color-hot);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

@media (max-width: 576px) {
    .hero-dashboard-preview {
        max-width: 100%;
    }
    .preview-body {
        padding: 15px;
        gap: 12px;
    }
    .preview-chat-container {
        padding: 10px;
    }
    .msg-bubble p {
        font-size: 10.5px;
    }
}

/* 7. INTERACTIVE MOCKUP SECTION */
.interactive-section {
    padding: 15px 0;
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* The simulated App layout container */
.app-mockup {
    width: 100%;
    height: 640px;
    border-radius: var(--radius-lg);
    background-color: var(--app-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
}

/* APP SIDEBAR */
.app-sidebar {
    width: 220px;
    background-color: var(--app-sidebar-bg);
    border-right: 1px solid var(--app-border);
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    flex-shrink: 0;
}

.app-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 20px;
    border-bottom: 1px solid var(--app-border);
    margin-bottom: 15px;
}

.app-sidebar-logo-icon {
    width: auto;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .app-sidebar-logo-icon .logo-icon {
    height: 100%;
} */

.app-sidebar-logo-text {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.3px;
}

.app-sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
}

.menu-group-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-text-muted);
    padding: 10px;
    letter-spacing: 0.5px;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #4A5568;
    text-align: left;
    transition: all var(--transition-fast);
    position: relative;
}

.menu-item i {
    width: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.menu-item:hover {
    background-color: rgba(30, 86, 160, 0.05);
    color: var(--color-primary);
}

.menu-item.active {
    background-color: rgba(41, 127, 202, 0.1);
    color: var(--color-primary);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background-color: var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.dot-online {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background-color: var(--color-success);
    margin-left: auto;
}

/* Sidebar VIP Card */
.app-sidebar-footer {
    padding-top: 15px;
    border-top: 1px solid var(--app-border);
}

.app-vip-badge {
    background-color: #FFFDF5;
    border: 1px solid #FFEBB3;
    border-radius: var(--radius-md);
    padding: 10px;
    margin-bottom: 12px;
}

.vip-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-warm);
}

.vip-expiry {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 600;
    margin: 4px 0 6px;
}

.btn-vip-action {
    width: 100%;
    background-color: #FFF3C4;
    color: #8A6D00;
    font-size: 11px;
    font-weight: 700;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-hot);
    font-weight: 600;
    padding: 8px 10px;
}

/* APP MAIN CONTENT AREA */
.app-main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* APP HEADER */
.app-main-header {
    height: 60px;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-sidebar-toggle {
    display: none;
    font-size: 16px;
    color: var(--color-text-muted);
}

.app-page-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-text-dark);
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-notif {
    font-size: 18px;
    color: var(--color-text-muted);
    position: relative;
    cursor: pointer;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-hot);
    color: var(--color-bg-white);
    font-size: 9px;
    font-weight: 800;
    width: 13px;
    height: 13px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary-light);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.user-info-text {
    line-height: 1.2;
}

.user-name {
    font-size: 12px;
    font-weight: 700;
}

.user-role {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* APP TAB CONTAINER */
.app-tab-container {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #F8FAFC;
    padding: 16px;
    position: relative;
}

.tab-pane {
    display: none;
    height: 100%;
}

.tab-pane.active {
    display: block;
}

/* TAB-SPECIFIC STYLES: SỔ TAY CÁ NHÂN */
.sotay-header {
    margin-bottom: 12px;
}

.sotay-buttons {
    display: flex;
    gap: 8px;
}

.btn-sub {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
}

.btn-sub.active {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
}

.panel-section {
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.panel-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    color: var(--color-primary);
}

.panel-title-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.freeze-settings {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    background-color: #F1F5F9;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.freeze-days-input {
    width: 32px;
    text-align: center;
    font-weight: 700;
    background: none;
    color: var(--color-text-dark);
}

.btn-action-small {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    background-color: #F1F5F9;
    color: var(--color-text-dark);
}

.btn-action-small.btn-blue { background-color: rgba(41, 127, 202, 0.1); color: var(--color-primary); }
.btn-action-small.btn-green { background-color: rgba(46, 196, 182, 0.1); color: var(--color-success); }
.btn-action-small.btn-purple { background-color: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.btn-action-primary {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.search-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    width: 260px;
}

.search-input-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--color-text-muted);
}

.search-input-wrapper input {
    width: 100%;
    background-color: #F1F5F9;
    padding: 6px 10px 6px 28px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background-color: #F1F5F9;
    color: var(--color-text-muted);
}

.pill.active { background-color: #E2E8F0; color: var(--color-text-dark); }
.pill.red { border: 1px solid rgba(255, 76, 96, 0.3); color: var(--color-hot); background: rgba(255, 76, 96, 0.05); }
.pill.yellow { border: 1px solid rgba(255, 164, 27, 0.3); color: var(--color-warm); background: rgba(255, 164, 27, 0.05); }
.pill.blue { border: 1px solid rgba(41, 127, 202, 0.3); color: var(--color-cool); background: rgba(41, 127, 202, 0.05); }
.pill.gray { border: 1px solid rgba(141, 153, 174, 0.3); color: var(--color-frozen); background: rgba(141, 153, 174, 0.05); }
.pill.tag { border: 1px solid rgba(41, 127, 202, 0.3); background-color: rgba(41, 127, 202, 0.1); color: var(--color-primary); }

.pipeline-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    border-top: 1px solid var(--app-border);
    padding-top: 12px;
    flex-wrap: wrap;
}

.pipeline-label {
    color: var(--color-text-muted);
}

.pipeline-steps {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.step {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-weight: 700;
}

.step.active {
    background-color: rgba(41, 127, 202, 0.1);
    color: var(--color-primary);
}

/* CUSTOMER CARDS GRID */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.customer-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.customer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    margin-bottom: 10px;
}

.cust-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.cust-info {
    flex-grow: 1;
    min-width: 0;
}

.cust-status-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 2px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
}
.status-dot.cool { background-color: var(--color-cool); }
.status-dot.hot { background-color: var(--color-hot); }
.status-dot.warm { background-color: var(--color-warm); }
.status-text.cool { color: var(--color-cool); }
.status-text.hot { color: var(--color-hot); }
.status-text.warm { color: var(--color-warm); }

.cust-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.label-badge {
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: var(--radius-sm);
}
.label-badge.purple { background-color: rgba(111, 66, 193, 0.1); color: #6f42c1; }

.btn-card-icon {
    font-size: 10px;
    color: var(--color-text-muted);
}

.card-body {
    flex-grow: 1;
    border-top: 1px dashed var(--app-border);
    border-bottom: 1px dashed var(--app-border);
    padding: 8px 0;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-field {
    font-size: 11px;
    color: var(--color-text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-field i {
    width: 12px;
    color: var(--color-text-muted);
}

.pill-mini {
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: var(--radius-sm);
    margin-left: 4px;
}
.pill-mini.blue { background-color: rgba(58, 134, 255, 0.1); color: var(--color-cool); }
.pill-mini.red { background-color: rgba(255, 76, 96, 0.1); color: var(--color-hot); }
.pill-mini.green { background-color: rgba(46, 196, 182, 0.1); color: var(--color-success); }

.phone-field {
    color: #4A5568;
}

.hide-phone {
    cursor: pointer;
    font-size: 9px;
    margin-left: auto;
}

.finance-field.green {
    color: var(--color-success);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.update-time {
    font-size: 9px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.btn-pipeline-action {
    background-color: var(--color-primary-light);
    color: var(--color-bg-white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* TAB 2 SPECIFIC STYLES: RADA ĐI SĂN */
.rada-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.email-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 0;
}

.rada-stat-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: rgba(30, 86, 160, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-icon.red { background-color: rgba(255, 76, 96, 0.1); color: var(--color-hot); }
.stat-icon.green { background-color: rgba(46, 196, 182, 0.1); color: var(--color-success); }
.stat-icon.orange { background-color: rgba(255, 164, 27, 0.1); color: var(--color-warm); }

.stat-info {
    line-height: 1.3;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
}

.stat-subtext {
    font-size: 9px;
    color: var(--color-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rada-maintenance-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-success);
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* Radar grid layout */
.rada-layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 12px;
    height: calc(100% - 85px);
}

.rada-config-panel {
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-config {
    border-bottom: 1px dashed var(--app-border);
    padding-bottom: 10px;
}

.step-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.count-tag {
    color: var(--color-primary-light);
    font-size: 10px;
}

.zalo-account-card {
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.zalo-account-card.active {
    border-color: var(--color-primary-light);
    background-color: rgba(41, 127, 202, 0.02);
}

.zalo-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
}

.zalo-info {
    line-height: 1.2;
}

.zalo-name {
    font-size: 11px;
    font-weight: 800;
}

.zalo-connected {
    font-size: 9px;
    color: var(--color-success);
    font-weight: 700;
}

.checkbox-checked-circle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary-light);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.search-group-input {
    position: relative;
    margin-bottom: 6px;
}

.search-group-input i {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--color-text-muted);
}

.search-group-input input {
    width: 100%;
    background-color: #F1F5F9;
    font-size: 10px;
    padding: 5px 8px 5px 22px;
    border-radius: var(--radius-sm);
}

.btn-check-all {
    font-size: 9px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.group-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 100px;
    overflow-y: auto;
}

.group-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.custom-checkbox {
    width: 12px;
    height: 12px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

.group-checkbox-item input {
    display: none;
}

.group-checkbox-item input:checked + .custom-checkbox {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.group-checkbox-item input:checked + .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 8px;
    color: var(--color-bg-white);
    position: absolute;
    left: 1px;
    top: -1px;
}

.group-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4A5568;
}

.keyword-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.keyword-pill {
    font-size: 9px;
    font-weight: 700;
    background-color: #EEF2F6;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-remove-keyword {
    font-size: 8px;
    color: var(--color-text-muted);
}

.keyword-add-input {
    width: 80px;
    font-size: 9px;
    background-color: #F1F5F9;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.btn-add-keyword-plus {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
    background-color: #F1F5F9;
    font-size: 8px;
    color: var(--color-text-dark);
}

.btn-start-hunt {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-bg-white);
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-top: auto;
}

/* Radar sweep element screen */
.rada-screen-container {
    background-color: var(--app-dark-panel);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.radar-scope {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(41, 127, 202, 0.3);
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, rgba(13, 19, 33, 0.8) 0%, rgba(5, 8, 15, 0.95) 100%);
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(41, 127, 202, 0.4) 0deg, rgba(41, 127, 202, 0) 120deg);
    border-radius: var(--radius-full);
    transform-origin: center;
    animation: sweep 4s linear infinite;
    animation-play-state: paused;
}

.radar-scope.scanning .radar-sweep {
    animation-play-state: running;
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-full);
    border: 1px dashed rgba(41, 127, 202, 0.2);
}

.circle-1 { width: 30%; height: 30%; }
.circle-2 { width: 60%; height: 60%; }
.circle-3 { width: 90%; height: 90%; }

.radar-line-h {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    background-color: rgba(41, 127, 202, 0.15);
}

.radar-line-v {
    position: absolute;
    left: 50%;
    top: 5%;
    bottom: 5%;
    width: 1px;
    background-color: rgba(41, 127, 202, 0.15);
}

.radar-center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary-light);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 0 10px var(--color-primary-light);
}

.radar-blip {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background-color: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
    opacity: 0;
}

.radar-scope.scanning .radar-blip {
    animation: blink-blip 2s infinite ease-in-out;
}

.blip-1 { top: 25%; left: 35%; animation-delay: 0.5s !important; }
.blip-2 { top: 65%; left: 70%; animation-delay: 1.2s !important; }
.blip-3 { top: 40%; left: 80%; animation-delay: 1.8s !important; }

@keyframes blink-blip {
    0%, 100% { opacity: 0; transform: scale(0.6); }
    50% { opacity: 1; transform: scale(1.1); }
}

.radar-status-text {
    font-size: 11px;
    font-weight: 700;
    color: #A0AEC0;
    margin-top: 15px;
}

/* Zalo signals right column */
.rada-live-signals {
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.signals-header {
    background-color: var(--app-sidebar-bg);
    border-bottom: 1px solid var(--app-border);
    padding: 10px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-badge-waiting {
    background-color: #EDF2F7;
    color: #4A5568;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.status-badge-waiting.hunting {
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-success);
}

.signals-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signals-placeholder {
    margin: auto;
    text-align: center;
    color: var(--color-text-muted);
}

.signals-placeholder i {
    font-size: 24px;
    margin-bottom: 8px;
}

.signals-placeholder p {
    font-size: 10px;
    font-weight: 600;
}

.signal-msg-card {
    background-color: #F8FAFC;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    font-size: 10px;
    line-height: 1.4;
    animation: slide-in-signal 0.3s ease-out;
}

@keyframes slide-in-signal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.signal-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.signal-msg-content {
    color: var(--color-text-dark);
}

.signal-msg-keyword {
    background-color: rgba(255, 76, 96, 0.1);
    color: var(--color-hot);
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 800;
    font-size: 8px;
}

/* TAB 3 SPECIFIC STYLES: ZALO AUTOMATION */
.auto-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tool-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.tool-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tool-icon.bg-blue { background-color: rgba(41, 127, 202, 0.1); color: var(--color-primary-light); }
.tool-icon.bg-green { background-color: rgba(46, 196, 182, 0.1); color: var(--color-success); }
.tool-icon.bg-pink { background-color: rgba(255, 76, 96, 0.1); color: var(--color-hot); }
.tool-icon.bg-orange { background-color: rgba(255, 164, 27, 0.1); color: var(--color-warm); }
.tool-icon.bg-yellow { background-color: rgba(255, 206, 86, 0.1); color: #B7791F; }
.tool-icon.bg-purple { background-color: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.tool-icon.bg-teal { background-color: rgba(50, 201, 182, 0.1); color: #20c997; }
.tool-icon.bg-indigo { background-color: rgba(102, 16, 242, 0.1); color: #6610f2; }
.tool-icon.bg-violet { background-color: rgba(184, 115, 220, 0.1); color: #b873dc; }

.tool-info {
    flex-grow: 1;
    min-width: 0;
    line-height: 1.25;
}

.tool-info h5 {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-info p {
    font-size: 10px;
    color: var(--color-text-muted);
}

.btn-tool-action {
    color: var(--color-text-muted);
    font-size: 11px;
}

.badge-new-tag {
    background-color: var(--color-hot);
    color: var(--color-bg-white);
    font-size: 7px;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 800;
}

.badge-vip-tag {
    background-color: var(--color-warm);
    color: var(--color-bg-white);
    font-size: 7px;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 800;
}

/* Campaign logs */
.campaign-log-section {
    border-top: 1px solid var(--app-border);
    padding-top: 16px;
}

.log-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.filter-log-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-log-filter {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background-color: #EDF2F7;
    color: var(--color-text-muted);
}

.btn-log-filter.active {
    background-color: #E2E8F0;
    color: var(--color-text-dark);
}

.log-search-input {
    width: 200px;
    background-color: #EDF2F7;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-left: auto;
}

/* GENERAL DATA TABLES */
.table-container {
    width: 100%;
    overflow-x: auto;
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background-color: #F8FAFC;
    border-bottom: 1px solid var(--app-border);
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 800;
    padding: 10px 12px;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--app-border);
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.data-table.font-small td {
    font-size: 10.5px;
}

.campaign-name {
    font-weight: 800;
    color: var(--color-text-dark);
}

.type-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
.type-badge.blue { background-color: rgba(41, 127, 202, 0.1); color: var(--color-primary-light); }

.campaign-time {
    color: var(--color-text-muted);
}

.status-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
.status-badge.running { background-color: rgba(255, 164, 27, 0.1); color: var(--color-warm); }

.action-cells {
    display: flex;
    gap: 6px;
}

.btn-table-action {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    background-color: #F1F5F9;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    transition: all var(--transition-fast);
}

.btn-table-action:hover {
    background-color: #E2E8F0;
    color: var(--color-text-dark);
}

.btn-table-action.icon-blue { color: var(--color-primary-light); }
.btn-table-action.icon-green { color: var(--color-success); }
.btn-table-action.icon-red { color: var(--color-hot); }

/* TAB 4 SPECIFIC STYLES: TÌM KIẾM THÔNG TIN */
.lead-generator-box {
    background-color: #F8FAFC;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--color-text-dark);
}

.form-input {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 11px;
}

.region-selectors {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.checkbox-inline {
    font-size: 9.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.form-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.bottom-stats-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.input-stat-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 800;
}

.mini-input {
    width: 48px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
    padding: 2px 4px;
    font-size: 10px;
    text-align: center;
    font-weight: 700;
    border-radius: 3px;
}

.limit-status {
    background-color: rgba(41, 127, 202, 0.1);
    color: var(--color-primary-light);
    padding: 2px 6px;
    border-radius: 3px;
}

.btn-filter-toggle {
    background-color: #EDF2F7;
    padding: 2px 6px;
    border-radius: 3px;
}

.btn-green-submit {
    background-color: var(--color-success);
    color: var(--color-bg-white);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
}

.ai-search-details-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.ai-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
}

.ai-detail-item i {
    font-size: 16px;
    margin-top: 2px;
}

.ai-detail-item h6 {
    font-size: 11px;
    font-weight: 800;
}

.ai-detail-item p {
    font-size: 9.5px;
    color: var(--color-text-muted);
}

.search-results-section {
    border-top: 1px dashed var(--app-border);
    padding-top: 16px;
}

.results-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-title {
    font-size: 11px;
    font-weight: 800;
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.count-show {
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-success);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 3px;
}

.results-search-box {
    position: relative;
    width: 160px;
}

.results-search-box i {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--color-text-muted);
}

.results-search-box input {
    background-color: #EDF2F7;
    width: 100%;
    font-size: 10px;
    padding: 4px 6px 4px 22px;
    border-radius: var(--radius-sm);
}

.business-cell {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.bus-name {
    font-weight: 800;
    color: var(--color-text-dark);
}

.bus-link {
    font-size: 9.5px;
    color: var(--color-primary-light);
}

.bus-tag {
    align-self: flex-start;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 2px;
    margin-top: 2px;
}
.bus-tag.bg-blue { background-color: rgba(41, 127, 202, 0.1); color: var(--color-primary-light); }

.hotline-pill {
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-success);
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.social-links {
    display: flex;
    gap: 8px;
    font-size: 12px;
}

.address-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* TAB 5 SPECIFIC STYLES: NHẮN TIN ZALO (3-COLUMN INTERACTIVE CHAT) */
.chat-layout-container {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 1px;
    background-color: var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 520px;
}

.chat-sidebar-list {
    background-color: #F8FAFC;
    display: flex;
    flex-direction: column;
}

.chat-list-filter {
    padding: 12px 6px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-list-filter::-webkit-scrollbar {
    display: none;
}

.btn-chat-filter {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.btn-chat-filter.active {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.chat-users-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--app-border);
    cursor: pointer;
    position: relative;
}

.chat-user-item.active {
    background-color: var(--color-accent-light);
}

.chat-user-item .avatar-wrapper {
    position: relative;
}

.avatar-group-icons {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chat-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
}

.online-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-success);
    border: 1.5px solid var(--color-bg-white);
}

.chat-user-summary {
    flex: 1;
    min-width: 0;
}

.chat-user-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.chat-user-name {
    font-size: 11px;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 9px;
    color: var(--color-text-muted);
}

.chat-user-status-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-last-msg {
    font-size: 10px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-badge-mini {
    font-size: 8px;
    font-weight: 700;
    background-color: var(--color-border);
    color: var(--color-text-muted);
    padding: 1px 4px;
    border-radius: 3px;
}

.chat-unread-badge {
    background-color: var(--color-hot);
    color: var(--color-bg-white);
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: var(--radius-full);
}

/* Chat conversation Box Column 2 */
.chat-conversation-area {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.chat-conversation-header {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.active-user-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.active-user-group-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.active-user-meta .active-name {
    font-size: 12px;
    color: var(--color-primary);
}

.active-user-meta .status-pill {
    font-size: 9px;
}

.active-user-meta .status-pill.blue { background-color: rgba(58,134,255,0.1); color: var(--color-cool); }
.active-user-meta .status-pill.red { background-color: rgba(255,76,96,0.1); color: var(--color-hot); }

.btn-add-tag-mini {
    font-size: 10px;
    color: var(--color-text-muted);
}

.active-status {
    font-size: 10px;
    color: var(--color-text-muted);
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.btn-chat-action {
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 6px;
}

/* Messages stream */
.chat-messages-stream {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-divider-time {
    text-align: center;
    margin: 8px 0;
}

.chat-divider-time span {
    font-size: 10px;
    color: var(--color-text-muted);
    background-color: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.msg-bubble {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.msg-bubble.incoming {
    align-self: flex-start;
}

.msg-bubble.outgoing {
    align-self: flex-end;
}

.msg-sender-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    margin-left: 10px;
}

.msg-bubble.incoming .msg-content {
    background-color: #F1F5F9;
    color: var(--color-text-dark);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
}

.msg-bubble.outgoing .msg-content {
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
}

.msg-content {
    padding: 10px 14px;
    font-size: 11px;
    line-height: 1.4;
    box-shadow: var(--shadow-sm);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.pre-wrap-content {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

.msg-time {
    font-size: 9px;
    color: var(--color-text-muted);
    margin-top: 4px;
    align-self: flex-end;
}

.chat-conversation-footer {
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-reply-tags-row {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    align-items: center;
}

.quick-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.btn-quick-tag {
    font-size: 9px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-bg-light);
    flex-shrink: 0;
}

.btn-quick-tag.text-red {
    border-color: rgba(255, 76, 96, 0.3);
    background-color: rgba(255, 76, 96, 0.05);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-attach {
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 6px;
}

.chat-text-input {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 11px;
}

.btn-send-message {
    font-size: 14px;
    color: var(--color-accent);
    padding: 6px;
}

/* Chat Info Sidebar Column 3 */
.chat-info-sidebar {
    background-color: #F8FAFC;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.info-sidebar-header {
    padding: 20px 12px 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.info-group-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}

.info-group-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
}

.info-group-count {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.info-actions-shortcuts {
    display: flex;
    justify-content: space-around;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
}

.btn-shortcut {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.btn-shortcut.active {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.info-section {
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
}

.info-section-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
}

.info-section-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.info-media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.media-item img {
    width: 100%;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
}

.info-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

.info-link-list i {
    font-size: 9px;
    margin-right: 4px;
}

/* TAB 6 SPECIFIC STYLES: CẤU HÌNH AI PIPELINE */
.aipipeline-layout-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 12px;
    height: 100%;
}

.aipipeline-config-main {
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.aipipeline-submenu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--app-border);
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-account-connected {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-acc-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
}

.ai-acc-meta {
    line-height: 1.1;
}

.ai-acc-name {
    font-size: 11px;
    font-weight: 800;
}

.ai-acc-status {
    font-size: 8.5px;
    color: var(--color-success);
    font-weight: 700;
}

.ai-engine-toggle-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-engine-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--color-text-dark);
}

/* Switch Toggle widget CSS */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 16px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E0;
    transition: .3s;
    border-radius: 34px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-toggle input:checked + .slider-round {
    background-color: var(--color-primary-light);
}

.switch-toggle input:checked + .slider-round:before {
    transform: translateX(12px);
}

.ai-settings-tabs {
    width: 100%;
    display: flex;
    gap: 4px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 0, 0, -0.8) transparent !important;
    -ms-overflow-style: auto;
}

.ai-settings-tabs::-webkit-scrollbar {
    height: 4px !important;
    display: block !important;
}

.ai-settings-tabs::-webkit-scrollbar-track {
    background: transparent !important;
}

.ai-settings-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px !important;
}

.ai-settings-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4) !important;
}

.btn-ai-tab {
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    color: var(--color-text-muted);
}

.btn-ai-tab.active {
    background-color: #EDF2F7;
    color: var(--color-text-dark);
}

.btn-ai-tab.btn-green {
    background-color: var(--color-success);
    color: var(--color-bg-white);
}

.ai-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ai-stats-row .ai-stat-card {
    background-color: #F8FAFC;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.ai-stat-icon {
    font-size: 14px;
}

.ai-stat-data {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ai-stat-data .label {
    font-size: 8px;
    font-weight: 800;
    color: var(--color-text-muted);
}

.ai-stat-data .val {
    font-size: 11.5px;
    font-weight: 800;
}

.badge-active-mini {
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-success);
    font-size: 7px;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 800;
}

.btn-top-up {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8.5px;
    font-weight: 800;
    color: var(--color-hot);
}

.panel-inner-section {
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    padding: 12px;
    background-color: var(--color-bg-white);
}

.system-health {
    line-height: 1.35;
}

.health-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.health-header h5 {
    font-size: 12px;
    font-weight: 800;
}

.health-status-badge {
    font-size: 9.5px;
    font-weight: 800;
    background-color: rgba(255, 164, 27, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.health-status-badge.running {
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-success);
}

.font-orange {
    color: var(--color-warm);
}

.health-desc {
    font-size: 10px;
    margin-bottom: 10px;
}

.health-meta-row {
    display: flex;
    gap: 24px;
    border-top: 1px dashed var(--app-border);
    padding-top: 8px;
}

.health-meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 8px;
    font-weight: 800;
    color: var(--color-text-muted);
}

.meta-val {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.perf-chart-section {
    line-height: 1.3;
}

.chart-header h5 {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 2px;
}

.chart-desc {
    font-size: 9.5px;
    margin-bottom: 10px;
}

.chart-legend {
    display: flex;
    gap: 12px;
    font-size: 9px;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-color {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
}

.mock-chart-visual {
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.svg-line-chart {
    width: 100%;
    height: 55px;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    font-size: 8.5px;
    color: var(--color-text-muted);
    font-weight: 700;
    margin-top: 4px;
    border-top: 1px solid var(--app-border);
    padding-top: 4px;
}

/* Online Chatbot Test widget */
.aipipeline-chat-tester {
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tester-header {
    background-color: var(--app-sidebar-bg);
    border-bottom: 1px solid var(--app-border);
    padding: 10px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tester-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tester-version {
    font-size: 9px;
    color: var(--color-text-muted);
}

.tester-chat-feed {
    flex-grow: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #F8FAFC;
    min-height: 180px;
}

.tester-bubble {
    max-width: 85%;
    padding: 6px 10px;
    font-size: 10.5px;
    line-height: 1.4;
    border-radius: var(--radius-md);
}

.tester-bubble.incoming {
    align-self: flex-start;
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    color: var(--color-text-dark);
    border-top-left-radius: 2px;
}

.tester-bubble.outgoing {
    align-self: flex-end;
    background-color: var(--color-primary-light);
    color: var(--color-bg-white);
    border-top-right-radius: 2px;
}

.tester-typing-indicator {
    display: none;
    align-self: flex-start;
    background-color: var(--color-bg-white);
    border: 1px solid var(--app-border);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    border-top-left-radius: 2px;
    margin-left: 12px;
    margin-bottom: 8px;
    gap: 3px;
}

.tester-typing-indicator.active {
    display: flex;
}

.tester-typing-indicator .dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-text-muted);
    border-radius: var(--radius-full);
    animation: typing-dot 1.4s infinite ease-in-out;
}

.tester-typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.tester-typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.tester-chat-footer {
    border-top: 1px solid var(--app-border);
    padding: 10px;
}

.tester-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #F1F5F9;
    border-radius: var(--radius-md);
    padding: 4px 8px;
}

.tester-input {
    flex-grow: 1;
    background: none;
    font-size: 10px;
}

.btn-tester-send {
    color: var(--color-primary-light);
    font-size: 10px;
}

.tester-hint {
    display: block;
    text-align: center;
    font-size: 8.5px;
    color: var(--color-text-muted);
    font-weight: 700;
    margin: 6px 0;
}

.intent-prediction-box {
    border-top: 1px dashed var(--app-border);
    padding-top: 8px;
    line-height: 1.35;
}

.intent-title {
    font-size: 8px;
    font-weight: 800;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 2px;
}

.intent-val {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-text-dark);
}

.intent-confidence-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 8.5px;
    font-weight: 800;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.conf-val {
    color: var(--color-success);
}

/* 8. KEY FEATURES GRID HIGHLIGHTS */
.features-section {
    padding: 15px 0;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.feature-card-header .feature-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.feature-card-header h3 {
    margin-bottom: 0;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 14.5px;
}

/* 9. HOW IT WORKS FLOW */
.how-it-works-section {
    padding: 20px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
}

.steps-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.step-flow-card {
    flex: 1;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-flow-num {
    position: absolute;
    top: -20px;
    left: 24px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(30,86,160,0.3);
}

.step-flow-card h4 {
    font-size: 16.5px;
    font-weight: 800;
    margin-bottom: 12px;
    margin-top: 8px;
}

.step-flow-card p {
    color: var(--color-text-muted);
    font-size: 13.5px;
}

.step-arrow {
    font-size: 24px;
    color: var(--color-primary-light);
}

/* 10. PRICING SOLUTIONS PLANS */
.pricing-section {
    padding: 15px 0;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.pricing-card.popular {
    border: 2px solid var(--color-primary-light);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-warm), #FF8008);
    color: var(--color-bg-white);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(255,164,27,0.3);
    white-space: nowrap;
}

.plan-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.plan-price {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
}

.price-period {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.plan-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.plan-features {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.plan-features li i {
    font-size: 16px;
    margin-top: 2px;
}

.plan-features li.text-disabled {
    color: #A0AEC0;
}

.btn-pricing {
    width: 100%;
}

/* 11. SOCIAL PROOF TESTIMONIALS */
.testimonials-section {
    padding: 25px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.rating-stars {
    color: var(--color-warm);
    font-size: 14px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    line-height: 1.7;
}

.user-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.user-profile-row h5 {
    font-size: 14px;
    font-weight: 800;
}

.user-profile-row p {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* 12. CONTACT FORM AND LEAD INTAKE */
.contact-section {
    padding: 25px 0;
    background: linear-gradient(135deg, var(--color-primary-dark), #0A1C3A);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, rgba(41, 127, 202, 0.15) 0%, transparent 70%);
    top: -300px;
    right: -300px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-info-panel {
    color: var(--color-bg-white);
}

.contact-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.contact-desc {
    color: #A0AEC0;
    font-size: 16px;
    margin-bottom: 36px;
}

.contact-features-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bullet-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bullet-item i {
    font-size: 18px;
}

.contact-form-panel {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.form-group-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-row-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .form-row-two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group-form label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.form-control {
    border: 1px solid var(--color-border);
    background-color: #F8FAFC;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--radius-md);
    width: 100%;
}

.form-control:focus {
    border-color: var(--color-primary-light);
    background-color: var(--color-bg-white);
}

.form-control-select {
    border: 1px solid var(--color-border);
    background-color: #F8FAFC;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--radius-md);
    width: 100%;
    cursor: pointer;
}

.btn-block {
    width: 100%;
}

.btn-submit-lead {
    margin-top: 10px;
}

/* 13. FOOTER SYSTEM */
.site-footer {
    background-color: #081121;
    color: #A0AEC0;
    padding: 40px 0;
    border-top: 1px solid #14243D;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
}

/* 14. MODAL POPUP SUCCESS */
.modal-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-success.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-success.active .modal-content {
    transform: scale(1);
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.modal-content h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--color-text-muted);
    font-size: 14.5px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-close-modal {
    padding: 8px 30px;
    font-size: 14px;
}

/* Mobile Scroll Hint - Hidden on PC */
.mobile-scroll-hint {
    display: none !important;
}

/* ==========================================
   15. RESPONSIVE DESIGN - MEDIA QUERIES
   ========================================== */

@media (max-width: 1024px) {
    /* Hero */
    .hero-title { font-size: 38px; }
    
    /* Interactive mockup */
    .app-mockup { height: 580px; }
    .rada-layout-grid { grid-template-columns: 200px 1fr 200px; }
    .radar-scope { width: 160px; height: 160px; }
    .aipipeline-layout-grid { grid-template-columns: 1fr 220px; }
    .chat-layout-container { grid-template-columns: 200px 1fr; }
    .chat-info-sidebar { display: none; } /* Hide info bar on smaller screens */
    
    /* Features & Pricing */
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .pricing-card.popular { order: -1; grid-column: span 2; }
    
    /* Contact */
    .contact-container { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-panel { max-width: 500px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    .section-title { font-size: 28px; }
    .chat-divider-time{
        display: none;
    }
    .btn-login-header{
        padding: 9px 10px;
    }
    /* Header nav */
    .main-nav { display: none; }
    .btn-header-trial { display: none; }
    .mobile-menu-toggle { display: block; }
    
    /* Hero */
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 24px; }
    
    /* Mockup */
    .app-mockup {
        flex-direction: column;
        height: auto;
        min-height: 520px;
    }
    
    .app-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--app-border);
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        align-items: center;
        gap: 10px;
    }
    
    .app-sidebar-logo { display: none; }
    .menu-group-title { display: none; }
    .app-sidebar-menu {
        display: flex;
        gap: 6px;
        flex-grow: 1;
        overflow: visible;
    }
    
    .menu-item {
        width: auto;
        white-space: nowrap;
        padding: 6px 12px;
    }
    
    .menu-item.active::before {
        display: none;
    }
    
    .app-sidebar-footer { display: none; }
    .app-user-profile { display: none !important; }
    
    .app-main-content {
        height: 540px;
    }
    
    .app-sidebar-toggle { display: block; }
    
    .rada-layout-grid {
        grid-template-columns: 1fr;
        height: 100%;
        overflow-y: auto;
    }
    
    .rada-config-panel { height: 425px; }
    .rada-screen-container { height: 260px; }
    .rada-live-signals { height: 200px; }
    
    .aipipeline-layout-grid {
        grid-template-columns: 1fr;
        height: 100%;
        overflow-y: auto;
    }
    
    .aipipeline-config-main { height: auto; }
    .aipipeline-chat-tester { height: 350px; }
    
    /* Chat layout 3-column gets collapsed to 1-column */
    .chat-layout-container {
        grid-template-columns: 1fr;
        height: 480px;
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .chat-sidebar-list {
        display: none; /* Hide chat list, only show conversation in demo on mobile */
    }
    
    .chat-info-sidebar {
        display: none;
    }

    .chat-conversation-area {
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }

    .active-user-name-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        max-width: 100%;
    }

    .active-user-meta .active-name {
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .msg-bubble {
        max-width: 90%;
    }
    
    /* How it works */
    .steps-flow {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 20px 8vw 20px 8vw;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        align-items: stretch;
    }
    .steps-flow::-webkit-scrollbar {
        height: 5px;
    }
    .steps-flow::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    .steps-flow::-webkit-scrollbar-thumb {
        background: rgba(41, 127, 202, 0.3);
        border-radius: 10px;
    }
    .steps-flow .step-flow-card {
        flex: 0 0 84vw;
        scroll-snap-align: center;
        margin-top: 10px;
    }
    .steps-flow .step-arrow {
        display: none; /* Ẩn mũi tên trên mobile để cuộn slide mượt */
    }
    
    /* Testimonials */
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 10px 8vw 20px 8vw;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .testimonials-grid::-webkit-scrollbar {
        height: 5px;
    }
    .testimonials-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    .testimonials-grid::-webkit-scrollbar-thumb {
        background: rgba(41, 127, 202, 0.3);
        border-radius: 10px;
    }
    .testimonials-grid .testimonial-card {
        flex: 0 0 84vw;
        scroll-snap-align: center;
    }

    /* Key Features Slide */
    .features-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 10px 8vw 20px 8vw;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .features-grid::-webkit-scrollbar {
        height: 5px;
    }
    .features-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    .features-grid::-webkit-scrollbar-thumb {
        background: rgba(41, 127, 202, 0.3);
        border-radius: 10px;
    }
    .features-grid .feature-card {
        flex: 0 0 84vw;
        scroll-snap-align: center;
        padding: 24px;
    }

    /* Pricing Grid Slide */
    .pricing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 25px 8vw 20px 8vw;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .pricing-grid::-webkit-scrollbar {
        height: 5px;
    }
    .pricing-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    .pricing-grid::-webkit-scrollbar-thumb {
        background: rgba(41, 127, 202, 0.3);
        border-radius: 10px;
    }
    .pricing-grid .pricing-card {
        flex: 0 0 84vw;
        scroll-snap-align: center;
    }
    .pricing-grid .pricing-card.popular {
        order: 0;
    }

    /* Mobile Scroll Hint Overlay */
    .mobile-scroll-hint {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 13px;
        color: var(--color-primary-light);
        margin-top: 15px;
        margin-bottom: 5px;
        font-weight: 700;
        opacity: 0.8;
    }
    .animate-swipe {
        animation: swipeHint 1.5s infinite ease-in-out;
    }

    /* Responsive Lead Generator Box */
    .lead-generator-box .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .lead-generator-box .region-selectors {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .lead-generator-box .form-row-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .lead-generator-box .bottom-stats-inputs {
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }
    .lead-generator-box .input-stat-group {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.02);
        padding: 6px 4px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--color-border);
    }
    .lead-generator-box .input-stat-group label {
        font-size: 8px;
        margin-bottom: 4px;
    }
    .lead-generator-box .btn-green-submit {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 13px;
    }

    /* Rada stats row mobile horizontal layout */
    .rada-stats-row, .email-stats-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    
    .rada-stats-row .rada-stat-card {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 8px 6px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 4px !important;
    }
    
    .rada-stats-row .rada-stat-card .stat-icon {
        display: none !important;
    }

    .rada-stats-row .rada-stat-card .stat-info {
        text-align: center !important;
        width: 100% !important;
    }

    .rada-stats-row .rada-stat-card .stat-label {
        font-size: 8px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px !important;
    }

    .rada-stats-row .rada-stat-card .stat-value {
        font-size: 14px !important;
        margin-top: 2px !important;
        margin-bottom: 2px !important;
        line-height: 1.1 !important;
    }

    .rada-stats-row .rada-stat-card .stat-subtext {
        font-size: 8px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block !important;
    }
}

@keyframes swipeHint {
    0% { transform: translateX(-3px); opacity: 0.3; }
    50% { transform: translateX(5px); opacity: 1; }
    100% { transform: translateX(-3px); opacity: 0.3; }
}

@media (max-width: 480px) {
    .section-title { font-size: 24px; }
    .hero-title { font-size: 26px; }
    
    .sotay-buttons { width: 100%; }
    .panel-title-right { width: 100%; justify-content: flex-start; }
    .search-filter-bar { flex-direction: column; align-items: stretch; }
    .search-input-wrapper { width: 100%; }
    
    .ai-stats-row { grid-template-columns: repeat(2, 1fr); }
    
    .contact-form-panel { padding: 24px; }
}

/* ==========================================
   16. EMAIL AUTOMATION TAB & PRICING UPDATE STYLES
   ========================================== */

/* Email Tab Layout */
.btn-action-primary.btn-purple-bg {
    background: linear-gradient(135deg, #6f42c1, #8a2be2);
    color: var(--color-bg-white);
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.2);
}

.btn-action-primary.btn-purple-bg:hover {
    background: linear-gradient(135deg, #8a2be2, #9d4edd);
}

.email-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 12px;
    margin-bottom: 16px;
}

.email-stats-side {
    display: flex;
    flex-direction: column;
}

.email-chart-side {
    display: flex;
    flex-direction: column;
}

.status-chart-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.status-chart-card .chart-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.donut-chart-flex {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
}

.donut-chart-svg-container {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
}

.circular-chart {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #EDF2F7;
    stroke-width: 4;
}

.circle-segment {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

.purple-seg {
    stroke: #6f42c1;
}

.orange-seg {
    stroke: var(--color-warm);
}

.blue-seg {
    stroke: var(--color-primary-light);
}

.donut-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.donut-chart-legend .legend-item {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.legend-color.bg-purple-color { background-color: #6f42c1; }
.legend-color.bg-orange-color { background-color: var(--color-warm); }
.legend-color.bg-blue-color { background-color: var(--color-primary-light); }

.email-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Email Table specific cells */
.email-campaign-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-badge.done {
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-success);
}

.status-badge.draft {
    background-color: #EDF2F7;
    color: #4A5568;
}

.email-subject-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.subject-text {
    font-weight: 700;
    color: var(--color-text-dark);
}

.subject-date {
    font-size: 9.5px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.email-perf-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.perf-tag {
    font-size: 10.5px;
    font-weight: 800;
}

.perf-tag .lbl {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Pricing updates styles */
.save-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-bg-white);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.2);
}

.bg-purple-badge {
    background: linear-gradient(135deg, #6f42c1, #8a2be2);
}

.bg-violet-badge {
    background: linear-gradient(135deg, #9d4edd, #ba55d3);
}

.bg-blue-badge {
    background: linear-gradient(135deg, #1E56A0, #297FCA);
}

.popular-badge.purple-badge {
    background: linear-gradient(135deg, #8a2be2, #ba55d3);
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

.pricing-card.popular.purple-theme {
    border: 2px solid #8a2be2;
}

.pricing-card.popular.purple-theme .plan-name {
    color: #8a2be2;
}

.price-original {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 4px 0;
    font-weight: 600;
}

.total-bubble {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-top: 6px;
    margin-bottom: 12px;
}

.total-bubble.grey {
    background-color: #EDF2F7;
    color: #2D3748;
}

.total-bubble.blue {
    background-color: rgba(41, 127, 202, 0.15);
    color: var(--color-primary-light);
}

.total-bubble.purple {
    background-color: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
}

.btn-pricing.btn-green-outline {
    background-color: #E6F8F3;
    color: #0E9F6E;
    border: 2px solid #31C48D;
}

.btn-pricing.btn-green-outline:hover {
    background-color: #DEF7EC;
    color: #03543F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 196, 141, 0.2);
}

.btn-pricing.btn-dark-text {
    color: #ffffff;
}

/* Responsive adjustment for email layouts */
@media (max-width: 768px) {
    .email-dashboard-layout {
        grid-template-columns: 1fr;
    }
    .email-chart-side {
        height: 150px;
    }
}
