/* =========================================================
   Digital Vehicle Passport - Official Document & Modal Styling
   Aesthetic: Sovereign Security Document (Guilloche Pattern & Gold Seal)
   ========================================================= */

.passport-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.85);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.passport-modal-backdrop.active {
    display: flex;
    animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.passport-document-container {
    background: #0B132B;
    border: 2px solid rgba(245, 158, 11, 0.45);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(245, 158, 11, 0.2);
    display: flex;
    flex-direction: column;
}

/* Security Hologram Watermark Pattern */
.passport-security-header {
    background: linear-gradient(135deg, #1C2541 0%, #0B132B 100%);
    border-bottom: 2px solid rgba(245, 158, 11, 0.4);
    padding: 1.5rem 2rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.passport-security-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(245, 158, 11, 0.03) 10px, rgba(245, 158, 11, 0.03) 20px);
    pointer-events: none;
}

.passport-header-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.passport-gold-emblem {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border: 2px solid #FEF3C7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.passport-gold-emblem svg {
    width: 32px;
    height: 32px;
    color: #0B132B;
}

.passport-titles h2 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FFF;
    letter-spacing: -0.5px;
}

.passport-titles p {
    font-size: 0.82rem;
    color: #FBBF24;
    font-weight: 600;
}

/* Close & Print Buttons in Passport */
.passport-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.btn-passport-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFF;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-passport-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--accent-rose);
    color: var(--accent-rose);
}

/* Passport Body & Sections */
.passport-content-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Security Ribbon */
.passport-security-ribbon {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.security-badge-live {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #34D399;
    font-weight: 800;
    font-size: 0.88rem;
}

.security-hash {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Vehicle Identification Showcase */
.passport-vehicle-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
}

.passport-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.spec-cell .label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.spec-cell .val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFF;
}

.spec-cell .val.mono {
    font-family: var(--font-mono);
    color: var(--primary);
}

/* QR Code and Official Stamp Column */
.passport-verification-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border-right: 1px dashed rgba(255, 255, 255, 0.1);
    padding-right: 1.5rem;
    text-align: center;
}

.qr-code-box {
    width: 130px;
    height: 130px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.qr-code-box svg {
    width: 100%;
    height: 100%;
}

.qr-scan-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Timeline & Milestones */
.passport-timeline-list {
    position: relative;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.passport-timeline-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 7px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-milestone {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.timeline-milestone::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    right: -2.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #0B132B;
    box-shadow: 0 0 10px var(--primary);
}

.timeline-milestone.emerald::after { background: var(--accent-emerald); box-shadow: 0 0 10px var(--accent-emerald); }
.timeline-milestone.gold::after { background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }
.timeline-milestone.rose::after { background: var(--accent-rose); box-shadow: 0 0 10px var(--accent-rose); }

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.milestone-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #FFF;
}

.milestone-date {
    font-family: var(--font-en);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.milestone-desc {
    font-size: 0.85rem;
    color: #CBD5E1;
}

/* Print Optimization */
@media print {
    body * {
        visibility: hidden;
    }
    .passport-modal-backdrop, .passport-modal-backdrop * {
        visibility: visible;
    }
    .passport-modal-backdrop {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        background: none;
        padding: 0;
    }
    .passport-document-container {
        border: 2px solid #000;
        box-shadow: none;
        max-height: none;
        color: #000;
        background: #FFF;
    }
    .passport-header-actions {
        display: none !important;
    }
}

/* Mobile Responsiveness for Passport Modal */
@media (max-width: 768px) {
    .passport-modal-backdrop {
        padding: 0.5rem;
    }
    .passport-document-container {
        max-height: 94vh;
        border-radius: 16px;
    }
    .passport-security-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .passport-header-actions {
        align-self: flex-end;
        margin-top: -2.5rem;
    }
    .passport-gold-emblem {
        width: 44px;
        height: 44px;
    }
    .passport-gold-emblem svg {
        width: 24px;
        height: 24px;
    }
    .passport-titles h2 {
        font-size: 1.15rem;
    }
    .passport-content-body {
        padding: 1rem;
        gap: 1.25rem;
    }
    .passport-vehicle-showcase {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.25rem;
    }
    .passport-verification-col {
        border-right: none;
        border-top: 1px dashed rgba(255, 255, 255, 0.15);
        padding-right: 0;
        padding-top: 1.25rem;
    }
    .passport-security-ribbon {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .passport-spec-grid {
        grid-template-columns: 1fr;
    }
}

