/* AC-211 — Modale Pre-Acquisto Report Storico Veicolo PDF AstaCerta */
.ac-vrm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ac-vrm-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ac-vrm-dialog {
    width: 100%;
    max-width: 880px;
    max-height: 92vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

.ac-vrm-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
}

.ac-vrm-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ac-vrm-brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ac-vrm-title-wrap {
    min-width: 0;
}

.ac-vrm-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ac-vrm-plate-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 5px;
    padding: 1px 7px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.04em;
    border-left: 5px solid #1d4ed8;
}

.ac-vrm-title {
    margin: 2px 0 0;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-vrm-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.ac-vrm-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ac-vrm-body {
    padding: 20px 22px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 20px;
    background: #f8fafc;
}

/* Bento Left: Facsimile Report PDF */
.ac-vrm-facsimile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.ac-vrm-facsimile-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-vrm-pdf-sheet {
    position: relative;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.ac-vrm-pdf-sheet-head {
    background: #0f172a;
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
}

.ac-vrm-pdf-sheet-head strong {
    color: #fbbf24;
    font-family: 'Outfit', sans-serif;
}

.ac-vrm-pdf-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
}

.ac-vrm-pdf-mini-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
}

.ac-vrm-pdf-mini-box span {
    display: block;
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
}

.ac-vrm-pdf-mini-box strong {
    display: block;
    font-size: 11px;
    color: #0f172a;
    margin-top: 1px;
}

.ac-vrm-pdf-lines {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-vrm-pdf-line {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 100%);
}

.ac-vrm-pdf-line.is-short {
    width: 68%;
}

.ac-vrm-pdf-watermark-btn {
    margin-top: 10px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px dashed #60a5fa;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ac-vrm-pdf-watermark-btn:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

.ac-vrm-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #334155;
}

.ac-vrm-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.ac-vrm-trust-list .material-icons-outlined {
    font-size: 16px;
    color: #059669;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Bento Right: Checks, Pricing, Art. 59 Waiver & CTA */
.ac-vrm-main-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ac-vrm-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
}

.ac-vrm-panel-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ac-vrm-progress-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.ac-vrm-progress-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.ac-vrm-spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid #bfdbfe;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: acVrmSpin 0.8s linear infinite;
    flex-shrink: 0;
}

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

.ac-vrm-progress-track {
    height: 7px;
    background: #dbeafe;
    border-radius: 999px;
    overflow: hidden;
}

.ac-vrm-progress-fill {
    height: 100%;
    width: 15%;
    background: linear-gradient(90deg, #1d4ed8, #0284c7);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.ac-vrm-semafori {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ac-vrm-semaforo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 12px;
}

.ac-vrm-semaforo.is-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ac-vrm-semaforo.is-loading {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ac-vrm-semaforo.is-fail {
    background: #fef2f2;
    border-color: #fecaca;
}

.ac-vrm-semaforo-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    background: #e2e8f0;
    color: #64748b;
}

.ac-vrm-semaforo.is-ok .ac-vrm-semaforo-dot {
    background: #16a34a;
    color: #ffffff;
}

.ac-vrm-semaforo.is-fail .ac-vrm-semaforo-dot {
    background: #dc2626;
    color: #ffffff;
}

/* Facsimile Enlarged Preview Overlay */
.ac-vrm-dialog {
    position: relative;
}

.ac-vrm-facsimile-overlay[hidden] {
    display: none;
}

.ac-vrm-facsimile-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ac-vrm-facsimile-sheet-lg {
    width: 100%;
    max-width: 660px;
    max-height: 100%;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    border: 1px solid #cbd5e1;
}

.ac-vrm-facsimile-lg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ac-vrm-facsimile-lg-close {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ac-vrm-facsimile-lg-page {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
    color: #0f172a;
}

.ac-vrm-fac-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e3a8a;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
}

.ac-vrm-fac-sec {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f8fafc;
}

.ac-vrm-fac-sec-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.ac-vrm-fac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ac-vrm-fac-grid span {
    display: block;
    font-size: 10px;
    color: #64748b;
}

.ac-vrm-fac-grid strong {
    font-size: 12px;
    color: #0f172a;
}

.ac-vrm-fac-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-vrm-fac-table > div {
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
}

.ac-vrm-semaforo-text strong {
    display: block;
    font-size: 12px;
    color: #0f172a;
    line-height: 1.2;
}

.ac-vrm-semaforo-text span {
    display: block;
    font-size: 11px;
    color: #64748b;
}

/* Price & Waiver & CTA */
.ac-vrm-offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ac-vrm-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ac-vrm-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ac-vrm-price-old {
    font-size: 14px;
    color: #b91c1c;
    text-decoration: line-through;
    font-weight: 700;
}

.ac-vrm-price-now {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #15803d;
    line-height: 1;
}

.ac-vrm-waiver-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 1.45;
    color: #334155;
    cursor: pointer;
    margin-bottom: 12px;
}

.ac-vrm-waiver-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #1d4ed8;
    flex-shrink: 0;
}

.ac-vrm-cta-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.25);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.ac-vrm-cta-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ac-vrm-cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.ac-vrm-pay-meta {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ac-vrm-alert {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    margin-top: 10px;
}

.ac-vrm-alert.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ac-vrm-alert.is-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.ac-vrm-waitlist-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ac-vrm-waitlist-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.ac-vrm-waitlist-form button {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* Entry point buttons (Card pill, Spec tile, Documents card) */
.ac-report-pdf-icon {
    color: #dc2626 !important;
    font-size: 17px !important;
    line-height: 1;
    flex-shrink: 0;
}

.ac-card-report-label {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.ac-report-price-old {
    color: #cbd5e1;
    opacity: 0.8;
    font-weight: 500;
    font-size: 0.9em;
    text-decoration: line-through;
}

.ac-report-price-new {
    color: #fde68a;
    font-weight: 800;
}

.ac-card-pill-report {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ac-card-pill-report:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.ac-card-report-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.ac-pill-report-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
}

.ac-spec-report-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 2px 0;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ac-spec-report-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #0f172a;
}

.ac-docs-report-promo {
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ac-docs-report-promo-info {
    flex: 1;
    min-width: 210px;
}

.ac-docs-report-promo-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    padding: 2px 8px;
    margin-bottom: 6px;
}

.ac-docs-report-promo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px;
}

.ac-docs-report-promo-desc {
    font-size: 12px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.ac-docs-report-promo-cta {
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 10px 14px;
    background: #ffffff;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.28);
    transition: transform 0.15s ease, background 0.15s ease;
}

.ac-docs-report-promo-cta:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.ac-docs-report-promo-cta .ac-report-price-old {
    color: #b91c1c;
}

.ac-docs-report-promo-cta .ac-report-price-new {
    color: #15803d;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 7px;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .ac-vrm-backdrop {
        padding: 0;
    }

    .ac-vrm-dialog {
        max-width: 100%;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .ac-vrm-header {
        padding: 14px 16px;
    }

    .ac-vrm-body {
        grid-template-columns: 1fr;
        padding: 14px 16px 24px;
        gap: 14px;
    }

    .ac-vrm-semafori {
        grid-template-columns: 1fr;
    }

    .ac-vrm-waitlist-form {
        flex-direction: column;
    }
}

/* AC-216: Sezione I Miei Report PDF in /miei-annunci */
.ac-my-reports-card {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.ac-my-reports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ac-my-reports-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ac-my-reports-heading .ac-report-pdf-icon {
    font-size: 24px !important;
}

.ac-my-reports-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.ac-my-reports-subtitle {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.ac-my-reports-count {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}

.ac-my-reports-empty {
    text-align: center;
    padding: 24px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.ac-my-reports-empty .material-icons-outlined {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.ac-my-reports-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ac-my-reports-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-wrap: wrap;
}

.ac-my-reports-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    flex: 1;
}

.ac-my-reports-vehicle {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.ac-my-reports-date {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.ac-my-reports-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .ac-my-reports-card {
        padding: 16px;
    }

    .ac-my-reports-item-actions {
        width: 100%;
    }

    .ac-my-reports-item-actions a {
        flex: 1;
        justify-content: center;
    }
}
