/* ========================================
   HOVER IMAGE REVEAL & EXPAND MODAL
   ======================================== */
#hir-float-card {
    position: fixed;
    width: 145px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    cursor: pointer;
    z-index: 99999;
    opacity: 0;
    transform: scale(0.82);
    transition:
        opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.22s;
    border: 2px solid #D4AF37;
    box-shadow:
        0 8px 28px rgba(0,0,0,0.7),
        0 0 0 1px rgba(255,255,255,0.05) inset;
    will-change: transform, opacity;
    background: #121316;
}

#hir-float-card.hir-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: scale(1);
}

#hir-float-card img {
    width: 100%;
    height: calc(100% - 28px);
    object-fit: cover;
    display: block;
    background: #ffffff;
}

#hir-float-card .hir-float-caption {
    height: 28px;
    background: rgba(14, 15, 17, 0.95);
    color: #D4AF37;
    font-size: 0.66rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

#hir-expanded-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#hir-expanded-modal.hir-active {
    display: flex;
    opacity: 1;
}

.hir-dialog {
    background: #0f1115;
    border: 1px solid #D4AF37;
    border-radius: 12px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.hir-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #16181d;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.hir-dialog-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #D4AF37;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hir-dialog-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.hir-dialog-close:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.hir-dialog-body {
    padding: 18px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 620px) {
    .hir-dialog-body {
        grid-template-columns: 1fr;
    }
}

.hir-img-container {
    background: #1a1c22;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.hir-img-container img {
    max-width: 100%;
    max-height: 240px;
    display: block;
    object-fit: contain;
    background: #fff;
}

.hir-info-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hir-info-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #e2e8f0;
}

.hir-points-heading {
    font-size: 0.78rem;
    font-weight: 700;
    color: #00F0FF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.hir-points-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hir-points-list li {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.35;
}

.hir-dialog-footer {
    padding: 10px 18px;
    background: #14161b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
}

.hir-btn-confirm {
    background: #D4AF37;
    color: #000;
    border: none;
    padding: 7px 16px;
    font-weight: 800;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.hir-btn-confirm:hover {
    background: #b5952f;
}

.step-accordion-header {
    position: relative;
    transition: border-left-color 0.2s ease, background 0.2s ease;
}

.step-accordion-header.hir-hovered {
    border-left: 3px solid #D4AF37 !important;
    background: rgba(212, 175, 55, 0.06) !important;
}

@media (hover: none), (max-width: 768px) {
    #hir-float-card { display: none !important; }
    .step-accordion-header.hir-hovered {
        border-left-color: transparent !important;
        background: none !important;
    }
}