/* =============================================
   Forhandlerbud – Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --ab-primary:       #5cac40;
    --ab-primary-dark:  #3b8ef0;
    --ab-primary-light: #eff6ff;
    --ab-primary-mid:   #bfdbfe;
    --ab-accent:        #5cac40;
    --ab-success:       #10b981;
    --ab-danger:        #ef4444;
    --ab-gray:          #f1f5f9;
    --ab-border:        #e2e8f0;
    --ab-text:          #1e293b;
    --ab-text-muted:    #64748b;
    --ab-radius:        10px;
    --ab-shadow:        0 2px 16px rgba(79,156,248,0.08);
}

/* ---- Generelt ---- */
.autobid-form-wrap,
.autobid-listings-wrap,
.autobid-login-required,
.autobid-my-page {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ab-text);
    max-width: 860px;
    margin: 0 auto;
}

.hidden { display: none !important; }

/* ---- Knapper ---- */
.autobid-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 4px;
    border: 2px solid var(--ab-primary);
    background: transparent;
    color: var(--ab-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
}
.autobid-btn:hover {
    background: var(--ab-primary);
    color: #fff;
}
.autobid-btn-primary {
    background: var(--ab-primary) !important;
    border-color: var(--ab-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(92,172,64,0.25);
}
.autobid-btn-primary:hover {
    background: #4a9234 !important;
    border-color: #4a9234 !important;
    box-shadow: 0 6px 20px rgba(92,172,64,0.35);
    transform: translateY(-1px);
}
.autobid-btn-outline {
    background: transparent;
    color: var(--ab-primary);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 4px;
}
.autobid-btn-outline:hover {
    background: var(--ab-primary) !important;
    color: #fff !important;
    border-color: var(--ab-primary) !important;
}
.autobid-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Steps ---- */
.autobid-step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ab-primary);
    margin-bottom: 24px;
    border-bottom: 3px solid var(--ab-primary-mid);
    padding-bottom: 10px;
}

/* ---- Felter ---- */
.autobid-field-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.autobid-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.autobid-field label {
    font-weight: 600;
    font-size: 14px;
    color: var(--ab-text);
}
.autobid-field input,
.autobid-field textarea,
.autobid-field select {
    padding: 10px 14px;
    border: 2px solid var(--ab-border);
    border-radius: var(--ab-radius);
    font-size: 15px;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: var(--ab-text);
}
.autobid-field input:focus,
.autobid-field textarea:focus {
    outline: none;
    border-color: var(--ab-primary);
    box-shadow: 0 0 0 3px rgba(79,156,248,0.1);
}
.req { color: var(--ab-danger); }

/* ---- Nummerpladesøgning ---- */
.autobid-plate-lookup {
    background: var(--ab-primary-light);
    border: 1px solid var(--ab-primary-mid);
    border-radius: var(--ab-radius);
    padding: 20px;
    margin-bottom: 24px;
}
.autobid-plate-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* === Dansk nummerplade === */
.dk-plate {
    display: flex;
    align-items: stretch;
    border: 5px solid #cc0000;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    height: 64px;
    box-shadow: 1px 2px 6px rgba(0,0,0,0.12);
}

/* Blå EU-del */
.dk-plate-blue {
    background: #003399;
    width: 44px;
    min-width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
}
.dk-stars {
    width: 20px;
    height: 20px;
}
.dk-label {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
    line-height: 1;
}

/* Hvid plade-del med input */
.dk-plate-white {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex: 1;
}
.dk-plate-white input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: 4px !important;
    color: #111 !important;
    width: 200px;
    padding: 0 !important;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Franklin Gothic Medium', Arial, sans-serif;
    caret-color: #cc0000;
}
.dk-plate-white input::placeholder {
    color: #ccc;
    font-weight: 700;
    letter-spacing: 3px;
}
.dk-plate-white input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
/* Fokus-glow på hele pladen */
.dk-plate:focus-within {
    border-color: #aa0000;
    box-shadow: 0 0 0 3px rgba(204,0,0,0.15), 1px 2px 6px rgba(0,0,0,0.12);
}

/* ---- Bil-preview (data fra motorregistret) ---- */
.autobid-car-preview {
    background: var(--ab-primary-light);
    border: 2px solid var(--ab-primary-mid);
    border-radius: var(--ab-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.autobid-car-preview h3 {
    margin: 0 0 14px;
    color: var(--ab-primary);
    font-size: 16px;
}
.autobid-car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.autobid-car-field {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid var(--ab-border);
    min-width: 0;
}
.autobid-car-field--wide {
    grid-column: span 2;
}
.autobid-car-field .label {
    font-size: 11px;
    color: var(--ab-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.autobid-car-field .value {
    font-weight: 700;
    font-size: 15px;
    color: var(--ab-text);
    word-break: break-all;
    overflow-wrap: break-word;
}

/* ---- Upload hint ---- */
.autobid-upload-hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--ab-text-muted);
    font-style: italic;
}

/* ---- Upload ---- */
.autobid-upload-area {
    border: 2px dashed var(--ab-primary-mid);
    border-radius: var(--ab-radius);
    text-align: center;
    padding: 30px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--ab-primary-light);
}
.autobid-upload-area:hover,
.autobid-upload-area.dragging {
    border-color: var(--ab-primary);
    background: #dbeafe;
}
.autobid-upload-placeholder p { margin: 6px 0; color: var(--ab-text-muted); }
.autobid-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.autobid-image-item {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.autobid-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.autobid-img-spinner {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 10px;
}
.autobid-image-item .remove-img {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239,68,68,0.92);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: background .15s;
}
.autobid-image-item .remove-img:hover { background: #dc2626; }

/* ---- Status-beskeder ---- */
.autobid-status-msg {
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    font-size: 14px;
}
.autobid-status-msg.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}
.autobid-status-msg.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}
.autobid-status-msg.info {
    background: var(--ab-primary-light);
    color: var(--ab-primary);
    border: 1px solid var(--ab-primary-mid);
    display: block;
}

/* ---- Overlay / spinner ---- */
.autobid-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(4px);
}
.autobid-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ab-spin 0.8s linear infinite;
    margin-bottom: 16px;
}
@keyframes ab-spin { to { transform: rotate(360deg); } }

/* ---- Success ---- */
.autobid-success-box {
    text-align: center;
    padding: 60px 20px;
}
.autobid-success-icon {
    font-size: 64px;
    color: var(--ab-success);
    line-height: 1;
    margin-bottom: 20px;
}
.autobid-success-box h2 { color: var(--ab-success); }

/* ---- Bil-oversigt / Listings ---- */
.autobid-listings-header {
    margin-bottom: 32px;
}
.autobid-listings-header h2 {
    font-size: 28px;
    color: var(--ab-text);
    font-weight: 800;
    margin-bottom: 8px;
}
.autobid-subtitle { color: var(--ab-text-muted); }

/* Sort bar */
.autobid-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.autobid-sort-label {
    font-size: 13px;
    color: var(--ab-text-muted);
    font-weight: 600;
}
.autobid-sort-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ab-text);
    background: var(--ab-primary-light);
    border: 1px solid var(--ab-border);
    transition: all 0.15s;
}
.autobid-sort-btn:hover { background: var(--ab-primary-mid); color: #fff; }
.autobid-sort-btn.active { background: var(--ab-primary); color: #fff; border-color: var(--ab-primary); }

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

.autobid-car-card {
    background: #fff;
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--ab-border);
}
.autobid-car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(79,156,248,0.14);
}

.autobid-car-image {
    position: relative;
    height: 200px;
    background: var(--ab-gray);
    overflow: hidden;
}
.autobid-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.autobid-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 14px;
}
.autobid-badge-bid {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ab-success);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.autobid-car-body { padding: 18px; }
.autobid-car-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ab-text);
    margin: 0 0 8px;
}
.autobid-car-year {
    font-size: 14px;
    color: var(--ab-text-muted);
    font-weight: 400;
}
.autobid-car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.autobid-car-specs span {
    background: var(--ab-primary-light);
    color: var(--ab-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--ab-primary-mid);
}
.autobid-spec-timer {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}
.autobid-spec-timer.urgent {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}
.autobid-spec-expired {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
}
.autobid-car-desc {
    font-size: 14px;
    color: var(--ab-text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}
.autobid-thumb-strip {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.autobid-thumb-strip img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--ab-border);
}
.autobid-more-images {
    width: 50px;
    height: 50px;
    background: var(--ab-primary-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--ab-primary);
    font-weight: 700;
    border: 1px solid var(--ab-primary-mid);
}
.autobid-car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
}
.autobid-asking-price { color: var(--ab-text); }
.autobid-asking-price strong { font-size: 16px; color: var(--ab-primary); }
.autobid-bid-count { color: var(--ab-text-muted); }
.autobid-my-bid {
    font-size: 14px;
    color: var(--ab-success);
    margin-bottom: 10px;
}
.autobid-my-bid strong { font-size: 16px; }

/* ---- Modal ---- */
.autobid-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.autobid-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 24px 64px rgba(79,156,248,0.18);
}
.autobid-modal h3 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--ab-text);
    font-weight: 800;
}
.autobid-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--ab-gray);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ab-text-muted);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.autobid-modal-close:hover {
    background: var(--ab-primary-light);
    color: var(--ab-primary);
}

/* ---- Vundne biler ---- */
.autobid-won-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid var(--ab-primary-mid);
}
.autobid-won-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--ab-text);
    margin-bottom: 8px;
}
.autobid-won-sub {
    color: var(--ab-text-muted);
    margin-bottom: 28px;
}
.autobid-won-card {
    border: 2px solid var(--ab-primary-mid) !important;
    box-shadow: 0 4px 20px rgba(79,156,248,0.12) !important;
}
.autobid-badge-won {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fbbf24;
    color: #1e293b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

/* ---- Timer badges ---- */
.autobid-badge-timer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(79,156,248,0.88);
    color: #fff;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.autobid-badge-timer.urgent {
    background: rgba(239,68,68,0.92);
    animation: ab-pulse 1s ease-in-out infinite;
}
@keyframes ab-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}
.autobid-badge-expired {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(100,116,139,0.85);
    color: #fff;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.autobid-expired-msg {
    text-align: center;
    padding: 12px;
    background: var(--ab-gray);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

/* ---- Pagination ---- */
.autobid-pagination {
    margin-top: 40px;
    text-align: center;
}
.autobid-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 2px solid var(--ab-border);
    border-radius: 8px;
    color: var(--ab-primary);
    text-decoration: none;
    transition: all 0.15s;
}
.autobid-pagination .page-numbers:hover {
    border-color: var(--ab-primary);
    background: var(--ab-primary-light);
}
.autobid-pagination .page-numbers.current {
    background: var(--ab-primary);
    border-color: var(--ab-primary);
    color: #fff;
}

/* ---- Login boks ---- */
.autobid-login-required {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}
.autobid-login-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--ab-shadow);
    border: 1px solid var(--ab-border);
    padding: 48px;
    text-align: center;
    max-width: 440px;
    width: 100%;
}
.autobid-lock-icon { font-size: 48px; margin-bottom: 16px; }
.autobid-login-box h2 { color: var(--ab-text); margin-bottom: 12px; font-weight: 800; }
.autobid-login-box p { color: var(--ab-text-muted); margin-bottom: 24px; }
.autobid-login-form-wrap { text-align: left; margin-bottom: 20px; }
.autobid-register-note { font-size: 14px; color: var(--ab-text-muted); }
.autobid-register-note a { color: var(--ab-primary); }

/* ---- Responsivt ---- */
@media (max-width: 600px) {
    .autobid-field-group { grid-template-columns: 1fr; }
    .autobid-grid { grid-template-columns: 1fr; }
    .autobid-plate-row { flex-direction: column; align-items: flex-start; }
    .autobid-modal { padding: 24px; }
    .autobid-login-box { padding: 32px 20px; }
}

/* =============================================
   FORSIDE – autobid_frontpage
   ============================================= */
.abfp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ab-text);
    overflow-x: hidden;
}
.abfp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero --- */
.abfp-hero {
    background: linear-gradient(140deg, #eff6ff 0%, #dbeafe 55%, #e0f2fe 100%);
    color: var(--ab-text);
    position: relative;
    padding: 80px 24px 120px;
}
.abfp-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.abfp-eyebrow {
    display: inline-block;
    background: rgba(79,156,248,0.1);
    color: var(--ab-primary);
    border: 1px solid rgba(79,156,248,0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.abfp-hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px;
    color: var(--ab-text);
}
.abfp-highlight {
    color: var(--ab-primary);
}
.abfp-hero-sub {
    font-size: 18px;
    color: var(--ab-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}
.abfp-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.abfp-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ab-primary);
    color: #fff !important;
    padding: 16px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(79,156,248,0.3);
}
.abfp-cta-primary svg { width: 18px; height: 18px; }
.abfp-cta-primary:hover {
    background: var(--ab-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(79,156,248,0.4);
}
.abfp-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--ab-primary) !important;
    padding: 16px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none !important;
    border: 2px solid var(--ab-primary-mid);
    transition: all 0.2s;
}
.abfp-cta-secondary svg { width: 18px; height: 18px; }
.abfp-cta-secondary:hover {
    background: var(--ab-primary-light);
    border-color: var(--ab-primary);
}
.abfp-hero-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.abfp-trust-item {
    font-size: 14px;
    color: var(--ab-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.abfp-trust-icon { color: var(--ab-success); font-weight: 900; }

/* Hero card */
.abfp-hero-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(79,156,248,0.18);
    border: 1px solid var(--ab-border);
}
.abfp-hero-card-top {
    background: var(--ab-primary-light);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--ab-border);
}
.abfp-hero-car-icon { font-size: 32px; }
.abfp-hero-card-title { font-weight: 700; color: var(--ab-text); font-size: 16px; }
.abfp-hero-card-sub { color: var(--ab-text-muted); font-size: 13px; }
.abfp-bid-list { padding: 8px 0; }
.abfp-bid-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--ab-text);
}
.abfp-bid-row:last-child { border-bottom: none; }
.abfp-bid-top { background: #f0fdf4; }
.abfp-bid-rank { font-size: 18px; width: 28px; }
.abfp-bid-name { flex: 1; font-size: 14px; color: var(--ab-text-muted); }
.abfp-bid-amount { font-weight: 800; font-size: 16px; color: var(--ab-primary); }
.abfp-bid-top .abfp-bid-amount { color: #16a34a; }
.abfp-hero-card-footer {
    background: var(--ab-primary);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    font-size: 14px;
}

/* Wave */
.abfp-hero-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
}
.abfp-hero-wave svg { display: block; width: 100%; height: 80px; }

/* --- Sådan fungerer det --- */
.abfp-how {
    padding: 100px 0 80px;
    background: #fff;
}
.abfp-section-header {
    text-align: center;
    margin-bottom: 56px;
}
.abfp-section-header.abfp-left { text-align: left; }
.abfp-section-header h2 {
    font-size: 38px;
    font-weight: 900;
    color: var(--ab-text);
    margin: 0 0 12px;
}
.abfp-section-header p {
    font-size: 18px;
    color: var(--ab-text-muted);
    margin: 0;
}
.abfp-steps-grid {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}
.abfp-step-card {
    background: var(--ab-primary-light);
    border: 2px solid var(--ab-primary-mid);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    flex: 1;
    max-width: 280px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.abfp-step-card:hover {
    box-shadow: 0 8px 32px rgba(79,156,248,0.14);
    transform: translateY(-4px);
}
.abfp-step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ab-primary);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
}
.abfp-step-icon { font-size: 42px; margin-bottom: 14px; display: block; }
.abfp-step-card h3 { color: var(--ab-text); font-size: 18px; margin: 0 0 10px; font-weight: 800; }
.abfp-step-card p { color: var(--ab-text-muted); font-size: 15px; line-height: 1.6; margin: 0; }
.abfp-step-arrow {
    font-size: 32px;
    color: var(--ab-primary-mid);
    padding: 0 16px;
    font-weight: 300;
    flex-shrink: 0;
}
.abfp-how-cta { text-align: center; margin-top: 52px; }

/* --- Fordele --- */
.abfp-benefits {
    padding: 80px 0;
    background: var(--ab-gray);
}
.abfp-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.abfp-benefit-list { display: flex; flex-direction: column; gap: 28px; }
.abfp-benefit {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.abfp-benefit-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--ab-primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ab-primary-mid);
}
.abfp-benefit h4 { font-size: 16px; font-weight: 800; color: var(--ab-text); margin: 0 0 4px; }
.abfp-benefit p { font-size: 14px; color: var(--ab-text-muted); margin: 0; line-height: 1.6; }
.abfp-stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.abfp-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(79,156,248,0.08);
    border: 1px solid var(--ab-border);
}
.abfp-stat-card.abfp-stat-accent {
    background: var(--ab-primary);
}
.abfp-stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--ab-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.abfp-stat-accent .abfp-stat-number { color: #fff; }
.abfp-stat-label { font-size: 13px; color: var(--ab-text-muted); font-weight: 600; }
.abfp-stat-accent .abfp-stat-label { color: rgba(255,255,255,0.75); }

/* --- Plade-sektion --- */
.abfp-plate-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    color: var(--ab-text);
}
.abfp-plate-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}
.abfp-plate-text h2 { font-size: 36px; font-weight: 900; margin: 0 0 16px; color: var(--ab-text); }
.abfp-plate-text p { font-size: 17px; color: var(--ab-text-muted); line-height: 1.6; margin-bottom: 28px; }
.abfp-cta-large { font-size: 18px; padding: 18px 36px; }
.abfp-plate-demo { text-align: center; }
.abfp-plate-label { font-size: 13px; color: var(--ab-text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.abfp-dk-plate-link { text-decoration: none; display: inline-block; }
.abfp-dk-plate {
    display: flex;
    align-items: stretch;
    border: 5px solid #cc0000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 4px 6px 20px rgba(0,0,0,0.15);
    height: 80px;
    transition: transform 0.2s;
    background: #fff;
}
.abfp-dk-plate-link:hover .abfp-dk-plate { transform: scale(1.04); }
.abfp-dk-blue {
    background: #003399;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.abfp-dk-blue span { color: #fff; font-size: 13px; font-weight: 900; letter-spacing: 1px; }
.abfp-dk-white {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #111;
    font-family: 'Arial Black', Arial, sans-serif;
    min-width: 200px;
}
.abfp-plate-hint { color: var(--ab-text-muted); font-size: 12px; margin-top: 10px; text-align: center; }

/* --- Forhandler boks --- */
.abfp-dealer { padding: 60px 0; background: #fff; }
.abfp-dealer-box {
    background: var(--ab-primary-light);
    border: 2px solid var(--ab-primary-mid);
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.abfp-dealer-icon { font-size: 48px; flex-shrink: 0; }
.abfp-dealer-text { flex: 1; }
.abfp-dealer-text h3 { font-size: 22px; font-weight: 800; color: var(--ab-text); margin: 0 0 8px; }
.abfp-dealer-text p { color: var(--ab-text-muted); font-size: 15px; margin: 0; line-height: 1.6; }
.abfp-cta-dealer {
    display: inline-block;
    background: var(--ab-primary);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(79,156,248,0.25);
}
.abfp-cta-dealer:hover {
    background: var(--ab-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,156,248,0.35);
}

/* --- Footer strip --- */
.abfp-footer-strip {
    background: var(--ab-primary-light);
    border-top: 1px solid var(--ab-border);
    padding: 20px 0;
    text-align: center;
}
.abfp-footer-strip p { color: var(--ab-text-muted); font-size: 13px; margin: 0; }
.abfp-footer-strip a { color: var(--ab-primary); text-decoration: none; }
.abfp-footer-strip a:hover { color: var(--ab-primary-dark); text-decoration: underline; }

.abfp-hero-bid-card-mobile {
    display: none;
}

/* --- Responsivt --- */
@media (max-width: 900px) {
    .abfp-hero-inner { grid-template-columns: 1fr; }
    .abfp-hero-visual { display: none; }
    .abfp-hero-title { font-size: 36px; }
    .abfp-steps-grid { flex-direction: column; }
    .abfp-step-arrow { transform: rotate(90deg); padding: 8px 0; }
    .abfp-hero-bid-card-mobile {
        display: block;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(79,156,248,0.14);
        border: 1px solid var(--ab-border);
        margin-bottom: 24px;
    }
    .abfp-step-card { max-width: 100%; width: 100%; }
    .abfp-benefits-grid { grid-template-columns: 1fr; }
    .abfp-benefits-visual { display: none; }
    .abfp-plate-inner { grid-template-columns: 1fr; }
    .abfp-plate-demo { display: none; }
    .abfp-dealer-box { flex-direction: column; text-align: center; padding: 32px 24px; }
}
@media (max-width: 600px) {
    .abfp-hero {
        padding: 48px 20px 90px;
        display: block !important;
        visibility: visible !important;
        overflow: visible;
    }
    .abfp-hero-inner {
        display: block !important;
        visibility: visible !important;
    }
    .abfp-hero-text {
        display: block !important;
        visibility: visible !important;
    }
    .abfp-hero-title { font-size: 28px; }
    .abfp-hero-sub { font-size: 16px; max-width: 100%; }
    .abfp-hero-ctas { flex-direction: column; }
    .abfp-cta-primary, .abfp-cta-secondary { width: 100%; justify-content: center; }
    .abfp-eyebrow { font-size: 12px; }
    .abfp-how { padding: 70px 0 60px; }
    .abfp-section-header h2 { font-size: 28px; }
    .abfp-stat-cards { grid-template-columns: 1fr 1fr; }
    .abfp-hero-trust { flex-direction: column; gap: 10px; }
}

/* ================================================
   LIGHTBOX
   ================================================ */
.autobid-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.autobid-lightbox-overlay.hidden { display: none; }
.autobid-lb-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.autobid-lb-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.autobid-lb-close {
    position: absolute;
    top: 18px; right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
    z-index: 2;
}
.autobid-lb-close:hover { background: rgba(255,255,255,0.3); }
.autobid-lb-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    border-radius: 50%;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
    z-index: 2;
    line-height: 1;
}
.autobid-lb-nav:hover { background: rgba(255,255,255,0.3); }
.autobid-lb-prev { left: 16px; }
.autobid-lb-next { right: 16px; }
.autobid-lb-counter {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
}
body.autobid-lb-open { overflow: hidden; }

/* Zoom hint on card image */
.autobid-car-image { position: relative; cursor: zoom-in; }
.autobid-img-zoom-hint {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    padding: 3px 7px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.autobid-car-image:hover .autobid-img-zoom-hint { opacity: 1; }

/* Lightbox thumbnails in thumb strip */
.autobid-lightbox-thumb { cursor: zoom-in; }

/* ================================================
   DETALJE-MODAL
   ================================================ */
.autobid-detail-modal-inner {
    max-width: 680px;
    width: 95vw;
    max-height: 88vh;
    overflow-y: auto;
}
.autobid-detail-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ab-text);
    margin: 0 0 16px;
}
.autobid-detail-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 20px;
    padding-bottom: 4px;
}
.autobid-detail-gallery img {
    height: 90px;
    width: 130px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid var(--ab-border);
    transition: border-color 0.15s;
}
.autobid-detail-gallery img:hover { border-color: var(--ab-primary); }
.autobid-detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 20px;
}
.autobid-detail-spec {
    background: var(--ab-primary-light);
    border-radius: 8px;
    padding: 10px 14px;
}
.autobid-detail-spec-label {
    display: block;
    font-size: 11px;
    color: var(--ab-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}
.autobid-detail-spec-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ab-text);
}
.autobid-detail-section {
    margin-bottom: 16px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--ab-primary);
}
.autobid-detail-section strong { display: block; margin-bottom: 6px; font-size: 14px; }
.autobid-detail-section p { margin: 0; color: var(--ab-text-muted); font-size: 14px; line-height: 1.6; }
.autobid-detail-footer {
    text-align: center;
    font-size: 13px;
    color: var(--ab-text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--ab-border);
    margin-top: 16px;
}

/* "Se detaljer" knap */
.autobid-btn-detail {
    width: 100%;
    margin-top: 10px;
    background: transparent;
    color: var(--ab-text-muted);
    border: 1px solid var(--ab-border);
    font-size: 13px;
    padding: 8px 16px;
}
.autobid-btn-detail:hover {
    background: var(--ab-primary-light);
    color: var(--ab-primary);
    border-color: var(--ab-primary-mid);
}

@media (max-width: 600px) {
    .autobid-detail-specs { grid-template-columns: 1fr; }
    .autobid-detail-modal-inner {
        max-height: 92vh;
        width: 100%;
        border-radius: 14px 14px 0 0;
    }
    .autobid-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .autobid-modal-overlay .autobid-detail-modal-inner {
        border-radius: 14px 14px 0 0;
    }
    .autobid-lb-prev { left: 6px; }
    .autobid-lb-next { right: 6px; }
}

/* ================================================
   MIN SIDE
   ================================================ */
.autobid-my-page { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; }
.autobid-my-page-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 40px;
}
.autobid-my-page-header h2 { font-size: 26px; font-weight: 800; color: var(--ab-text); margin: 0 0 6px; }
.autobid-my-page-header p  { color: var(--ab-text-muted); margin: 0; }
.autobid-my-section { margin-bottom: 40px; }
.autobid-my-section-title {
    font-size: 20px; font-weight: 800; color: var(--ab-text);
    margin: 0 0 18px; padding-bottom: 10px;
    border-bottom: 2px solid var(--ab-border);
}
.autobid-my-won-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.autobid-my-car-card {
    background: #fff;
    border: 1px solid var(--ab-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ab-shadow);
}
.autobid-won-card { border-color: #bbf7d0; }
.autobid-my-car-thumb { width: 100%; height: 160px; object-fit: cover; display: block; }
.autobid-my-car-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--ab-text-muted);
}
.autobid-my-car-info strong { color: var(--ab-text); font-size: 15px; }
.autobid-won-badge {
    display: inline-block;
    margin-top: 6px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    align-self: flex-start;
}
/* Bud-tabel */
.autobid-bids-table-wrap { overflow-x: auto; }
.autobid-bids-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.autobid-bids-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--ab-primary-light);
    color: var(--ab-text);
    font-weight: 700;
    border-bottom: 2px solid var(--ab-border);
}
.autobid-bids-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--ab-border);
    color: var(--ab-text);
    vertical-align: middle;
}
.autobid-bids-table tr:hover td { background: #f8fafc; }
.autobid-status-won    { color: #16a34a; font-weight: 700; }
.autobid-status-sold   { color: #dc2626; font-size: 12px; }
.autobid-status-expired{ color: #94a3b8; font-size: 12px; }
.autobid-status-active { color: var(--ab-primary); font-weight: 600; }
.autobid-my-logout { text-align: right; margin-top: 20px; }
.autobid-my-logout a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dc2626;
    border-radius: 4px;
    padding: 6px 14px;
    transition: background 0.15s, color 0.15s;
}
.autobid-my-logout a:hover {
    background: #dc2626;
    color: #fff;
}
