﻿:root {
    --primary-violet: #7c3aed;
    --primary-violet-dark: #6d28d9;
    --accent-cyan: #22d3ee;
    --accent-emerald: #10b981;
    --surface-light: #fafbfc;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-subtle: rgba(229, 231, 235, 0.6);
    --shadow-soft: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.06);
    --shadow-elevated: 0 8px 40px rgba(0,0,0,0.12);
    --radius-lg: 16px;
    --radius-xl: 24px;
    --forge-orange: #f97316;
    --forge-amber: #f59e0b;
    --forge-rose: #f43f5e;
    --surface-dark: #0f172a;
    --surface-darker: #020617;
    --hive-teal: #14b8a6;
    --hive-teal-dark: #0d9488;
    --hive-emerald: #10b981;
    --hive-amber: #f59e0b;
    --hive-sky: #0ea5e9;
    --hive-cyan: #06b6d4;
    --refinery-purple: #9333ea;
    --refinery-purple-dark: #7e22ce;
    --refinery-indigo: #6366f1;
    --refinery-rose: #f43f5e;
    --refinery-pink: #ec4899;
    --refinery-violet: #8b5cf6;
}
.page-wrapper {
    min-height: 100vh;
    background: radial-gradient(ellipse at 0% 0%, rgba(124, 58, 237, 0.03) 0%, transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(34, 211, 238, 0.03) 0%, transparent 50%), linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
}
.page-header {
    position: relative;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    overflow: hidden;
}
    .page-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-violet), var(--accent-cyan), var(--accent-emerald));
        opacity: 0.8;
    }
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.header-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-violet), var(--accent-cyan));
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
    font-weight: 400;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-elevated);
    }
.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card.primary .stat-value {
    background: linear-gradient(135deg, var(--primary-violet), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.table-container {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.table-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-light);
}

.table-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
    .table-title .badge {
        background: linear-gradient(135deg, var(--primary-violet), var(--accent-cyan));
        color: white;
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
        border-radius: 20px;
        font-weight: 500;
    }
.modal-modern .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}
.modal-modern .modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(244, 63, 94, 0.02));
}
.modal-modern .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.modal-icon-danger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(244, 63, 94, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.25rem;
}
.modal-modern .modal-body {
    padding: 2rem 1.75rem;
}
    .modal-modern .modal-body p {
        margin: 0;
        color: var(--text-secondary);
        font-size: 1rem;
        line-height: 1.6;
    }
        .modal-modern .modal-body p + p {
            margin-top: 0.75rem;
        }
        .modal-modern .modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-subtle);
    gap: 0.75rem;
}
.btn-modal-cancel {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: white;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
    .btn-modal-cancel:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }
.btn-modal-delete {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
    .btn-modal-delete:hover {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }
    .btn-modal-delete:active {
        transform: translateY(0) scale(0.98);
    }
@media (max-width: 768px) {
    .page-wrapper {
        padding: 1rem;
    }
    .page-header {
        padding: 1.25rem 1.5rem;
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-title {
        font-size: 1.375rem;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.forge-container {
    max-width: 900px;
    margin: 0 auto;
}
.forge-hero {
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
}
    .forge-hero::before {
        content: "";
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
        pointer-events: none;
        z-index: -1;
    }
.forge-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--forge-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
    .forge-badge i {
        font-size: 0.875rem;
    }
.forge-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    line-height: 1.1;
}
    .forge-title span {
        background: linear-gradient(135deg, var(--forge-orange), var(--forge-amber));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
.forge-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}
.creator-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 2rem;
}
.creator-card-header {
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.03), rgba(245, 158, 11, 0.02));
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
    .creator-card-header i {
        font-size: 1.25rem;
        color: var(--forge-orange);
    }
    .creator-card-header h2 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
    }
.creator-card-body {
    padding: 1.75rem;
}
.form-group {
    margin-bottom: 1.5rem;
}

    .form-group:last-child {
        margin-bottom: 0;
    }

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

    .form-label i {
        color: var(--text-muted);
        font-size: 1rem;
    }

    .form-label .optional {
        font-weight: 400;
        color: var(--text-muted);
        font-size: 0.8125rem;
    }

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .form-input:focus {
        outline: none;
        border-color: var(--forge-orange);
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    }

    .form-input::placeholder {
        color: var(--text-muted);
    }
.prompt-textarea {
    width: 100%;
    min-height: 140px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(to bottom, #fafbfc, white);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    resize: vertical;
    transition: all 0.25s ease;
    font-family: inherit;
}

    .prompt-textarea:focus {
        outline: none;
        border-color: var(--forge-orange);
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1), 0 4px 20px rgba(249, 115, 22, 0.08);
        background: white;
    }

    .prompt-textarea::placeholder {
        color: var(--text-muted);
    }

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.page-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.page-type-option {
    position: relative;
}

    .page-type-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .page-type-option label {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1.25rem 1rem;
        background: white;
        border: 2px solid var(--border-subtle);
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.25s ease;
        text-align: center;
    }
        .page-type-option label:hover {
            border-color: rgba(249, 115, 22, 0.3);
            background: rgba(249, 115, 22, 0.02);
        }
    .page-type-option input:checked + label {
        border-color: var(--forge-orange);
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(245, 158, 11, 0.04));
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    }
        .page-type-option input:checked + label .page-type-icon {
            background: linear-gradient(135deg, var(--forge-orange), var(--forge-amber));
            color: white;
            transform: scale(1.05);
        }
.page-type-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface-light);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.25s ease;
}

.page-type-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}
.chips-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.chips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.chips-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .chips-title i {
        color: var(--forge-orange);
    }

.chips-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.field-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

    .field-chip:hover {
        border-color: var(--primary-violet);
        color: var(--primary-violet);
    }

    .field-chip.selected {
        background: linear-gradient(135deg, var(--primary-violet), #8b5cf6);
        border-color: var(--primary-violet);
        color: white;
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    }

        .field-chip.selected:hover {
            background: linear-gradient(135deg, #6d28d9, #7c3aed);
            color: white;
        }

    .field-chip i {
        font-size: 0.75rem;
        transition: transform 0.2s ease;
    }

    .field-chip.selected i {
        transform: rotate(45deg);
    }
.custom-field-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.custom-field-input {
    flex: 1;
    max-width: 200px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    border: 1px dashed var(--border-subtle);
    border-radius: 50px;
    background: white;
    transition: all 0.2s ease;
}

    .custom-field-input:focus {
        outline: none;
        border-style: solid;
        border-color: var(--primary-violet);
    }

.add-field-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .add-field-btn:hover {
        border-color: var(--primary-violet);
        color: var(--primary-violet);
        background: rgba(124, 58, 237, 0.05);
    }
.enhancements-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .enhancements-row {
        grid-template-columns: 1fr;
    }
}

.enhancement-box {
    padding: 1.25rem;
    background: var(--surface-light);
    border: 1px dashed var(--border-subtle);
    border-radius: 14px;
    transition: all 0.25s ease;
}

    .enhancement-box:hover {
        border-style: solid;
        border-color: rgba(124, 58, 237, 0.3);
    }

    .enhancement-box.has-content {
        border-style: solid;
        border-color: var(--accent-emerald);
        background: rgba(16, 185, 129, 0.03);
    }

.enhancement-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.enhancement-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: white;
    color: var(--primary-violet);
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.enhancement-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.enhancement-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.enhancement-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

    .enhancement-input:focus {
        outline: none;
        border-color: var(--primary-violet);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
    }

/* Logo upload */
.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-preview {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: white;
    border: 2px dashed var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

    .logo-preview.has-logo {
        border-style: solid;
        border-color: var(--accent-emerald);
    }

    .logo-preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.logo-upload-btn {
    flex: 1;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-violet);
    background: white;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .upload-btn:hover {
        background: rgba(124, 58, 237, 0.05);
        border-color: var(--primary-violet);
    }

    .upload-btn input {
        display: none;
    }
.submit-section {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(to top, rgba(249, 115, 22, 0.03), transparent);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.submit-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

    .submit-info i {
        color: var(--accent-emerald);
    }
.tips-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(34, 211, 238, 0.03));
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-violet);
    margin-bottom: 0.75rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

    .tips-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.625rem;
        font-size: 0.8125rem;
        color: var(--text-secondary);
        line-height: 1.5;
    }

        .tips-list li i {
            color: var(--accent-emerald);
            margin-top: 0.125rem;
            flex-shrink: 0;
        }
@media (max-width: 640px) {
    .forge-hero {
        padding: 2rem 1rem 1.5rem;
    }

    .forge-title {
        font-size: 2rem;
    }

    .forge-subtitle {
        font-size: 1rem;
    }

    .creator-card-body {
        padding: 1.25rem;
    }

    .submit-section {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-info {
        justify-content: center;
    }

    .btn-forge {
        justify-content: center;
    }

    .page-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--surface-light);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

    .progress-step i {
        font-size: 0.875rem;
    }

    .progress-step.active {
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(245, 158, 11, 0.1));
        color: var(--forge-orange);
    }

        .progress-step.active i {
            color: var(--forge-orange);
        }

    .progress-step.complete {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
        color: var(--accent-emerald);
    }

        .progress-step.complete i {
            color: var(--accent-emerald);
        }

.preview-container {
    border-bottom: 1px solid var(--border-subtle);
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--surface-light);
    border-bottom: 1px solid var(--border-subtle);
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

    .preview-title i {
        color: var(--primary-violet);
    }

.preview-actions {
    display: flex;
    gap: 0.5rem;
}

.preview-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .preview-action-btn:hover {
        border-color: var(--primary-violet);
        color: var(--primary-violet);
        background: rgba(124, 58, 237, 0.05);
    }

.preview-frame-wrapper {
    background: #f1f5f9;
    padding: 1rem;
}

.preview-frame {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.edit-section {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02), rgba(34, 211, 238, 0.02));
    border-bottom: 1px solid var(--border-subtle);
}

.edit-prompt-wrapper {
    display: flex;
    gap: 0.75rem;
}

.edit-prompt-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
}

    .edit-prompt-input:focus {
        outline: none;
        border-color: var(--primary-violet);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }

.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-violet);
    background: white;
    border: 2px solid var(--primary-violet);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-edit:hover {
        background: var(--primary-violet);
        color: white;
    }
.result-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.result-actions-right {
    display: flex;
    gap: 0.75rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-secondary:hover {
        border-color: var(--text-secondary);
        background: var(--surface-light);
    }
.error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(244, 63, 94, 0.1));
    color: #ef4444;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .progress-steps {
        flex-wrap: wrap;
    }

    .preview-frame {
        height: 400px;
    }

    .edit-prompt-wrapper {
        flex-direction: column;
    }

    .result-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .result-actions-right {
        width: 100%;
        flex-direction: column;
    }

        .result-actions-right .btn-forge,
        .result-actions-right .btn-secondary {
            width: 100%;
            justify-content: center;
        }
}
.hive-container {
    max-width: 1000px;
    margin: 0 auto;
}
.hive-hero {
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
}

    .hive-hero::before {
        content: "";
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
        pointer-events: none;
        z-index: -1;
    }

.hive-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hive-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

    .hive-badge i {
        font-size: 0.875rem;
    }

.hive-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    line-height: 1.1;
}

    .hive-title span {
        background: linear-gradient(135deg, var(--hive-teal), var(--hive-emerald));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hive-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.hive-header {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.03), rgba(16, 185, 129, 0.02)) !important;
}
.source-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.source-type-option {
    position: relative;
}

    .source-type-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .source-type-option label {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1.5rem 1.25rem;
        background: white;
        border: 2px solid var(--border-subtle);
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.25s ease;
        text-align: center;
        min-height: 140px;
    }

        .source-type-option label:hover {
            border-color: rgba(20, 184, 166, 0.3);
            background: rgba(20, 184, 166, 0.02);
            transform: translateY(-2px);
        }

    .source-type-option input:checked + label {
        border-color: var(--hive-teal);
        background: linear-gradient(135deg, rgba(20, 184, 166, 0.06), rgba(16, 185, 129, 0.04));
        box-shadow: 0 4px 16px rgba(20, 184, 166, 0.15);
    }

        .source-type-option input:checked + label .source-type-icon {
            background: linear-gradient(135deg, var(--hive-teal), var(--hive-emerald));
            color: white;
            transform: scale(1.05);
        }

.source-type-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--surface-light);
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.25s ease;
}

    .source-type-icon.colony {
        color: var(--hive-teal);
    }

    .source-type-icon.api {
        color: var(--hive-sky);
    }

.source-type-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.source-type-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.section-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0 1.5rem;
    text-align: center;
}

    .section-divider::before,
    .section-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
    }

    .section-divider span {
        padding: 0 1rem;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

.data-source-section {
    margin-top: 1.5rem;
}

.data-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.data-type-card {
    background: white;
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .data-type-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--hive-teal), var(--hive-emerald));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .data-type-card:hover:not(.coming-soon) {
        border-color: var(--hive-teal);
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(20, 184, 166, 0.15);
    }

        .data-type-card:hover:not(.coming-soon)::before {
            transform: scaleX(1);
        }

    .data-type-card.selected {
        border-color: var(--hive-teal);
        background: linear-gradient(135deg, rgba(20, 184, 166, 0.04), rgba(16, 185, 129, 0.02));
        box-shadow: 0 4px 16px rgba(20, 184, 166, 0.2);
    }

        .data-type-card.selected::before {
            transform: scaleX(1);
        }

        .data-type-card.selected .data-type-icon {
            background: linear-gradient(135deg, var(--hive-teal), var(--hive-emerald));
            color: white;
            transform: scale(1.05);
        }

    .data-type-card.coming-soon {
        opacity: 0.6;
        cursor: not-allowed;
        background: var(--surface-light);
    }

        .data-type-card.coming-soon:hover {
            transform: none;
            box-shadow: none;
        }

.data-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.data-type-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    transition: all 0.25s ease;
}

    .data-type-icon.leads {
        background: rgba(20, 184, 166, 0.1);
        color: var(--hive-teal);
    }

    .data-type-icon.customers {
        background: rgba(16, 185, 129, 0.1);
        color: var(--hive-emerald);
    }

    .data-type-icon.products {
        background: rgba(14, 165, 233, 0.1);
        color: var(--hive-sky);
    }

    .data-type-icon.coming {
        background: rgba(156, 163, 175, 0.1);
        color: var(--text-muted);
    }

.data-type-badge {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

    .data-type-badge.available {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
        color: var(--hive-emerald);
    }

    .data-type-badge:not(.available) {
        background: rgba(156, 163, 175, 0.15);
        color: var(--text-muted);
    }

.data-type-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.data-type-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.data-type-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

    .data-type-meta span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

        .data-type-meta span i {
            font-size: 0.875rem;
            color: var(--hive-teal);
        }
.api-notice {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

    .api-notice i {
        color: var(--hive-amber);
        font-size: 1.25rem;
        flex-shrink: 0;
        margin-top: 0.125rem;
    }

    .api-notice div {
        font-size: 0.875rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }

        .api-notice div strong {
            color: var(--text-primary);
            font-weight: 600;
        }
.auth-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

    .auth-pill:hover {
        border-color: var(--hive-teal);
        color: var(--hive-teal);
        background: rgba(20, 184, 166, 0.03);
    }

    .auth-pill.active {
        background: linear-gradient(135deg, var(--hive-teal), var(--hive-emerald));
        border-color: var(--hive-teal);
        color: white;
        box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
    }

        .auth-pill.active:hover {
            background: linear-gradient(135deg, var(--hive-teal-dark), var(--hive-teal));
            color: white;
        }

    .auth-pill i {
        font-size: 0.875rem;
    }
.auth-section {
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--surface-light);
    border: 1px dashed var(--border-subtle);
    border-radius: 12px;
}

.auth-key-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .auth-key-grid {
        grid-template-columns: 1fr;
    }
}


.custom-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

    .custom-header-row:last-child {
        margin-bottom: 0;
    }

.btn-remove-header {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .btn-remove-header:hover:not(:disabled) {
        border-color: #ef4444;
        color: #ef4444;
        background: rgba(239, 68, 68, 0.05);
    }

    .btn-remove-header:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.btn-add-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hive-teal);
    background: white;
    border: 1px dashed rgba(20, 184, 166, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

    .btn-add-header:hover {
        background: rgba(20, 184, 166, 0.05);
        border-style: solid;
        border-color: var(--hive-teal);
    }

    .btn-add-header i {
        font-size: 1rem;
    }

.hive-prompt {
    border-color: rgba(20, 184, 166, 0.2);
}

    .hive-prompt:focus {
        border-color: var(--hive-teal);
        box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1), 0 4px 20px rgba(20, 184, 166, 0.08);
    }

.prompt-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.suggestion-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .suggestion-chip:hover {
        border-color: var(--hive-teal);
        color: var(--hive-teal);
        background: rgba(20, 184, 166, 0.05);
    }

    .suggestion-chip i {
        font-size: 0.875rem;
        color: var(--hive-teal);
    }

.hive-submit {
    background: linear-gradient(to top, rgba(20, 184, 166, 0.03), transparent) !important;
}

.hive-tips {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.04), rgba(14, 165, 233, 0.03));
    border: 1px solid rgba(20, 184, 166, 0.1);
}

    .hive-tips .tips-header {
        color: var(--hive-teal);
    }

    .hive-tips .tips-list li i {
        color: var(--hive-emerald);
    }
@media (max-width: 640px) {
    .hive-hero {
        padding: 2rem 1rem 1.5rem;
    }

    .hive-title {
        font-size: 2rem;
    }

    .hive-subtitle {
        font-size: 1rem;
    }

    .source-type-grid {
        grid-template-columns: 1fr;
    }

    .data-type-cards {
        grid-template-columns: 1fr;
    }

    .custom-header-row {
        grid-template-columns: 1fr;
    }

    .btn-remove-header {
        width: 100%;
        justify-content: flex-start;
        padding: 0.5rem 1rem;
    }

    .auth-type-pills {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-pill {
        justify-content: center;
    }
}

.refinery-container {
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.refinery-hero {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.04), rgba(236, 72, 153, 0.03));
    border-bottom: 1px solid var(--border-subtle);
}

.refinery-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

    .refinery-title span {
        background: linear-gradient(135deg, var(--refinery-purple), var(--refinery-pink));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.refinery-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}
.refinery-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 0;
    overflow: hidden;
    background: var(--surface-light);
}

.refinery-preview-panel {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-right: 1px solid var(--border-subtle);
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.preview-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(236, 72, 153, 0.08));
    color: var(--refinery-purple);
    font-size: 1.125rem;
}

.preview-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
}

.preview-control-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .preview-control-btn:hover {
        border-color: var(--refinery-purple);
        color: var(--refinery-purple);
        background: rgba(147, 51, 234, 0.05);
    }

.preview-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: auto;
}

.preview-device-frame {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .preview-device-frame.desktop {
        max-width: 100%;
    }

    .preview-device-frame.tablet {
        max-width: 768px;
    }

    .preview-device-frame.mobile {
        max-width: 375px;
    }

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: white;
    border-top: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.version-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

    .version-indicator i {
        color: var(--refinery-purple);
    }

    .version-indicator strong {
        color: var(--text-primary);
        font-weight: 600;
    }

.preview-actions-bottom {
    display: flex;
    gap: 0.5rem;
}

.btn-preview-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-preview-action:hover:not(:disabled) {
        border-color: var(--refinery-purple);
        color: var(--refinery-purple);
        background: rgba(147, 51, 234, 0.05);
    }

    .btn-preview-action:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .btn-preview-action i {
        font-size: 0.875rem;
    }

.refinery-control-panel {
    display: flex;
    flex-direction: column;
    background: white;
    overflow-y: auto;
}

.iteration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.06), rgba(99, 102, 241, 0.04));
    border-bottom: 1px solid var(--border-subtle);
}

.iteration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, var(--refinery-purple), var(--refinery-indigo));
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.25);
}

    .iteration-badge i {
        font-size: 0.875rem;
    }

.iteration-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}
.refine-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.refine-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

    .refine-label i {
        color: var(--refinery-purple);
        font-size: 1rem;
    }

.refine-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface-light);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    resize: vertical;
    transition: all 0.25s ease;
    font-family: inherit;
}

    .refine-textarea:focus {
        outline: none;
        border-color: var(--refinery-purple);
        box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
        background: white;
    }

    .refine-textarea::placeholder {
        color: var(--text-muted);
    }

.refine-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.char-count-refine {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-refine {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--refinery-purple), var(--refinery-indigo));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.3);
}

    .btn-refine:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
    }

    .btn-refine:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .btn-refine i {
        font-size: 1.125rem;
    }
.quick-actions-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.quick-actions-header {
    margin-bottom: 1rem;
}

.quick-actions-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.quick-actions-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 0.75rem;
    background: var(--surface-light);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

    .quick-action-btn:hover {
        border-color: var(--refinery-purple);
        background: rgba(147, 51, 234, 0.05);
        transform: translateY(-2px);
    }

    .quick-action-btn i {
        font-size: 1.25rem;
        color: var(--refinery-purple);
    }
.suggestions-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.02), rgba(99, 102, 241, 0.02));
    border-bottom: 1px solid var(--border-subtle);
}

.suggestions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--refinery-purple);
    margin-bottom: 0.75rem;
}

    .suggestions-header i {
        font-size: 1rem;
    }

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

    .suggestions-list li {
        font-size: 0.8125rem;
        color: var(--text-secondary);
        line-height: 1.5;
        padding-left: 1.25rem;
        position: relative;
    }

        .suggestions-list li::before {
            content: "→";
            position: absolute;
            left: 0;
            color: var(--refinery-purple);
            font-weight: 600;
        }
.final-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: white;
    border-top: 2px solid var(--border-subtle);
    margin-top: auto;
}

.final-actions-right {
    display: flex;
    gap: 0.75rem;
}

.btn-final {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

    .btn-final.secondary {
        color: var(--text-secondary);
        background: white;
        border: 1px solid var(--border-subtle);
    }

        .btn-final.secondary:hover {
            border-color: var(--text-secondary);
            background: var(--surface-light);
        }

    .btn-final.primary {
        color: white;
        background: linear-gradient(135deg, var(--refinery-purple), var(--refinery-pink));
        box-shadow: 0 4px 14px rgba(147, 51, 234, 0.3);
    }

        .btn-final.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
        }

    .btn-final i {
        font-size: 1rem;
    }
.refinery-modal .modal-header {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.04), rgba(236, 72, 153, 0.03));
    border-bottom: 1px solid var(--border-subtle);
}

    .refinery-modal .modal-header .modal-title {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
    }

        .refinery-modal .modal-header .modal-title i {
            color: var(--refinery-purple);
            font-size: 1.25rem;
        }

.refinery-modal .modal-body {
    padding: 0;
}

.compare-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    height: 70vh;
}

.compare-panel {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
}

    .compare-panel:last-child {
        border-right: none;
    }

.compare-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--surface-light);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

    .compare-label.current {
        background: linear-gradient(135deg, rgba(147, 51, 234, 0.08), rgba(236, 72, 153, 0.05));
        color: var(--refinery-purple);
    }

    .compare-label i {
        font-size: 0.875rem;
    }

.compare-iframe {
    flex: 1;
    width: 100%;
    border: none;
}

.compare-divider {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    position: relative;
}

.compare-divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--border-subtle), transparent);
}

.compare-divider-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--refinery-purple);
    font-size: 1rem;
    z-index: 1;
}
@media (max-width: 1200px) {
    .refinery-workspace {
        grid-template-columns: 1fr 400px;
    }
}

@media (max-width: 992px) {
    .refinery-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .refinery-control-panel {
        max-height: 50vh;
        border-top: 2px solid var(--border-subtle);
        border-right: none;
    }

    .preview-viewport {
        padding: 1rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .compare-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
        height: auto;
    }

    .compare-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        height: 40vh;
    }

        .compare-panel:last-child {
            border-bottom: none;
        }

    .compare-divider {
        width: 100%;
        height: 40px;
    }

    .compare-divider-line {
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        height: 2px;
        width: 100%;
        background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
    }
}

@media (max-width: 640px) {
    .refinery-hero {
        padding: 1.5rem 1rem 1rem;
    }

    .refinery-title {
        font-size: 1.5rem;
    }

    .refinery-subtitle {
        font-size: 0.875rem;
    }

    .final-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .final-actions-right {
        width: 100%;
        flex-direction: column;
    }

        .final-actions-right .btn-final {
            width: 100%;
            justify-content: center;
        }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.refinement-progress {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-message {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

    .status-dot.ready {
        background: #28a745;
    }

    .status-dot.processing {
        background: #ffc107;
        animation: pulse 1.5s infinite;
    }

    .status-dot.loading {
        background: #17a2b8;
        animation: pulse 1.5s infinite;
    }

    .status-dot.error {
        background: #dc3545;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}
.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.landing-selector,
.date-range-selector {
    min-width: 180px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .landing-selector:focus,
    .date-range-selector:focus {
        outline: none;
        border-color: var(--primary-violet);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }

/* Enhanced Stat Cards */
.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-icon {
    font-size: 1.25rem;
    color: var(--primary-violet);
    opacity: 0.6;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

    .stat-change.positive {
        color: var(--accent-emerald);
    }

        .stat-change.positive i {
            color: var(--accent-emerald);
        }

    .stat-change.negative {
        color: #ef4444;
    }

        .stat-change.negative i {
            color: #ef4444;
        }

    .stat-change i {
        font-size: 0.875rem;
    }

/* Charts Layout */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

    .charts-row .chart-card.large {
        grid-column: span 2;
    }

@media (max-width: 1200px) {
    .charts-row .chart-card.large {
        grid-column: span 1;
    }
}

/* Chart Cards */
.chart-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s ease;
}

    .chart-card:hover {
        box-shadow: var(--shadow-elevated);
        transform: translateY(-2px);
    }

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(to bottom, #fafbfc, white);
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .chart-title i {
        color: var(--primary-violet);
        font-size: 1.125rem;
    }

.chart-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-type-toggle .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.chart-body {
    padding: 1.5rem;
    position: relative;
    min-height: 300px;
}

/* Funnel Stats */
.funnel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface-light);
    border-top: 1px solid var(--border-subtle);
}

.funnel-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.funnel-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.funnel-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.funnel-percent {
    font-size: 0.8125rem;
    color: var(--accent-emerald);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Performance Insights */
.insights-section {
    margin-bottom: 2rem;
}

.insights-header {
    margin-bottom: 1.25rem;
}

.insights-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
}

    .insights-title i {
        color: var(--forge-amber);
        font-size: 1.5rem;
    }

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.insight-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}

    .insight-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-elevated);
    }

.insight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

    .insight-icon.success {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
        color: var(--accent-emerald);
    }

    .insight-icon.info {
        background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(103, 232, 249, 0.1));
        color: var(--accent-cyan);
    }

    .insight-icon.warning {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
        color: var(--forge-amber);
    }

    .insight-icon.primary {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(139, 92, 246, 0.1));
        color: var(--primary-violet);
    }

.insight-content {
    flex: 1;
}

.insight-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}

.insight-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.insight-detail {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Activity Table */
.activity-table {
    width: 100%;
    margin: 0;
}

    .activity-table thead th {
        background: linear-gradient(to bottom, #fafbfc, #f3f4f6);
        color: var(--text-primary);
        font-weight: 600;
        font-size: 0.8125rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 1rem 1.25rem;
        border-bottom: 2px solid #e5e7eb;
        white-space: nowrap;
    }

        .activity-table thead th:first-child {
            padding-left: 1.5rem;
        }

    .activity-table tbody tr {
        transition: all 0.2s ease;
        border-bottom: 1px solid #f3f4f6;
    }

        .activity-table tbody tr:hover {
            background: linear-gradient(90deg, rgba(124, 58, 237, 0.02) 0%, rgba(34, 211, 238, 0.02) 100%);
        }

    .activity-table td {
        padding: 1rem 1.25rem;
        color: var(--text-secondary);
        font-size: 0.875rem;
        vertical-align: middle;
    }

        .activity-table td:first-child {
            padding-left: 1.5rem;
            font-weight: 500;
            color: var(--text-primary);
        }



/* Status Badges - Enhanced */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

    .status-badge.new {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
        color: var(--accent-emerald);
    }

    .status-badge.viewed {
        background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(103, 232, 249, 0.1));
        color: var(--accent-cyan);
    }

    .status-badge.converted {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(139, 92, 246, 0.1));
        color: var(--primary-violet);
    }

    .status-badge.archived {
        background: linear-gradient(135deg, rgba(156, 163, 175, 0.15), rgba(156, 163, 175, 0.1));
        color: var(--text-muted);
    }

    .status-badge i {
        font-size: 0.875rem;
    }

/* Device Icons */
.device-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
}

    .device-icon i {
        font-size: 1rem;
    }

/* Loading States */
.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.chart-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-subtle);
    border-top-color: var(--primary-violet);
    border-radius: 50%;
    animation: btn-spin 1s linear infinite;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(34, 211, 238, 0.05));
    color: var(--primary-violet);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.empty-state-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 0 1.5rem;
}

/* Chart Empty State */
.chart-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

    .chart-empty-state .empty-state {
        padding: 2rem 1rem;
    }

    .chart-empty-state .empty-state-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .chart-empty-state .empty-state-text {
        font-size: 0.875rem;
        color: var(--text-muted);
        margin: 0;
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .funnel-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-actions {
        width: 100%;
    }

    .landing-selector,
    .date-range-selector {
        flex: 1;
        min-width: 0;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-body {
        padding: 1rem;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.chart-card,
.insight-card {
    animation: fadeInUp 0.4s ease-out;
}

    .stat-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .stat-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .stat-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .stat-card:nth-child(4) {
        animation-delay: 0.2s;
    }
.filters-panel {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    overflow: hidden;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to bottom, #fafbfc, white);
    border-bottom: 1px solid var(--border-subtle);
}

.filters-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .filters-title i {
        color: var(--primary-violet);
        font-size: 1.125rem;
    }

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-clear-filters:hover {
        color: var(--primary-violet);
        border-color: var(--primary-violet);
        background: rgba(124, 58, 237, 0.05);
    }

    .btn-clear-filters i {
        font-size: 0.875rem;
    }

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.filter-select {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .filter-select:focus {
        outline: none;
        border-color: var(--primary-violet);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }

/* Bulk Actions Bar */
.bulk-actions-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary-violet), #8b5cf6);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-actions-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bulk-selected-count {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
}

    .bulk-selected-count i {
        font-size: 1.25rem;
    }

.bulk-actions-buttons {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.btn-bulk-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

    .btn-bulk-action:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }

    .btn-bulk-action.danger {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.3);
    }

        .btn-bulk-action.danger:hover {
            background: rgba(239, 68, 68, 0.3);
        }

    .btn-bulk-action i {
        font-size: 0.875rem;
    }

.btn-bulk-action-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-bulk-action-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
    }

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-table-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-table-action:hover {
        border-color: var(--primary-violet);
        color: var(--primary-violet);
        background: rgba(124, 58, 237, 0.05);
    }

    .btn-table-action i {
        font-size: 0.875rem;
    }/* Select Checkbox Styling */
.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .form-check-input:checked {
        background-color: var(--primary-violet);
        border-color: var(--primary-violet);
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }



/* Entry Row Actions */
.entry-actions {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    flex-wrap: wrap;
}
/* Entry Details Modal */
.modal-icon-primary {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-violet);
    font-size: 1.25rem;
}

.modal-icon-success {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    font-size: 1.25rem;
}

.entry-detail-grid {
    display: grid;
    gap: 1.5rem;
}

.detail-section {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);
}

.detail-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .detail-section-title i {
        color: var(--primary-violet);
    }

.detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    word-break: break-word;
}

    .detail-value.empty {
        color: var(--text-muted);
        font-style: italic;
    }

/* Device & Browser Icons */
.device-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .device-info i {
        font-size: 1rem;
        color: var(--text-muted);
    }


/* Responsive */
@media (max-width: 992px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bulk-actions-content {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-actions-buttons {
        justify-content: stretch;
    }

    .btn-bulk-action {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        width: 100%;
    }

    .landing-selector,
    .date-range-selector {
        flex: 1;
        min-width: 0;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Loading overlay for table */
.table-loading {
    position: relative;
}

    .table-loading::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(2px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
@keyframes highlightNew {
    0% {
        background: rgba(16, 185, 129, 0.2);
    }

    100% {
        background: transparent;
    }
}
.forges-page {
    padding: 2rem;
    min-height: 100vh;
    background: radial-gradient(ellipse at 0% 0%, rgba(124, 58, 237, 0.03) 0%, transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(34, 211, 238, 0.03) 0%, transparent 50%), linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.forges-header {
    position: relative;
    padding: 1.75rem 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.75) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
    margin-bottom: 1.75rem;
    overflow: hidden;
}

    .forges-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #7c3aed, #22d3ee, #10b981);
        opacity: 0.9;
    }

.forges-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.forges-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.forges-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    color: white;
    font-size: 1.375rem;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    flex-shrink: 0;
}

.forges-title {
    font-size: 1.625rem;
    font-weight: 750;
    color: #111827;
    letter-spacing: -0.025em;
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.forges-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.btn-new-forge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    white-space: nowrap;
}

    .btn-new-forge:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
        color: white;
        text-decoration: none;
    }

    .btn-new-forge i {
        font-size: 1.1rem;
    }
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-tile {
    background: white;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.7);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
}

    .stat-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    }

.stat-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

    .stat-tile-icon.total {
        background: linear-gradient(135deg,rgba(124,58,237,0.12),rgba(139,92,246,0.08));
        color: #7c3aed;
    }

    .stat-tile-icon.done {
        background: linear-gradient(135deg,rgba(16,185,129,0.12),rgba(52,211,153,0.08));
        color: #10b981;
    }

    .stat-tile-icon.busy {
        background: linear-gradient(135deg,rgba(59,130,246,0.12),rgba(96,165,250,0.08));
        color: #3b82f6;
    }

    .stat-tile-icon.fail {
        background: linear-gradient(135deg,rgba(239,68,68,0.12),rgba(252,165,165,0.08));
        color: #ef4444;
    }

.stat-tile-body {
    flex: 1;
    min-width: 0;
}

.stat-tile-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.3rem;
}

.stat-tile-value {
    font-size: 1.875rem;
    font-weight: 750;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
}

.stat-tile.highlight .stat-tile-value {
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.forges-card {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.7);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.forges-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(to bottom, #fafbfc, white);
}

.forges-card-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 650;
    color: #111827;
    margin: 0;
}

    .forges-card-title i {
        color: #7c3aed;
        font-size: 1.125rem;
    }

.forge-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.btn-refresh {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(229,231,235,0.8);
    border-radius: 10px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

    .btn-refresh:hover {
        border-color: #7c3aed;
        color: #7c3aed;
        background: rgba(124,58,237,0.05);
        transform: rotate(15deg);
    }

/* Name column */
.forge-name {
    font-weight: 650;
    color: #111827;
    font-size: 0.9375rem;
}

/* Type pill */
.type-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.325rem 0.75rem;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

    .type-chip i {
        font-size: 0.825rem;
    }

/* Status badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

    .status-pill.complete {
        background: rgba(16,185,129,0.1);
        color: #059669;
    }

    .status-pill.processing {
        background: rgba(59,130,246,0.1);
        color: #2563eb;
    }

    .status-pill.pending {
        background: rgba(245,158,11,0.1);
        color: #d97706;
    }

    .status-pill.failed {
        background: rgba(239,68,68,0.1);
        color: #dc2626;
    }

    .status-pill .status-dot-sm {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .status-pill.complete .status-dot-sm {
        background: #10b981;
    }

    .status-pill.processing .status-dot-sm {
        background: #3b82f6;
        animation: pulse-sm 1.5s infinite;
    }

    .status-pill.pending .status-dot-sm {
        background: #f59e0b;
        animation: pulse-sm 2s infinite;
    }

    .status-pill.failed .status-dot-sm {
        background: #ef4444;
    }

@keyframes pulse-sm {
    0%,100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Date */
.date-cell {
    color: #6b7280;
    font-size: 0.875rem;
}

    .date-cell strong {
        display: block;
        color: #374151;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .date-cell span {
        font-size: 0.775rem;
        color: #9ca3af;
    }

/* URL */
.url-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #7c3aed;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

    .url-link:hover {
        color: #6d28d9;
        text-decoration: underline;
    }

    .url-link i {
        font-size: 0.8rem;
    }

.url-pending {
    font-size: 0.8125rem;
    color: #d1d5db;
    font-style: italic;
}

/* Action buttons — tightly grouped */
.forge-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: flex-end;
}

/* Rotating refresh icon */
@keyframes spin-once {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinning i {
    animation: spin-once 0.5s linear;
}

/* Responsive */
@media (max-width: 640px) {
    .forges-page {
        padding: 1rem;
    }

    .forges-header {
        padding: 1.25rem;
    }

    .forges-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-new-forge {
        width: 100%;
        justify-content: center;
    }
}
.leads-nav-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    border-bottom: none;
}

    .leads-nav-tabs .nav-item {
        margin-bottom: -1px;
    }

    .leads-nav-tabs .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.875rem 1.375rem;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-secondary);
        background: transparent;
        border: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        white-space: nowrap;
    }

        .leads-nav-tabs .nav-link i {
            font-size: 0.9375rem;
        }

        .leads-nav-tabs .nav-link:hover {
            color: var(--primary-violet);
            border-bottom-color: rgba(124,58,237,0.3);
        }

        .leads-nav-tabs .nav-link.active {
            color: var(--primary-violet);
            border-bottom-color: var(--primary-violet);
        }
.tab-pane-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(to bottom, #fafbfc, white);
}

.tab-pane-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 1rem;
    flex-shrink: 0;
}

    .tab-pane-icon.violet {
        background: rgba(124,58,237,0.1);
        color: var(--primary-violet);
    }

    .tab-pane-icon.cyan {
        background: rgba(34,211,238,0.1);
        color: var(--accent-cyan);
    }

    .tab-pane-icon.emerald {
        background: rgba(16,185,129,0.1);
        color: var(--accent-emerald);
    }

    .tab-pane-icon.amber {
        background: rgba(245,158,11,0.1);
        color: var(--forge-amber);
    }

.tab-pane-info h2 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.1rem;
}

.tab-pane-info p {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin: 0;
}
.modal-title-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

    .modal-title-icon.violet {
        background: rgba(124,58,237,0.1);
        color: var(--primary-violet);
    }

    .modal-title-icon.danger {
        background: rgba(239,68,68,0.1);
        color: #ef4444;
    }

    .modal-title-icon.success {
        background: rgba(16,185,129,0.1);
        color: var(--accent-emerald);
    }

    .modal-title-icon.cyan {
        background: rgba(34,211,238,0.1);
        color: var(--accent-cyan);
    }


.modal-section-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.875rem 0 0.625rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

    .modal-section-heading:first-child {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }

    .modal-section-heading i {
        color: var(--primary-violet);
        font-size: 0.9rem;
    }

.user-radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--surface-light);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

    .user-radio-grid .btn-check + .btn {
        font-size: 0.8rem;
        font-weight: 500;
        padding: 0.4rem 0.875rem;
        border-radius: 50px;
        border: 1.5px solid var(--border-subtle);
        color: var(--text-secondary);
        background: white;
        transition: all 0.2s ease;
    }

    .user-radio-grid .btn-check:checked + .btn {
        background: linear-gradient(135deg, var(--primary-violet), #8b5cf6);
        border-color: var(--primary-violet);
        color: white;
        box-shadow: 0 2px 8px rgba(124,58,237,0.3);
    }

.delete-confirm-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239,68,68,0.05);
    border-left: 3px solid #ef4444;
    border-radius: 0 8px 8px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.75rem;
}


@media (max-width: 768px) {
    .leads-nav-tabs .nav-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
}
.filter-chips-bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

    .filter-chips-bar::-webkit-scrollbar {
        display: none;
    }

.fc-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    margin-right: 0.125rem;
    flex-shrink: 0;
}

/* Kill ALL Bootstrap button defaults on these chips */
button.filter-chip,
button.filter-chip:focus,
button.filter-chip:active,
button.filter-chip:focus-visible {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.35rem 0.8rem !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 999px !important;
    font-size: 0.775rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #4b5563 !important;
    background: white !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    user-select: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    outline: none !important;
    flex-shrink: 0 !important;
}

    button.filter-chip:hover {
        border-color: var(--primary-violet) !important;
        color: var(--primary-violet) !important;
        background: rgba(124,58,237,0.04) !important;
        transform: translateY(-1px) !important;
    }

    button.filter-chip.fc-all.active {
        background: linear-gradient(135deg, #374151, #6b7280) !important;
        border-color: transparent !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(55,65,81,0.3) !important;
    }

    button.filter-chip.fc-cold.active {
        background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
        border-color: transparent !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(59,130,246,0.35) !important;
    }

    button.filter-chip.fc-warm.active {
        background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
        border-color: transparent !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(245,158,11,0.35) !important;
    }

    button.filter-chip.fc-hot.active {
        background: linear-gradient(135deg, #ef4444, #f97316) !important;
        border-color: transparent !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(239,68,68,0.4) !important;
    }

    button.filter-chip.fc-overdue.active {
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        border-color: transparent !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(239,68,68,0.35) !important;
    }

.chip-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 3px !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    background: #e5e7eb !important;
    color: #6b7280 !important;
    line-height: 1 !important;
}

button.filter-chip.active .chip-count {
    background: rgba(255,255,255,0.28) !important;
    color: white !important;
}

.filter-sep {
    width: 1px;
    height: 22px;
    background: #e5e7eb;
    margin: 0 0.25rem;
    flex-shrink: 0;
}

.filter-stage-select {
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    padding: 0.35rem 1.875rem 0.35rem 0.875rem;
    font-size: 0.775rem;
    font-weight: 600;
    color: #4b5563;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-size: 0.8rem;
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
    flex-shrink: 0;
}
    .filter-stage-select:focus {
        outline: none;
        border-color: var(--primary-violet);
        box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
    }
.heat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.03em;
}
    .heat-badge.cold {
        background: rgba(59,130,246,0.1);
        color: #2563eb;
    }
    .heat-badge.warm {
        background: rgba(245,158,11,0.12);
        color: #d97706;
    }
    .heat-badge.hot {
        background: rgba(239,68,68,0.12);
        color: #dc2626;
    }
    .heat-badge.cold .heat-flame {
        color: #93c5fd;
    }
        .heat-badge.warm .heat-flame {
        color: #fbbf24;
    }
    .heat-badge.hot .heat-flame {
        color: #f97316;
    }
    .heat-flames {
    display: inline-flex;
    gap: 1px;
    align-items: center;
    font-size: 0.8rem;
}
.flame {
    opacity: 0.2;
}
    .flame.lit {
        opacity: 1;
    }
    .flame.hot-lit {
        opacity: 1;
        animation: flicker 1.5s ease-in-out infinite alternate;
    }
@keyframes flicker {
    0% {
        opacity: 0.85;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}
.stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
    .stage-badge.new {
        background: rgba(124,58,237,0.1);
        color: #7c3aed;
    }
    .stage-badge.contacted {
        background: rgba(34,211,238,0.1);
        color: #0891b2;
    }
    .stage-badge.qualified {
        background: rgba(245,158,11,0.1);
        color: #d97706;
    }
    .stage-badge.proposal {
        background: rgba(59,130,246,0.12);
        color: #2563eb;
    }
    .stage-badge.negotiation {
        background: rgba(249,115,22,0.1);
        color: #ea580c;
    }
    .stage-badge.won {
        background: rgba(16,185,129,0.12);
        color: #059669;
    }

    .stage-badge.lost {
        background: rgba(239,68,68,0.1);
        color: #dc2626;
    }
.score-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 90px;
}

.score-bar-track {
    flex: 1;
    height: 5px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}
    .score-bar-fill.low {
        background: linear-gradient(90deg, #93c5fd, #60a5fa);
    }
    .score-bar-fill.medium {
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
    }
    .score-bar-fill.high {
        background: linear-gradient(90deg, #f97316, #ef4444);
    }
    .score-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 22px;
    text-align: right;
}
.days-cell {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

    .days-cell.fresh {
        color: var(--accent-emerald);
    }

    .days-cell.okay {
        color: #f59e0b;
    }

    .days-cell.stale {
        color: #f97316;
    }

    .days-cell.urgent {
        color: #ef4444;
    }
.followup-cell {
    font-size: 0.8rem;
    white-space: nowrap;
}
    .followup-cell.overdue {
        color: #ef4444;
        font-weight: 600;
    }

    .followup-cell.today {
        color: #f59e0b;
        font-weight: 600;
    }

    .followup-cell.soon {
        color: var(--primary-violet);
    }

    .followup-cell.future {
        color: var(--text-muted);
    }
.value-cell {
    font-size: 0.8375rem;
    font-weight: 600;
    color: var(--accent-emerald);
}
    .value-cell.none {
        color: var(--text-muted);
        font-weight: 400;
        font-style: italic;
    }
.profile-workspace {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 1100px) {
    .profile-workspace {
        grid-template-columns: 1fr;
    }
}
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.profile-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.profile-card-header {
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(34,211,238,0.03));
    border-bottom: 1px solid var(--border-subtle);
}
    .profile-card-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-violet), var(--accent-cyan), var(--accent-emerald));
    }
    .profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 0.875rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.profile-lead-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 0.2rem;
}
.profile-lead-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}
.profile-lead-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}
.heat-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.heat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1.5px solid var(--border-subtle);
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}
    .heat-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .heat-btn.cold {
        border-color: rgba(59,130,246,0.4);
        color: #2563eb;
    }

    .heat-btn.warm {
        border-color: rgba(245,158,11,0.4);
        color: #d97706;
    }

    .heat-btn.hot {
        border-color: rgba(239,68,68,0.4);
        color: #dc2626;
    }

    .heat-btn.cold.active {
        background: linear-gradient(135deg,#3b82f6,#60a5fa);
        color: white;
        border-color: transparent;
        box-shadow: 0 3px 10px rgba(59,130,246,0.35);
    }

    .heat-btn.warm.active {
        background: linear-gradient(135deg,#f59e0b,#fbbf24);
        color: white;
        border-color: transparent;
        box-shadow: 0 3px 10px rgba(245,158,11,0.35);
    }

    .heat-btn.hot.active {
        background: linear-gradient(135deg,#ef4444,#f97316);
        color: white;
        border-color: transparent;
        box-shadow: 0 3px 10px rgba(239,68,68,0.4);
    }
.stage-pipeline {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.stage-pipeline-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.625rem;
}

.stage-track {
    display: flex;
    gap: 3px;
}

.stage-step {
    flex: 1;
    height: 6px;
    border-radius: 10px;
    background: #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .stage-step::after {
        content: attr(data-label);
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.6rem;
        color: var(--text-muted);
        white-space: nowrap;
        pointer-events: none;
    }

    .stage-step.active-step {
        background: var(--primary-violet);
    }

    .stage-step.passed-step {
        background: var(--accent-emerald);
    }

    .stage-step.won-step {
        background: var(--accent-emerald);
        box-shadow: 0 0 6px rgba(16,185,129,0.5);
    }

    .stage-step.lost-step {
        background: #ef4444;
    }

.stage-name-display {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
}
.score-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.score-ring-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

    .score-ring-wrap svg {
        transform: rotate(-90deg);
    }

.score-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.score-meta h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.score-meta p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.score-adj-btns {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.score-adj-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--border-subtle);
    background: white;
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .score-adj-btn:hover {
        border-color: var(--primary-violet);
        color: var(--primary-violet);
    }
.info-section {
    padding: 1rem 1.25rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f7;
}

    .info-row:last-child {
        border-bottom: none;
    }

.info-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.info-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

    .info-value a {
        color: var(--primary-violet);
        text-decoration: none;
    }

        .info-value a:hover {
            text-decoration: underline;
        }
.followup-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.followup-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(34,211,238,0.02));
    border-bottom: 1px solid var(--border-subtle);
}

    .followup-card-header i {
        color: var(--primary-violet);
    }

    .followup-card-header span {
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--text-primary);
    }

.followup-body {
    padding: 1rem 1.25rem;
}

.followup-date-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.875rem;
}

    .followup-date-display.overdue {
        background: rgba(239,68,68,0.06);
        border-left: 3px solid #ef4444;
    }

    .followup-date-display.today {
        background: rgba(245,158,11,0.06);
        border-left: 3px solid #f59e0b;
    }

    .followup-date-display.future {
        background: rgba(124,58,237,0.05);
        border-left: 3px solid var(--primary-violet);
    }

    .followup-date-display.none {
        background: var(--surface-light);
        border-left: 3px solid var(--border-subtle);
    }

.followup-date-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.followup-date-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.followup-date-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.deal-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.25rem;
}

.deal-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.875rem;
}

.deal-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.deal-val-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.deal-val-item input, .deal-val-item select {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.4rem 0.625rem;
    font-size: 0.875rem;
    width: 100%;
    transition: border-color 0.2s;
}

    .deal-val-item input:focus, .deal-val-item select:focus {
        outline: none;
        border-color: var(--primary-violet);
        box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
    }

.prob-bar-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.prob-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary-violet), var(--accent-cyan));
    transition: width 0.4s;
}
.activity-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.add-activity-bar {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.activity-quick-btns {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.act-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 0.875rem;
    border-radius: 50px;
    border: 1.5px solid var(--border-subtle);
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

    .act-quick-btn:hover {
        transform: translateY(-1px);
    }

    .act-quick-btn.call {
        color: #0891b2;
        border-color: rgba(8,145,178,0.3);
    }

        .act-quick-btn.call:hover {
            background: linear-gradient(135deg,#0891b2,#22d3ee);
            color: white;
            border-color: transparent;
            box-shadow: 0 3px 10px rgba(8,145,178,0.3);
        }

    .act-quick-btn.email {
        color: #7c3aed;
        border-color: rgba(124,58,237,0.3);
    }

        .act-quick-btn.email:hover {
            background: linear-gradient(135deg,#7c3aed,#8b5cf6);
            color: white;
            border-color: transparent;
            box-shadow: 0 3px 10px rgba(124,58,237,0.3);
        }

    .act-quick-btn.sms {
        color: #059669;
        border-color: rgba(5,150,105,0.3);
    }

        .act-quick-btn.sms:hover {
            background: linear-gradient(135deg,#059669,#10b981);
            color: white;
            border-color: transparent;
            box-shadow: 0 3px 10px rgba(5,150,105,0.3);
        }

    .act-quick-btn.meeting {
        color: #f59e0b;
        border-color: rgba(245,158,11,0.3);
    }

        .act-quick-btn.meeting:hover {
            background: linear-gradient(135deg,#f59e0b,#fbbf24);
            color: white;
            border-color: transparent;
            box-shadow: 0 3px 10px rgba(245,158,11,0.3);
        }

    .act-quick-btn.note {
        color: #6b7280;
        border-color: rgba(107,114,128,0.3);
    }

        .act-quick-btn.note:hover {
            background: linear-gradient(135deg,#6b7280,#9ca3af);
            color: white;
            border-color: transparent;
        }

.add-activity-bar-end {
    margin-left: auto;
}

/* Timeline */
.timeline-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, #fafbfc, white);
    border-bottom: 1px solid var(--border-subtle);
}

.timeline-header-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

    .timeline-header-left i {
        color: var(--primary-violet);
        font-size: 1.125rem;
    }

    .timeline-header-left span {
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--text-primary);
    }

/* Filter pills */
.timeline-filter-pills {
    display: flex;
    gap: 0.3rem;
}

.timeline-pill {
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    background: white;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

    .timeline-pill.active {
        background: var(--primary-violet);
        border-color: var(--primary-violet);
        color: white;
    }

/* Timeline list */
.timeline-list {
    padding: 0.5rem 0;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f5f5f7;
    transition: background 0.15s;
    animation: fadeSlide 0.3s ease;
}

    .timeline-item:last-child {
        border-bottom: none;
    }

    .timeline-item:hover {
        background: rgba(124,58,237,0.02);
    }

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-icon-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

    .timeline-icon.call {
        background: rgba(8,145,178,0.1);
        color: #0891b2;
    }

    .timeline-icon.email {
        background: rgba(124,58,237,0.1);
        color: var(--primary-violet);
    }

    .timeline-icon.sms {
        background: rgba(16,185,129,0.1);
        color: var(--accent-emerald);
    }

    .timeline-icon.whatsapp {
        background: rgba(16,185,129,0.12);
        color: #22c55e;
    }

    .timeline-icon.meeting {
        background: rgba(245,158,11,0.1);
        color: #f59e0b;
    }

    .timeline-icon.note {
        background: rgba(156,163,175,0.15);
        color: #6b7280;
    }

.timeline-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--border-subtle), transparent);
    margin-top: 4px;
    min-height: 16px;
}

.timeline-body {
    flex: 1;
    min-width: 0;
}

.timeline-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.timeline-type-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: capitalize;
}

.timeline-direction {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
    background: var(--surface-light);
    color: var(--text-muted);
}

.timeline-outcome {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}

    .timeline-outcome.interested {
        background: rgba(16,185,129,0.1);
        color: #059669;
    }

    .timeline-outcome.callback {
        background: rgba(124,58,237,0.1);
        color: var(--primary-violet);
    }

    .timeline-outcome.no_answer {
        background: rgba(156,163,175,0.15);
        color: #6b7280;
    }

    .timeline-outcome.not_interested {
        background: rgba(239,68,68,0.1);
        color: #dc2626;
    }

    .timeline-outcome.meeting_set {
        background: rgba(245,158,11,0.1);
        color: #d97706;
    }

    .timeline-outcome.left_voicemail {
        background: rgba(59,130,246,0.1);
        color: #2563eb;
    }

.timeline-stamp {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.timeline-subject {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-notes {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timeline-next {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(124,58,237,0.05);
    border-radius: 8px;
    font-size: 0.775rem;
    color: var(--primary-violet);
    font-weight: 500;
    border: 1px solid rgba(124,58,237,0.1);
}

/* Empty timeline */
.timeline-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    text-align: center;
}

.timeline-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(34,211,238,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-violet);
    margin-bottom: 1.25rem;
}

.timeline-empty h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.timeline-empty p {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 0 1.25rem;
}
.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

    .profile-breadcrumb a {
        color: var(--primary-violet);
        text-decoration: none;
        font-weight: 500;
    }

        .profile-breadcrumb a:hover {
            text-decoration: underline;
        }

    .profile-breadcrumb i {
        font-size: 0.625rem;
    }
.save-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.775rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

    .save-pill.show {
        opacity: 1;
    }

    .save-pill.saved {
        background: rgba(16,185,129,0.12);
        color: var(--accent-emerald);
    }

    .save-pill.saving {
        background: rgba(124,58,237,0.1);
        color: var(--primary-violet);
    }
.action-btn,
.tbl-btn,
.fav-btn,
.entry-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid #e2e5eb;
    background: linear-gradient(to bottom, #ffffff, #f5f6f8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.tbl-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.775rem;
}

.fav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.875rem;
}

.entry-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.875rem;
}

    .action-btn:hover,
    .tbl-btn:hover,
    .fav-btn:hover,
    .entry-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.13), inset 0 1px 0 rgba(255,255,255,0.8);
        border-color: #c8cbd4;
    }

    .action-btn:active,
    .tbl-btn:active,
    .fav-btn:active,
    .entry-action-btn:active {
        transform: translateY(0) scale(0.95);
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    }

    /* ── Colour variants — apply to all button types ── */
    .meeting, .tbl-btn.meeting, .fav-btn.meeting, .entry-action-btn.meeting {
        color: #059669;
        border-color: rgba(5,150,105,0.25);
    }

        .meeting:hover {
            background: linear-gradient(135deg,#059669,#10b981);
            border-color: #059669;
            color: white;
            box-shadow: 0 4px 12px rgba(5,150,105,0.38),inset 0 1px 0 rgba(255,255,255,0.15);
        }

    .convert, .tbl-btn.convert, .entry-action-btn.convert {
        color: #0891b2;
        border-color: rgba(8,145,178,0.25);
    }

        .convert:hover {
            background: linear-gradient(135deg,#0891b2,#22d3ee);
            border-color: #0891b2;
            color: white;
            box-shadow: 0 4px 12px rgba(8,145,178,0.38),inset 0 1px 0 rgba(255,255,255,0.15);
        }

.allocate, .tbl-btn.allocate {
    color: #7c3aed;
    border-color: rgba(124,58,237,0.25);
}

    .allocate:hover {
        background: linear-gradient(135deg,#7c3aed,#8b5cf6);
        border-color: #7c3aed;
        color: white;
        box-shadow: 0 4px 12px rgba(124,58,237,0.38),inset 0 1px 0 rgba(255,255,255,0.15);
    }

.view-entries, .view, .tbl-btn.view, .fav-btn.view, .entry-action-btn.view {
    color: #2563eb;
    border-color: rgba(37,99,235,0.25);
}

    .view-entries:hover, .view:hover {
        background: linear-gradient(135deg,#2563eb,#3b82f6);
        border-color: #2563eb;
        color: white;
        box-shadow: 0 4px 12px rgba(37,99,235,0.38),inset 0 1px 0 rgba(255,255,255,0.15);
    }

.view-stats {
    color: #06b6d4;
    border-color: rgba(6,182,212,0.25);
}

    .view-stats:hover {
        background: linear-gradient(135deg,#06b6d4,#22d3ee);
        border-color: #06b6d4;
        color: white;
        box-shadow: 0 4px 12px rgba(34,211,238,0.38),inset 0 1px 0 rgba(255,255,255,0.15);
    }

.history, .tbl-btn.history {
    color: #d97706;
    border-color: rgba(217,119,6,0.25);
}

    .history:hover {
        background: linear-gradient(135deg,#d97706,#fbbf24);
        border-color: #d97706;
        color: white;
        box-shadow: 0 4px 12px rgba(217,119,6,0.38),inset 0 1px 0 rgba(255,255,255,0.15);
    }

.customer, .tbl-btn.customer {
    color: #7c3aed;
    border-color: rgba(124,58,237,0.25);
}

    .customer:hover {
        background: linear-gradient(135deg,#7c3aed,#a78bfa);
        border-color: #7c3aed;
        color: white;
        box-shadow: 0 4px 12px rgba(124,58,237,0.38),inset 0 1px 0 rgba(255,255,255,0.15);
    }

.delete, .del, .tbl-btn.del, .fav-btn.del, .entry-action-btn.archive {
    color: #dc2626;
    border-color: rgba(220,38,38,0.25);
}

    .delete:hover, .del:hover, .entry-action-btn.archive:hover {
        background: linear-gradient(135deg,#dc2626,#ef4444);
        border-color: #dc2626;
        color: white;
        box-shadow: 0 4px 12px rgba(220,38,38,0.38),inset 0 1px 0 rgba(255,255,255,0.15);
    }

.fav-btn.edit:hover, .fav-btn.prog:hover {
    background: linear-gradient(135deg,#3b82f6,#60a5fa);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 10px rgba(59,130,246,0.35);
}
.action-sep, .tbl-sep {
    width: 1px;
    height: 18px;
    background: #dde0e6;
    margin: 0 0.1rem;
    flex-shrink: 0;
    border-radius: 2px;
}
.action-btns, .tbl-actions, .forge-actions, .entry-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    line-height: 1;
}
.btn-forge,
.btn-hive,
.btn-generate {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
}
    .btn-forge::before,
    .btn-hive::before,
    .btn-generate::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
.btn-forge,
.btn-generate {
    background: linear-gradient(135deg, var(--forge-orange), var(--forge-amber));
    box-shadow: 0 4px 16px rgba(249,115,22,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

    .btn-forge:hover,
    .btn-generate:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(249,115,22,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
        color: white;
    }
.btn-hive {
    background: linear-gradient(135deg, var(--hive-teal), var(--hive-emerald));
    box-shadow: 0 4px 16px rgba(20,184,166,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

    .btn-hive:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(20,184,166,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
        color: white;
    }
        .btn-forge:hover::before,
        .btn-hive:hover::before,
        .btn-generate:hover::before {
            opacity: 1;
        }

    .btn-forge:active,
    .btn-hive:active,
    .btn-generate:active {
        transform: translateY(0) scale(0.98);
    }

    .btn-forge:disabled,
    .btn-hive:disabled,
    .btn-generate:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .btn-forge i,
    .btn-hive i,
    .btn-generate i {
        font-size: 1.125rem;
        transition: transform 0.3s ease;
    }

    .btn-forge:hover i,
    .btn-hive:hover i,
    .btn-generate:hover i {
        transform: translateX(3px);
    }
.btn-generate.compact,
.btn-forge.compact {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    border-radius: 12px;
    gap: 0.625rem;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-forge.loading,
.btn-hive.loading,
.btn-generate.loading {
    pointer-events: none;
}
    .btn-forge.loading .btn-text,
    .btn-hive.loading .btn-text,
    .btn-generate.loading .btn-text {
        opacity: 0;
    }
    .btn-forge.loading::after,
    .btn-hive.loading::after,
    .btn-generate.loading::after {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255,255,255,0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: btn-spin 0.8s linear infinite;
    }
@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
.forge-spinner,
.hive-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    animation: btn-spin 1s linear infinite;
}

.forge-spinner {
    border: 4px solid rgba(249,115,22,0.15);
    border-top-color: var(--forge-orange);
}

.hive-spinner {
    border: 4px solid rgba(20,184,166,0.15);
    border-top-color: var(--hive-teal);
}
/* Before: #tblLeads, #tblMyLeads, #tblForges, #tblLandings ... */
/* After: one class rules them all */

.dt-styled {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 !important;
    font-family: inherit !important;
}

    .dt-styled thead tr {
        background: linear-gradient(to bottom, #fafbfc, #f3f4f6);
    }

    .dt-styled thead th {
        padding: 0.875rem 1.125rem !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        color: #6b7280 !important;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        border-bottom: 2px solid #e5e7eb !important;
        border-top: none !important;
        white-space: nowrap;
        background: transparent;
        position: sticky;
        top: 0;
        z-index: 10;
        font-family: inherit !important;
    }

        .dt-styled thead th:first-child {
            padding-left: 1.75rem !important;
        }

        .dt-styled thead th:last-child {
            padding-right: 1.75rem !important;
        }

        .dt-styled thead th.sorting::after,
        .dt-styled thead th.sorting_asc::after,
        .dt-styled thead th.sorting_desc::after {
            opacity: 0.4;
        }

    .dt-styled tbody tr {
        border-bottom: 1px solid #f3f4f6;
        transition: background 0.15s ease;
        animation: dtRowIn 0.25s ease both;
    }

        .dt-styled tbody tr:last-child {
            border-bottom: none;
        }

        .dt-styled tbody tr:hover {
            background: linear-gradient(90deg, rgba(124,58,237,0.025) 0%, rgba(34,211,238,0.015) 100%);
        }

            .dt-styled tbody tr:hover td:first-child {
                box-shadow: inset 3px 0 0 0 var(--primary-violet);
            }

    .dt-styled td {
        padding: 0.9rem 1.125rem !important;
        font-size: 0.875rem !important;
        color: #4b5563;
        vertical-align: middle !important;
        border: none !important;
        background: transparent;
        font-family: inherit !important;
    }

        .dt-styled td:first-child {
            padding-left: 1.75rem !important;
            font-weight: 600;
            color: #111827;
        }

        .dt-styled td:last-child {
            padding-right: 1.75rem !important;
        }

        .dt-styled td.dt-actions {
            text-align: right;
            white-space: nowrap;
        }

        .dt-styled td.dataTables_empty {
            padding: 4rem 2rem !important;
            text-align: center !important;
            color: var(--text-muted) !important;
            font-size: 0.875rem !important;
            background: linear-gradient(to bottom, rgba(124,58,237,0.02), rgba(34,211,238,0.02)) !important;
            box-shadow: none !important;
            font-weight: 400 !important;
        }

    /* Processing spinner — targets the auto-generated sibling div */
    .dt-styled_wrapper .dataTables_processing,
    .dt-styled + .dataTables_processing {
        background: rgba(255,255,255,0.92) !important;
        backdrop-filter: blur(4px);
        border: none !important;
        box-shadow: var(--shadow-elevated) !important;
        border-radius: 12px !important;
        padding: 1rem 2rem !important;
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        color: var(--primary-violet) !important;
    }

    /* Staggered row entrance animation */
    .dt-styled tbody tr:nth-child(1) {
        animation-delay: 0.03s;
    }

    .dt-styled tbody tr:nth-child(2) {
        animation-delay: 0.06s;
    }

    .dt-styled tbody tr:nth-child(3) {
        animation-delay: 0.09s;
    }

    .dt-styled tbody tr:nth-child(4) {
        animation-delay: 0.12s;
    }

    .dt-styled tbody tr:nth-child(5) {
        animation-delay: 0.15s;
    }

    .dt-styled tbody tr:nth-child(6) {
        animation-delay: 0.18s;
    }

    .dt-styled tbody tr:nth-child(7) {
        animation-delay: 0.21s;
    }

    .dt-styled tbody tr:nth-child(8) {
        animation-delay: 0.24s;
    }

    .dt-styled tbody tr:nth-child(9) {
        animation-delay: 0.27s;
    }

    .dt-styled tbody tr:nth-child(10) {
        animation-delay: 0.30s;
    }
.dt-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: #fafbfc;
    flex-wrap: wrap;
}
    .dt-controls .dataTables_filter label,
    .dt-controls .dataTables_length label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text-muted);
        margin: 0;
    }
        .dt-controls .dataTables_filter label span,
        .dt-controls .dataTables_filter label::before {
            display: none;
        }
    .dt-controls .dataTables_filter input {
        border: 1px solid var(--border-subtle) !important;
        border-radius: 10px !important;
        padding: 0.5rem 0.875rem 0.5rem 2.25rem !important;
        font-size: 0.8rem !important;
        min-width: 220px;
        background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") 0.625rem center / 1rem no-repeat !important;
        transition: border-color 0.2s, box-shadow 0.2s !important;
        outline: none;
    }
        .dt-controls .dataTables_filter input:focus {
            border-color: var(--primary-violet) !important;
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
        }
    .dt-controls .dataTables_length select {
        border: 1px solid var(--border-subtle) !important;
        border-radius: 8px !important;
        padding: 0.4rem 1.75rem 0.4rem 0.625rem !important;
        font-size: 0.8rem !important;
        background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") right 0.4rem center / 0.875rem no-repeat !important;
        appearance: none !important;
        cursor: pointer !important;
        transition: border-color 0.2s !important;
        outline: none;
    }
        .dt-controls .dataTables_length select:focus {
            border-color: var(--primary-violet) !important;
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
        }
.dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: #fafbfc;
}
    .dt-footer .dataTables_info {
        font-size: 0.775rem !important;
        color: var(--text-muted) !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        float: none !important;
    }
    .dt-footer .dataTables_paginate {
        padding: 0 !important;
        float: none !important;
    }
    .dt-footer .paginate_button {
        border: 1px solid var(--border-subtle) !important;
        background: white !important;
        color: var(--text-secondary) !important;
        padding: 0.35rem 0.7rem !important;
        margin: 0 0.125rem !important;
        border-radius: 8px !important;
        font-size: 0.775rem !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
        line-height: 1.5 !important;
        cursor: pointer;
    }
        .dt-footer .paginate_button:hover:not(.disabled):not(.current) {
            background: rgba(124, 58, 237, 0.06) !important;
            border-color: var(--primary-violet) !important;
            color: var(--primary-violet) !important;
            box-shadow: none !important;
            transform: translateY(-1px);
        }
        .dt-footer .paginate_button.current {
            background: linear-gradient(135deg, var(--primary-violet), var(--primary-violet-dark)) !important;
            border-color: var(--primary-violet) !important;
            color: white !important;
            box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3) !important;
        }
        .dt-footer .paginate_button.disabled {
            opacity: 0.35 !important;
            cursor: not-allowed !important;
        }
.dataTables_scrollHead {
    border-bottom: none !important;
    background: linear-gradient(to bottom, #fafbfc, #f3f4f6) !important;
}
.dataTables_scrollBody {
    border-top: none !important;
}
    .dataTables_scrollBody::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    .dataTables_scrollBody::-webkit-scrollbar-track {
        background: #f1f3f5;
    }

    .dataTables_scrollBody::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 10px;
    }
.dataTables_scrollHeadInner table thead th {
    border-bottom: 2px solid #e5e7eb !important;
}
.dash-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.625rem 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.72) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
    .dash-greeting::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-violet), var(--accent-cyan), var(--accent-emerald));
        opacity: 0.85;
    }
.greeting-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.greeting-avatar {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-violet), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.375rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(124,58,237,0.3);
    flex-shrink: 0;
}
.greeting-text h1 {
    font-size: 1.375rem;
    font-weight: 750;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 0.15rem;
}
.greeting-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}
.greeting-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dash-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

    .dash-date-chip i {
        color: var(--primary-violet);
        font-size: 0.875rem;
    }
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 992px) {
    .kpi-strip {
        grid-template-columns: repeat(2,1fr);
    }
}
@media (max-width: 480px) {
    .kpi-strip {
        grid-template-columns: 1fr;
    }
}
.kpi-tile {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
    cursor: default;
}

    .kpi-tile:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-elevated);
    }

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
    .kpi-icon.violet {
        background: rgba(124,58,237,0.1);
        color: var(--primary-violet);
    }
    .kpi-icon.cyan {
        background: rgba(34,211,238,0.1);
        color: #0891b2;
    }
    .kpi-icon.emerald {
        background: rgba(16,185,129,0.1);
        color: var(--accent-emerald);
    }
    .kpi-icon.amber {
        background: rgba(245,158,11,0.1);
        color: var(--forge-amber);
    }
    .kpi-icon.rose {
        background: rgba(244,63,94,0.1);
        color: var(--forge-rose);
    }
.kpi-body {
    flex: 1;
    min-width: 0;
}
.kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.3rem;
}

.kpi-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 0.35rem;
}

.kpi-tile.highlight .kpi-value {
    background: linear-gradient(135deg, var(--primary-violet), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi-delta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.775rem;
    font-weight: 600;
}

    .kpi-delta.up {
        color: var(--accent-emerald);
    }

    .kpi-delta.down {
        color: var(--forge-rose);
    }

    .kpi-delta.flat {
        color: var(--text-muted);
    }

    .kpi-delta i {
        font-size: 0.875rem;
    }

.kpi-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--primary-violet);
    border-radius: 50%;
    animation: btn-spin 0.9s linear infinite;
    margin-top: 4px;
}
.dash-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
    .dash-main {
        grid-template-columns: 1fr;
    }
}
.dash-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, #fafbfc, white);
    border-bottom: 1px solid var(--border-subtle);
}

.dash-card-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

    .dash-card-title i {
        color: var(--primary-violet);
        font-size: 1.125rem;
    }

.dash-card-body {
    padding: 1.25rem 1.5rem;
}
.ticket-chart-wrap {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.lead-heat-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f7;
}

    .lead-heat-row:last-child {
        border-bottom: none;
    }

.lead-heat-bar-wrap {
    flex: 1;
}

.lead-heat-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.lead-heat-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}

    .lead-heat-fill.cold {
        background: linear-gradient(90deg,#93c5fd,#60a5fa);
    }

    .lead-heat-fill.warm {
        background: linear-gradient(90deg,#fbbf24,#f59e0b);
    }

    .lead-heat-fill.hot {
        background: linear-gradient(90deg,#f97316,#ef4444);
    }

.lead-heat-count {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 36px;
    text-align: right;
}
.dash-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.meeting-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f5f5f7;
}

    .meeting-item:last-child {
        border-bottom: none;
    }

.meeting-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    background: rgba(124,58,237,0.08);
    color: var(--primary-violet);
}

.meeting-info {
    flex: 1;
    min-width: 0;
}

.meeting-name {
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meeting-time {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.meeting-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    background: rgba(124,58,237,0.08);
    color: var(--primary-violet);
    white-space: nowrap;
    flex-shrink: 0;
}

    .meeting-chip.today {
        background: rgba(245,158,11,0.1);
        color: #d97706;
    }

    .meeting-chip.tomorrow {
        background: rgba(34,211,238,0.1);
        color: #0891b2;
    }

.meeting-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1rem;
    text-align: center;
}

    .meeting-empty i {
        font-size: 2rem;
        color: #d1d5db;
        margin-bottom: 0.625rem;
    }

    .meeting-empty p {
        font-size: 0.8125rem;
        color: var(--text-muted);
        margin: 0;
    }
.hot-lead-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f7;
    text-decoration: none;
    transition: background 0.15s;
}

    .hot-lead-item:last-child {
        border-bottom: none;
    }

    .hot-lead-item:hover {
        background: rgba(239,68,68,0.025);
        border-radius: 8px;
    }

.hot-lead-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.hot-lead-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--text-primary);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-lead-company {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.hot-lead-meta {
    text-align: right;
    flex-shrink: 0;
}

.hot-lead-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-emerald);
}

.hot-lead-days {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}
.cust-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.cust-number {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-emerald), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cust-trend {
    font-size: 1.5rem;
    color: var(--accent-emerald);
}
    .cust-trend.down {
        color: var(--forge-rose);
    }

.cust-compare {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background: rgba(16,185,129,0.1);
    color: var(--accent-emerald);
}

    .cust-compare.down {
        background: rgba(244,63,94,0.1);
        color: var(--forge-rose);
    }

    .cust-compare.flat {
        background: var(--surface-light);
        color: var(--text-muted);
    }
.activity-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f7;
}

    .activity-feed-item:last-child {
        border-bottom: none;
    }
    .af-dot {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}
    .af-dot.lead {
        background: rgba(239,68,68,0.1);
        color: #dc2626;
    }
        .af-dot.cust {
        background: rgba(16,185,129,0.1);
        color: var(--accent-emerald);
    }
        .af-dot.ticket {
        background: rgba(34,211,238,0.1);
        color: #0891b2;
    }
    .af-dot.meeting {
        background: rgba(245,158,11,0.1);
        color: #d97706;
    }
.af-text {
    flex: 1;
    min-width: 0;
}
.af-main {
    font-size: 0.8375rem;
    color: var(--text-primary);
    line-height: 1.45;
}
    .af-main strong {
        font-weight: 650;
    }
.af-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.dash-bottom {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .dash-bottom {
        grid-template-columns: 1fr;
    }
}
.overdue-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f5f5f7;
}
    .overdue-item:last-child {
        border-bottom: none;
    }
    .overdue-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}
.overdue-name {
    flex: 1;
    font-size: 0.8375rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.overdue-days {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--forge-rose);
    white-space: nowrap;
}
.pipeline-stage {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f5f5f7;
}

    .pipeline-stage:last-child {
        border-bottom: none;
    }

.pipeline-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 90px;
}
.pipeline-track {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.pipeline-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary-violet), var(--accent-cyan));
    transition: width 0.7s ease;
}
.pipeline-count {
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 24px;
    text-align: right;
}
.ticket-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f7;
}
    .ticket-stat-row:last-child {
        border-bottom: none;
    }

.ticket-stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .ticket-stat-label i {
        font-size: 0.875rem;
    }
    .ticket-stat-val {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
}
.quick-actions-dash {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .quick-actions-dash {
        grid-template-columns: repeat(2,1fr);
    }
}

.qa-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 0.75rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
    .qa-btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-elevated);
        color: var(--text-primary);
        border-color: rgba(124,58,237,0.25);
    }
    .qa-btn i {
        font-size: 1.5rem;
    }
    .qa-btn.violet i {
        color: var(--primary-violet);
    }
    .qa-btn.cyan i {
        color: #0891b2;
    }
    .qa-btn.emerald i {
        color: var(--accent-emerald);
    }
    .qa-btn.amber i {
        color: var(--forge-amber);
    }
.dash-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}
    .dash-spinner .spinner-border {
        width: 1.75rem;
        height: 1.75rem;
        border-width: 2px;
    }
/* ── Customers page: modal-modern needs border-radius fix for sm dialog ── */
.modal-modern.modal-sm .modal-dialog,
.modal-dialog.modal-modern .modal-content {
    border-radius: var(--radius-xl);
}

/* ── Ensure dt-controls / dt-footer sit flush inside table-container ── */
.table-container .dt-controls {
    border-top: none;
    border-radius: 0;
}

.table-container .dt-footer {
    border-bottom: none;
    border-radius: 0;
}

/* ── Processing overlay inside table-container ── */
.table-container .dataTables_processing {
    top: 56px !important;
}
/* ══════════════════════════════════════════════════
   PROFILE HERO BANNER  — reusable via .profile-hero-banner
   ══════════════════════════════════════════════════ */
.profile-hero-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-elevated);
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #1a3a52 100%);
    z-index: 0;
}

    /* Decorative orbs */
    .profile-hero-bg::before {
        content: "";
        position: absolute;
        top: -80px;
        right: -80px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(34,211,238,0.18) 0%, transparent 70%);
        pointer-events: none;
    }

    .profile-hero-bg::after {
        content: "";
        position: absolute;
        bottom: -60px;
        left: 10%;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
        pointer-events: none;
    }

.profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 2.25rem 1.25rem;
}

.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.profile-hero-back {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .profile-hero-back:hover {
        background: rgba(255,255,255,0.2);
        color: white;
        transform: translateX(-2px);
    }

.profile-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
}

.profile-hero-name {
    font-size: 1.625rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    margin: 0 0 0.4rem;
    line-height: 1.15;
}

.profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

    .profile-hero-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.8125rem;
        color: rgba(255,255,255,0.65);
        font-weight: 500;
    }

        .profile-hero-meta span i {
            font-size: 0.875rem;
            color: rgba(255,255,255,0.45);
        }

/* Hero action buttons */
.profile-hero-actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.profile-hero-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.125rem;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    min-width: 68px;
    letter-spacing: 0.01em;
}

    .profile-hero-btn i {
        font-size: 1.25rem;
    }

    .profile-hero-btn:hover {
        transform: translateY(-3px);
        color: white;
    }

    .profile-hero-btn.meeting {
        background: linear-gradient(135deg, rgba(5,150,105,0.9), rgba(16,185,129,0.85));
        box-shadow: 0 4px 14px rgba(5,150,105,0.4);
        backdrop-filter: blur(8px);
    }

        .profile-hero-btn.meeting:hover {
            background: linear-gradient(135deg, #059669, #10b981);
            box-shadow: 0 6px 20px rgba(5,150,105,0.55);
        }

    .profile-hero-btn.ticket {
        background: linear-gradient(135deg, rgba(8,145,178,0.9), rgba(34,211,238,0.85));
        box-shadow: 0 4px 14px rgba(8,145,178,0.4);
        backdrop-filter: blur(8px);
    }

        .profile-hero-btn.ticket:hover {
            background: linear-gradient(135deg, #0891b2, #22d3ee);
            box-shadow: 0 6px 20px rgba(8,145,178,0.55);
        }

    .profile-hero-btn.contact {
        background: linear-gradient(135deg, rgba(245,158,11,0.9), rgba(251,191,36,0.85));
        box-shadow: 0 4px 14px rgba(245,158,11,0.4);
        backdrop-filter: blur(8px);
    }

        .profile-hero-btn.contact:hover {
            background: linear-gradient(135deg, #f59e0b, #fbbf24);
            box-shadow: 0 6px 20px rgba(245,158,11,0.55);
        }

    .profile-hero-btn.sale {
        background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(139,92,246,0.85));
        box-shadow: 0 4px 14px rgba(124,58,237,0.4);
        backdrop-filter: blur(8px);
    }

        .profile-hero-btn.sale:hover {
            background: linear-gradient(135deg, #7c3aed, #8b5cf6);
            box-shadow: 0 6px 20px rgba(124,58,237,0.55);
        }

/* Hero bottom chips row */
.profile-hero-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 2.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 1rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    backdrop-filter: blur(6px);
    font-weight: 500;
    transition: all 0.2s;
}

    .hero-chip i {
        font-size: 0.875rem;
        color: rgba(255,255,255,0.5);
    }

    .hero-chip:hover {
        background: rgba(255,255,255,0.14);
        color: white;
    }

/* ══════════════════════════════════════════════════
   PROFILE TOOLBAR
   ══════════════════════════════════════════════════ */
.profile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.profile-edit-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ══════════════════════════════════════════════════
   PROFILE SECTION CARDS GRID
   ══════════════════════════════════════════════════ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.profile-section-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    transition: box-shadow 0.25s ease;
}

    .profile-section-card:hover {
        box-shadow: var(--shadow-elevated);
    }

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.profile-field--full {
    grid-column: 1 / -1;
}

.profile-field label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-field .form-control,
.profile-field .form-select {
    font-size: 0.9rem;
    border-color: var(--border-subtle);
    border-radius: 10px;
    transition: all 0.2s;
}

    .profile-field .form-control:disabled,
    .profile-field .form-select:disabled {
        background: #fafbfc;
        color: var(--text-primary);
        opacity: 1;
        border-color: transparent;
    }

    .profile-field .form-control:not(:disabled),
    .profile-field .form-select:not(:disabled) {
        background: white;
        border-color: rgba(124,58,237,0.3);
        box-shadow: 0 0 0 3px rgba(124,58,237,0.06);
    }

/* ══════════════════════════════════════════════════
   CONTACT MODAL — info card + channel buttons
   ══════════════════════════════════════════════════ */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(34,211,238,0.03));
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: 14px;
}

.contact-info-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.contact-info-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.contact-info-sub {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

    .contact-info-row i {
        font-size: 0.875rem;
        color: var(--primary-violet);
        width: 16px;
    }

.contact-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.contact-channel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 0.75rem;
    border-radius: 14px;
    border: 2px solid var(--border-subtle);
    background: white;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    color: var(--text-secondary);
}

    .contact-channel-btn i {
        font-size: 1.5rem;
    }

    .contact-channel-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        color: white;
        border-color: transparent;
    }

.channel-call {
    color: #059669;
    border-color: rgba(5,150,105,0.2);
}

    .channel-call:hover {
        background: linear-gradient(135deg,#059669,#10b981);
        box-shadow: 0 6px 20px rgba(5,150,105,0.4);
    }

.channel-sms {
    color: #2563eb;
    border-color: rgba(37,99,235,0.2);
}

    .channel-sms:hover {
        background: linear-gradient(135deg,#2563eb,#3b82f6);
        box-shadow: 0 6px 20px rgba(37,99,235,0.4);
    }

.channel-email {
    color: #7c3aed;
    border-color: rgba(124,58,237,0.2);
}

    .channel-email:hover {
        background: linear-gradient(135deg,#7c3aed,#8b5cf6);
        box-shadow: 0 6px 20px rgba(124,58,237,0.4);
    }

.channel-whatsapp {
    color: #16a34a;
    border-color: rgba(22,163,74,0.2);
}

    .channel-whatsapp:hover {
        background: linear-gradient(135deg,#16a34a,#22c55e);
        box-shadow: 0 6px 20px rgba(22,163,74,0.4);
    }

.channel-telegram {
    color: #0088cc;
    border-color: rgba(0,136,204,0.2);
}

    .channel-telegram:hover {
        background: linear-gradient(135deg,#0088cc,#38b2e8);
        box-shadow: 0 6px 20px rgba(0,136,204,0.4);
    }

.channel-all {
    color: #6b7280;
    border-color: rgba(107,114,128,0.2);
}

    .channel-all:hover {
        background: linear-gradient(135deg,#374151,#6b7280);
        box-shadow: 0 6px 20px rgba(55,65,81,0.4);
    }

/* Responsive */
@media (max-width: 768px) {
    .profile-hero-content {
        flex-direction: column;
        padding: 1.5rem 1.25rem 1rem;
    }

    .profile-hero-chips {
        padding: 0.875rem 1.25rem 1.25rem;
    }

    .profile-hero-actions {
        width: 100%;
        justify-content: stretch;
    }

    .profile-hero-btn {
        flex: 1;
        flex-direction: row;
        padding: 0.625rem;
        min-width: 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-fields {
        grid-template-columns: 1fr;
    }

    .contact-channel-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
.profile-hero-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    align-self: center;
    margin: 0 0.25rem;
    flex-shrink: 0;
}

.profile-hero-btn.edit {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

    .profile-hero-btn.edit:hover {
        background: rgba(255,255,255,0.25);
        box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    }

.profile-hero-btn.save {
    background: linear-gradient(135deg, rgba(16,185,129,0.85), rgba(5,150,105,0.9));
    box-shadow: 0 4px 14px rgba(5,150,105,0.4);
    backdrop-filter: blur(8px);
}

    .profile-hero-btn.save:hover {
        background: linear-gradient(135deg, #10b981, #059669);
        box-shadow: 0 6px 20px rgba(5,150,105,0.55);
    }

.profile-hero-btn.danger {
    background: linear-gradient(135deg, rgba(220,38,38,0.8), rgba(239,68,68,0.75));
    box-shadow: 0 4px 14px rgba(220,38,38,0.35);
    backdrop-filter: blur(8px);
}

    .profile-hero-btn.danger:hover {
        background: linear-gradient(135deg, #dc2626, #ef4444);
        box-shadow: 0 6px 20px rgba(220,38,38,0.5);
    }
/* ── Calendar page wrapper ── */
.meetings-page {
    padding: 2rem;
    min-height: 100vh;
    background: radial-gradient(ellipse at 0% 0%, rgba(124,58,237,0.03) 0%, transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(34,211,238,0.03) 0%, transparent 50%), linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* ── FullCalendar skin ── */
#calendar {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    overflow: hidden;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.fc .fc-button {
    background: white !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-secondary) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.875rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    transition: all 0.2s ease !important;
}

    .fc .fc-button:hover {
        border-color: var(--primary-violet) !important;
        color: var(--primary-violet) !important;
        background: rgba(124,58,237,0.05) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    }

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: linear-gradient(135deg, var(--primary-violet), #8b5cf6) !important;
    border-color: var(--primary-violet) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3) !important;
}

/* Custom toolbar buttons */
.fc .fc-NewEvent-button {
    background: linear-gradient(135deg, var(--primary-violet), #8b5cf6) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3) !important;
}

    .fc .fc-NewEvent-button:hover {
        background: linear-gradient(135deg, #6d28d9, var(--primary-violet)) !important;
        border-color: transparent !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 18px rgba(124,58,237,0.4) !important;
    }

.fc .fc-SendReminders-button {
    background: linear-gradient(135deg, var(--accent-emerald), #34d399) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3) !important;
}

    .fc .fc-SendReminders-button:hover {
        background: linear-gradient(135deg, #059669, var(--accent-emerald)) !important;
        border-color: transparent !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 18px rgba(16,185,129,0.4) !important;
    }

.fc .fc-daygrid-event {
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border: none !important;
}

.fc .fc-col-header-cell {
    background: linear-gradient(to bottom, #fafbfc, #f3f4f6);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.fc .fc-daygrid-day:hover {
    background: rgba(124,58,237,0.02);
}

.fc .fc-daygrid-day-number {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.fc .fc-day-today {
    background: rgba(124,58,237,0.04) !important;
}

    .fc .fc-day-today .fc-daygrid-day-number {
        color: var(--primary-violet);
        font-weight: 800;
    }

/* ── Attendee chip styling ── */
#chipDiv .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-violet), #8b5cf6);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}

    #chipDiv .badge .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
        width: 0.6em;
        height: 0.6em;
    }

/* ── Search results list ── */
#colAttendee .list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    transition: all 0.15s ease;
}

    #colAttendee .list-group-item:hover {
        background: rgba(124,58,237,0.04);
        color: var(--primary-violet);
        padding-left: 1.25rem;
    }

    #colAttendee .list-group-item:first-child {
        border-radius: 10px 10px 0 0;
    }

    #colAttendee .list-group-item:last-child {
        border-bottom: none;
        border-radius: 0 0 10px 10px;
    }

/* ── Modal section label ── */
.modal-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .modal-section-label i {
        color: var(--primary-violet);
    }

/* ── Summary info cards ── */
.summary-info-card {
    background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(34,211,238,0.03));
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

    .summary-info-card h6 {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--text-muted);
        margin-bottom: 0.875rem;
    }

    .summary-info-card .info-line {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: var(--text-secondary);
        padding: 0.375rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }

        .summary-info-card .info-line:last-child {
            border-bottom: none;
        }

        .summary-info-card .info-line i {
            color: var(--primary-violet);
            width: 16px;
            font-size: 0.875rem;
        }

        .summary-info-card .info-line strong {
            color: var(--text-primary);
        }

/* ── Reminder summary card ── */
.reminder-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reminder-stat-tile {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

    .reminder-stat-tile .r-val {
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        line-height: 1;
        background: linear-gradient(135deg, var(--primary-violet), var(--accent-cyan));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .reminder-stat-tile .r-label {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--text-muted);
        margin-top: 0.25rem;
    }

/* ── Accordion modern ── */
.accordion-modern .accordion-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-modern .accordion-button {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: #fafbfc;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg) !important;
}

    .accordion-modern .accordion-button:not(.collapsed) {
        background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(34,211,238,0.03));
        color: var(--primary-violet);
        box-shadow: none;
    }

    .accordion-modern .accordion-button::after {
        filter: none;
    }

    .accordion-modern .accordion-button:not(.collapsed)::after {
        filter: hue-rotate(240deg);
    }

.accordion-modern .accordion-body {
    padding: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

/* ── Meeting activity table ── */
#meetingItems .table {
    margin-bottom: 0;
}

/* Alert placeholder positioning */
#alertPlaceholder {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    min-width: 300px;
}
/* ── Product grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ── Product card ── */
.product-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-elevated);
        border-color: rgba(124, 58, 237, 0.2);
    }

        .product-card:hover .product-card-overlay {
            opacity: 1;
        }

.product-card-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.product-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .product-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-img-placeholder {
    font-size: 3rem;
    color: #d1d5db;
}

/* colour stripe at top */
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-violet), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card-body {
    padding: 1.125rem 1.25rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
    flex: 1;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

    .product-meta-row i {
        width: 16px;
        font-size: 0.875rem;
        color: var(--text-muted);
        flex-shrink: 0;
    }

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-light);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-violet), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-qty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}

    .product-qty-badge.low {
        background: rgba(245, 158, 11, 0.1);
        color: var(--forge-amber);
    }

    .product-qty-badge.empty {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

/* ── Add new card ── */
.product-card-add {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(34, 211, 238, 0.03));
    border: 2px dashed rgba(124, 58, 237, 0.25);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 220px;
    text-decoration: none;
}

    .product-card-add:hover {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(34, 211, 238, 0.06));
        border-color: var(--primary-violet);
        transform: translateY(-3px);
        box-shadow: var(--shadow-elevated);
    }

.product-card-add-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-violet), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
    transition: transform 0.25s ease;
}

.product-card-add:hover .product-card-add-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-card-add-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-violet);
    letter-spacing: -0.01em;
}

.product-card-add-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ── Empty state ── */
#productsEmpty {
    grid-column: 1 / -1;
}
/* ── Ticket action bar (fixed bottom) ── */
.ticket-action-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
}

.ticket-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: none;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--surface-light);
    color: var(--text-secondary);
}

    .ticket-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    .ticket-action-btn.note {
        color: var(--forge-amber);
    }

        .ticket-action-btn.note:hover {
            background: rgba(245,158,11,0.08);
        }

    .ticket-action-btn.assign {
        color: var(--primary-violet);
    }

        .ticket-action-btn.assign:hover {
            background: rgba(124,58,237,0.06);
        }

    .ticket-action-btn.snooze {
        color: var(--accent-cyan);
    }

        .ticket-action-btn.snooze:hover {
            background: rgba(34,211,238,0.06);
        }

    .ticket-action-btn.close-ticket {
        color: #ef4444;
    }

        .ticket-action-btn.close-ticket:hover {
            background: rgba(239,68,68,0.06);
        }

    .ticket-action-btn i {
        font-size: 1rem;
    }

/* separator between btn groups */
.ticket-action-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    pointer-events: none;
}

/* pad page bottom so FAB doesn't cover content */
.page-wrapper {
    padding-bottom: 5rem;
}

/* modal section label (reused) */
.modal-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .modal-section-label i {
        color: var(--primary-violet);
    }