/* --- HERO SECTION --- */
.vendir-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vendir-hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
}

/* --- SEARCH INPUT --- */
.vendir-search-container {
    background: white;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 30px auto;
    flex-wrap: wrap;
}
.vendir-search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: #334155;
    min-width: 200px;
    border-radius: 8px;
}
.vendir-search-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0 35px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.vendir-search-btn:hover { background-color: #1d4ed8; }

/* --- RESULTS GRID --- */
.vendir-results-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.v-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}
.v-card:hover { transform: translateY(-5px); }

.v-tag { display: inline-block; background: #eff6ff; color: #2563eb; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-right: 5px; margin-bottom: 5px; }
.v-bank-tag { display: inline-flex; align-items: center; background: #f0fdf4; color: #166534; border: 1px solid #dcfce7; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; margin-right: 5px; margin-bottom: 5px; }

/* --- MODAL POPUP --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); padding: 24px; color: white; position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.1); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: background 0.2s; }
.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-body { padding: 24px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.info-item { background: #f8fafc; padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; }
.info-label { display: block; font-size: 0.7rem; text-transform: uppercase; color: #64748b; font-weight: 700; margin-bottom: 4px; }
.info-value { font-size: 0.95rem; font-weight: 600; color: #334155; word-break: break-word; }

.btn-download-pdf { display: block; width: 100%; background-color: #2563eb; color: white; text-align: center; padding: 14px; border-radius: 8px; font-weight: 700; text-decoration: none; margin-top: 10px; transition: background 0.2s; }
.btn-download-pdf:hover { background-color: #1d4ed8; }

@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }

/* --- CRITICAL FIX: FORCE MODAL HIDDEN ON LOAD --- */
#profileModal {
    display: none !important; /* Forces it to hide */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.85); /* Dark background */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

/* Ensure the content inside is centered */
#profileModal .modal-content {
    margin: 5% auto; /* Centers it vertically */
    position: relative;
}