/* Deluxe CSV import — onboarding */

.ob-import-hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.ob-import-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(255, 107, 53, 0.2));
    border: 1px solid rgba(255, 107, 53, 0.35);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffb380;
    margin-bottom: 0.75rem;
}

.ob-import-hero__badge i {
    font-size: 0.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.ob-import-hero h2 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0 0 0.35rem;
    background: linear-gradient(135deg, #fff 30%, #ffb380);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ob-import-sources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.ob-import-src {
    position: relative;
    padding: 1rem 0.9rem;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #f4f6fb;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.ob-import-src i {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.ob-import-src:hover {
    border-color: rgba(255, 107, 53, 0.45);
    transform: translateY(-2px);
}

.ob-import-src.is-selected {
    border-color: #ff6b35;
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.18), rgba(124, 58, 237, 0.08));
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
    color: #fff;
}

.ob-import-src.is-selected i { color: #ff8c42; }

.ob-import-src--featured::after {
    content: 'Direct';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: #22c55e;
    color: #fff;
    letter-spacing: 0.04em;
}

.ob-import-phase { display: none; animation: obIn 0.35s ease; }
.ob-import-phase.is-active { display: block; }

.ob-csv-dropzone {
    position: relative;
    border: 2px dashed rgba(255, 107, 53, 0.45);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, 0.12), transparent 70%);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    overflow: hidden;
}

.ob-csv-dropzone::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 107, 53, 0.08), transparent 30%);
    animation: obCsvSpin 8s linear infinite;
    pointer-events: none;
}

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

.ob-csv-dropzone:hover,
.ob-csv-dropzone.is-dragover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.01);
}

.ob-csv-dropzone__icon {
    position: relative;
    font-size: 2.5rem;
    color: #ff8c42;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.4));
}

.ob-csv-dropzone h3 {
    position: relative;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.ob-csv-dropzone p {
    position: relative;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.ob-csv-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ob-csv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.ob-csv-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
}

.ob-csv-template {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffb380;
    text-decoration: none;
}

.ob-csv-template:hover { color: #fff; }

.ob-csv-file-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    margin-bottom: 1rem;
}

.ob-csv-file-chip i { color: #6ee7b7; font-size: 1.25rem; }
.ob-csv-file-chip strong { display: block; font-size: 0.9rem; }
.ob-csv-file-chip span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

.ob-map-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ob-map-stat {
    text-align: center;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ob-map-stat__val {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ff8c42;
    line-height: 1;
}

.ob-map-stat__lbl {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ob-map-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ob-map-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ob-map-row.is-required .ob-map-field { color: #ffb380; }

.ob-map-field {
    font-size: 0.78rem;
    font-weight: 700;
}

.ob-map-arrow {
    color: rgba(255, 107, 53, 0.6);
    font-size: 0.75rem;
}

.ob-map-row select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.8rem;
    font-family: inherit;
}

.ob-preview-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.ob-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.ob-preview-table th,
.ob-preview-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ob-preview-table th {
    background: rgba(255, 107, 53, 0.15);
    color: #ffb380;
    font-weight: 700;
    text-align: left;
}

.ob-preview-table th.is-mapped {
    background: rgba(34, 197, 94, 0.2);
    color: #6ee7b7;
}

.ob-import-running {
    text-align: center;
    padding: 2rem 1rem;
}

.ob-import-running__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 1.25rem 0;
}

.ob-import-running__fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6b35, #a855f7, #ff6b35);
    background-size: 200% 100%;
    animation: obCsvBar 1.2s ease infinite;
    transition: width 0.3s ease;
}

@keyframes obCsvBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.ob-import-success {
    text-align: center;
    padding: 1.5rem 0;
}

.ob-import-success__burst {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    animation: obBurst 0.6s ease;
}

@keyframes obBurst {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.ob-import-success h3 {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
}

.ob-import-success__nums {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}

.ob-import-success__num strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: #6ee7b7;
}

.ob-import-success__num span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}

.ob-team-card {
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.ob-import-preset {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    font-size: 0.78rem;
    font-weight: 700;
    color: #6ee7b7;
    margin-bottom: 1rem;
}

.ob-col-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.ob-col-card {
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ob-col-card.is-matched {
    border-color: rgba(255, 107, 53, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.15);
}

.ob-col-card.is-notes {
    border-color: rgba(124, 58, 237, 0.45);
}

.ob-col-card__head {
    margin-bottom: 0.45rem;
}

.ob-col-card__name {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.ob-col-card__sample {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.15rem;
    font-style: italic;
}

.ob-col-card select {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.75rem;
    font-family: inherit;
}

.ob-lead-preview {
    margin-bottom: 1rem;
}

.ob-lead-preview h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.55rem;
    font-weight: 700;
}

.ob-lead-preview__empty {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.ob-lead-card {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(124, 58, 237, 0.06));
    border: 1px solid rgba(255, 107, 53, 0.2);
    margin-bottom: 0.45rem;
}

.ob-lead-card__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff6b35;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ob-lead-card__body strong {
    display: block;
    font-size: 0.88rem;
}

.ob-lead-card__body span {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.ob-lead-card__meta {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.4) !important;
}

.ob-csv-templates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.ob-csv-templates a {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 179, 128, 0.9);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.ob-csv-templates a:hover { color: #fff; background: rgba(255, 107, 53, 0.2); }

.ob-demo-login-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    margin-bottom: 1rem;
    font-size: 0.78rem;
}

.ob-demo-login-banner a {
    color: #93c5fd;
    font-weight: 700;
    white-space: nowrap;
}

.ob-demo-login-banner.is-ok {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #6ee7b7;
}

.ob-tenant-db {
    font-size: 0.72rem;
    opacity: 0.9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 640px) {
    .ob-import-sources { grid-template-columns: 1fr; }
    .ob-map-stats { grid-template-columns: 1fr; }
    .ob-map-row { grid-template-columns: 1fr; }
    .ob-map-arrow { display: none; }
}
