/* ============================================
   LEAD BUYERS SCANNER PRO - FUTURISTIC AI DESIGN SYSTEM
   Premium SaaS Dashboard with Glassmorphism
   ============================================ */

/* CSS Custom Properties - Design Tokens */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-tertiary: #1a1a3a;
    --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --bg-gradient-subtle: linear-gradient(180deg, rgba(15, 12, 41, 0.95) 0%, rgba(36, 36, 62, 0.95) 100%);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    
    /* Accent Colors */
    --accent-primary: #00d4ff;
    --accent-primary-rgb: 0, 212, 255;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --accent-glow: 0 0 20px rgba(0, 212, 255, 0.4);
    --accent-glow-strong: 0 0 30px rgba(0, 212, 255, 0.6);
    
    /* Status Colors */
    --hot-color: #ff4757;
    --hot-glow: 0 0 15px rgba(255, 71, 87, 0.5);
    --warm-color: #ffa502;
    --warm-glow: 0 0 15px rgba(255, 165, 2, 0.5);
    --cold-color: #747d8c;
    --success-color: #2ed573;
    --success-glow: 0 0 15px rgba(46, 213, 115, 0.5);
    --info-color: #00d4ff;
    --info-glow: 0 0 15px rgba(0, 212, 255, 0.5);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 4px 20px rgba(0, 212, 255, 0.2);
    
    /* Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8ecf0;
    --bg-gradient: linear-gradient(135deg, #e0e5ec 0%, #f0f4f8 50%, #e8ecf0 100%);
    --bg-gradient-subtle: linear-gradient(180deg, rgba(240, 244, 248, 0.98) 0%, rgba(232, 236, 240, 0.98) 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
    
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.75);
    --text-tertiary: rgba(26, 26, 46, 0.55);
    --text-muted: rgba(26, 26, 46, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ============================================
   BASE STYLES
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    z-index: -1;
    animation: bgPulse 20s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* ============================================
   GLASS CARD COMPONENT
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.glass-card-static {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

/* ============================================
   COLLAPSIBLE FILTER GROUPS
   ============================================ */

.filter-groups {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-group:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.filter-group-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.filter-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.filter-group-title i {
    color: var(--primary);
    font-size: 1rem;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 9999px;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.filter-chevron {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.filter-group.collapsed .filter-chevron {
    transform: rotate(-90deg);
}

.filter-group-content {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    padding: 0 1rem 0.75rem;
    opacity: 1;
}

.filter-group.collapsed .filter-group-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-row .select-field {
    min-width: 140px;
    flex: 1;
    max-width: 200px;
}

/* ============================================
   SPECTACULAR HOVER GLOW CARDS
   ============================================ */

.glow-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 212, 255, 0) 50%, transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glow-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 212, 255, 0.15) 60deg,
        rgba(124, 58, 237, 0.15) 120deg,
        rgba(0, 212, 255, 0.15) 180deg,
        transparent 240deg,
        transparent 360deg
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotateGlow 8s linear infinite;
    animation-play-state: paused;
    pointer-events: none;
}

.glow-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.3),
        0 0 80px rgba(124, 58, 237, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

.glow-card:hover::before {
    opacity: 1;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.8) 0%,
        rgba(124, 58, 237, 0.8) 50%,
        rgba(0, 212, 255, 0.8) 100%
    );
}

.glow-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Card inner glow effect on hover */
.glow-card .card-glow-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 212, 255, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: var(--border-radius-xl);
}

.glow-card:hover .card-glow-inner {
    opacity: 1;
}

/* Shimmer effect on hover */
.glow-card .shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transition: none;
    pointer-events: none;
}

.glow-card:hover .shimmer {
    animation: shimmerSlide 1.5s ease-in-out;
}

@keyframes shimmerSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Pulse border animation */
.glow-card.pulse-border::before {
    animation: pulseBorder 2s ease-in-out infinite;
}

@keyframes pulseBorder {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--accent-glow);
}

.nav-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--glass-bg-hover);
    color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 0;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hero-features li::before {
    content: '✦';
    color: var(--accent-primary);
    font-size: 0.75rem;
}

/* Radar Animation */
.radar-container {
    width: 200px;
    height: 200px;
    position: relative;
    opacity: 0.8;
}

.radar-circle {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: radarPulse 3s ease-out infinite;
}

.radar-circle:nth-child(1) {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.radar-circle:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation-delay: 0.5s;
}

.radar-circle:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    animation-delay: 1s;
}

.radar-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: var(--accent-glow-strong);
    animation: dotBlink 2s ease-in-out infinite;
}

.radar-dot:nth-child(4) { top: 20%; left: 60%; animation-delay: 0.3s; }
.radar-dot:nth-child(5) { top: 50%; left: 25%; animation-delay: 0.8s; }
.radar-dot:nth-child(6) { top: 70%; left: 70%; animation-delay: 1.2s; }
.radar-dot:nth-child(7) { top: 40%; left: 80%; animation-delay: 1.6s; }

.radar-line {
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 100%);
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarPulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-2xl);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow-strong);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.btn-disabled {
    background: rgba(100, 100, 120, 0.4);
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-success-outline {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid #10b981 !important;
    color: #10b981 !important;
}

.btn-success-outline:hover {
    background: rgba(16, 185, 129, 0.25) !important;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    color: var(--accent-primary);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.input-field {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
    transition: all var(--transition-fast);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon .input-field {
    padding-left: 2.75rem;
}

/* Day Chip Toggle */
.day-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.day-chip span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.day-chip:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.day-chip.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-primary);
}

.day-chip.active span {
    color: var(--accent-primary);
}

/* Select */
.select-field {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: all var(--transition-fast);
}

.select-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

/* Range Slider */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--accent-glow);
    transition: all var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--accent-glow-strong);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--accent-glow);
}

/* ============================================
   CHIPS / PILLS
   ============================================ */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.chip.selected {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--accent-glow);
}

.chip.selected::before {
    content: '✓';
    font-size: 0.7rem;
}

.chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 0.65rem;
    margin-left: 0.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip-remove:hover {
    background: rgba(255, 71, 87, 0.5);
}

/* Category Chips */
.category-chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.category-chip.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--accent-glow);
}

.category-chip .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-full);
    font-size: 0.7rem;
    margin-left: 0.4rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-hot {
    background: rgba(255, 71, 87, 0.2);
    color: var(--hot-color);
    box-shadow: inset 0 0 10px rgba(255, 71, 87, 0.2);
}

.badge-warm {
    background: rgba(255, 165, 2, 0.2);
    color: var(--warm-color);
    box-shadow: inset 0 0 10px rgba(255, 165, 2, 0.2);
}

.badge-cold {
    background: rgba(116, 125, 140, 0.2);
    color: var(--cold-color);
}

.badge-success {
    background: rgba(46, 213, 115, 0.2);
    color: var(--success-color);
    box-shadow: inset 0 0 10px rgba(46, 213, 115, 0.2);
}

.badge-info {
    background: rgba(0, 212, 255, 0.2);
    color: var(--info-color);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: var(--border-radius-md);
    font-size: 0.7rem;
    font-weight: 500;
}

/* Core Statuses */
.status-NEW { background: rgba(0, 212, 255, 0.2); color: var(--accent-primary); }
.status-OUTREACH_RUNNING { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2)); 
    color: #a78bfa; 
    animation: pulse-subtle 2s infinite;
}
.status-REPLIED { background: rgba(34, 197, 94, 0.25); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.4); }
.status-IN_CONVERSATION { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.status-TEST_BUY { background: rgba(46, 213, 115, 0.2); color: var(--success-color); }
.status-ACTIVE_BUYER { background: var(--success-color); color: white; }
.status-NOT_INTERESTED { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
.status-OUTREACH_COMPLETED_NO_REPLY { background: rgba(107, 114, 128, 0.2); color: #6b7280; }
.status-PAUSED { background: rgba(255, 165, 2, 0.3); color: #92400e; }

/* Compliance Statuses */
.status-DO_NOT_CONTACT { background: rgba(255, 71, 87, 0.3); color: var(--hot-color); border: 1px solid rgba(255, 71, 87, 0.4); }
.status-UNSUBSCRIBED { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.status-BOUNCED { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Subtle pulse animation for running outreach */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Journey Step Badges */
.badge-sent { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.badge-opened { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.badge-clicked { background: rgba(14, 165, 233, 0.2); color: #0ea5e9; }
.badge-replied { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-completed { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-current { 
    background: rgba(0, 212, 255, 0.2); 
    color: var(--accent-primary); 
    animation: pulse-subtle 2s infinite;
}
.badge-pending { background: rgba(156, 163, 175, 0.15); color: #9ca3af; }
.badge-running { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.badge-paused { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.badge-preview { background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3)); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.4); }

/* Timeline Step Cards (Accordion Style) */
.timeline-step {
    transition: all 0.2s ease;
}

.timeline-step summary {
    list-style: none;
}

.timeline-step summary::-webkit-details-marker {
    display: none;
}

.timeline-step summary::before {
    content: '\25B6';
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
    transition: transform 0.2s ease;
}

.timeline-step[open] summary::before {
    transform: rotate(90deg);
}

.timeline-step.step--completed {
    border-color: #10b981 !important;
}

.timeline-step.step--current {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}

.timeline-step.step--future {
    opacity: 0.7;
    border-style: dashed !important;
}

.timeline-step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

.btn-icon {
    padding: 0.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Legacy support */
.status-REACHED_OUT { background: rgba(255, 165, 2, 0.2); color: var(--warm-color); }
.status-QUEUED { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.status-CONTACTED { background: rgba(255, 165, 2, 0.2); color: var(--warm-color); }
.status-FOLLOWING_UP { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.status-ENGAGED { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-TRIAL { background: rgba(46, 213, 115, 0.2); color: var(--success-color); }
.status-UNRESPONSIVE { background: rgba(107, 114, 128, 0.2); color: #6b7280; }
.status-MEETING_SCHEDULED { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-LOST { background: rgba(255, 71, 87, 0.2); color: var(--hot-color); }

/* Buyer Score Badges */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.score-high {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(34, 197, 94, 0.15));
    color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.score-medium {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(250, 204, 21, 0.15));
    color: #eab308;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.score-low {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.score-unscored {
    background: rgba(75, 85, 99, 0.2);
    color: #6b7280;
    font-size: 0.65rem;
}

/* Ads Detection Badges */
.ads-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 32px;
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.ads-active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.2));
    color: #a78bfa;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.ads-active i {
    font-size: 0.65rem;
}

.ads-none {
    background: rgba(75, 85, 99, 0.2);
    color: #6b7280;
    font-size: 0.65rem;
}

/* Score breakdown list */
.score-signal-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-signal-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
}

.score-signal-item.positive {
    color: #10b981;
}

.score-signal-item.negative {
    color: #9ca3af;
}

.score-signal-item i {
    font-size: 0.85rem;
}

/* Dropdown Menu */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    min-width: 220px;
    margin-top: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--glass-bg-hover);
    color: var(--accent-primary);
}

.dropdown-item i {
    font-size: 1rem;
    color: var(--accent-primary);
}

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
    text-align: center;
    padding: var(--space-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-number.primary { color: var(--accent-primary); text-shadow: var(--info-glow); }
.stat-number.hot { color: var(--hot-color); text-shadow: var(--hot-glow); }
.stat-number.success { color: var(--success-color); text-shadow: var(--success-glow); }
.stat-number.info { color: var(--accent-primary); text-shadow: var(--info-glow); }

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   TABLE
   ============================================ */

.table-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: var(--border-radius-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.data-table tbody tr {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* ============================================
   TABS
   ============================================ */

.tabs-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-full);
    width: fit-content;
}

.tab-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--accent-glow);
}

/* ============================================
   KANBAN / PIPELINE
   ============================================ */

.kanban-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.kanban-stats {
    display: flex;
    gap: 1rem;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-pill.success {
    color: var(--success-color);
    border-color: var(--success-color);
}

.stat-pill i {
    font-size: 0.9rem;
}

.pipeline-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    width: 100%;
    min-height: 400px;
    color: var(--text-muted);
}

.pipeline-loading p {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.pipeline-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: pipeline-spin 1s linear infinite;
}

@keyframes pipeline-spin {
    to {
        transform: rotate(360deg);
    }
}

.kanban-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    min-height: 500px;
}

.kanban-column {
    min-width: 280px;
    max-width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kanban-header {
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-header .count {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
}

.kanban-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kanban-step-name {
    font-weight: 600;
}

.kanban-step-delay {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 400;
}

.kanban-cards {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kanban-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem;
    cursor: grab;
    transition: all var(--transition-normal);
}

.kanban-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.kanban-card .company-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.kanban-card .company-domain {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.kanban-card .company-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Next Step Schedule Badge */
.next-step-schedule {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.next-step-schedule i {
    font-size: 0.65rem;
}

.next-step-schedule .schedule-time {
    font-weight: 500;
}

.next-step-schedule.completed {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.next-step-schedule.paused {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
}

.countdown-timer {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.countdown-timer.ready {
    color: var(--success-color);
    animation: pulse-ready 1s ease-in-out infinite;
}

@keyframes pulse-ready {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Kanban Card Structure */
.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.kanban-card-header .header-indicators {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.kanban-card-body {
    margin-bottom: 0.5rem;
}

.kanban-card-body .card-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.kanban-card-body .city-tag,
.kanban-card-body .step-progress-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 0.2rem;
}

.kanban-card-body .city-tag i,
.kanban-card-body .step-progress-tag i {
    font-size: 0.6rem;
    opacity: 0.7;
}

.badge-sm {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.35rem !important;
}

/* Kanban Card Footer - Timer Section */
.kanban-card-footer {
    border-top: 1px solid rgba(0, 224, 255, 0.2);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.kanban-card-footer .footer-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
}

.kanban-card-footer .footer-label {
    color: rgba(255, 255, 255, 0.6);
    min-width: 80px;
    font-size: 0.7rem;
}

.kanban-card-footer .footer-label i {
    margin-right: 0.2rem;
    opacity: 0.8;
}

.kanban-card-footer .footer-schedule {
    color: var(--text-secondary);
}

.kanban-card-footer .footer-schedule .timer-scheduled {
    color: #00e0ff;
    font-weight: 600;
    font-size: 0.7rem;
    text-shadow: 0 0 8px rgba(0, 224, 255, 0.4);
}

.kanban-card-footer .footer-local-time {
    color: var(--text-secondary);
}

.kanban-card-footer .footer-local-time .local-time-display {
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.7rem;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.kanban-card-footer .footer-countdown {
    color: var(--text-secondary);
}

.kanban-card-footer .footer-countdown .timer-countdown {
    color: #6ee7b7;
    font-weight: 600;
    font-size: 0.7rem;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Next Step Timer - 2 Line Display */
.next-step-timer .timer-countdown {
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.3;
}

.next-step-timer .timer-scheduled {
    font-size: 0.65rem;
    opacity: 0.85;
    line-height: 1.2;
}

/* Timer status colors */
.next-step-timer .timer-paused {
    color: #eab308;
}

.next-step-timer .timer-completed {
    color: var(--success-color);
}

.next-step-timer .timer-failed {
    color: var(--hot-color);
}

.next-step-timer .timer-due {
    color: var(--hot-color);
    font-weight: 700;
    animation: pulse-ready 1s ease-in-out infinite;
}

.next-step-timer .timer-running {
    color: var(--accent-primary);
}

.next-step-timer .timer-pending {
    color: var(--text-tertiary);
}

.next-step-timer .timer-scheduled-text {
    color: var(--text-tertiary);
}

/* Timer status backgrounds for footer */
.kanban-card-footer.timer-status-paused {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(234, 179, 8, 0.05) 100%);
    border-top-color: rgba(234, 179, 8, 0.25);
}

.kanban-card-footer.timer-status-completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-top-color: rgba(16, 185, 129, 0.25);
}

.kanban-card-footer.timer-status-failed {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.12) 0%, rgba(255, 71, 87, 0.05) 100%);
    border-top-color: rgba(255, 71, 87, 0.25);
}

.kanban-card-footer.timer-status-due {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.18) 0%, rgba(255, 71, 87, 0.08) 100%);
    border-top-color: rgba(255, 71, 87, 0.35);
}

.kanban-card-footer.timer-status-running {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.03) 100%);
    border-top-color: rgba(0, 212, 255, 0.2);
}

.kanban-card-footer.timer-status-pending {
    background: rgba(255, 255, 255, 0.03);
}

/* Multi-Select Table Styles */
.selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    gap: 1rem;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.selection-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-divider {
    width: 1px;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.25rem;
}

.checkbox-col {
    width: 40px;
    text-align: center;
}

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

tr.row-selected {
    background: rgba(0, 212, 255, 0.1) !important;
}

tr.row-selected:hover {
    background: rgba(0, 212, 255, 0.15) !important;
}

.btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
}

.btn-danger {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.btn-danger:hover {
    background: rgba(255, 71, 87, 0.25);
}

/* Column colors */
.col-NEW .kanban-header { border-color: var(--accent-primary); color: var(--accent-primary); }
.col-REACHED_OUT .kanban-header { border-color: var(--warm-color); color: var(--warm-color); }
.col-IN_CONVERSATION .kanban-header { border-color: #a78bfa; color: #a78bfa; }
.col-TEST_BUY .kanban-header { border-color: var(--success-color); color: var(--success-color); }
.col-ACTIVE_BUYER .kanban-header { border-color: #2ed573; color: #2ed573; }
.col-PAUSED .kanban-header { border-color: var(--warm-color); color: var(--warm-color); }
.col-LOST .kanban-header { border-color: var(--hot-color); color: var(--hot-color); }

/* ============================================
   DRAWER
   ============================================ */

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.drawer-overlay.open,
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    z-index: 1050;
    transition: right var(--transition-slow);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.drawer.active {
    right: 0;
}

.detail-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    z-index: 1050;
    transition: right var(--transition-slow);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.detail-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 1.25rem;
    background: var(--accent-gradient);
    position: sticky;
    top: 0;
    z-index: 10;
}

.drawer-body {
    padding: 1.25rem;
}

/* Drawer Tabs */
.drawer-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.drawer-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent;
}

.drawer-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.drawer-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
}

.drawer-tab .tab-badge {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

.drawer-tab-content {
    display: block;
}

/* Outreach Timeline Styles */
.outreach-timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.25rem;
    border-left: 2px solid var(--glass-border);
    margin-left: 0.5rem;
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    border: 2px solid var(--bg-secondary);
}

.timeline-item.sent::before {
    background: #3b82f6;
}

.timeline-item.opened::before {
    background: #8b5cf6;
}

.timeline-item.clicked::before {
    background: #0ea5e9;
}

.timeline-item.replied::before,
.timeline-item.responded::before {
    background: #10b981;
}

.timeline-item.bounced::before,
.timeline-item.failed::before {
    background: #ef4444;
}

.timeline-item.queued::before {
    background: #eab308;
    animation: pulse 2s infinite;
}

.timeline-item.skipped::before {
    background: #6b7280;
}

.timeline-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    transition: all var(--transition-fast);
}

.timeline-card:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.timeline-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-card .card-channel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-card .card-subject {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-card .card-body-preview {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.timeline-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

.timeline-card .card-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.timeline-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.timeline-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

/* ============================================
   NOTES
   ============================================ */

.note-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-primary);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.note-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.note-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width var(--transition-normal);
    box-shadow: var(--accent-glow);
}

/* ============================================
   LOG CONTAINER
   ============================================ */

.log-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
    height: 150px;
    overflow-y: auto;
}

.log-container .log-entry {
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.log-container .log-success { color: var(--success-color); }
.log-container .log-warning { color: var(--warm-color); }
.log-container .log-error { color: var(--hot-color); }

/* ============================================
   VERTICAL BADGE
   ============================================ */

.vertical-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: var(--border-radius-md);
    font-size: 0.7rem;
    font-weight: 500;
}

/* ============================================
   PRIORITY SELECTOR
   ============================================ */

.priority-selector {
    display: flex;
    gap: 0.5rem;
}

.priority-btn {
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--glass-border);
    background: transparent;
}

.priority-btn[data-priority="COLD"] {
    color: var(--cold-color);
}

.priority-btn[data-priority="WARM"] {
    color: var(--warm-color);
}

.priority-btn[data-priority="HOT"] {
    color: var(--hot-color);
}

.priority-btn.active {
    border-color: currentColor;
    box-shadow: 0 0 15px currentColor;
}

.priority-btn[data-priority="COLD"].active {
    background: rgba(116, 125, 140, 0.2);
}

.priority-btn[data-priority="WARM"].active {
    background: rgba(255, 165, 2, 0.2);
}

.priority-btn[data-priority="HOT"].active {
    background: rgba(255, 71, 87, 0.2);
}

/* ============================================
   TAG SYSTEM
   ============================================ */

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tag {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tag .remove {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.tag .remove:hover {
    opacity: 1;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight var(--transition-normal);
    min-width: 250px;
}

.toast.success { border-left: 3px solid var(--success-color); }
.toast.error { border-left: 3px solid var(--hot-color); }
.toast.info { border-left: 3px solid var(--accent-primary); }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-dots {
    display: inline-flex;
    gap: 0.3rem;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: loadingBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Scanning animation */
.scanning-animation {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.scanning-animation::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .radar-container {
        width: 150px;
        height: 150px;
    }
    
    .hero-features {
        text-align: left;
        display: inline-block;
    }
    
    .nav-brand-text {
        display: none;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .kanban-container {
        padding: 0.5rem;
    }
    
    .kanban-column {
        min-width: 250px;
    }
    
    .detail-drawer {
        width: 100%;
        right: -100%;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.opacity-70 { opacity: 0.7; }
.w-full { width: 100%; }
.hidden { display: none; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   FUTURISTIC AI SCANNING ANIMATION
   ============================================ */

.ai-scan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.ai-scan-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-scan-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Core AI orb */
.ai-core {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #00d4ff, #7c3aed);
    border-radius: 50%;
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.8),
        0 0 120px rgba(124, 58, 237, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    animation: coreBreath 2s ease-in-out infinite, corePulse 0.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes coreBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.8), 0 0 120px rgba(124, 58, 237, 0.6); }
    50% { box-shadow: 0 0 80px rgba(0, 212, 255, 1), 0 0 160px rgba(124, 58, 237, 0.8); }
}

/* Rotating rings */
.scan-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: ringRotate 3s linear infinite;
}

.scan-ring-1 {
    width: 140px;
    height: 140px;
    border-top-color: rgba(0, 212, 255, 0.8);
    border-bottom-color: rgba(0, 212, 255, 0.8);
    animation-duration: 2s;
}

.scan-ring-2 {
    width: 200px;
    height: 200px;
    border-left-color: rgba(124, 58, 237, 0.8);
    border-right-color: rgba(124, 58, 237, 0.8);
    animation-duration: 3s;
    animation-direction: reverse;
}

.scan-ring-3 {
    width: 260px;
    height: 260px;
    border-top-color: rgba(0, 212, 255, 0.5);
    border-right-color: rgba(124, 58, 237, 0.5);
    animation-duration: 4s;
}

.scan-ring-4 {
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(0, 212, 255, 0.3);
    animation-duration: 8s;
    animation-direction: reverse;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Orbiting particles */
.orbit-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
}

.orbit-particle-1 { animation: orbit1 3s linear infinite; }
.orbit-particle-2 { animation: orbit2 4s linear infinite; }
.orbit-particle-3 { animation: orbit3 2.5s linear infinite; }
.orbit-particle-4 { animation: orbit4 3.5s linear infinite; }

@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(90deg) translateX(130px) rotate(-90deg); }
    to { transform: rotate(450deg) translateX(130px) rotate(-450deg); }
}

@keyframes orbit3 {
    from { transform: rotate(180deg) translateX(70px) rotate(-180deg); }
    to { transform: rotate(540deg) translateX(70px) rotate(-540deg); }
}

@keyframes orbit4 {
    from { transform: rotate(270deg) translateX(160px) rotate(-270deg); }
    to { transform: rotate(630deg) translateX(160px) rotate(-630deg); }
}

/* Scanning wave */
.scan-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    animation: scanWave 2s ease-out infinite;
}

.scan-wave:nth-child(2) { animation-delay: 0.5s; }
.scan-wave:nth-child(3) { animation-delay: 1s; }

@keyframes scanWave {
    0% {
        transform: scale(0.2);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Data streams */
.data-stream {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    animation: dataFlow 1.5s ease-in-out infinite;
}

.data-stream:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; transform: rotate(45deg); }
.data-stream:nth-child(2) { right: 10%; top: 20%; animation-delay: 0.3s; transform: rotate(-45deg); }
.data-stream:nth-child(3) { left: 10%; bottom: 20%; animation-delay: 0.6s; transform: rotate(-45deg); }
.data-stream:nth-child(4) { right: 10%; bottom: 20%; animation-delay: 0.9s; transform: rotate(45deg); }

@keyframes dataFlow {
    0%, 100% { opacity: 0; transform: translateY(-20px) rotate(var(--rotate, 45deg)); }
    50% { opacity: 1; transform: translateY(20px) rotate(var(--rotate, 45deg)); }
}

/* Neural network lines */
.neural-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
    animation: neuralPulse 2s ease-in-out infinite;
}

.neural-line-1 { width: 150px; top: 50%; left: -75px; }
.neural-line-2 { width: 150px; top: 50%; right: -75px; }
.neural-line-3 { width: 150px; top: 30%; left: 50%; transform: translateX(-50%) rotate(60deg); }
.neural-line-4 { width: 150px; bottom: 30%; left: 50%; transform: translateX(-50%) rotate(-60deg); }

@keyframes neuralPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Floating data nodes */
.data-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: nodeFloat 3s ease-in-out infinite;
}

.data-node:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.data-node:nth-child(2) { top: 25%; right: 25%; animation-delay: 0.5s; }
.data-node:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 1s; }
.data-node:nth-child(4) { bottom: 30%; right: 20%; animation-delay: 1.5s; }
.data-node:nth-child(5) { top: 40%; left: 8%; animation-delay: 2s; }
.data-node:nth-child(6) { top: 60%; right: 10%; animation-delay: 2.5s; }

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-10px) scale(1.3); opacity: 1; }
}

/* Hexagon grid pattern */
.hex-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 0 L50 14.43 L50 43.3 L25 57.73 L0 43.3 L0 14.43 Z' fill='none' stroke='rgba(0,212,255,0.1)' stroke-width='0.5'/%3E%3C/svg%3E");
    opacity: 0.3;
    animation: hexPulse 4s ease-in-out infinite;
}

@keyframes hexPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Status text */
.scan-status {
    position: absolute;
    bottom: -80px;
    text-align: center;
    width: 100%;
}

.scan-status-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.scan-progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.scan-detail-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Found counter */
.found-counter {
    position: absolute;
    top: -60px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius-full);
    animation: counterPop 0.3s ease-out;
}

.found-counter .count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.found-counter .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes counterPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Close button */
.scan-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scan-close-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: var(--hot-color);
    color: var(--hot-color);
    transform: rotate(90deg);
}

/* Electric arc effect */
.electric-arc {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.electric-arc::before,
.electric-arc::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: arcSpark 0.5s ease-in-out infinite;
}

.electric-arc::before {
    top: 10%;
    left: 45%;
    transform: rotate(-30deg);
}

.electric-arc::after {
    bottom: 10%;
    right: 45%;
    transform: rotate(30deg);
    animation-delay: 0.25s;
}

@keyframes arcSpark {
    0%, 100% { opacity: 0; height: 20px; }
    50% { opacity: 1; height: 40px; }
}

/* ============================================
   AUTO-PROCESSOR TOGGLE
   ============================================ */

.auto-processor-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal);
}

.auto-processor-toggle:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.auto-processor-toggle.active {
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.toggle-track {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    position: relative;
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
}

.toggle-track.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.toggle-thumb {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--text-primary);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-track.active .toggle-thumb {
    left: 22px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.toggle-label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.toggle-status {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

.toggle-status.active {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.toggle-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.processor-queue {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--glass-border);
}

.queue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    animation: pulse-glow 2s ease-in-out infinite;
}

.queue-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    }
}

.auto-processor-toggle.processing .toggle-track.active {
    animation: processing-pulse 1.5s ease-in-out infinite;
}

@keyframes processing-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
    }
}

.activity-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-left: 0.5rem;
}

.activity-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.activity-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.activity-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 420px;
    max-height: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

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

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.activity-header i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.activity-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.activity-close:hover {
    background: rgba(255, 71, 87, 0.2);
    color: var(--hot-color);
}

.activity-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 0.5rem;
}

.activity-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.25rem;
    transition: background var(--transition-fast);
}

.activity-item:hover {
    background: var(--glass-bg);
}

.activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.activity-icon.start { background: rgba(0, 212, 255, 0.2); color: var(--accent-primary); }
.activity-icon.enrich { background: rgba(124, 58, 237, 0.2); color: var(--accent-secondary); }
.activity-icon.ads { background: rgba(255, 165, 2, 0.2); color: var(--warm-color); }
.activity-icon.reviews { background: rgba(46, 213, 115, 0.2); color: var(--success-color); }
.activity-icon.competitors { background: rgba(255, 71, 87, 0.2); color: var(--hot-color); }
.activity-icon.score { background: rgba(0, 212, 255, 0.2); color: var(--info-color); }
.activity-icon.complete { background: rgba(46, 213, 115, 0.3); color: var(--success-color); }
.activity-icon.error { background: rgba(255, 71, 87, 0.3); color: var(--hot-color); }
.activity-icon.running { animation: pulse-icon 1s ease-in-out infinite; }

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-company {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-details {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.activity-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.activity-status-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.activity-status-badge.success { background: rgba(46, 213, 115, 0.2); color: var(--success-color); }
.activity-status-badge.running { background: rgba(0, 212, 255, 0.2); color: var(--accent-primary); }
.activity-status-badge.error { background: rgba(255, 71, 87, 0.2); color: var(--hot-color); }
.activity-status-badge.skipped { background: rgba(116, 125, 140, 0.2); color: var(--cold-color); }
.activity-status-badge.processing { background: rgba(124, 58, 237, 0.2); color: var(--accent-secondary); }

/* Activity Panel Tabs */
.activity-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
    padding: 0 0.5rem;
}

.activity-tab {
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.activity-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.activity-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.activity-tab[data-status="running"].active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.activity-tab[data-status="success"].active {
    color: var(--success-color);
    border-bottom-color: var(--success-color);
}

.activity-tab[data-status="error"].active {
    color: var(--hot-color);
    border-bottom-color: var(--hot-color);
}

.activity-tab[data-status="skipped"].active {
    color: var(--cold-color);
    border-bottom-color: var(--cold-color);
}

.activity-tab i {
    font-size: 0.8rem;
}

.activity-tab i.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.activity-content {
    flex: 1;
    min-width: 0;
}

/* Status-specific item styling */
.activity-item.status-running {
    border-left: 3px solid var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
}

.activity-item.status-success {
    border-left: 3px solid var(--success-color);
}

.activity-item.status-error {
    border-left: 3px solid var(--hot-color);
    background: rgba(255, 71, 87, 0.05);
}

.activity-item.status-skipped {
    border-left: 3px solid var(--cold-color);
}

/* Activity icon status colors */
.activity-icon.running {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-primary);
    animation: pulse-icon 1s ease-in-out infinite;
}

.activity-icon.success {
    background: rgba(46, 213, 115, 0.2);
    color: var(--success-color);
}

.activity-icon.error {
    background: rgba(255, 71, 87, 0.2);
    color: var(--hot-color);
}

.activity-icon.skipped {
    background: rgba(116, 125, 140, 0.2);
    color: var(--cold-color);
}

/* Step badge styling */
.activity-step-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--glass-bg);
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 2px;
}

/* ============================================
   SEQUENCE BUILDER - Pipeline Integration
   ============================================ */

/* Pipeline Split Layout */
.pipeline-split-layout {
    display: flex;
    gap: 0;
    height: calc(100vh - 320px);
    min-height: 500px;
}

.kanban-section {
    flex: 1;
    overflow-x: auto;
    transition: var(--transition-normal);
}

.kanban-section.collapsed {
    flex: 1;
}


/* Sequence List */
.sequence-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.sequence-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.sequence-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.sequence-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

.sequence-card.active {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

.sequence-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.sequence-card-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sequence-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.sequence-status-dot.inactive {
    background: var(--cold-color);
}

.sequence-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sequence-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sequence-stat i {
    font-size: 0.7rem;
}

.sequence-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.sequence-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Sequence Builder */
.sequence-builder {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sequence-builder-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.sequence-name-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem;
}

.sequence-name-input:focus {
    outline: none;
    background: var(--glass-bg);
    border-radius: var(--border-radius-sm);
}

.sequence-builder-actions {
    display: flex;
    gap: 0.5rem;
}

.sequence-info-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
}

.sequence-info-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sequence-info-badge.active-leads {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
}

/* Steps Timeline */
.steps-timeline {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.steps-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.steps-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.step-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.step-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.step-item.drag-over {
    border-top: 2px solid var(--accent-primary);
    margin-top: -2px;
}

.step-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: var(--text-muted);
    cursor: grab;
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.step-drag-handle:hover {
    opacity: 1;
    color: var(--accent-primary);
}

.step-drag-handle:active {
    cursor: grabbing;
}

.step-item::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 32px;
    bottom: -1rem;
    width: 2px;
    background: var(--glass-border);
}

.step-item:last-child::before {
    display: none;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
    z-index: 1;
}

.step-icon.email { background: linear-gradient(135deg, #00d4ff, #0099cc); }
.step-icon.sms { background: linear-gradient(135deg, #10b981, #059669); }
.step-icon.linkedin { background: linear-gradient(135deg, #0077b5, #005582); }
.step-icon.voice { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.step-icon.inactive {
    background: var(--cold-color);
    opacity: 0.6;
}

.step-content {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.step-content:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.step-content.inactive {
    opacity: 0.6;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.step-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.step-delay {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius-sm);
}

.step-preview {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-badges {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.step-badge {
    font-size: 0.65rem;
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius-sm);
    background: var(--glass-bg);
    color: var(--text-muted);
}

.step-badge.warning {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

/* Add Step Button */
.add-step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 1rem;
    width: calc(100% - 2rem);
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.add-step-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Sequence Settings */
.sequence-settings {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.setting-row input[type="checkbox"] {
    width: 40px;
    height: 20px;
    appearance: none;
    background: var(--glass-border);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
}

.setting-row input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: var(--transition-normal);
}

.setting-row input[type="checkbox"]:checked {
    background: var(--accent-primary);
}

.setting-row input[type="checkbox"]:checked::before {
    left: 22px;
}

/* Step Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.step-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.step-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.step-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.step-modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.step-modal-header h3 i {
    color: var(--accent-primary);
}

.step-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.step-modal-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Sequence Manager Popup */
.sequence-manager-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sequence-manager-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.sequence-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.sequence-manager-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sequence-manager-header h3 i {
    color: var(--accent-primary);
}

.sequence-manager-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.popup-sequence-toolbar {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.popup-sequence-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 400px;
}

.popup-sequence-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    margin: 0.25rem 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.popup-sequence-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.popup-sequence-card.inactive {
    opacity: 0.6;
}

.popup-sequence-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.popup-sequence-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.popup-sequence-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.popup-sequence-card i.bi-chevron-right {
    color: var(--text-muted);
}

/* Popup Builder */
#popupSequenceBuilder {
    flex-direction: column;
    height: 100%;
}

.popup-builder-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.popup-builder-header .sequence-name-input {
    flex: 1;
}

.popup-builder-actions {
    display: flex;
    gap: 0.5rem;
}

.popup-sequence-info-bar {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.popup-steps-timeline {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 300px;
}

.popup-sequence-settings {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

/* Channel Selector */
.channel-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.channel-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.channel-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.channel-btn.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Delay Input */
.delay-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delay-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Template Variables */
.template-variables {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.var-chip {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--accent-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: monospace;
}

.var-chip:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
}

.template-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toggle Row */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    cursor: pointer;
}

.toggle-row span {
    color: var(--text-secondary);
}

/* Button sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-icon:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

/* Danger button */
.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
}

/* Timezone Display in Table */
.timezone-cell {
    min-width: 140px;
}

.timezone-display {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.3;
}

.timezone-display .tz-datetime {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    white-space: nowrap;
}

.timezone-display .tz-full {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}
