/* --- PREMIUM HUMAN-CRAFTED SaaS LAYOUT SYSTEM --- */
@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-main: #050814;
    --bg-gradient: radial-gradient(circle at 50% 0%, #0e162e 0%, #050814 100%);
    
    --panel-bg: rgba(13, 19, 33, 0.45);
    --panel-border: rgba(255, 255, 255, 0.04);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    
    --brand-blue: #f59e0b;
    --brand-blue-hover: #d97706;
    --brand-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --color-valid: #10b981;
    --color-valid-bg: rgba(16, 185, 129, 0.06);
    --color-valid-border: rgba(16, 185, 129, 0.15);
    
    --color-invalid: #ef4444;
    --color-invalid-bg: rgba(239, 68, 68, 0.06);
    --color-invalid-border: rgba(239, 68, 68, 0.15);
    
    --color-uncertain: #f59e0b;
    --color-uncertain-bg: rgba(245, 158, 11, 0.06);
    --color-uncertain-border: rgba(245, 158, 11, 0.15);
    
    --font-heading: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    --sidebar-width: 260px;
    --transition-smooth: all 0.2s ease-out;
}

/* --- BASE RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
}

*::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}

body {
    background-color: var(--bg-main);
    background-image: var(--bg-gradient);
    font-family: var(--font-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Subtly lit ambient background glows - extremely clean */
body::before {
    content: "";
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    pointer-events: none;
    z-index: -1;
}

/* --- AMBIENT FLOATING ORBS (Dashboard Background) --- */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(80px);
    will-change: transform;
    mix-blend-mode: screen;
}

.ambient-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.06) 40%, transparent 70%);
    top: -5%;
    right: -5%;
    animation: floatOrb1 14s ease-in-out infinite;
}

.ambient-orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, rgba(217, 119, 6, 0.04) 40%, transparent 70%);
    bottom: 5%;
    left: 15%;
    animation: floatOrb2 18s ease-in-out infinite;
}

.ambient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.10) 0%, transparent 65%);
    top: 40%;
    left: 40%;
    animation: floatOrb3 22s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33%       { transform: translate(-50px, 40px) scale(1.08); }
    66%       { transform: translate(30px, -45px) scale(0.94); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    40%       { transform: translate(45px, -30px) scale(1.06); }
    70%       { transform: translate(-35px, 25px) scale(0.96); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    50%       { transform: translate(-25px, 35px) scale(1.04); }
}

/* --- LAYOUT STRUCTURE --- */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* --- LEFT MINIMAL SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background: #090e1a;
    border-right: 1px solid var(--panel-border);
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition-smooth);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--brand-blue);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.1rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: white;
}

.logo-text span {
    color: #3b82f6;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.nav-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    text-align: left;
}

.nav-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.025);
}

.nav-btn.active {
    color: white;
    background: rgba(245, 158, 11, 0.10);
    border-left: 3px solid #f59e0b;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-weight: 600;
    position: relative;
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.05);
    animation: navActiveGlow 2.5s ease-in-out infinite;
}

@keyframes navActiveGlow {
    0%, 100% { background: rgba(245, 158, 11, 0.08); box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.04); }
    50%       { background: rgba(245, 158, 11, 0.16); box-shadow: inset 0 0 25px rgba(245, 158, 11, 0.10); }
}

/* User Credits Widget */
.sidebar-credits {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--panel-border);
    padding: 1.15rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.credits-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.credits-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.credits-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
}

.credits-bar-fill {
    height: 100%;
    background: var(--brand-blue);
    border-radius: 10px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.credits-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: barShine 2.5s ease-in-out infinite;
}

@keyframes barShine {
    0%   { left: -100%; }
    60%, 100% { left: 150%; }
}

.upgrade-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}

.upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

/* --- MAIN WINDOW --- */
.main-window {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    min-width: 0;
    position: relative;
    z-index: 10;
}

/* --- ENTERPRISE HEADER --- */
.enterprise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
}

.header-meta h1 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: white;
}

.header-meta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* --- STATS GRID SYSTEM --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.15rem;
}

.stat-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    padding: 1.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    animation: statCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat-card:nth-child(1) { animation-delay: 50ms; }
.stat-card:nth-child(2) { animation-delay: 150ms; }
.stat-card:nth-child(3) { animation-delay: 250ms; }
.stat-card:nth-child(4) { animation-delay: 350ms; }

@keyframes statCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.stat-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.08), 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-3px);
    transition: all 0.2s ease-out;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stat-icon.green { color: var(--color-valid); }
.stat-icon.red { color: var(--color-invalid); }
.stat-icon.purple { color: #818cf8; }

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

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
}

/* --- MINIMAL PANEL CONTAINER --- */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    padding: 1.75rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Shimmer sweep on glass panels when they first appear */
.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgba(245, 158, 11, 0.08) 45%,
        rgba(255, 215, 100, 0.12) 50%,
        rgba(245, 158, 11, 0.08) 55%,
        transparent 80%
    );
    pointer-events: none;
    animation: panelShimmer 1.8s ease-in-out forwards;
    animation-delay: 0.3s;
    z-index: 2;
}

@keyframes panelShimmer {
    0%   { left: -200%; opacity: 0; }
    10%  { opacity: 1; }
    100% { left: 200%; opacity: 0; }
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.panel-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.grid-two-cols {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .grid-two-cols {
        grid-template-columns: 1fr;
    }
}

/* --- TABS SYSTEM --- */
.tab-content {
    display: none;
    animation: tabFadeIn 0.35s ease-out forwards;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- TABLE ROW STAGGER ANIMATION --- */
.leads-table tbody tr {
    opacity: 0;
    animation: rowSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rowSlideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- FILE UPLOAD DRAG-ZONE --- */
.drop-zone {
    border-radius: 12px;
    padding: 2.75rem 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: rgba(245, 158, 11, 0.02);
    border: 2px dashed rgba(245, 158, 11, 0.25);
    animation: borderDance 3s linear infinite;
    transition: all 0.25s ease;
}

@keyframes borderDance {
    0%   { border-color: rgba(245, 158, 11, 0.20); }
    25%  { border-color: rgba(245, 158, 11, 0.45); }
    50%  { border-color: rgba(245, 158, 11, 0.20); }
    75%  { border-color: rgba(245, 158, 11, 0.45); }
    100% { border-color: rgba(245, 158, 11, 0.20); }
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.015);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.cloud-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.drop-zone-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.drop-zone-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.file-limits {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.file-selected-msg {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #a7f3d0;
}

.clear-file-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.clear-file-btn:hover {
    color: var(--color-invalid);
}

/* Manual leads area separator */
.text-area-divider {
    text-align: center;
    position: relative;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.text-area-divider::before, .text-area-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 36%;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
}

.text-area-divider::before { left: 0; }
.text-area-divider::after { right: 0; }

.manual-textarea {
    width: 100%;
    height: 100px;
    background: rgba(5, 8, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.75rem;
    color: white;
    font-family: var(--font-code);
    font-size: 0.82rem;
    resize: none;
    outline: none;
    transition: var(--transition-smooth);
}

.manual-textarea:focus {
    border-color: var(--brand-blue);
    background: rgba(5, 8, 15, 0.6);
}

/* Accordion controls settings */
.accordion-header {
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid var(--panel-border);
    padding: 0.85rem 1.15rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
    color: white;
}

.accordion-header i {
    transition: var(--transition-smooth);
}

.accordion-header.active i {
    transform: rotate(180deg);
    color: var(--brand-blue);
}

.settings-form {
    display: none;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.15rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: 0.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#app-workspace input[type="text"], 
#app-workspace input[type="email"], 
#app-workspace input[type="number"], 
#app-workspace input[type="password"], 
#app-workspace textarea, 
#app-workspace select {
    background: rgba(5, 8, 15, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 0.7rem 0.85rem !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 0.85rem !important;
    outline: none !important;
    transition: var(--transition-smooth) !important;
}

#app-workspace input[type="text"]:focus, 
#app-workspace input[type="email"]:focus, 
#app-workspace input[type="number"]:focus, 
#app-workspace input[type="password"]:focus, 
#app-workspace textarea:focus, 
#app-workspace select:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
}

.form-group.flex-row {
    flex-direction: row;
    align-items: center;
    padding: 0.2rem 0;
}

/* Checkbox alignment */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 1.75rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--brand-blue);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- BUTTONS --- */
.primary-btn {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.primary-btn:hover {
    background: var(--brand-blue-hover);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
    padding: 0.7rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 6px;
}

/* --- PROGRESS BLOCK --- */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pulse-badge {
    background: rgba(37, 99, 235, 0.05);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--brand-blue);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.detailed-counters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.counter-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.82rem;
}

.counter-item .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.counter-item.valid .indicator { background: var(--color-valid); }
.counter-item.bounce .indicator { background: var(--color-invalid); }
.counter-item.uncertain .indicator { background: var(--color-uncertain); }

.counter-item .label {
    color: var(--text-secondary);
    flex-grow: 1;
}

.counter-item .value {
    font-weight: 700;
    color: white;
}

.no-active-task {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2.5rem 1rem;
    text-align: center;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.placeholder-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.placeholder-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 260px;
}

/* --- CLAY / STRIPE STYLE DATA TABLES --- */
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.table-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-title h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
}

.records-found {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.1);
    color: var(--color-valid);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.table-search {
    background: rgba(5, 8, 15, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    width: 200px !important;
    color: white !important;
    outline: none !important;
}

.table-search:focus {
    border-color: var(--brand-blue) !important;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin-top: 0.25rem;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: rgba(13, 19, 33, 0.2);
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table th {
    padding: 0.8rem 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leads-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: white;
    font-size: 0.82rem;
    transition: var(--transition-smooth);
}

.leads-table tr:last-child td {
    border-bottom: none;
}

.leads-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.margin-top {
    margin-top: 1.25rem;
}

/* --- BADGES RECTANGLES --- */
.status-pill {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pill.valid {
    background: var(--color-valid-bg);
    color: var(--color-valid);
    border: 1px solid var(--color-valid-border);
}

.status-pill.invalid {
    background: var(--color-invalid-bg);
    color: var(--color-invalid);
    border: 1px solid var(--color-invalid-border);
}

.status-pill.uncertain {
    background: var(--color-uncertain-bg);
    color: var(--color-uncertain);
    border: 1px solid var(--color-uncertain-border);
}

.status-pill.free {
    background: rgba(6, 182, 212, 0.03);
    color: var(--brand-cyan);
    border: 1px solid rgba(6, 182, 212, 0.12);
}

/* --- TERMINAL WINDOWS --- */
.smtp-handshake-wrapper {
    background: #03050a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.25rem;
}

.result-status-banner {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-status-banner h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}

#single-status-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.01);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
}

.terminal-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.35rem;
}

.terminal-header .dot.red { background: #ef4444; }
.terminal-header .dot.yellow { background: #f59e0b; }
.terminal-header .dot.green { background: #10b981; }

.terminal-title {
    font-family: var(--font-code);
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-left: 0.35rem;
}

.terminal-body {
    padding: 1.15rem;
    font-family: var(--font-code);
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 240px;
    overflow-y: auto;
    background: #020307;
}

.terminal-body p { margin: 0; line-height: 1.5; }
.terminal-body .sys { color: var(--brand-purple); }
.terminal-body .tx { color: var(--brand-cyan); }
.terminal-body .rx { color: var(--text-secondary); }
.terminal-body .rx.success { color: var(--color-valid); }
.terminal-body .rx.fail { color: var(--color-invalid); }

/* --- TRUST PANELS --- */
.trust-shield-card {
    background: linear-gradient(135deg, rgba(37,99,235,0.01) 0%, rgba(139,92,246,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    position: relative;
    overflow: hidden;
}

.shield-icon {
    font-size: 2.2rem;
    color: var(--brand-blue);
}

.trust-badge-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--brand-blue);
    letter-spacing: 0.5px;
}

.trust-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.trust-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* --- DEVELOPER INTEGRATION PANELS --- */
.api-key-box {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--panel-border);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.api-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--brand-blue);
    letter-spacing: 0.5px;
}

.key-field {
    display: flex;
    gap: 0.5rem;
}

.key-field input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 0 !important;
    font-family: var(--font-code) !important;
    font-size: 0.85rem !important;
    box-shadow: none !important;
}

.key-btn {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.key-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.api-endpoint-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--panel-border);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    gap: 0.65rem;
}

.http-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
}

.http-badge.post { background: rgba(37, 99, 235, 0.08); color: #93c5fd; }

.endpoint-url {
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: white;
}

.api-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.api-code-snippet {
    background: #020306;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    max-height: 320px;
    padding: 1rem;
    overflow-y: auto;
    font-size: 0.78rem;
}

.api-code-snippet .keyword { color: #f43f5e; }
.api-code-snippet .string { color: #10b981; }
.api-code-snippet .comment { color: #64748b; }

/* --- VPS DIAGNOSTICS CARD --- */
.node-card {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border-color: rgba(245, 158, 11, 0.06);
}

.node-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #d97706, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.node-card:hover {
    border-color: rgba(245, 158, 11, 0.18);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.06);
}

.node-card:hover::before {
    opacity: 1;
}

.node-card-hostname {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    display: inline-block;
    margin-top: 0.25rem;
}

.vps-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--panel-border);
    letter-spacing: 0.01em;
}

.vps-badge.status-conn { background: rgba(255,255,255,0.015); color: var(--text-secondary); }
.vps-badge.status-port25 { background: rgba(255,255,255,0.015); color: var(--text-secondary); }

.diag-action-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
}

.diag-action-btn:hover {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
}

.diag-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.diagnostics-checks-list {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0 0.5rem;
    margin-top: 0.25rem;
}

.vps-tutorial-box {
    background: rgba(245, 158, 11, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.12);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.vps-tutorial-box h4 {
    font-family: var(--font-heading);
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.vps-tutorial-box p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.vps-tutorial-box ol {
    margin-left: 1.15rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* --- FOOTER LAYOUT --- */
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1rem;
    margin-top: auto;
}

.sys-time {
    font-family: var(--font-code);
}

/* History buttons */
.download-past-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: #93c5fd;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-smooth);
}
.download-past-btn:hover {
    background: var(--brand-blue);
    color: white;
}

.delete-past-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

/* Responsive sidebars */
@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        box-shadow: 20px 0 40px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .sidebar.mobile-active {
        transform: translateX(0);
    }
    
    .main-window {
        margin-left: 0;
        padding: 1.5rem;
    }
}

/* Accordion Active panel toggle */
.settings-form.active {
    display: flex;
}

/* Single validator input row formatting */
.single-input-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.single-input-row input {
    flex: 1;
    min-width: 0;
}

.single-input-row button {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .single-input-row {
        flex-direction: column;
    }
}

/* Width constraint helpers */
.max-width-600 {
    max-width: 600px;
    width: 100%;
}

/* Toast Notifications Container & Items */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: rgba(13, 20, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    opacity: 0;
    min-width: 250px;
    max-width: 320px;
    animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOutToast 0.35s ease 3.3s forwards;
    transition: transform 0.2s, opacity 0.2s;
}

.toast-item.valid i { color: var(--color-valid); }
.toast-item.invalid i { color: var(--color-invalid); }
.toast-item.uncertain i { color: var(--color-uncertain); }

@keyframes slideInToast {
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
    to { opacity: 0; transform: translateY(-12px); pointer-events: none; }
}

/* Pulse drag over animation for list uploader */
@keyframes dropZonePulse {
    0%   { border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    50%  { border-color: rgba(245, 158, 11, 0.8); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.drop-zone.dragover {
    animation: dropZonePulse 1.2s infinite ease-in-out !important;
    transform: scale(0.998);
    background: rgba(245, 158, 11, 0.05) !important;
}

/* --- DIAGNOSTICS RUNNING RING ANIMATION --- */
.node-card.running-diag {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.15), 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
    animation: diagCardPulse 1s ease-in-out infinite !important;
}

@keyframes diagCardPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.10); }
    50%       { box-shadow: 0 0 40px rgba(245, 158, 11, 0.25), 0 0 0 2px rgba(245, 158, 11, 0.15); }
}

/* --- REDUCE MOTION ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
    .ambient-orb,
    .stat-card,
    .glass-panel::after,
    .nav-btn.active,
    .credits-bar-fill::after,
    .drop-zone,
    .node-card.running-diag {
        animation: none !important;
    }
    .stat-card {
        opacity: 1;
        transform: none;
    }
}

