/**
 * Lot Page Components Styles
 * Extracted from views/auction/lot.php
 * All inline CSS blocks consolidated
 */

/* ========== Block 1 from lot.php ========== */
.gallery-container {
    position: sticky;
    top: 60px;
    height: fit-content;
    z-index: 999;
}

.ant-row {
    max-width: 1400px;
    margin: auto !important;
    position: relative;
    grid-template-columns: 60% 40%;
}

@media (max-width: 768px) {
    .gallery-container {
        position: relative;
        top: 0;
    }
    
    .lot-hero-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .lot-hero-price {
        width: 100%;
        text-align: left;
    }
    
    .lot-stats-left {
        gap: 16px;
    }
    
    .xai-header-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .xai-header-vin-code {
        font-size: 12px;
    }
    
    .thumbnail img {
        height: 80px;
    }
    
    .ant-table-content p {
        display: flex;
        justify-content: space-between;
        white-space: nowrap;
    }
    
    .xai-title-info-details {
        padding: 0;
        overflow: hidden;
    }
    
    .xai-title-info-notes {
        display: none;
    }
    
    .expert-card {
        margin-top: 10px;
        padding: 10px;
    }
    
    .expert-header {
        flex-wrap: wrap;
    }
    
    .expert-contact-btn {
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
    
    .entry-main {
        gap: 4px;
        width: 100%;
        white-space: nowrap;
    }
    
    h3.stage-title span {
        font-weight: 600;
        color: #456277;
        margin-right: 20px;
    }
    
    .xai-header-info-details {
        display: flex;
        align-items: center;
        gap: 5px;
        justify-content: space-between;
        width: 100%;
    }
    
    p.xai-header-auction-state {
        display: none;
    }
    
    .auction-status-minimal {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn-participate {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lot-hero {
        padding: 14px;
    }
    
    .lot-hero-title h1 {
        font-size: 18px;
    }
    
    .lot-brand-logo {
        width: 36px;
        height: 36px;
    }
    
    .lot-stats-left {
        flex-direction: column;
        gap: 8px;
    }
    
    .lot-stat {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========== Block 2 from lot.php ========== */
.lot-breadcrumbs {
    display: flex;
    align-items: center;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb-item:hover {
    color: #2563eb;
}

.breadcrumb-item svg {
    color: #9ca3af;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: #d1d5db;
}

.breadcrumb-current {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .lot-breadcrumbs {
        padding: 0 12px;
        margin-bottom: 8px;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .breadcrumb-current {
        font-size: 12px;
        max-width: 120px;
    }
}

/* ========== Block 3 from lot.php ========== */
/* ===== LOT HEADER - BID.CARS STYLE ===== */
.lot-header-new {
    background: #fff;
    box-shadow: 0 2px 3px rgba(51, 65, 80, 0.03);
}

.lot-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Top bar */
.item_top_bar {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.breadcrumbs-row {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
}

.bc-item a {
    color: #7F8FA4;
    text-decoration: none;
}

.bc-item a:hover {
    color: #334250;
    text-decoration: underline;
}

.bc-sep {
    color: #ccc;
    margin: 0 8px;
}

.bc-current {
    color: #334250;
}

.people-watch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7F8FA4;
}

.people-watch b {
    color: #334250;
}

/* Main content */
.lot-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 16px 0;
}

.lot-left-side {
    flex: 1;
    display: grid;
    gap: 8px;
}

/* Specs icons */
.lot-specs-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lot-specs-icons span {
    display: flex;
    align-items: center;
}

.lot-specs-icons svg {
    opacity: 0.7;
}

.lot-specs-icons .spec-text {
    font-size: 13px;
    color: #7F8FA4;
    padding-left: 8px;
    border-left: 1px solid #e5e5e5;
    margin-left: 4px;
}

/* Lot name row */
.lot-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lot-title-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lot-car-name {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    color: #1a1a1a;
}

.lot-vin-title {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 12px;
    color: #334250;
    background: #f5f6f8;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
    display: inline-block;
    line-height: inherit;
}

.lot-vin-title:hover {
    background: #e8eaed;
}

.lot-vin-title.copied {
    background: #d4edda;
    color: #155724;
}

.lot-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    color: #1a1a1a;
}

.lot-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lot-auction-logo {
    height: 20px;
    width: auto;
}

.lot-vin {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 12px;
    color: #334250;
    background: #f5f6f8;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.lot-vin:hover {
    background: #e8eaed;
}

.lot-vin.copied {
    background: #d4edda;
    color: #155724;
}

.lot-id {
    font-size: 12px;
    color: #7F8FA4;
    background: #f5f6f8;
    padding: 4px 10px;
    border-radius: 4px;
}

.lot-auction-link {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: capitalize;
}

.lot-auction-link.copart {
    background: #e3f2fd;
    color: #1565c0;
}

.lot-auction-link.iaai {
    background: #fff3e0;
    color: #e65100;
}

/* Lot info list */
.lot-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.lot-info-list li {
    font-size: 13px;
    color: #334250;
    padding-right: 12px;
    margin-right: 12px;
    border-right: 1px solid rgba(127, 143, 164, 0.2);
}

.lot-info-list li:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.lot-info-list li span {
    color: #7F8FA4;
}

/* Блок SEO-тексту під основним контентом лота (перед «Схожі авто») */
.lot-seo-intro-below {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Унікальний SEO-опис лота — читабельна типографіка */
.lot-seo-intro {
    background: #fff;
    border: 1px solid var(--pro-header-border, #e2e8f0);
    border-radius: 12px;
    padding: 32px;
    margin-top: 32px;
}

.lot-seo-h3 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.lot-seo-h4 {
    margin: 1.25rem 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
}

.lot-seo-intro p {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #475569;
}

.lot-seo-intro p:last-child {
    margin-bottom: 0;
}

.lot-seo-faq {
    margin: 0;
}

.lot-seo-faq dt {
    font-weight: 600;
    color: #1e293b;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.lot-seo-faq dt:first-child {
    margin-top: 0;
}

.lot-seo-faq dd {
    margin: 0.35rem 0 0 0;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .lot-seo-intro {
        padding: 14px;
        border-radius: 10px;
        margin-top: 24px;
    }
    .lot-seo-intro-heading {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    .lot-seo-intro p {
        font-size: 0.875rem;
        line-height: 1.65;
    }
}

.lot-info-list li b {
    color: #1a1a1a;
}

/* Right side */
.lot-right-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.delivery-time-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
    text-align: right;
    flex-direction: row-reverse;
}

.delivery-time-box:hover {
    opacity: 0.8;
}

.dt-content {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.dt-label {
    font-size: 11px;
    color: #7F8FA4;
}

.dt-date {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

.watch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #334250;
    cursor: pointer;
    transition: all 0.15s;
}

.watch-btn:hover {
    border-color: #7F8FA4;
    background: #f5f6f8;
}

/* Bottom bar */
.lot-bottom-bar {
    background: #f9fafb;
    border-top: 1px solid #f0f0f0;
    padding: 10px 0;
}

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

.lot-bottom-left {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
}

.spec-item svg {
    flex-shrink: 0;
}

.spec-label {
    color: #374151;
}

.spec-mileage .spec-label {
    color: #1f2937;
}

.spec-mileage strong {
    font-weight: 600;
}

.spec-km {
    color: #9ca3af;
    font-size: 12px;
}

.bottom-bar-separator {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0;
}

.lot-history-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    font-size: 13px !important;
    color: #374151 !important;
    cursor: pointer !important;
    padding: 6px 12px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
}

.lot-history-btn:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}


.lot-history-btn.active {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.lot-history-btn #btn-bid-history-meta {
    color: #6b7280 !important;
    font-weight: 400 !important;
    font-size: 12px !important;
}

.lot-history-btn .btn-chevron {
    color: #9ca3af;
    transition: transform 0.2s;
    margin-left: 2px;
}

.lot-history-btn.active .btn-chevron {
    transform: rotate(180deg);
    color: #3b82f6;
}

.history-resold-badge {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    position: relative;
}

.history-resold-badge.show {
    display: inline-flex;
}

.resold-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.resold-tooltip .warning-icon {
    filter: none;
    animation: none;
}

.resold-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.history-resold-badge .warning-icon {
    flex-shrink: 0;
    filter: invert(75%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(105%) contrast(105%);
    animation: pulse-warning-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-warning-glow {
    0%, 100% { 
        filter: invert(75%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(105%) contrast(105%) drop-shadow(0 0 0 transparent);
        opacity: 1;
    }
    50% { 
        filter: invert(75%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(105%) contrast(105%) drop-shadow(0 0 10px #fbbf24);
        opacity: 0.9;
    }
}

.lot-history-btn:hover {
    color: #1a1a1a;
}

.lot-history-btn.active {
    color: #2563eb;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 8px;
}

.lot-history-btn.active svg {
    opacity: 1;
}

.lot-history-btn svg {
    opacity: 0.5;
}


.lot-bottom-right {
    display: flex;
    align-items: center;
}

.auction-time-box {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.auction-time-box .indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.auction-time-box .indicator.grey {
    background: #7F8FA4;
}

.auction-date {
    font-weight: 500;
    color: #1a1a1a;
}

.auction-status-box {
    font-size: 13px;
    color: #7F8FA4;
}

.auction-status-box.live {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auction-status-box.live .indicator {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse-indicator 1.5s ease-in-out infinite;
}

.auction-status-box.live span:last-child {
    color: #dc2626;
    font-weight: 600;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Mobile */
@media (max-width: 768px) {
    .lot-main-content {
        flex-direction: column;
    }
    
    .lot-right-side {
        width: 100%;
        justify-content: space-between;
    }
    
    .lot-title {
        font-size: 16px;
        width: 100%;
    }
    
    .lot-car-name {
        font-size: 12px;
    }
    
    .lot-name-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lot-info-list {
        flex-direction: column;
        gap: 6px;
    }
    
    .lot-info-list li {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }
    
    .breadcrumbs-row {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        font-size: 11px;
        padding: 8px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .breadcrumbs-row::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumbs-row .bc-item {
        white-space: nowrap;
    }
    
    .breadcrumbs-row .bc-separator {
        font-size: 10px;
        opacity: 0.5;
    }
    
    .lot-bottom-bar .lot-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .lot-bottom-left {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .lot-bottom-right {
        width: 100%;
    }
    
    .dt-content {
        display: flex;
        flex-direction: row;
        line-height: 1.3;
        justify-content: space-between;
        width: 100%;
    }
    
    .dt-icon {
        display: none;
    }
    
    .auction-time-box {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .lot-history-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px !important;
        background: #f3f4f6 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        flex-wrap: wrap;
        row-gap: 6px;
    }
    
    .lot-history-btn.has-warning {
        background: #fef2f2 !important;
        border: 1px solid #fecaca !important;
    }
    
    .lot-history-btn #btn-bid-history-meta {
        font-size: 11px !important;
    }
    
    .bottom-bar-separator {
        display: none;
    }
    
    .auction-date {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
        background: #f9fafb;
        border-radius: 6px;
        font-size: 13px;
    }
    
    .history-resold-badge {
        position: static;
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding-top: 4px;
        border-top: 1px solid #fecaca;
        margin-top: 2px;
    }
    
    .history-resold-badge #history-lot-warning-text {
        color: #dc2626;
        font-weight: 600;
    }
    
    .resold-tooltip {
        position: absolute;
    }
    
    button#btn-bid-history-ajax {
        position: relative;
    }
    
    .resold-tooltip .warning-icon {
        filter: brightness(0) invert(1);
    }
    
    .resold-tooltip::after {
        display: none;
    }
    
    .lot-header-new {
        padding: 0 10px;
    }
    
    .delivery-time-box {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 0;
        border-radius: 0;
        text-decoration: none;
        color: inherit;
        text-align: right;
        flex-direction: row-reverse;
    }
    
    .lot-left-side {
        gap: 0;
    }
    
    .lot-main-content {
        gap: 10px;
        padding: 0;
        margin-bottom: 10px;
    }
    
    .people-watch {
        display: none;
    }
    
    .dt-label {
        font-size: 13px;
        color: #7F8FA4;
    }
}

@media (max-width: 480px) {
    .lot-history-btn {
        padding: 10px !important;
        font-size: 13px !important;
        gap: 6px !important;
    }
    
    .lot-history-btn .btn-chevron {
        width: 8px;
        height: 5px;
    }
    
    .lot-history-btn #btn-bid-history-meta {
        font-size: 10px !important;
    }
    
    .history-resold-badge {
        gap: 6px;
        padding-top: 6px;
    }
    
    .history-resold-badge #history-lot-warning-text {
        font-size: 11px;
    }
    
    .resold-tooltip {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .auction-date {
        font-size: 12px;
        padding: 6px 10px;
    }
}

.lot-stat-label {
    font-size: 11px;
    color: #9ca3af;
}

.lot-stat-value {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.lot-stat-mileage {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.lot-stat-mileage strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.lot-stats-right {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

/* Auction Status Card */
/* Auction Status Card - Unified Organic Design */
.auction-status-minimal {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auction-status-minimal:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

/* Timer Section */
.status-chip-group {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    position: relative;
}

.status-chip-group::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, #a7f3d0 50%, transparent 100%);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    background: none;
}

.status-chip.sold {
    color: #dc2626;
}

.status-chip.sold + .btn-reminder { display: none; }

/* Sold state - red tint */
.status-chip.sold ~ .status-price-minimal,
.auction-status-minimal:has(.status-chip.sold) .status-price-minimal {
    color: #b91c1c;
}

.auction-status-minimal:has(.status-chip.sold) .status-chip-group {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.auction-status-minimal:has(.status-chip.sold) .status-chip-group::after {
    background: linear-gradient(180deg, transparent 0%, #fca5a5 50%, transparent 100%);
}

.status-chip.ended {
    color: #6b7280;
}

/* Ended state - gray tint */
.auction-status-minimal:has(.status-chip.ended) .status-chip-group {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.auction-status-minimal:has(.status-chip.ended) .status-chip-group::after {
    background: linear-gradient(180deg, transparent 0%, #d1d5db 50%, transparent 100%);
}

.status-chip.active {
    color: #059669;
}

.btn-reminder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 10px;
    padding: 0;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid #86efac;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #10b981;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
}

.btn-reminder:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
    color: #d97706;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 3px 8px rgba(251, 191, 36, 0.3);
}

.btn-reminder:hover svg {
    animation: bell-ring 0.6s ease;
}

.btn-reminder.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #d97706;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(18deg); }
    30% { transform: rotate(-18deg); }
    45% { transform: rotate(12deg); }
    60% { transform: rotate(-12deg); }
    75% { transform: rotate(6deg); }
    90% { transform: rotate(-6deg); }
}

/* Price Section */
.status-price-minimal {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    white-space: nowrap;
    position: relative;
}

.status-price-minimal::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, #cbd5e1 50%, transparent 100%);
}

.status-price-minimal.muted {
    color: #64748b;
}

/* Participate Button */
.btn-participate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-participate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.btn-participate:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateX(2px);
}

.btn-participate:hover::before {
    left: 100%;
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-chip.sold .chip-dot {
    background: #dc2626;
}

.status-chip.ended .chip-dot {
    background: #9ca3af;
}

.status-chip.active .chip-dot {
    background: #22c55e;
}

.chip-dot.pulse {
    animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.chip-text {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    line-height: 1.2;
}

.btn-sale-history {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-sale-history:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}
.btn-sale-history svg {
    flex-shrink: 0;
}

/* Bid History Button - Card Style */
.btn-bid-history {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.btn-bid-history:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.btn-bid-history > svg:first-child {
    width: 18px;
    height: 18px;
    color: #3b82f6;
    flex-shrink: 0;
}

.btn-bid-history-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.btn-bid-history-label {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.btn-bid-history-meta {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.2;
}

.btn-bid-history-arrow {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-bid-history:hover .btn-bid-history-arrow {
    color: #3b82f6;
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .btn-bid-history {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .btn-bid-history > svg:first-child {
        width: 16px;
        height: 16px;
    }
    
    .btn-bid-history-label {
        font-size: 11px;
    }
    
    .btn-bid-history-meta {
        font-size: 10px;
    }
    
    .btn-bid-history-arrow {
        display: none;
    }
}

/* Legacy bid button support */
.lot-bid-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.lot-bid-btn:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

.lot-bid-btn svg {
    flex-shrink: 0;
}

/* Модальне вікно */
.bid-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bid-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.bid-modal {
    --bid-accent: #22c55e;
    --bid-accent-rgb: 34, 197, 94;
    position: relative;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    color: #fff;
}

.bid-modal::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(var(--bid-accent-rgb), 0.25) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.bid-modal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(3px 3px at 20% 25%, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
        radial-gradient(4px 4px at 75% 12%, rgba(255, 255, 255, 0.7) 0%, transparent 70%),
        radial-gradient(5px 5px at 88% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 70%),
        radial-gradient(3px 3px at 55% 55%, rgba(255, 255, 255, 0.5) 0%, transparent 70%),
        radial-gradient(6px 6px at 92% 20%, rgba(var(--bid-accent-rgb), 0.5) 0%, transparent 70%),
        radial-gradient(4px 4px at 35% 75%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    filter: blur(1px);
}

.bid-modal > * {
    position: relative;
    z-index: 1;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.bid-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
    z-index: 10;
}

.bid-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.bid-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bid-modal-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bid-accent) 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--bid-accent-rgb), 0.4);
}

.bid-modal-icon svg {
    width: 22px;
    height: 22px;
}

.bid-modal-header-text {
    flex: 1;
}

.bid-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
}

.bid-modal-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.bid-modal-lot-info {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bid-modal-lot-image {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bid-modal-lot-details {
    flex: 1;
    min-width: 0;
}

.bid-modal-lot-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.bid-modal-lot-price,
.bid-modal-lot-buynow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.bid-modal-label {
    color: rgba(255, 255, 255, 0.5);
}

.bid-modal-value {
    font-weight: 600;
    color: var(--bid-accent);
}

.bid-modal-buynow {
    color: #fbbf24;
}

.bid-modal-promise {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(var(--bid-accent-rgb), 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

.bid-modal-promise-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(var(--bid-accent-rgb), 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bid-accent);
}

.bid-modal-promise-icon svg {
    width: 14px;
    height: 14px;
}

.bid-modal-promise p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.bid-modal-form {
    padding: 16px 20px 20px;
}

.bid-modal-input-group {
    margin-bottom: 14px;
}

.bid-modal-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.bid-modal-phone-input {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.bid-modal-phone-input:focus-within {
    border-color: var(--bid-accent);
}

.bid-modal-phone-prefix {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.bid-modal-phone-input input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #fff;
}

.bid-modal-phone-input input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.bid-modal-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--bid-accent) 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(var(--bid-accent-rgb), 0.4);
}

.bid-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--bid-accent-rgb), 0.5);
}

.bid-modal-submit:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bid-modal-privacy {
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin: 12px 0 0;
}

.bid-modal-privacy a {
    color: var(--bid-accent);
    text-decoration: none;
}

.bid-modal-privacy a:hover {
    text-decoration: underline;
}

/* Успішне відправлення */
.bid-modal-success {
    padding: 40px 24px;
    text-align: center;
}

.bid-modal-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--bid-accent) 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: successPulse 0.5s ease;
    box-shadow: 0 8px 24px rgba(var(--bid-accent-rgb), 0.4);
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.bid-modal-success h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.bid-modal-success p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px;
}

.bid-modal-close-btn {
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.bid-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== NEW BID MODAL (Professional Design) ===== */
.bid-modal-new {
    display: flex;
    background: #fff;
    border-radius: 20px;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: bidSlideIn 0.3s ease-out;
}
@keyframes bidSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.bid-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.bid-close:hover {
    background: #fff;
    color: #0f172a;
    transform: scale(1.1);
}

/* Bid Sidebar */
.bid-sidebar {
    width: 340px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 28px;
    display: flex;
    flex-direction: column;
    color: #fff;
}
.bid-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bid-car-image {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.05);
}
.bid-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bid-car-info {
    margin-bottom: 16px;
}
.bid-car-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.bid-car-vin {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-family: monospace;
}
.bid-price-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.bid-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bid-price-row + .bid-price-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.bid-price-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.bid-price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #22c55e;
}
.bid-buynow {
    color: #fbbf24;
}
.bid-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.bid-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}
.bid-feature svg {
    color: #60a5fa;
    flex-shrink: 0;
}

/* Bid Form Section */
.bid-form-section {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.bid-form-header {
    margin-bottom: 20px;
}
.bid-form-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.bid-form-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}
.bid-promise {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 20px;
}
.bid-promise-icon {
    width: 40px;
    height: 40px;
    background: #22c55e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.bid-promise-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bid-promise-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #166534;
}
.bid-promise-text span {
    font-size: 0.8rem;
    color: #4ade80;
}
.bid-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bid-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bid-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
}
.bid-field label span {
    color: #ef4444;
}
.bid-phone-wrapper {
    display: flex;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.2s;
}
.bid-phone-wrapper:focus-within {
    border-color: #0285ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 133, 255, 0.1);
}
.bid-phone-code {
    padding: 14px 14px;
    background: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    border-right: 1px solid #e2e8f0;
}
.bid-phone-wrapper input {
    flex: 1;
    padding: 14px 16px;
    font-size: 1rem;
    border: none;
    outline: none;
    background: transparent;
}
.bid-phone-wrapper input::placeholder {
    color: #94a3b8;
}
.bid-submit {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #0285ff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.bid-submit:hover {
    background: #0070e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 133, 255, 0.3);
}
.bid-privacy {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}
.bid-privacy a {
    color: #0285ff;
    text-decoration: none;
}
.bid-privacy a:hover {
    text-decoration: underline;
}

/* Bid Divider */
.bid-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}
.bid-divider::before,
.bid-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.bid-divider span {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Bid Contacts */
.bid-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bid-phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}
.bid-phone-btn:hover {
    background: #e2e8f0;
}
.bid-messengers {
    display: flex;
    gap: 8px;
}
.bid-msg {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.bid-tg { background: #e7f5ff; color: #0088cc; }
.bid-tg:hover { background: #0088cc; color: #fff; }
.bid-vb { background: #f3eeff; color: #7360f2; }
.bid-vb:hover { background: #7360f2; color: #fff; }
.bid-wa { background: #e8f8ee; color: #25d366; }
.bid-wa:hover { background: #25d366; color: #fff; }

/* Bid Success */
.bid-success {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    z-index: 20;
}
.bid-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
    animation: successBounce 0.5s ease;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}
@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.bid-success h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.bid-success p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 20px;
    max-width: 300px;
}
.bid-success-car {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 24px;
}
.bid-success-car img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
}
.bid-success-car span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}
.bid-success-close {
    padding: 12px 32px;
    background: #0285ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.bid-success-close:hover {
    background: #0070e0;
}

/* Bid Modal Mobile */
@media (max-width: 768px) {
    .bid-modal-new {
        flex-direction: column;
        max-height: 95vh;
    }
    .bid-sidebar {
        width: 100%;
        padding: 20px;
    }
    .bid-car-image {
        aspect-ratio: 16/8;
    }
    .bid-features {
        display: none;
    }
    .bid-form-section {
        padding: 20px;
    }
    .bid-contacts {
        flex-direction: column;
    }
    .bid-phone-btn {
        width: 100%;
    }
    .bid-messengers {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .bid-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .bid-modal-new {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
    }
    .bid-sidebar {
        padding: 16px;
    }
    .bid-car-image {
        aspect-ratio: 16/7;
    }
    .bid-form-section {
        padding: 16px;
    }
}

/* ===== REMINDER MODAL ===== */
.reminder-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reminder-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.reminder-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

.reminder-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
    z-index: 10;
}

.reminder-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.reminder-modal-header {
    text-align: center;
    padding: 28px 24px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #fcd34d;
}

.reminder-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.reminder-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.reminder-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.reminder-modal-lot-info {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.reminder-modal-lot-image {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.reminder-modal-lot-details {
    flex: 1;
    min-width: 0;
}

.reminder-modal-lot-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reminder-modal-auction-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.reminder-modal-auction-time svg {
    color: #f59e0b;
}

.reminder-modal-form {
    padding: 20px 24px;
}

.reminder-time-options {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.reminder-time-option {
    flex: 1;
    cursor: pointer;
}

.reminder-time-option input {
    display: none;
}

.reminder-time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.reminder-time-option input:checked + .reminder-time-box {
    background: #fef3c7;
    border-color: #f59e0b;
}

.reminder-time-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.reminder-time-unit {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.reminder-modal-input-group {
    margin-bottom: 16px;
}

.reminder-modal-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.reminder-method-options {
    display: flex;
    gap: 10px;
}

.reminder-method-option {
    flex: 1;
    cursor: pointer;
}

.reminder-method-option input {
    display: none;
}

.reminder-method-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}

.reminder-method-option input:checked + .reminder-method-box {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

.reminder-method-box svg {
    flex-shrink: 0;
}

.reminder-modal-phone-input {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.reminder-modal-phone-input:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.reminder-modal-phone-prefix {
    padding: 12px 12px 12px 14px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid #e5e7eb;
}

.reminder-modal-phone-input input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #111827;
    outline: none;
}

.reminder-modal-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.reminder-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.reminder-modal-success {
    text-align: center;
    padding: 40px 24px;
}

.reminder-modal-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: successPulse 0.5s ease;
}

.reminder-modal-success h4 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.reminder-modal-success p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
}

.reminder-modal-close-btn {
    padding: 12px 32px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.reminder-modal-close-btn:hover {
    background: #e5e7eb;
}

@media (max-width: 480px) {
    .reminder-time-options {
        gap: 8px;
    }
    
    .reminder-time-box {
        padding: 10px 6px;
    }
    
    .reminder-time-value {
        font-size: 18px;
    }
    
    .reminder-method-options {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== WINDOW STICKER MODAL ===== */
.sticker-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sticker-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.sticker-modal {
    background: #1a1a2e;
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.sticker-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.sticker-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.sticker-modal-title svg {
    color: #a78bfa;
}

.sticker-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticker-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sticker-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    color: #fff;
}

.sticker-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s;
}

.sticker-modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.sticker-modal-body {
    flex: 1;
    position: relative;
    min-height: 600px;
    background: #f5f5f5;
}

.sticker-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 5;
}

.sticker-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(167, 139, 250, 0.2);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.sticker-loading p {
    color: #9ca3af;
    font-size: 15px;
}

.sticker-iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    background: #fff;
}

.sticker-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
    padding: 40px;
    z-index: 6;
}

.sticker-error svg {
    color: #f59e0b;
    margin-bottom: 16px;
}

.sticker-error h4 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 8px;
}

.sticker-error p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0 0 24px;
}

.sticker-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sticker-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    color: #fff;
}

.sticker-modal-footer {
    padding: 14px 20px;
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(167, 139, 250, 0.2);
}

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

.sticker-brand {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.sticker-vin {
    color: #a78bfa;
    font-size: 13px;
    font-family: 'SF Mono', 'Consolas', monospace;
}

@media (max-width: 768px) {
    .sticker-modal {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .sticker-modal-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sticker-modal-title {
        font-size: 16px;
    }
    
    .sticker-modal-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .sticker-download-btn {
        flex: 1;
        justify-content: center;
    }
    
    .sticker-modal-body {
        min-height: 450px;
    }
    
    .sticker-iframe {
        min-height: 450px;
    }
    
    .sticker-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===== CARFAX MODAL ===== */
.carfax-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carfax-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.carfax-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

.carfax-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
    z-index: 10;
}

.carfax-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Loading State */
.carfax-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.carfax-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.carfax-loading p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Result State */
.carfax-modal-header {
    text-align: center;
    padding: 28px 24px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #fcd34d;
}

.carfax-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.carfax-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.carfax-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.carfax-vehicle-info {
    padding: 16px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.carfax-vehicle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.carfax-vehicle-row:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.carfax-vehicle-label {
    font-size: 13px;
    color: #6b7280;
}

.carfax-vehicle-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.carfax-vin {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.carfax-records {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.carfax-email-form {
    padding: 20px 24px;
}

.carfax-form-group {
    margin-bottom: 16px;
}

.carfax-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.carfax-email-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 14px;
    transition: all 0.2s;
}

.carfax-email-input:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.carfax-email-input svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.carfax-email-input input {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #111827;
    outline: none;
}

.carfax-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.carfax-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.carfax-submit-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.carfax-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 24px 20px;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
}

.carfax-note svg {
    color: #f59e0b;
    flex-shrink: 0;
}

/* Success & Error States */
.carfax-success,
.carfax-error {
    text-align: center;
    padding: 40px 24px;
}

.carfax-success-icon,
.carfax-error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 0.5s ease;
}

.carfax-success-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.carfax-error-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.carfax-success h4,
.carfax-error h4 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.carfax-success p,
.carfax-error p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
}

.carfax-close-btn {
    padding: 12px 32px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.carfax-close-btn:hover {
    background: #e5e7eb;
}

/* ===== VIN CHECK MODAL ===== */
.vin-check-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vin-check-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.vin-check-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

.vin-check-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
    z-index: 10;
}

.vin-check-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.vin-check-modal-header {
    text-align: center;
    padding: 28px 24px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom: 1px solid #bfdbfe;
}

.vin-check-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.vin-check-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.vin-check-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.vin-check-vin-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.vin-check-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.vin-check-code {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    letter-spacing: 0.5px;
}

.vin-check-options {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vin-check-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vin-check-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.vin-check-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

button.vin-check-option {
    width: 100%;
    text-align: left;
}

.vin-check-carfax .vin-check-option-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.vin-check-sticker .vin-check-option-icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

.vin-check-option-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.vin-check-decoder .vin-check-option-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.vin-check-theft .vin-check-option-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.vin-check-recalls .vin-check-option-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.vin-check-option-content {
    flex: 1;
    min-width: 0;
}

.vin-check-option-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.vin-check-option-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.vin-check-option-arrow {
    color: #9ca3af;
    transition: all 0.2s ease;
}

.vin-check-option:hover .vin-check-option-arrow {
    color: #3b82f6;
    transform: translateX(4px);
}

.vin-check-footer {
    padding: 14px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.vin-check-footer p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

/* VIN Check Button in Options */
.option-vin {
    flex-wrap: wrap;
}

.vin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
    justify-content: flex-end;
}

.btn-vin-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-vin-check:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.btn-vin-check svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 480px) {
    .vin-check-options {
        padding: 12px;
        gap: 8px;
    }
    
    .vin-check-option {
        padding: 12px;
        gap: 10px;
    }
    
    .vin-check-option-icon {
        width: 38px;
        height: 38px;
    }
    
    .vin-check-option-title {
        font-size: 14px;
    }
    
    .vin-check-code {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .vin-actions {
        flex-wrap: wrap;
    }
}

.lot-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lot-stat-label {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lot-stat-value {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Countdown Timer Styles */
.lot-stat-timer {
    min-width: 100px;
}

.lot-countdown {
    display: flex;
    align-items: center;
    gap: 2px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-unit {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.countdown-value {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
}

.countdown-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    animation: pulse-live 2s ease-in-out infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes pulse-live {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.countdown-ended {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}


/* Expert Card Styles */
.expert-card {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.expert-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expert-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.expert-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.expert-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.expert-role {
    font-size: 12px;
    color: #64748b;
}

.expert-contact-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #22c55e;
    color: #16a34a;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.expert-contact-btn:hover {
    background: #f0fdf4;
}

.expert-contact-btn.active {
    background: #22c55e;
    color: #fff;
}

.expert-note {
    margin: 10px 0 0 0;
    padding: 8px 10px;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    border-left: 3px solid #22c55e;
}

.expert-form-dropdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.expert-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expert-form-row {
    display: flex;
    gap: 10px;
}

.expert-input,
.expert-textarea {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s ease;
}

.expert-input:focus,
.expert-textarea:focus {
    outline: none;
    border-color: #22c55e;
}

.expert-textarea {
    resize: none;
    min-height: 60px;
}

.expert-phone-input {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.expert-phone-prefix {
    padding: 10px 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid #e2e8f0;
}

.expert-phone-input .expert-input {
    border: none;
    border-radius: 0;
}

.expert-submit-btn {
    padding: 10px 20px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.expert-submit-btn:hover {
    background: #16a34a;
}

.expert-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 6px;
    color: #16a34a;
    font-size: 14px;
}

.expert-success p {
    margin: 0;
}

/* Sale History Section - Minimalist Design */
.sale-history-section {
    max-width: 1400px;
    margin: 0 auto 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.sale-history-section.visible {
    display: block;
}

.sale-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fafafa;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e5e7eb;
}

.sale-history-header:hover {
    background: #f5f5f5;
}

.sale-history-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sale-history-header-left svg {
    color: #6b7280;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sale-history-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.sale-history-header-subtitle {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
    margin-left: 8px;
}

.sale-history-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: transparent;
    border: none;
    transition: background 0.15s;
}

.sale-history-toggle:hover {
    background: #e5e7eb;
}

.sale-history-toggle svg {
    color: #9ca3af;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.sale-history-toggle.expanded svg {
    transform: rotate(180deg);
}

.sale-history-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.sale-history-content.expanded {
    max-height: 500px;
    overflow-y: auto;
}

.sale-history-table-wrapper {
    overflow-x: auto;
}

.sale-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sale-history-table thead {
    background: #fafafa;
}

.sale-history-table th {
    text-align: left;
    padding: 10px 16px;
    font-weight: 500;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.sale-history-table td {
    padding: 12px 16px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.sale-history-table tbody tr:last-child td {
    border-bottom: none;
}

.sale-history-table tbody tr:hover td {
    background: #fafafa;
}

.sale-history-table tbody tr.current-row td {
    background: #f0fdf4;
}

.sale-history-table tbody tr.current-row:hover td {
    background: #dcfce7;
}

/* Auction badges */
.sale-history-auction-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sale-history-auction-badge.copart {
    background: #fef3c7;
    color: #92400e;
}

.sale-history-auction-badge.iaai {
    background: #dbeafe;
    color: #1e40af;
}

/* Lot number */
.lot-number-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #111827;
}

.current-lot-indicator {
    background: #22c55e;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-family: system-ui, sans-serif;
}

/* Date */
.sale-history-table td:nth-child(3) {
    color: #6b7280;
    font-size: 12px;
}

/* Price */
.price-cell {
    font-weight: 600;
    color: #111827;
    font-size: 13px;
    font-family: ui-monospace, monospace;
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-cell .price-trend {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-cell .price-trend.up {
    color: #16a34a;
}

.price-cell .price-trend.down {
    color: #dc2626;
}

.price-cell .price-trend svg {
    width: 10px;
    height: 10px;
}

/* Status */
.sale-history-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.sale-history-status.sold {
    background: #dcfce7;
    color: #15803d;
}

.sale-history-status.ended {
    background: #fef2f2;
    color: #b91c1c;
}

.sale-history-status.active {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Footer */
.sale-history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}

.sale-history-footer-stats {
    display: flex;
    gap: 16px;
}

.sale-history-footer-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sale-history-footer-stats strong {
    color: #111827;
    font-weight: 600;
}

.sale-history-close-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.sale-history-close-btn:hover {
    background: #f5f5f5;
    color: #374151;
    border-color: #d1d5db;
}

/* Mobile */
@media (max-width: 640px) {
    .sale-history-section {
        margin: 0 0 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .sale-history-header {
        padding: 12px 16px;
    }
    
    .sale-history-header h3 {
        font-size: 13px;
    }
    
    .sale-history-table th,
    .sale-history-table td {
        padding: 10px 12px;
    }
    
    .lot-number-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .sale-history-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .sale-history-footer-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .sale-history-table {
        font-size: 12px;
    }
    
    .sale-history-auction-badge,
    .sale-history-status {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .price-cell {
        font-size: 12px;
    }
    
    .lot-number-cell {
        font-size: 11px;
        align-items: flex-start;
        gap: 4px;
    }
    
    .price-cell {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .lot-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lot-hero-title h1 {
        font-size: 18px;
    }
    
    .lot-hero-price {
        text-align: left;
    }
    
    .lot-price-value {
        font-size: 20px;
    }
    
    .lot-hero-stats {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .lot-stats-left {
        gap: 12px;
        justify-content: space-between;
    }
    
    .lot-stats-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .lot-stats-right .btn-bid-history {
        flex: 1;
        min-width: 130px;
        padding: 8px 10px;
    }
    
    .auction-status-minimal {
        flex: 1;
        min-width: 100%;
        border-radius: 10px;
    }
    
    .status-chip-group {
        flex: 1;
        padding: 8px 10px;
        min-width: 0;
    }
    
    .status-chip-group::after {
        top: 25%;
        height: 50%;
    }
    
    .status-chip {
        font-size: 12px;
    }
    
    .btn-reminder {
        width: 26px;
        height: 26px;
        margin-left: 8px;
        border-radius: 6px;
    }
    
    .btn-reminder svg {
        width: 13px;
        height: 13px;
    }
    
    .chip-dot {
        width: 6px;
        height: 6px;
    }
    
    .status-price-minimal {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .status-price-minimal::after {
        top: 25%;
        height: 50%;
    }
    
    .btn-participate {
        flex: 1;
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .lot-bid-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* ========== Block 4 from lot.php ========== */
.lot-gallery {
            display: flex;
            flex-direction: column;
            border: 1px solid #e5e5e5;
            border-radius: 0 0 10px 10px;
            overflow: hidden;
        }
        
        .lot-gallery-main {
            position: relative;
            aspect-ratio: 4/3;
            min-height: 480px;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            border-bottom: 1px solid #e5e5e5;
            overflow: hidden;
        }
        
        /* Skeleton Preloader */
        .gallery-skeleton {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.5s ease-in-out infinite;
            z-index: 1;
        }
        
        .gallery-skeleton::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 48px;
            height: 48px;
            border: 3px solid #e0e0e0;
            border-top-color: #999;
            border-radius: 50%;
            animation: skeleton-spin 0.8s linear infinite;
        }
        
        @keyframes skeleton-shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        @keyframes skeleton-spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }
        
        .gallery-skeleton.hidden {
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        
        #gallery-main-img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            cursor: zoom-in;
        }
        
        #gallery-main-img.loaded {
            /* skeleton is removed via JS onload — no opacity needed here */
        }
        
        /* Thumbnail skeleton */
        .gallery-thumb img {
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        
        .gallery-thumb img.loaded {
            opacity: 1;
        }
        
        .gallery-thumb {
            background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.5s ease-in-out infinite;
        }
        
        .gallery-thumb.thumb-loaded {
            background: none;
            animation: none;
        }
        
        /* Gallery Navigation Arrows */
        .gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 80px;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            opacity: 0;
            transition: opacity 0.2s, background 0.2s;
            padding: 0;
            margin: 0;
        }
        
        .gallery-nav:hover {
            background: rgba(0, 0, 0, 0.8);
        }
        
        .lot-gallery:hover .gallery-nav {
            opacity: 1;
        }
        
        .gallery-nav svg {
            width: 28px;
            height: 28px;
            stroke-width: 2.5;
        }
        
        .gallery-prev {
            left: 0;
            border-radius: 0 4px 4px 0;
        }
        
        .gallery-next {
            right: 0;
            border-radius: 4px 0 0 4px;
        }
        
        /* Mobile: always visible */
        @media (max-width: 768px) {
            .gallery-nav {
                opacity: 1;
                width: 40px;
                height: 60px;
                background: rgba(0, 0, 0, 0.4);
            }
            
            .gallery-nav svg {
                width: 22px;
                height: 22px;
            }
        }
        
        .gallery-counter {
            position: absolute;
            bottom: 12px;
            left: 12px;
            background: #1a1a1a;
            color: #fff;
            font-size: 12px;
            font-weight: 500;
            padding: 5px 12px;
        }
        
        .gallery-actions {
            position: absolute;
            bottom: 12px;
            right: 12px;
            display: flex;
            gap: 6px;
        }
        
        .gallery-action-btn {
            width: 36px;
            height: 36px;
            background: #fff;
            border: 1px solid #e5e5e5;
            color: #1a1a1a;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }
        
        .gallery-action-btn:hover {
            background: #f5f5f5;
            border-color: #ccc;
        }
        
        .gallery-360-btn {
            width: auto;
            padding: 0 14px;
            font-size: 12px;
            font-weight: 600;
            background: #1a1a1a;
            border-color: #1a1a1a;
            color: #fff;
        }
        
        .gallery-360-btn:hover {
            background: #333;
        }
        
        /* Thumbnails Grid */
        .lot-gallery-thumbs {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 4px;
            padding: 4px;
            background: #f5f5f5;
        }
        
        .gallery-thumb {
            width: 100%;
            aspect-ratio: 4/3;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            opacity: 0.7;
            transition: all 0.15s;
        }
        
        .gallery-thumb:hover {
            opacity: 0.9;
            border-color: #ccc;
        }
        
        .gallery-thumb.active {
            opacity: 1;
            border-color: #1a1a1a;
        }
        
        .gallery-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* Fullscreen mode */
        .lot-gallery.fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 99999;
            background: #1a1a1a;
            border: none;
            display: flex;
            flex-direction: column;
        }
        
        /* Hide other elements when gallery is fullscreen */
        body.gallery-fullscreen-active .lot-bottom-bar,
        body.gallery-fullscreen-active .item_top_bar,
        body.gallery-fullscreen-active header,
        body.gallery-fullscreen-active .header-wrapper,
        body.gallery-fullscreen-active .bid-card,
        body.gallery-fullscreen-active .lead-card,
        body.gallery-fullscreen-active .options-list-card,
        body.gallery-fullscreen-active .ant-box,
        body.gallery-fullscreen-active .lot-info-panels,
        body.gallery-fullscreen-active .info-blocks-container,
        body.gallery-fullscreen-active .info-box,
        body.gallery-fullscreen-active footer {
            display: none !important;
        }
        
        body.gallery-fullscreen-active {
            overflow: hidden;
        }
        
        .lot-gallery.fullscreen .lot-gallery-main {
            flex: 1;
            aspect-ratio: auto;
            min-height: 0;
            max-height: calc(100vh - 120px);
            background: #1a1a1a;
            border: none;
            overflow: hidden;
        }
        
        .lot-gallery.fullscreen .gallery-skeleton {
            background: linear-gradient(90deg, #252525 25%, #1a1a1a 50%, #252525 75%);
            background-size: 200% 100%;
        }
        
        .lot-gallery.fullscreen .gallery-skeleton::after {
            border-color: #333;
            border-top-color: #666;
        }
        
        .lot-gallery.fullscreen #gallery-main-img {
            cursor: default;
            max-height: 100%;
            object-fit: contain;
        }
        
        .lot-gallery.fullscreen .lot-gallery-thumbs {
            flex-shrink: 0;
            padding: 12px;
            background: #1a1a1a;
            max-height: 120px;
            overflow-x: auto;
            overflow-y: hidden;
        }
        
        .lot-gallery.fullscreen .gallery-thumb {
            width: 110px;
            height: 82px;
            opacity: 0.5;
            flex-shrink: 0;
        }
        
        .lot-gallery.fullscreen .gallery-thumb:hover {
            border-color: rgba(255,255,255,0.5);
        }
        
        .lot-gallery.fullscreen .gallery-thumb.active {
            opacity: 1;
            border-color: #fff;
        }
        
        /* Close btn in fullscreen */
        .gallery-close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 44px;
            height: 44px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            color: #fff;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        
        .gallery-close-btn:hover {
            background: rgba(255,255,255,0.2);
        }
        
        .lot-gallery.fullscreen .gallery-close-btn {
            display: flex;
        }
        
        /* Mobile */
        @media (max-width: 768px) {
            .lot-gallery-main {
                min-height: 260px;
            }
            
            .lot-gallery-thumbs {
                grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
                gap: 3px;
                padding: 3px;
            }
            
            .gallery-counter {
                font-size: 11px;
                padding: 4px 10px;
            }
            
            .gallery-action-btn {
                width: 32px;
                height: 32px;
            }
        }
        
        /* Large screens */
        @media (min-width: 1200px) {
            .lot-gallery-main {
                min-height: 480px;
            }
            
            .lot-gallery-thumbs {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }
        }

/* ========== Block 5 from lot.php ========== */
/* ===== COMPLETED AUCTION STYLES (Dark Theme) ===== */
.bid-card.bid-card-completed {
    --completed-accent: #0285ff;
    --completed-accent-rgb: 2, 133, 255;
    position: relative;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.bid-card.bid-card-completed::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -250px;
    right: -150px;
    background: radial-gradient(circle, rgba(var(--completed-accent-rgb), 0.3) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
/* Sparkles / Stars with blur */
.bid-card.bid-card-completed::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(3px 3px at 20% 25%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(4px 4px at 75% 12%, rgba(255,255,255,0.7) 0%, transparent 70%),
        radial-gradient(5px 5px at 88% 40%, rgba(255,255,255,0.8) 0%, transparent 70%),
        radial-gradient(3px 3px at 55% 55%, rgba(255,255,255,0.5) 0%, transparent 70%),
        radial-gradient(6px 6px at 92% 20%, rgba(var(--completed-accent-rgb),0.5) 0%, transparent 70%),
        radial-gradient(4px 4px at 35% 75%, rgba(255,255,255,0.4) 0%, transparent 70%),
        radial-gradient(5px 5px at 12% 60%, rgba(255,255,255,0.5) 0%, transparent 70%),
        radial-gradient(7px 7px at 68% 70%, rgba(var(--completed-accent-rgb),0.35) 0%, transparent 70%);
    filter: blur(1px);
}
.bid-card.bid-card-completed .bid-card-header-completed {
    position: relative;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
}
.bid-card.bid-card-completed .bid-card-label {
    color: rgba(255, 255, 255, 0.5);
}
.bid-card.bid-card-completed .bid-card-amount {
    color: #fff;
}
.bid-card-sold-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.bid-card-sold-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.bid-card-sold-badge svg {
    width: 13px;
    height: 13px;
    opacity: 0.8;
}
.bid-card-sold-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}
/* Dark theme for breakdown pills */
.bid-card.bid-card-completed .bid-card-breakdown {
    position: relative;
    z-index: 1;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bid-card.bid-card-completed .bid-card-pill {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.bid-card.bid-card-completed .pill-label {
    color: rgba(255, 255, 255, 0.4);
}
.bid-card.bid-card-completed .pill-value {
    color: rgba(255, 255, 255, 0.9);
}
.bid-card.bid-card-completed .pill-sep {
    color: rgba(255, 255, 255, 0.2);
}
/* Dark theme for total */
.bid-card.bid-card-completed .bid-card-total {
    position: relative;
    z-index: 1;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.bid-card.bid-card-completed .bid-card-total-label {
    color: rgba(255, 255, 255, 0.5);
}
.bid-card.bid-card-completed .bid-card-total-amount {
    color: #fff;
}
.bid-card.bid-card-completed .bid-card-details-btn {
    background: rgba(0, 0, 0, 0.45);
    color: rgb(242, 242, 242);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.bid-card.bid-card-completed .bid-card-details-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
/* Dark theme for details section */
.bid-card.bid-card-completed .bid-card-details {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.06);
}
.bid-card.bid-card-completed .details-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bid-card.bid-card-completed .details-header {
    color: rgba(255, 255, 255, 0.7);
}
.bid-card.bid-card-completed .details-header span {
    color: rgba(var(--completed-accent-rgb), 0.9);
}
.bid-card.bid-card-completed .details-row {
    color: rgba(255, 255, 255, 0.5);
}
.bid-card.bid-card-completed .details-row span:last-child {
    color: rgba(255, 255, 255, 0.85);
}
.bid-card.bid-card-completed .details-timeline {
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
}
.bid-card.bid-card-completed .details-timeline strong {
    color: rgba(255, 255, 255, 0.9);
}
/* Help link */
.bid-card.bid-card-completed .bid-card-help {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.35);
}
.bid-card.bid-card-completed .bid-card-help a {
    color: var(--completed-accent);
}
.bid-card.bid-card-completed .bid-card-help a:hover {
    color: #4da6ff;
}

/* ===== UNIFIED BID CARD - 2025 UI/UX ===== */
.bid-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Header: Price + Timer */
.bid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #e3f2fd;
    color: #000;
}
.bid-card-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bid-card-labels {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bid-card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}
.bid-card-amount {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
}
.bid-card-label-sep {
    color: #cbd5e1;
    font-size: 11px;
}
.bid-card-label-buynow {
    position: relative;
    background: #0285ff;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bid-card-label-buynow::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0285ff;
}
.bid-card-label-buynow:hover {
    background: #0070e0;
}
.bid-card-label-buynow:hover::after {
    border-top-color: #0070e0;
}
.bid-card-label-buynow strong {
    font-weight: 600;
}
.bid-card-amount {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Bid Input in Header */
.bid-card-header .bid-input-group {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(21, 101, 192, 0.33);
    border-radius: 8px;
    overflow: hidden;
}
.bid-card-header .bid-step {
    width: 44px;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.15s;
}
.bid-card-header .bid-step:hover {
    background: rgba(0, 0, 0, 0.05);
}
.bid-card-header .bid-step:active {
    background: rgba(0, 0, 0, 0.1);
}
.bid-card-header .bid-amount,
#bid-input {
    flex: 1;
    min-width: 100px;
    max-width: 200px;
    border: none;
    padding: 8px 12px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #000;
    background: transparent;
    outline: none;
}
.bid-card-timer-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.bid-card-status-pending {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #92400e;
    font-size: 12px;
    font-weight: 500;
    margin-top: 0;
    line-height: 1.4;
    text-align: right;
}
.bid-card-status-pending svg {
    flex-shrink: 0;
    color: #f59e0b;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.bid-card-timer {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}
.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 32px;
}
.timer-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.timer-label {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-top: 0px;
    line-height: normal;
}
.timer-sep {
    font-size: 16px;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0 1px;
    align-self: flex-start;
    line-height: 1;
}
.bid-card-timer-header {
    display: flex;
    align-items: center;
    gap: 4px;
}
.timer-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}
.timer-info-icon svg {
    stroke: #94a3b8;
    transition: stroke 0.2s ease;
}
.timer-info-icon:hover svg {
    stroke: #64748b;
}
.timer-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.timer-info-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    right: 4px;
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}
.timer-info-icon:hover::after,
.timer-info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Total Cost Block */
.bid-card-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.bid-card-total-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bid-card-total-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #64748b;
    line-height: normal;
}
.bid-card-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.bid-card-details-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    line-height: normal;
    text-align: left;
}
.bid-card-details-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.bid-card-details-btn svg {
    transition: transform 0.2s;
}
.bid-card-details-btn.active svg {
    transform: rotate(180deg);
}

/* Cost Breakdown Pills */
.bid-card-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.bid-card-pill {
    flex: 1;
    text-align: center;
}
.pill-sep {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
}
.pill-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    margin-bottom: 4px;
}
.pill-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* Expandable Details */
.bid-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}
.bid-card-details.open {
    max-height: 500px;
}
.details-section {
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.details-section:last-of-type {
    border-bottom: none;
}
.details-header {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.details-header span {
    font-weight: 400;
    color: #64748b;
    font-size: 11px;
}
.details-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
    color: #475569;
}
.details-row span:last-child {
    font-weight: 500;
    color: #0f172a;
}
.details-row.sub {
    color: #94a3b8;
    font-size: 11px;
}
.details-row.sub span:last-child {
    color: #64748b;
    font-weight: 400;
}
.details-timeline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 12px;
    color: #64748b;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}
.details-timeline strong {
    color: #0f172a;
}

/* Bid Input */
.bid-card-input {
    padding: 16px 20px;
}
.bid-input-group {
    display: flex;
    align-items: stretch;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.bid-input-group:focus-within {
    border-color: #0f172a;
}
.bid-step {
    width: 52px;
    background: #f8fafc;
    border: none;
    font-size: 20px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bid-step:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.bid-step:active {
    background: #cbd5e1;
}
.bid-step:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.bid-amount {
    flex: 1;
    border: none;
    padding: 14px 12px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #0f172a;
    background: #fff;
    outline: none;
}

/* CTA Buttons */
.bid-card-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px 16px;
}
.bid-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bid-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}
.bid-btn-primary:active {
    transform: translateY(0);
}
.bid-btn-primary svg {
    opacity: 0.8;
}
.bid-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #22c55e;
    border-radius: 10px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bid-btn-secondary:hover {
    background: #22c55e;
    color: #fff;
}

/* Help Link */
.bid-card-help {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    padding: 0 20px 16px;
    margin: 0;
}
.bid-card-help a {
    color: #0f172a;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.bid-card-help a:hover {
    color: #334155;
}

/* Feedback */
.bid-card-feedback {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
}
.bid-card-feedback.success {
    background: #f0fdf4;
    color: #166534;
}
.bid-card-feedback.error {
    background: #fef2f2;
    color: #991b1b;
}

/* Ukraine Price Line */
.ukraine-price-line {
    font-size: 13px;
    color: #7F8FA4;
}
.ukraine-price-line strong {
    color: #22c55e;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .bid-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .bid-card-header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .bid-card-labels {
        justify-content: center;
    }
    .bid-card-amount {
        font-size: 24px;
    }
    .bid-card-total {
        padding: 12px 16px;
    }
    .bid-card-total-amount {
        font-size: 18px;
    }
    .bid-card-breakdown {
        padding: 10px 12px;
        gap: 6px;
    }
    .pill-value {
        font-size: 13px;
    }
    .pill-label {
        font-size: 9px;
    }
    .pill-sep {
        font-size: 10px;
    }
    .bid-card-input,
    .bid-card-cta,
    .bid-card-help {
        padding-left: 16px;
        padding-right: 16px;
    }
    .bid-amount {
        font-size: 18px;
        padding: 12px 8px;
    }
    .bid-step {
        width: 44px;
        font-size: 18px;
    }
    .details-section,
    .details-timeline {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ========== Block 6 from lot.php ========== */
.lead-card {
                --lead-accent: #22c55e;
                --lead-accent-rgb: 34, 197, 94;
                position: relative;
                background: #0d1117 !important;
                border: 1px solid rgba(255, 255, 255, 0.08) !important;
                border-radius: 16px !important;
                padding: 16px !important;
                margin-top: 12px;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
                overflow: hidden;
                color: #fff;
            }
            .lead-card::before {
                content: "";
                position: absolute;
                width: 400px;
                height: 400px;
                top: -200px;
                right: -100px;
                background: radial-gradient(circle, rgba(var(--lead-accent-rgb), 0.25) 0%, transparent 70%);
                z-index: 0;
                pointer-events: none;
            }
            .lead-card::after {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 0;
                pointer-events: none;
                background-image: radial-gradient(3px 3px at 20% 25%, rgba(255, 255, 255, 0.9) 0%, transparent 70%), radial-gradient(4px 4px at 75% 12%, rgba(255, 255, 255, 0.7) 0%, transparent 70%), radial-gradient(5px 5px at 88% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 70%), radial-gradient(3px 3px at 55% 55%, rgba(255, 255, 255, 0.5) 0%, transparent 70%), radial-gradient(6px 6px at 92% 20%, rgba(var(--lead-accent-rgb), 0.5) 0%, transparent 70%), radial-gradient(4px 4px at 35% 75%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
                filter: blur(1px);
            }
            .lead-card > * {
                position: relative;
                z-index: 1;
            }
            .lead-card-header {
                display: flex;
                align-items: center;
                gap: 12px;
                margin-bottom: 14px;
                padding-bottom: 14px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }
            .lead-card-avatar-wrap {
                position: relative;
                flex-shrink: 0;
            }
            .lead-card-avatar {
                width: 44px;
                height: 44px;
                border-radius: 50%;
                object-fit: cover;
                border: 2px solid rgba(255, 255, 255, 0.2);
            }
            .lead-card-online {
                position: absolute;
                bottom: 0;
                right: 0;
                width: 12px;
                height: 12px;
                background: #22c55e;
                border: 2px solid #0d1117;
                border-radius: 50%;
            }
            .lead-card-info {
                flex: 1;
            }
            .lead-card-title {
                font-size: 14px;
                font-weight: 600;
                color: #fff;
            }
            .lead-card-subtitle {
                font-size: 12px;
                color: rgba(255, 255, 255, 0.6);
                margin-top: 2px;
            }
            .lead-card-services {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                margin-bottom: 14px;
            }
            .lead-card-pill {
                padding: 0px 6px;
                background: rgba(255, 255, 255, 0.1);
                border: 1px solid rgba(255, 255, 255, 0.15);
                border-radius: 7px;
                font-size: 12px;
                color: rgba(255, 255, 255, 0.8);
            }
            .lead-card-input-row {
                display: flex;
                gap: 8px;
            }
            .lead-card-phone {
                flex: 1;
                display: flex;
                align-items: center;
                background: rgba(255, 255, 255, 0.95);
                border-radius: 8px;
                padding: 0 12px;
            }
            .lead-card-prefix {
                color: #6b7280;
                font-size: 14px;
                margin-right: 6px;
            }
            .lead-card-phone input {
                flex: 1;
                border: none;
                outline: none;
                background: transparent;
                padding: 12px 0;
                font-size: 14px;
                color: #1f2937;
            }
            .lead-card-phone input::placeholder {
                color: #9ca3af;
            }
            .lead-card-btn {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 12px 18px;
                background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
                color: #fff;
                border: none;
                border-radius: 8px;
                font-size: 13px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.2s;
                white-space: nowrap;
                box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
            }
            .lead-card-btn:hover {
                transform: translateY(-1px);
                box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
            }
            .lead-card-footer {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                margin-top: 12px;
                padding-top: 12px;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                font-size: 12px;
                color: rgba(255, 255, 255, 0.5);
            }
            @media (max-width: 480px) {
                .lead-card-input-row {
                    flex-direction: column;
                }
                .lead-card-btn {
                    justify-content: center;
                }
            }

/* ========== Block 7 from lot.php ========== */
.lead-card {
                background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
                border: 1px solid #bae6fd;
                border-radius: 10px;
                padding: 14px;
                margin-top: 12px;
            }
            .lead-card-header {
                display: flex;
                align-items: flex-start;
                gap: 10px;
                margin-bottom: 12px;
            }
            .lead-card-icon {
                width: 36px;
                height: 36px;
                background: #0ea5e9;
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #fff;
                flex-shrink: 0;
            }
            .lead-card-title h4 {
                margin: 0;
                font-size: 14px;
                font-weight: 600;
                color: #0c4a6e;
            }
            .lead-card-title p {
                margin: 2px 0 0;
                font-size: 12px;
                color: #0369a1;
            }
            .lead-services {
                display: flex;
                flex-direction: column;
                gap: 6px;
                margin-bottom: 12px;
            }
            .lead-service-option {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 8px 10px;
                background: #fff;
                border: 1px solid #e0f2fe;
                border-radius: 6px;
                cursor: pointer;
                transition: all 0.15s;
            }
            .lead-service-option:hover {
                border-color: #7dd3fc;
                background: #f0f9ff;
            }
            .lead-service-option:has(input:checked) {
                border-color: #0ea5e9;
                background: #e0f2fe;
            }
            .lead-checkbox {
                width: 16px;
                height: 16px;
                accent-color: #0ea5e9;
            }
            .lead-service-text {
                display: flex;
                align-items: center;
                gap: 6px;
                font-size: 13px;
                color: #1e3a5a;
            }
            .lead-service-text svg {
                color: #0ea5e9;
                flex-shrink: 0;
            }
            .lead-note {
                display: flex;
                align-items: flex-start;
                gap: 6px;
                padding: 8px 10px;
                background: #fefce8;
                border: 1px solid #fde047;
                border-radius: 6px;
                font-size: 12px;
                color: #854d0e;
                margin-bottom: 12px;
            }
            .lead-note svg {
                flex-shrink: 0;
                margin-top: 1px;
            }
            .lead-form-row {
                margin-bottom: 8px;
            }
            .lead-phone-input {
                display: flex;
                align-items: center;
                background: #fff;
                border: 1px solid #cbd5e1;
                border-radius: 8px;
                overflow: hidden;
            }
            .lead-phone-prefix {
                padding: 0 10px;
                font-size: 14px;
                font-weight: 500;
                color: #64748b;
                background: #f8fafc;
                border-right: 1px solid #e2e8f0;
            }
            .lead-input {
                flex: 1;
                padding: 10px 12px;
                border: none;
                font-size: 14px;
                outline: none;
            }
            .lead-submit-btn {
                width: 100%;
                padding: 12px 16px;
                background: #0ea5e9;
                color: #fff;
                border: none;
                border-radius: 8px;
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                transition: background 0.15s;
            }
            .lead-submit-btn:hover {
                background: #0284c7;
            }
            .lead-expert {
                display: flex;
                align-items: center;
                gap: 8px;
                margin-top: 10px;
                padding-top: 10px;
                border-top: 1px solid #bae6fd;
                font-size: 12px;
                color: #0369a1;
            }
            .lead-expert-avatar {
                width: 24px;
                height: 24px;
                border-radius: 50%;
                object-fit: cover;
            }

/* ========== Block 8 from lot.php ========== */
.lot-info-panels {
            display: flex;
            flex-direction: column;
        }
        
        .lot-info-panels .ant-box:last-child {
            margin-bottom: 0;
        }
        
        .options-list-card {
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            padding: 16px;
        }
        
        .options-list-title {
            font-size: 14px;
            font-weight: 600;
            color: #111827;
            margin: 0 0 12px 0;
            padding-bottom: 10px;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .options-list {
            display: flex;
            flex-direction: column;
        }
        
        .options-list .option {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            border-bottom: 1px solid #f3f4f6;
            font-size: 14px;
            color: #6b7280;
            flex-wrap: nowrap;
            gap: 12px;
        }
        .options-list .option .right-info {
            flex-shrink: 0;
            text-align: right;
            white-space: nowrap;
        }
        
        .options-list .option:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        
        .options-list .option:first-child {
            padding-top: 0;
        }
        
        .options-list .right-info {
            font-weight: 500;
            color: #111827;
            text-align: right;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .options-list .right-info.status-good {
            color: #059669;
        }
        
        .options-list .right-info.status-warning {
            color: #d97706;
        }
        
        .options-list .right-info.seller-verified {
            color: #059669;
        }
        
        /* Copy functionality */
        .lot-number-copy,
        .vin-copy {
            cursor: pointer;
            padding: 2px 6px;
            margin: -2px -6px;
            border-radius: 4px;
            font-family: monospace;
        }
        
        .lot-number-copy:hover,
        .vin-copy:hover {
            background: #f3f4f6;
        }
        
        .lot-number-copy.copied,
        .vin-copy.copied {
            background: #d1fae5;
            color: #059669;
        }
        
        .options-list .tips-question {
            cursor: help;
            border-bottom: 1px dashed #9ca3af;
        }
        
        .options-list .tips-question:hover {
            border-bottom-color: #111827;
        }
        
        /* Expert card inside options-list-card */
        .options-list-card .expert-card {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid #f3f4f6;
        }
        
        .ant-card.ant-box {
            background: transparent;
            border: none;
            box-shadow: none;
        }
        
        @media (max-width: 768px) {
            .options-list-card {
                padding: 14px;
            }
            
            .options-list .option {
                font-size: 13px;
                padding: 5px 0;
            }
            
            .options-list .right-info {
                max-width: 100%;
                word-break: break-word;
            }
        }

/* ========== Block 9 from lot.php ========== */
/* History Backdrop */
    .history-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
    .history-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    @media (min-width: 769px) {
        .history-backdrop {
            display: none !important;
        }
    }
    
    /* History Popup */
    .history-popup {
        position: fixed;
        top: 0;
        left: 16px;
        right: 16px;
        max-width: 600px;
        margin: 0 auto;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;
    }
    .history-popup.history-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .auction-history {
        padding: 0;
    }
    .history-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    .history-header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .history-header-left svg {
        width: 18px;
        height: 18px;
        color: #1890ff;
    }
    .history-header-title {
        font-size: 15px;
        font-weight: 600;
        color: #1d1d1f;
    }
    .history-header-count {
        font-size: 12px;
        color: #8c8c8c;
        background: #f5f5f5;
        padding: 3px 10px;
        border-radius: 12px;
        margin-left: 8px;
    }
    .history-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: #f5f5f5;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        color: #8c8c8c;
        transition: all 0.15s;
    }
    .history-close-btn:hover {
        background: #e8e8e8;
        color: #1d1d1f;
    }
    .history-table {
        width: 100%;
    }
    .history-table-head {
        display: grid;
        grid-template-columns: 56px 1fr 90px 80px 90px;
        gap: 12px;
        padding: 10px 16px;
        background: #fafafa;
        border-bottom: 1px solid #f0f0f0;
        font-size: 11px;
        font-weight: 500;
        color: #8c8c8c;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .history-table-body {
        max-height: 320px;
        overflow-y: auto;
    }
    .history-row {
        display: grid;
        grid-template-columns: 56px 1fr 90px 80px 90px;
        gap: 12px;
        padding: 10px 16px;
        align-items: center;
        border-bottom: 1px solid #f5f5f5;
        transition: background 0.15s;
    }
    .history-row:hover {
        background: #fafafa;
    }
    .history-row:last-child {
        border-bottom: none;
    }
    .history-row.sold-row {
        background: linear-gradient(90deg, #f6ffed 0%, #fff 100%);
    }
    .history-row.returned-row {
        opacity: 0.55;
    }
    .history-img {
        width: 56px;
        height: 42px;
        border-radius: 6px;
        overflow: hidden;
        background: #f5f5f5;
    }
    .history-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.2s;
    }
    .history-img img:hover {
        transform: scale(1.05);
    }
    .history-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    .history-lot-num {
        font-size: 13px;
        font-weight: 600;
        color: #1d1d1f;
    }
    .history-date-text {
        font-size: 12px;
        color: #8c8c8c;
    }
    .history-odo {
        font-size: 13px;
        color: #595959;
        text-align: center;
    }
    .history-price {
        font-size: 14px;
        color: #bfbfbf;
        text-align: right;
        font-weight: 500;
    }
    .history-price.has-value {
        color: #1d1d1f;
        font-weight: 600;
    }
    .history-status {
        text-align: center;
    }
    .history-badge {
        display: inline-block;
        font-size: 11px;
        font-weight: 500;
        padding: 4px 10px;
        border-radius: 4px;
    }
    .history-badge.badge-sold {
        color: #389e0d;
        background: #f6ffed;
        border: 1px solid #b7eb8f;
    }
    .history-badge.badge-returned {
        color: #8c8c8c;
        background: #fafafa;
        border: 1px solid #d9d9d9;
    }
    .history-badge.badge-active {
        color: #d46b08;
        background: #fff7e6;
        border: 1px solid #ffd591;
    }
    .history-empty {
        text-align: center;
        padding: 40px 20px;
        color: #8c8c8c;
    }
    .history-divider {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        margin: 4px 0;
    }
    .history-divider-line {
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
    }
    .history-divider-text {
        font-size: 11px;
        font-weight: 500;
        color: #f59e0b;
        background: #fffbeb;
        padding: 4px 12px;
        border-radius: 12px;
        border: 1px solid #fde68a;
        white-space: nowrap;
    }
    .history-row.new-lot-row {
        border-top: none;
    }
    .history-footer {
        padding: 10px 16px;
        border-top: 1px solid #f0f0f0;
        text-align: center;
        font-size: 12px;
        color: #8c8c8c;
        background: #fafafa;
    }
    .history-loading {
        text-align: center;
        padding: 40px;
    }
    .history-loading .spinner {
        display: inline-block;
        width: 24px;
        height: 24px;
        border: 2px solid #f0f0f0;
        border-top-color: #1890ff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    @media (max-width: 768px) {
        .history-popup {
            position: fixed;
            top: auto;
            bottom: 0;
            left: 0;
            right: 0;
            max-width: none;
            max-height: 85vh;
            border-radius: 16px 16px 0 0;
            transform: translateY(100%);
            margin: 0;
        }
        .history-popup.history-open {
            transform: translateY(0);
        }
        .history-popup::before {
            content: '';
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 36px;
            height: 4px;
            background: #d1d5db;
            border-radius: 2px;
        }
        .auction-history {
            padding-top: 8px;
        }
        .history-header {
            padding: 12px 16px;
        }
        .history-header-title {
            font-size: 16px;
        }
        .history-close-btn {
            width: 36px;
            height: 36px;
        }
        .history-table-body {
            max-height: calc(85vh - 140px);
            -webkit-overflow-scrolling: touch;
        }
    }
    
    @media (max-width: 640px) {
        .auction-history {
            padding: 12px;
            max-width: 100%;
        }
        .history-table-head {
            display: none;
        }
        .history-row {
            grid-template-columns: 48px 1fr;
            gap: 10px;
            padding: 12px 16px;
        }
        .history-odo {
            display: none;
        }
        .history-price {
            position: absolute;
            top: 12px;
            right: 16px;
            font-size: 15px;
        }
        .history-status {
            grid-column: span 2;
            text-align: left;
            margin-top: 6px;
        }
        .history-row {
            position: relative;
        }
        .history-img {
            width: 48px;
            height: 36px;
        }
        .history-info {
            padding-right: 80px;
        }
        .history-lot-num {
            font-size: 14px;
        }
        .history-date-text {
            font-size: 11px;
        }
        .history-badge {
            font-size: 10px;
            padding: 3px 8px;
        }
        .history-footer {
            padding: 12px 16px;
            font-size: 11px;
        }
        .history-divider {
            padding: 10px 16px;
        }
        .history-divider-text {
            font-size: 10px;
            padding: 3px 10px;
        }
    }
    
    @media (max-width: 420px) {
        .history-popup {
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            max-height: 100vh;
            max-width: none;
            border-radius: 0;
            margin: 0;
        }
        .history-popup::before {
            display: none;
        }
        .auction-history {
            padding-top: 0;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .history-table {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .history-table-body {
            flex: 1;
            max-height: none;
            overflow-y: auto;
        }
        .history-header {
            padding: 12px 16px;
            border-bottom: 1px solid #e5e7eb;
        }
        .history-header-left svg {
            width: 16px;
            height: 16px;
        }
        .history-header-title {
            font-size: 16px;
        }
        .history-header-count {
            font-size: 11px;
            padding: 2px 8px;
        }
        .history-close-btn {
            width: 40px;
            height: 40px;
        }
        .history-row {
            padding: 12px 16px;
        }
        .history-price {
            right: 16px;
            top: 12px;
            font-size: 14px;
        }
        .history-info {
            padding-right: 70px;
        }
        .history-footer {
            border-top: 1px solid #e5e7eb;
        }
    }

/* ========== Block 10 from lot.php ========== */
p#xai-header-subtitle {
    padding: 0;
}

.xai-cost-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}
.xai-cost-name {
    flex-shrink: 0;
}
.xai-cost-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #6e6e73;
    margin: 0 8px;
}
.xai-cost-value {
    flex-shrink: 0;
    color: #007aff;
}
.xai-cost-description {
    font-size: 12px;
    color: #6e6e73;
    margin: 4px 0 0;
}

.xai-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}
.xai-bid-block {
    padding: 16px;
}
.xai-bid-header {
    margin-bottom: 12px;
}
.xai-bid-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}
.xai-bid-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6e6e73;
}
.xai-bid-input-section {
    background: #f5f5f7;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}
.xai-input-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.xai-bid-pod {
    position: relative;
    width: 100%;
    /* max-width: 300px; */
    display: flex;
    align-items: center;
    flex-direction: column;
}
.xai-input-prefix {
    position: absolute;
    left: 12px;
    top: 30%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6e6e73;
}
.xai-bid-pod input[type="number"] {
    width: 100%;
    padding: 10px 40px 10px 28px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s;
}
.xai-bid-pod input[type="number"]:focus {
    border-color: #007aff;
    outline: none;
}
.xai-bid-pod input[type="number"].xai-input-error {
    border-color: #ff2d55;
}
.xai-adjust-btn {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #e8ecef;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    color: #1d1d1f;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 2%;
}
.xai-adjust-btn.xai-minus {
    right: 45px;
}
.xai-adjust-btn.xai-plus {
    right: 12px;
}
.xai-adjust-btn:hover {
    background: #d2d2d7;
}
.xai-adjust-btn:disabled {
    background: #f5f5f7;
    color: #a1a1a6;
    cursor: not-allowed;
}
.xai-touch-slider {
    width: 100%;
    margin-top: 8px;
}
.xai-touch-slider input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #e8ecef;
    border-radius: 2px;
    outline: none;
}
.xai-touch-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #007aff;
    border-radius: 50%;
    cursor: pointer;
}
.xai-touch-slider input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #007aff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.xai-value-bubble {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #007aff;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
}
.xai-pod-tooltip {
    visibility: hidden;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #1d1d1f;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}
.xai-bid-pod:hover .xai-pod-tooltip,
.xai-bid-pod input:focus ~ .xai-pod-tooltip {
    visibility: visible;
}
.xai-preset-pop {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}
.xai-preset-btn {
    padding: 6px 12px;
    background: #e8ecef;
    color: #1d1d1f;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    line-height: normal;
}
.xai-preset-btn:hover {
    background: #d2d2d7;
}
.xai-preset-btn.xai-highlight {
    background: #007aff;
    color: #fff;
}

.xai-action-bar {
    margin-top: 0px;
    float: left;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}
.xai-action-btn {
    width: 100%;
    padding: 12px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.xai-action-btn:hover {
    background: #005bb5;
}
.xai-action-btn:disabled {
    background: #d2d2d7;
    color: #a1a1a6;
    cursor: not-allowed;
}
.xai-feedback {
    margin: 16px 0 0;
    padding: 14px 20px;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    font-size: 13px;
    color: #dc2626;
    text-align: center;
    display: none;
}

.xai-cost-block-header h3 {
    font-size: 14px;
    font-weight: 400;
    color: #456277;
    margin: 0;
}
.xai-cost-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding: 5px 10px 5px;
    margin-bottom: 0;
}
.xai-cost-block-header h3 span {
    font-size: 10px;
    padding: 2px 5px;
    background: #e8ecef;
    border-radius: 3px;
}
.xai-cost-value {
    font-size: 14px;
    font-weight: 400;
    color: #456277;
    margin: 0px 0;
    padding: 0 !important;
}
p#xai-calc-expeditor {
    padding: 0;
}
#xai-calc-lot-auction, p#xai-calc-customs, p#xai-calc-delivery, p#xai-lot-auction-desc, p.xai-cost-description, p.xai-cost-description {
    padding: 0;
}
.xai-cost-description {
    padding: 0;
    margin: 0;
}
.xai-cost-value {
    font-size: 14px;
    font-weight: 600;
    color: #007aff;
    margin: 4px 0;
}
.xai-cost-description {
    font-size: 12px;
    color: #6e6e73;
    margin: 0;
}
.xai-total-cost {
    margin-top: 16px;
    text-align: center;
}
.xai-total-cost-inner {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: #f2f2f2;
    padding: 10px;
    border-radius: 5px;
}
.xai-total-label {
    font-size: 14px;
    font-weight: 600;
    color: #6e6e73;
}
.xai-total-value {
    font-size: 14px;
    font-weight: 900;
    color: #1c2526;
}
@media (max-width: 768px) {
    .xai-bid-pod {
        max-width: 100%;
    }
    .xai-preset-pop {
        flex-wrap: wrap;
    }
    .xai-cost-blocks {
        grid-template-columns: 1fr;
    }
}

.xai-cost-stages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.xai-cost-stage {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 5px 12px;
}
.stage-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    position: relative;
}
.stage-header:hover {
    color: #007aff;
}
.stage-header.active .chevron-icon {
    transform: rotate(180deg);
}
.stage-title {
    font-size: 14px;
    font-weight: 600;
    color: #1c2526;
    margin: 0;
    flex-grow: 1;
}
.stage-title span {
    font-weight: 400;
    color: #456277;
}
.chevron-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}
.stage-description {
    display: none;
    font-size: 12px;
    color: #6e6e73;
    margin: 4px 0 0;
}
.stage-description.active {
    display: block;
}
.stage-header[data-tooltip] {
    position: relative;
}
.stage-header[data-tooltip]:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1c2526;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

/* ========== Block 11 from lot.php ========== */
.similar-cars-section {
    max-width: 1440px;
    margin: 48px auto;
    padding: 48px 24px 0;
    position: relative;
    z-index: 100;
    background: #fff;
    clear: both;
}
.similar-cars-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.similar-cars-title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.similar-cars-title svg {
    color: #3b82f6;
    background: #eff6ff;
    padding: 10px;
    border-radius: 12px;
    width: 44px;
    height: 44px;
}
.similar-cars-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.similar-cars-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    padding: 10px 20px;
    background: #eff6ff;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.similar-cars-link:hover {
    background: #3b82f6;
    color: #fff;
}
.similar-cars-link svg {
    transition: transform 0.2s ease;
}
.similar-cars-link:hover svg {
    transform: translateX(4px);
}
.similar-cars-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: stretch;
}
/* Similar Cars - Світла професійна тема */
.similar-cars-grid .xai-swiper-slide,
.similar-cars-grid .swiper-slide {
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.similar-cars-grid .xai-swiper-slide:hover {
    border-color: #d1d5db;
}
.similar-cars-grid .xai-car-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.similar-cars-grid .xai-car-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    pointer-events: none;
}
.similar-cars-grid .xai-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Timer badges */
.similar-cars-grid .xai-auction-timer {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.similar-cars-grid .xai-auction-timer.sc-time-live {
    background: #10b981;
    color: #fff;
    animation: pulse-auction 2s infinite;
}
@keyframes pulse-auction {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
.similar-cars-grid .xai-auction-timer.sc-time-soon {
    background: #f59e0b;
    color: #fff;
}
.similar-cars-grid .xai-auction-timer.sc-time-hours {
    background: #3b82f6;
    color: #fff;
}
.similar-cars-grid .xai-auction-timer.sc-time-days {
    background: rgba(0,0,0,0.6);
    color: #fff;
}
/* Odometer & Damage */
.similar-cars-grid .xai-auction-odometer {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}
.similar-cars-grid .xai-damage-report {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    color: #fca5a5;
    font-size: 10px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.similar-cars-grid .xai-damage-report span {
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}
/* Card Link */
.similar-cars-grid .sc-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
/* Card Info */
.similar-cars-grid .xai-car-info {
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.similar-cars-grid .xai-car-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* VIN Row */
.similar-cars-grid .sc-vin-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: #f3f4f6;
    border-radius: 6px;
}
.similar-cars-grid .sc-vin-row svg {
    color: #6b7280;
    flex-shrink: 0;
}
.similar-cars-grid .sc-vin {
    font-size: 11px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    color: #374151;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.similar-cars-grid .xai-extra-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}
.similar-cars-grid .xai-extra-info span {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.similar-cars-grid .xai-extra-info img {
    width: 10px;
    height: 10px;
    opacity: 0.5;
}
/* Price Block */
.similar-cars-grid .xai-price-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.similar-cars-grid .xai-price-block > div:first-child {
    flex: 1;
}
.similar-cars-grid .xai-price-block p {
    font-size: 9px;
    color: #6b7280;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.similar-cars-grid .xai-calc-button {
    background: none;
    border: none;
    color: #059669;
    font-size: 16px;
    font-weight: 700;
    padding: 0;
}
/* Auction logo */
.xai-auction-logo {
    height: 18px;
    width: auto;
}
/* Button */
.similar-cars-grid .xai-button-group {
    margin-top: auto;
}
.similar-cars-grid .xai-lot-link {
    display: block;
    width: 100%;
    text-align: center;
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.similar-cars-grid .xai-lot-link:hover {
    background: #1f2937;
    color: #fff;
}
/* Section styling */
.similar-cars-section {
    background: transparent;
    padding: 40px 0;
    margin: 0 auto !important;
    max-width: 1400px;
}
.similar-cars-header {
    margin: 0 0 20px 0;
    padding: 0;
}
.similar-cars-title h3 {
    color: #111827;
}
.similar-cars-title svg {
    background: #f3f4f6;
    color: #3b82f6;
}
.similar-cars-link {
    color: #3b82f6;
    border-color: #e5e7eb;
}
.similar-cars-link:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}
.similar-cars-grid {
    padding: 0;
}

/* Fallback placeholder styles */
.similar-car-placeholder {
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    aspect-ratio: 16/12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
}
.placeholder-icon {
    opacity: 0.5;
}
.similar-car-placeholder span {
    font-size: 12px;
}
/* Browse Links Fallback */
.similar-browse-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    grid-column: 1 / -1;
}
.similar-browse-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.similar-browse-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.browse-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #2563eb;
    flex-shrink: 0;
}
.browse-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.browse-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}
.browse-desc {
    font-size: 12px;
    color: #6b7280;
}
.browse-arrow {
    color: #9ca3af;
    transition: transform 0.2s, color 0.2s;
}
.similar-browse-card:hover .browse-arrow {
    color: #2563eb;
    transform: translateX(4px);
}
@media (max-width: 768px) {
    .similar-browse-links {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1400px) {
    .similar-cars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 1100px) {
    .similar-cars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 800px) {
    .similar-cars-section {
        padding: 32px 16px;
    }
    .similar-cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .similar-cars-title h3 {
        font-size: 18px;
    }
    .similar-cars-grid .xai-car-image {
        height: 120px;
    }
    .similar-cars-grid .xai-car-info h3 {
        font-size: 12px;
    }
    .similar-cars-grid .xai-extra-info {
        display: none;
    }
    .similar-cars-grid .sc-vin-row {
        display: none;
    }
}
@media (max-width: 550px) {
    .similar-cars-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .similar-cars-link {
        width: 100%;
        justify-content: center;
    }
    .similar-cars-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .similar-cars-grid .xai-car-info {
        padding: 8px;
    }
    .similar-cars-grid .xai-price-block {
        padding: 6px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .similar-cars-grid .xai-calc-button {
        font-size: 14px;
    }
    .similar-cars-grid .xai-lot-link {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* Skeleton loading styles */
.similar-cars-loading {
    display: contents;
}
.sc-skeleton-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.sc-skeleton-image {
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}
.sc-skeleton-content {
    padding: 16px;
}
.sc-skeleton-title {
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 80%;
}
.sc-skeleton-vin {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
    width: 60%;
}
.sc-skeleton-price {
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    width: 50%;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== Block 12 from lot.php ========== */
.info-blocks-container {
    max-width: 1400px;
    margin: 32px auto;
}

.info-blocks-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-block-half {
    min-width: 0;
}

.info-box {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    height: 100%;
}

.info-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.info-box-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.info-box-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

.info-box-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.info-box-content {
    padding: 20px;
}

.faq-block,
.step-block {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.faq-block:last-child,
.step-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-block:first-child,
.step-block:first-child {
    padding-top: 0;
}

.faq-block h5,
.step-block h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.faq-block p,
.step-block p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.faq-block p:last-of-type,
.step-block p:last-of-type {
    margin-bottom: 0;
}

.step-number {
    display: inline-block;
    padding: 3px 8px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
}

.info-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
}

.info-btn:hover {
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .info-blocks-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .info-blocks-container {
        margin: 24px auto;
        padding: 0 16px;
    }
    
    .info-box-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
    }
    
    .info-box-content {
        padding: 16px;
    }
    
    .faq-block h5,
    .step-block h5 {
        font-size: 13px;
    }
    
    .faq-block p,
    .step-block p {
        font-size: 12px;
    }
}

/* lc2-* стилі: /css/lead-capture-lc2.css (підключається в layouts/auction.php) */