/* ==================== GLOBAL STYLES ==================== */

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

:root {
    /* Calm business green + neutrals (Clover-inspired; overridden per-company in base.html) */
    --primary-color: #1fa463;
    --primary-dark: #157a3c;
    --secondary-color: #0f5f32;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --bg-color: #eef1f4;
    --card-bg: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E2E5E9;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 4px 14px rgba(15, 23, 42, 0.08);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.navbar {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

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

.card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ==================== FORMS ==================== */

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==================== LANDING PAGE ==================== */

.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.landing-content {
    text-align: center;
    color: white;
}

.landing-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.landing-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.portal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.portal-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.portal-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.portal-card p {
    color: var(--text-secondary);
}

/* ==================== AUTH PAGES ==================== */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==================== DASHBOARD ==================== */

.dashboard-header {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card.stat-pending {
    border-left-color: var(--warning-color);
}

.stat-card.stat-progress {
    border-left-color: var(--primary-color);
}

.stat-card.stat-completed {
    border-left-color: var(--secondary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

/* ==================== TABLES ==================== */

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

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

.table thead {
    background: var(--bg-color);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: background 0.2s;
}

.table tbody tr:hover {
    background: var(--bg-color);
}

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

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-in-progress {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-completed {
    background: #D1FAE5;
    color: #065F46;
}

.badge-high {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-medium {
    background: #FED7AA;
    color: #9A3412;
}

.badge-low {
    background: #E0E7FF;
    color: #3730A3;
}

/* ==================== ALERTS ==================== */

.alerts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--secondary-color);
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger-color);
}

/* ==================== TASK CARDS ==================== */

.tasks-grid {
    display: grid;
    gap: 1.5rem;
}

.task-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.task-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.task-card.priority-high {
    border-left-color: var(--danger-color);
}

.task-card.priority-medium {
    border-left-color: var(--warning-color);
}

.task-card.priority-low {
    border-left-color: var(--secondary-color);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.task-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.task-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.task-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

/* ==================== EMPLOYEE GRID ==================== */

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.employee-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.employee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.employee-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.employee-position {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.employee-department {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.employee-stats {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    justify-content: center;
}

.employee-stat {
    text-align: center;
}

.employee-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.employee-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* ==================== LOADING (CURSOR ONLY - NO MODAL) ==================== */
/* Modal loader disabled: we only use cursor to indicate loading. */

.loader-overlay {
    display: none !important; /* Never show overlay; loading is cursor-only */
}

/* When loading, show wait cursor on the whole page */
body.loading-cursor,
body.loading-cursor * {
    cursor: wait !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loader-container {
    text-align: center;
    background: var(--card-bg);
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(79, 70, 229, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(79, 70, 229, 0.1);
    border-top: 3px solid var(--primary-dark);
    border-radius: 50%;
    animation: spin 0.7s linear infinite reverse;
}

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

.loader-text {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Alternative loader styles for variety */
.loader-spinner.dots {
    width: auto;
    height: auto;
    border: none;
    display: flex;
    gap: 10px;
}

.loader-spinner.dots::before,
.loader-spinner.dots::after {
    content: '';
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
    position: static;
    transform: none;
}

.loader-spinner.dots::before {
    animation-delay: -0.32s;
}

.loader-spinner.dots::after {
    animation-delay: -0.16s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

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

@media (max-width: 768px) {
    .landing-title {
        font-size: 2.5rem;
    }
    
    .landing-subtitle {
        font-size: 1.2rem;
    }
    
    .portal-cards {
        grid-template-columns: 1fr;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .employee-grid {
        grid-template-columns: 1fr;
    }
    
    .task-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: start;
    }
    
    .loader-container {
        padding: 2rem 3rem;
    }
    
    .loader-spinner {
        width: 50px;
        height: 50px;
    }
}

/* ==================== LEAD MANAGEMENT ==================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.page-badges {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

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

.card-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.lead-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.lead-overview-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.lead-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lead-stat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.lead-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.lead-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--border-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.status-new { background: #94a3b8; }
.status-contacted { background: #38bdf8; }
.status-interested { background: #3b82f6; }
.status-nurture { background: #f59e0b; }
.status-qualified { background: #10b981; }
.status-proposal { background: #2563eb; }
.status-hot { background: #ef4444; }
.status-won { background: #22c55e; }
.status-lost { background: #64748b; }
.status-junk { background: #0f172a; }

.lead-filter-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    align-items: end;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 1.75rem;
}

.lead-filter-toolbar.compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.filter-field label,
.filter-search label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.filter-search {
    display: flex;
    flex-direction: column;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.leads-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
    gap: 1.5rem;
}

.lead-table-wrapper {
    overflow-x: auto;
}

.lead-table th,
.lead-table td {
    vertical-align: top;
    padding: 1rem;
}

.lead-title {
    font-weight: 600;
    color: var(--text-primary);
}

.lead-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.lead-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.lead-tag {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lead-source {
    font-weight: 600;
    color: var(--text-primary);
}

.lead-priority {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.priority-low { color: #0ea5e9; }
.priority-medium { color: #6366f1; }
.priority-high { color: #f97316; }
.priority-urgent { color: #ef4444; }

.lead-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-secondary { background: rgba(100, 116, 139, 0.12); color: #475569; }
.badge-info { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.badge-primary { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #0f766e; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #b91c1c; }
.badge-dark { background: rgba(15, 23, 42, 0.15); color: #0f172a; }

.badge-unassigned {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
}

.followup-date {
    font-weight: 600;
    color: var(--primary-color);
}

.muted {
    color: var(--text-secondary);
}

.lead-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-activity-item {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.7), rgba(255, 255, 255, 0.9));
}

.activity-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.activity-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
}

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

.activity-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

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

.lead-source-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lead-source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
}

.lead-source-count {
    padding: 0.25rem 0.55rem;
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary-color);
    font-size: 0.78rem;
}

.lead-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.summary-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
}

.summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.lead-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.lead-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.lead-action-grid.single {
    grid-template-columns: minmax(0, 1fr);
}

.lead-action-form {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.lead-action-form.secondary {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
}

.lead-action-form h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.inline-form {
    display: inline;
}

.converted-note {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    font-weight: 600;
}

.lead-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 480px;
    overflow-y: auto;
    padding: 1.25rem;
}

.history-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.history-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.history-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.history-note {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.history-tag {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
    font-size: 0.75rem;
}

.lead-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.lead-card {
    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lead-card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.lead-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.lead-card-body {
    padding: 0 1.5rem 1rem;
}

.lead-card-body dl {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.lead-card-body dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.lead-card-body dd {
    margin: 0.2rem 0 0;
    font-weight: 600;
    color: var(--text-primary);
}

.lead-card-footer {
    padding: 1.2rem 1.5rem 1.5rem;
}

.lead-form .card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    gap: 1.25rem;
}

.form-grid.two-column {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-grid.three-column {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.lead-priority-chip {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lead-assign-form .btn-block,
.lead-action-form .btn-block {
    width: 100%;
}

.lead-action-form.secondary .btn {
    background: var(--card-bg);
}

@media (max-width: 1080px) {
    .leads-layout-grid,
    .lead-detail-layout {
        grid-template-columns: 1fr;
    }

    .lead-aside {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .lead-filter-toolbar {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 540px) {
    .lead-card-body dl {
        grid-template-columns: 1fr;
    }
}

/* ==================== LEAD FORM ENHANCEMENTS ==================== */

.form-label.required::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

.top-fields {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.select-with-add {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.select-with-add .form-select {
    flex: 1;
}

.btn-add-field {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-add-field:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tags-section {
    margin-bottom: 1.5rem;
}

.tag-icon {
    margin-right: 0.5rem;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-badge button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.tag-badge button:hover {
    background: rgba(99, 102, 241, 0.2);
}

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

.input-with-suffix {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.input-with-suffix .form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.input-suffix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-grid.two-column {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .form-grid.two-column {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .select-with-add {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-field {
        width: 100%;
    }
}

/* ==================== LEAD METRICS DASHBOARD ==================== */

.lead-metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.metric-card.primary {
    border-left: 4px solid #3b82f6;
}

.metric-card.success {
    border-left: 4px solid #10b981;
}

.metric-card.warning {
    border-left: 4px solid #f59e0b;
}

.metric-card.info {
    border-left: 4px solid #8b5cf6;
}

.metric-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.metric-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.lead-stat-value-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ==================== BULK ACTIONS ==================== */

.bulk-actions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.bulk-actions-info {
    font-weight: 600;
    font-size: 1rem;
}

.bulk-actions-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.bulk-actions-buttons .form-select {
    background: white;
    color: var(--text-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.bulk-actions-buttons .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.lead-checkbox {
    cursor: pointer;
}

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

.checkbox-inline input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* ==================== EMPLOYEE PERFORMANCE ==================== */

.employee-performance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.perf-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

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

.perf-header strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.perf-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.perf-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    align-items: center;
}

.perf-rate {
    font-weight: 600;
    color: #10b981;
}

/* ==================== ENHANCED SOURCE PERFORMANCE ==================== */

.lead-source-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.lead-source-item:hover {
    background: #f8f9fa;
}

.lead-source-item:last-child {
    border-bottom: none;
}

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

.source-header span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.lead-source-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.source-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.source-rate {
    font-weight: 600;
    color: #10b981;
}

.lead-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.badge-unassigned {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lead-table th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 1rem 0.75rem;
}

.lead-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.lead-table tbody tr {
    transition: background 0.2s;
}

.lead-table tbody tr:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .lead-metrics-dashboard {
        grid-template-columns: 1fr;
    }
    
    .bulk-actions-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bulk-actions-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .bulk-actions-buttons .form-select,
    .bulk-actions-buttons .btn {
        width: 100%;
    }
}

/* ==================== HOMEPAGE ==================== */

body.homepage {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f7ff 35%, #ffffff 100%);
    color: var(--text-primary);
}

.homepage main {
    background: transparent;
}

.home-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.home-container {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 1.25rem 0;
}

.home-header .home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.home-logo {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.home-logo span {
    color: var(--secondary-color);
}

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.home-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.home-nav-links a:hover {
    color: var(--primary-color);
}

.home-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

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

.btn-ghost {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
}

.btn-ghost:hover {
    background: rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.9rem 2.4rem;
    font-size: 1.05rem;
}

.home-hero {
    padding: 6rem 0 4rem;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: center;
}

.home-hero-text h1 {
    font-size: clamp(2.5rem, 3.2vw + 1rem, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #0f172a;
}

.home-hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 34rem;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    margin-bottom: 1.5rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-hero-actions .btn {
    min-width: 200px;
}

.home-hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.home-hero-meta strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.home-hero-meta span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.home-hero-card {
    background: linear-gradient(160deg, #ffffff 30%, #eef2ff 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px -40px rgba(79, 70, 229, 0.45);
    border: 1px solid rgba(79, 70, 229, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.home-hero-card-header h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.home-hero-card-header p {
    color: var(--text-secondary);
}

.home-hero-dashboard {
    display: grid;
    gap: 1.5rem;
}

.home-hero-metric {
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-top: 0.35rem;
}

.metric-trend {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.metric-trend.positive {
    color: var(--secondary-color);
}

.metric-trend.neutral {
    color: var(--primary-color);
}

.home-hero-footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.home-hero-avatars {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.avatar.more {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
}

.home-partners {
    padding: 2.5rem 0;
}

.home-partners-grid {
    display: grid;
    gap: 1.5rem;
    text-align: center;
}

.home-partners p {
    color: var(--text-secondary);
    font-weight: 500;
}

.home-partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.home-section {
    padding: 5rem 0;
}

.home-section-heading {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}

.home-section-eyebrow {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
}

.home-section-heading h2 {
    font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
    margin-bottom: 1rem;
    color: #0f172a;
}

.home-section-heading p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.home-feature-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 25px 50px -40px rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-feature-card h3 {
    font-size: 1.4rem;
    color: #1e1b4b;
}

.home-feature-card p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.home-feature-card ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.home-feature-card li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
}

.home-feature-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.home-metrics {
    padding: 3.5rem 0;
}

.home-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.home-metric {
    background: white;
    border-radius: 18px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 15px 30px -25px rgba(79, 70, 229, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.home-metric-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.home-metric-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.home-showcase {
    padding: 4.5rem 0;
}

.home-showcase-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-showcase-card {
    background: linear-gradient(165deg, #312e81, #4338ca);
    color: white;
    padding: 2.5rem;
    border-radius: 22px;
    box-shadow: 0 40px 60px -40px rgba(55, 48, 163, 0.7);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-showcase-card p {
    color: rgba(229, 231, 235, 0.85);
    line-height: 1.7;
}

.home-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-showcase-tags span {
    display: inline-flex;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-pricing {
    background: linear-gradient(160deg, rgba(79, 70, 229, 0.07), rgba(196, 181, 253, 0.05));
}

.home-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.home-pricing-card {
    background: white;
    border-radius: 24px;
    padding: 2.75rem 2.25rem;
    box-shadow: 0 35px 60px -45px rgba(79, 70, 229, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-pricing-card.featured {
    border: 2px solid rgba(79, 70, 229, 0.35);
    transform: translateY(-10px);
}

.home-pricing-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary-color);
}

.home-pricing-price {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.home-pricing-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.home-pricing-desc {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.home-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.home-pricing-card li {
    padding-left: 1.4rem;
    position: relative;
    color: var(--text-primary);
}

.home-pricing-card li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.85rem;
    top: 0.1rem;
}

.home-testimonials {
    padding: 4.5rem 0;
}

.home-testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -45px rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.home-testimonial-card p {
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.8;
}

.home-testimonial-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-testimonial-meta span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.home-faq {
    padding: 4.5rem 0;
}

.home-faq-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-faq-intro h2 {
    margin-bottom: 1rem;
}

.home-faq-intro p {
    color: var(--text-secondary);
}

.home-faq-intro a {
    color: var(--primary-color);
    text-decoration: none;
}

.home-faq-intro a:hover {
    text-decoration: underline;
}

.home-faq-items {
    display: grid;
    gap: 1rem;
}

.home-faq-items details {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 40px -45px rgba(15, 23, 42, 0.35);
}

.home-faq-items summary {
    font-weight: 600;
    cursor: pointer;
    color: #111827;
}

.home-faq-items p {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.home-cta {
    padding: 5rem 0 6rem;
}

.home-cta-card {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    border-radius: 28px;
    padding: clamp(2rem, 2vw + 1.5rem, 3.5rem);
    box-shadow: 0 40px 60px -45px rgba(67, 56, 202, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.home-cta-text h2 {
    font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
    margin-bottom: 1rem;
}

.home-cta-text p {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-footer {
    background: #0f172a;
    color: rgba(226, 232, 240, 0.9);
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

.home-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.home-footer-grid p {
    color: rgba(226, 232, 240, 0.7);
    margin-top: 1rem;
}

.home-footer-grid h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.home-footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.home-footer-grid a {
    color: rgba(226, 232, 240, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
}

.home-footer-grid a:hover {
    color: white;
}

.home-footer-contact li {
    font-size: 0.95rem;
}

.home-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.home-footer-social a {
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.home-footer-social a:hover {
    color: white;
}

.footer-logo {
    color: white;
}

.home-footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.home-footer-links {
    display: flex;
    gap: 1.5rem;
}

.home-footer-links a {
    color: rgba(226, 232, 240, 0.7);
    text-decoration: none;
}

.home-footer-links a:hover {
    color: white;
}

.home-review-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.home-review-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-demo-cta {
    padding: 2rem 0 3rem;
}

.home-demo-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.08), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 24px;
    padding: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}

.home-demo-text h2 {
    font-size: clamp(1.5rem, 1.8vw + 1rem, 2.2rem);
    margin: 0.5rem 0 0.75rem;
}

.home-demo-text p {
    max-width: 38rem;
    color: var(--text-secondary);
}

.home-demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-integrations {
    padding: 3rem 0;
}

.home-integrations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.home-integration-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.35);
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.home-trust {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.6), rgba(255, 255, 255, 0));
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.home-trust-badge {
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 20px 40px -40px rgba(15, 23, 42, 0.35);
}

.home-trust-badge strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #111827;
}

.home-trust-badge span {
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.95rem;
}

.home-trust-link {
    margin-top: 1.5rem;
    text-align: center;
}

.home-trust-link a {
    color: #4338ca;
    font-weight: 600;
    text-decoration: none;
}

.home-roi {
    padding: 4rem 0;
}

.home-roi-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 420px);
    gap: 2rem;
    align-items: start;
}

.home-roi-calculator {
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 24px 48px -40px rgba(15, 23, 42, 0.4);
}

.home-roi-calculator label {
    display: block;
    margin: 1rem 0 0.35rem;
    font-weight: 600;
    color: #111827;
}

.home-roi-calculator input[type="range"] {
    width: 100%;
}

.home-roi-calculator output {
    display: inline-block;
    margin-top: 0.35rem;
    font-weight: 700;
    color: #4338ca;
}

.home-roi-result {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.home-roi-result-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.home-roi-result-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4338ca;
    line-height: 1.1;
    margin: 0.35rem 0;
}

.home-roi-result-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.home-compare-links {
    padding: 3rem 0;
}

.home-compare-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.home-compare-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-compare-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -35px rgba(67, 56, 202, 0.45);
}

.home-compare-link-card strong {
    color: #111827;
}

.home-compare-link-card span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.home-early-access {
    padding: 2rem 0 3rem;
}

.home-early-access-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: #0f172a;
    color: white;
    border-radius: 24px;
    padding: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}

.home-early-access-card p {
    max-width: 40rem;
    color: rgba(226, 232, 240, 0.82);
    margin-top: 0.75rem;
}

.home-legal {
    max-width: 760px;
    padding: 6rem 0 4rem;
}

.home-legal h1 {
    font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem);
    margin-bottom: 0.75rem;
}

.home-legal h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.home-legal p,
.home-legal li {
    color: var(--text-secondary);
    line-height: 1.7;
}

.home-legal-updated {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.home-compare-intro {
    color: var(--text-secondary);
    max-width: 44rem;
    margin-bottom: 2rem;
}

.home-compare-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.home-compare-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.home-compare-label {
    font-weight: 700;
    color: #111827;
}

.home-compare-us {
    color: #4338ca;
    font-weight: 600;
}

.home-compare-them {
    color: var(--text-secondary);
}

.home-compare-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-compare-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.home-compare-note a {
    color: #4338ca;
}

@media (max-width: 960px) {
    .home-nav-links {
        display: none;
    }

    .home-header .home-container {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .home-roi-grid {
        grid-template-columns: 1fr;
    }

    .home-compare-row {
        grid-template-columns: 1fr;
    }

    .home-hero {
        padding-top: 4.5rem;
    }

    .home-hero-card {
        padding: 2rem;
    }

    .home-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .btn-large {
        width: 100%;
        text-align: center;
    }

    .home-hero-meta {
        grid-template-columns: 1fr;
    }

    .home-header .home-container {
        padding: 1rem 0;
    }
}

