/* =====================================================
   CarSkipper Custom CSS
   All new shared styles go here.
   ===================================================== */

/* ─── Radio Pill Groups ─────────────────────────────
   Usage: wrap <input type="radio"> + <label> pairs
   inside a <div class="cs-radio-pills">
   ──────────────────────────────────────────────────── */
.cs-radio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.cs-radio-pills input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cs-radio-pills label {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border: 1.5px solid #ced4da;
    border-radius: 2rem;
    background: #fff;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
    white-space: nowrap;
}

.cs-radio-pills label:hover {
    border-color: #0d1b2a;
    color: #0d1b2a;
    background: #f8f9fa;
}

.cs-radio-pills input[type="radio"]:checked+label {
    border-color: #0d1b2a;
    background: #0d1b2a;
    color: #fff;
    box-shadow: 0 1px 4px rgba(13, 27, 42, 0.18);
}

.cs-radio-pills input[type="radio"]:focus-visible+label {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* ── EditIntake upload zone ────────────────────────────────────────── */
.cs-intake-upload-zone {
    border: 2px dashed #d1c4f7;
    border-radius: 12px;
    background: #faf8ff;
    transition: border-color 0.15s, background 0.15s;
}

.cs-intake-upload-zone:hover {
    border-color: #8b5cf6;
    background: #f3eeff;
}

.cs-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 2rem 1rem;
    cursor: pointer;
    width: 100%;
}

.cs-upload-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b5cf6;
}

.cs-upload-hint {
    font-size: 0.78rem;
    color: #9ca3af;
}

/* ─── Collapsible Section Cards ─────────────────────────────────────── */

.cs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #f0edfb;
    border-radius: 0.375rem 0.375rem 0 0;
    transition: background 0.15s;
}

.cs-section-header:hover {
    background: #faf8ff;
}

.cs-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cs-section-optional {
    font-size: 0.72rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cs-section-chevron {
    color: #8b5cf6;
    flex-shrink: 0;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.cs-section-header.collapsed .cs-section-chevron {
    transform: rotate(0deg);
}

/* ─── Shared Brand Buttons ──────────────────────────────────────────── */

.cs-btn-primary {
    background: #8b5cf6;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: background 0.15s, transform 0.1s;
}

.cs-btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* ─── Browse Sidebar Filters ────────────────────────────────────────── */

.cs-filter-sidebar {
    position: sticky;
    top: 80px;
}

.cs-filter-section {
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 0;
}

.cs-filter-section:last-of-type {
    border-bottom: none;
}

.cs-filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    text-align: left;
}

.cs-filter-toggle::after {
    content: '';
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.cs-filter-toggle[aria-expanded="false"]::after {
    transform: rotate(-45deg);
}

.cs-filter-toggle:hover {
    color: #4b2e83;
}

.cs-makes-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.cs-make-item {
    padding: 0.3rem 0;
}

.cs-make-item .form-check-label {
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.cs-make-item .form-check-input:checked+.form-check-label {
    color: #4b2e83;
}

.cs-make-item .form-check-input:checked {
    background-color: #4b2e83;
    border-color: #4b2e83;
}

.cs-show-more-link {
    color: #4b2e83;
    font-size: 0.8125rem;
    text-decoration: none;
    font-weight: 500;
}

.cs-show-more-link:hover {
    text-decoration: underline;
    color: #3a1f6e;
}

/* Dual range slider */
.cs-range-wrap {
    position: relative;
    height: 2rem;
    margin: 0 4px;
}

.cs-range-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: linear-gradient(to right,
            #dee2e6 var(--pct1, 0%),
            #1a0533 var(--pct1, 0%),
            #1a0533 var(--pct2, 100%),
            #dee2e6 var(--pct2, 100%));
    pointer-events: none;
    z-index: 0;
}

.cs-range-wrap input[type=range] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.cs-range-wrap input[type=range]::-webkit-slider-runnable-track {
    background: transparent;
    height: 4px;
}

.cs-range-wrap input[type=range]::-moz-range-track {
    background: transparent;
    height: 4px;
}

.cs-range-wrap input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a0533;
    border: 2.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    pointer-events: all;
    margin-top: -8px;
}

.cs-range-wrap input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a0533;
    border: 2.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    pointer-events: all;
}

.cs-range-wrap input[type=range]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(75, 46, 131, 0.35);
}

@media (max-width: 991.98px) {
    .cs-filter-sidebar {
        position: static;
    }
}

/* ─── Location radius pills ─────────────────────────────────────────── */

.cs-radius-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.cs-radius-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cs-radius-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border: 1.5px solid #ced4da;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
    white-space: nowrap;
}

.cs-radius-pill:hover {
    border-color: #1a0533;
    color: #1a0533;
}

.cs-radius-radio:checked+.cs-radius-pill {
    border-color: #1a0533;
    background: #1a0533;
    color: #fff;
}

.cs-zip-entry {
    padding: 0.8rem;
    border: 1px solid #e5eaf2;
    border-radius: 0.85rem;
    background: #f8fbff;
}

.cs-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cs-pill-input,
.cs-color-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cs-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border: 1px solid #d7dce5;
    border-radius: 999px;
    background: #fff;
    color: #122036;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cs-filter-pill:hover {
    border-color: #122036;
}

.cs-pill-input:checked+.cs-filter-pill {
    border-color: #122036;
    background: #122036;
    color: #fff;
}

.cs-count-badge {
    min-width: 1.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #eef2f8;
    color: #516073;
    font-size: 0.72rem;
    text-align: center;
}

.cs-boolean-toggle+.cs-boolean-toggle {
    margin-top: 0.75rem;
}

.cs-boolean-toggle .form-check-input:checked {
    background-color: #122036;
    border-color: #122036;
}

.cs-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.cs-color-swatch {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #d7dce5;
    border-radius: 0.85rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cs-color-swatch:hover {
    border-color: #122036;
}

.cs-color-input:checked+.cs-color-swatch {
    border-color: #122036;
    box-shadow: inset 0 0 0 1px #122036;
    background: #f8fbff;
}

.cs-color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(18, 32, 54, 0.15);
    flex-shrink: 0;
}

.cs-color-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #122036;
}

@media (max-width: 575.98px) {
    .cs-color-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Color Swatch Picker (Sell Index / Edit pages) ───────────────────── */

.cs-color-picker {
    position: relative;
    width: 100%;
}

.cs-color-picker button.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.cs-swatch-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}

.cs-color-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 240px;
    z-index: 1050;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-height: 280px;
    overflow-y: auto;
    padding: 0.25rem 0;
    list-style: none;
    margin: 0;
}

.cs-color-dropdown.cs-open {
    display: block;
}

.cs-color-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #212529;
    transition: background 0.1s;
}

.cs-color-option:hover {
    background: #f0f4ff;
}

.cs-color-option.cs-selected {
    background: #eef2ff;
    font-weight: 600;
}

/* ── Listing Gallery ── */
.cs-gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 5;
    pointer-events: none;
    letter-spacing: 0.03em;
}

.cs-gallery-slide-img {
    cursor: zoom-in;
}

.cs-gallery-thumb {
    opacity: 0.6;
    transition: opacity 0.15s, outline 0.15s;
    outline: 2px solid transparent;
    outline-offset: 1px;
}

.cs-gallery-thumb.active,
.cs-gallery-thumb:hover {
    opacity: 1;
    outline-color: #ffc107;
}

.cs-lightbox-img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    display: block;
}

/* ── Vehicle Feature Chips ─────────────────────────────────────────────── */
.cs-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.cs-feature-chip {
    display: inline-flex;
    align-items: center;
    background: #f0f4ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.cs-feature-view-all {
    background: none;
    border: none;
    padding: 3px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.cs-feature-view-all:hover {
    color: #111827;
}

/* ── Features Modal ────────────────────────────────────────────────────── */
.cs-feat-cat-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.cs-feat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-feat-list li {
    padding: 4px 0;
    font-size: 0.875rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-feat-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
}


/* ── Listing Detail Sections ────────────────────────────────────────── */
.cs-detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.cs-detail-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

/* ── Seller Highlights ──────────────────────────────── */
.cs-seller-highlight-chip {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── From the Seller ────────────────────────────────── */
.cs-seller-facts-grid {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.cs-seller-fact {
    flex: 1 1 120px;
    padding: 0.65rem 1rem;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.cs-seller-fact-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cs-seller-fact-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a2e;
}

.cs-cond-badge {
    font-size: 0.75rem;
    font-weight: 600;
}

.cs-seller-dmg-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cs-seller-issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.cs-seller-issue-item {
    padding: 2px 0 2px 1.25rem;
    position: relative;
    margin-bottom: 4px;
}

.cs-seller-issue-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cs-issue-ok::before {
    background: #22c55e;
}

.cs-issue-warn::before {
    background: #f59e0b;
}

.cs-seller-comments {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

/* ─── Premium UI Utilities ─────────────────────────────────────────── */

.cs-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.cs-card-hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.cs-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.cs-buying-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.cs-selling-header {
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.cs-buying-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cs-badge-soft {
    border: none;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    letter-spacing: 0.02em;
}

.cs-badge-soft-success { background: #dcfce7; color: #166534; }
.cs-badge-soft-primary { background: #e0e7ff; color: #3730a3; }
.cs-badge-soft-warning { background: #fef9c3; color: #854d0e; }
.cs-badge-soft-secondary { background: #f3f4f6; color: #374151; }

.cs-empty-hero {
    padding: 5rem 2rem;
    text-align: center;
    background: #fafafa;
    border: 1px dashed #e5e7eb;
    border-radius: 1.5rem;
}

.cs-empty-icon {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    color: #9ca3af;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cs-text-gradient {
    background: linear-gradient(135deg, #fff 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.cs-fade-in-up {
    animation: csFadeInUp 0.6s ease-out both;
}

/* Staggered delay for cards */
.cs-vehicle-card:nth-child(1) { animation-delay: 0.1s; }
.cs-vehicle-card:nth-child(2) { animation-delay: 0.2s; }
.cs-vehicle-card:nth-child(3) { animation-delay: 0.3s; }
.cs-vehicle-card:nth-child(4) { animation-delay: 0.4s; }
.cs-vehicle-card:nth-child(n+5) { animation-delay: 0.5s; }

/* ─── Flexible Photo Upload ─────────────────────────────────────────── */
.cs-photo-upload-container {
    margin-bottom: 1.5rem;
}

.cs-mode-card {
    height: 100%;
}

.cs-upload-card-trigger {
    aspect-ratio: 16 / 10;
    min-height: 160px;
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cs-upload-card-trigger:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px);
    background: rgba(139, 92, 246, 0.02);
}

.cs-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 40px;
}

.cs-photo-preview.cs-card-preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.cs-card-placeholder {
    text-align: center;
    padding: 1.5rem;
    transition: opacity 0.2s;
}

.cs-card-icon {
    color: #9ca3af;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.cs-upload-card-trigger:hover .cs-card-icon {
    color: #8b5cf6;
}

.cs-card-text {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.cs-card-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.cs-card-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(4px);
    z-index: 10;
}

.cs-upload-card-trigger:hover .cs-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* When image is present */
.cs-upload-card-trigger.has-image {
    border-style: solid;
    border-color: #e5e7eb;
}

.cs-upload-card-trigger.has-image .cs-card-placeholder {
    display: none;
}

.cs-upload-card-trigger.has-image .cs-thumb-wrapper {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.cs-thumb-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.cs-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Delete Icon */
.cs-delete-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    padding: 0;
    line-height: 1;
    transition: transform 0.1s, background 0.1s;
}

.cs-delete-icon:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.cs-delete-icon:active {
    transform: scale(0.9);
}

/* Lender PDF preview card */
.sc-lender-pdf-preview {
    position: relative;
    border-radius: 8px;
    overflow: visible;
}

.sc-lender-pdf-preview .cs-delete-icon {
    top: -8px;
    right: -8px;
}

/* Color Options Grid (Scrollable) */
.cs-color-options-grid {
    max-height: 280px;
    overflow-y: auto;
}
                
                
/* ── Seller Live Page: Test Drive list ─────────────── */
.cs-live-td-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cs-live-td-row {
    padding: 0.625rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* ── Skipper Central: Assigned Listing Checklist Padding ── */
.sc-checklist-item {
    padding-left: 15px !important;
}

/* ── Skipper Central: Card & Layout Helpers ── */
.sc-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.sc-card-header {
    background: #0d1b2a; /* Navy fallback */
    background: var(--cs-navy, #0d1b2a);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: .03em;
    padding: 14px 20px;
}

.sc-card-body {
    padding: 20px;
}

.sc-sig-component-wrapper {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

.sc-btn-next {
    background: #8b5cf6;
    color: white;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    transition: background 0.2s;
}

.sc-btn-next:hover {
    background: #7c3aed;
    color: white;
}

/* ─── Skipper Central Signature Alignment ──────────────────────────── */
.sc-sig-component-wrapper {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ─── Service Contract Radio Cards ────────────────────────────────── */
.sc-contract-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sc-contract-card {
    position: relative;
    cursor: pointer;
}

.sc-contract-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sc-contract-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: #0d1b2a; /* Dark navy from implementation rules */
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    transition: all 0.2s ease;
}

.sc-contract-card:hover .sc-contract-box {
    border-color: rgba(255, 255, 255, 0.3);
    background: #162a3f;
}

.sc-contract-card input[type="radio"]:checked + .sc-contract-box {
    border-color: #ffc107; /* Yellow/Gold accent from image */
    background: #162a3f;
    box-shadow: 0 0 0 1px #ffc107;
}

.sc-contract-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sc-contract-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sc-contract-card input[type="radio"]:checked + .sc-contract-box .sc-contract-title {
    color: #ffc107;
}

.sc-contract-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.sc-contract-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-align: right;
}

.sc-contract-price.incl {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
}

.sc-contract-icon {
    font-size: 0.9rem;
    color: #ffc107;
    display: none;
}

.sc-contract-card input[type="radio"]:checked + .sc-contract-box .sc-contract-icon {
    display: inline-block;
}

/* ─── Segmented Control (Tabs) ────────────────────────────────────── */
.sc-segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
    position: relative;
    user-select: none;
    max-width: 400px;
    margin: 0 auto;
}

.sc-segmented-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sc-segmented-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sc-segmented-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sc-segmented-item:hover .sc-segmented-label {
    color: #0d1b2a;
}

.sc-segmented-item input[type="radio"]:checked + .sc-segmented-label {
    color: #0d1b2a;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sc-segmented-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.sc-segmented-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Dark Theme Variant */
.sc-segmented-control.theme-dark {
    background: #0d1b2a;
    border: 1px solid rgba(255,255,255,0.1);
}

.sc-segmented-control.theme-dark .sc-segmented-label {
    color: rgba(255,255,255,0.6);
}

.sc-segmented-control.theme-dark .sc-segmented-item:hover .sc-segmented-label {
    color: #fff;
}

.sc-segmented-control.theme-dark .sc-segmented-item input[type="radio"]:checked + .sc-segmented-label {
    background: #1e293b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.1);
}

/* Card Header Overrides for Premium Feel */
.sc-step-card-header.bg-dark {
    background: #0d1b2a !important; /* Force Brand Navy */
}

.sc-step-card-header.bg-success {
    background: #064e3b !important; /* Deep Emerald */
}

/* ─── Step 5: Payment Verification ────────────────────────────────── */
.sc-payment-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.sc-payment-pill {
    position: relative;
    cursor: pointer;
}

.sc-payment-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sc-payment-pill-label {
    display: block;
    padding: 0.625rem 1.25rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sc-payment-pill:hover .sc-payment-pill-label {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.sc-payment-pill input[type="radio"]:checked + .sc-payment-pill-label {
    background: #0d1b2a;
    border-color: #0d1b2a;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sc-method-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.sc-wire-info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.sc-wire-info-value {
    font-weight: 800;
    font-size: 1.1rem;
    color: #0d1b2a;
}

.sc-zelle-qr-placeholder {
    width: 140px;
    height: 140px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    padding: 10px;
}

.sc-confirm-count-box {
    background: #0d1b2a;
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.sc-confirm-count-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #10b981; /* Emerald 500 */
    line-height: 1;
    margin: 0.5rem 0;
}

.sc-check-upload-wrapper .cs-upload-card-trigger {
    aspect-ratio: 16 / 9;
    min-height: 120px !important;
}

.sc-upload-direct {
    border: 2px dashed #0d1b2a;
    background: #f1f5f9;
    padding: 1.25rem 1rem;
    min-height: 120px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sc-upload-direct:hover {
    background: #e2e8f0;
    border-color: #1e293b;
}

.sc-upload-direct-icon {
    font-size: 1.75rem;
    color: #0d1b2a;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.sc-upload-direct-text {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0;
}

.sc-security-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 1rem;
    color: #92400e;
    font-size: 0.85rem;
}

/* Skipper Central — appointment badge on deal cards */
.sc-appt-badge { background: #0d6efd; color: #fff; font-size: 0.72rem; display: inline-flex; align-items: center; }

/* Step 6 — Plate Assignment UI */
.sc-plate-entry-card {
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    padding: 2.5rem;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.sc-plate-entry-card::before {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d1b2a' opacity='0.03'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.sc-plate-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.sc-plate-input-wrapper {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.sc-plate-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.sc-plate-input-large {
    border: none;
    width: 100%;
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    color: #0d1b2a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    outline: none;
    background: transparent;
}

.sc-plate-input-large::placeholder {
    color: #e2e8f0;
}

/* Tag Preview (Success State) */
.sc-tag-preview-container {
    background: #0d1b2a;
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sc-tag-preview {
    background: white;
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    border: 4px solid #1e293b;
    padding: 8px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.sc-tag-inner {
    border: 2px solid #e2e8f0;
    padding: 4px;
    position: relative;
    /* Checkered pattern border-like effect */
    background-image: 
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.sc-tag-content {
    background: white;
    padding: 2.5rem 1rem 1.5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sc-tag-number {
    font-size: 5rem;
    font-weight: 950;
    color: #0d1b2a;
    line-height: 0.85;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.sc-tag-vehicle {
    font-size: 1rem;
    font-weight: 900;
    color: #0d1b2a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
}

.sc-tag-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 2px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: 1rem;
}

.sc-tag-exp-box { text-align: left; }

.sc-tag-exp-label {
    font-size: 0.65rem;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.sc-tag-exp-date {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0d1b2a;
}

.sc-tag-dmv {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0d1b2a;
}

.sc-success-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2rem;
}


/* ─── Step 7: Sale Complete UI ────────────────────────────────────── */
.sc-complete-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f6;
    margin-bottom: 2rem;
}

.sc-complete-header {
    background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
    padding: 3.5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.sc-complete-header::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' opacity='0.05'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E");
    background-size: 300px;
    background-position: center;
    background-repeat: no-repeat;
}

.sc-complete-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sc-vehicle-card-premium {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin: -2.5rem 1.5rem 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sc-vehicle-label-mini {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.sc-vehicle-title-lg {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0d1b2a;
    margin-bottom: 0.5rem;
}

.sc-vehicle-vin-badge {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.sc-jacket-container {
    padding: 0 1.5rem 2rem;
}

.sc-document-jacket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-document-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.sc-document-item:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: translateX(4px);
}

.sc-doc-icon-box {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #3b82f6;
    margin-right: 1rem;
}

.sc-doc-status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 2px;
    display: inline-block;
}

.sc-doc-status-signed { background: #dcfce7; color: #059669; }
.sc-doc-status-unsigned { background: #fee2e2; color: #dc2626; }

.sc-doc-view-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s ease;
}

.sc-doc-view-btn:hover {
    background: #0d1b2a;
    border-color: #0d1b2a;
    color: white;
}

.sc-final-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

/* ── Assigned Listing status badges ─────────────────────────────────────── */
.sc-listing-badge-progress  { background: #fef3c7; color: #92400e; }
.sc-listing-badge-testdrive { background: #dbeafe; color: #1e40af; }
.sc-listing-badge-awaiting  { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.sc-listing-badge-completed { background: #dcfce7; color: #059669; }

/* ── Deal schedule: date group header ───────────────────────────────────── */
.sc-date-group-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 0.5rem 1.5rem 0.25rem;
    border-top: 1px solid #f1f5f9;
}
.sc-date-group-header:first-child { border-top: none; }

/* ── Deal schedule: step color badges ───────────────────────────────────── */
.sc-step-badge  { background: #e2e8f0; color: #475569; font-size: 0.75rem; }
.sc-step-early  { background: #fef3c7; color: #92400e; font-size: 0.75rem; }
.sc-step-mid    { background: #dbeafe; color: #1e40af; font-size: 0.75rem; }
.sc-step-late   { background: #ede9fe; color: #5b21b6; font-size: 0.75rem; }
.sc-step-done   { background: #dcfce7; color: #059669; font-size: 0.75rem; }

/* ── Deal schedule: deal number ─────────────────────────────────────────── */
.sc-deal-number {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.03em;
}
